[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autoreload on file changed #1674

Closed
4 tasks done
johannesCmayer opened this issue Jul 29, 2023 · 4 comments
Closed
4 tasks done

Autoreload on file changed #1674

johannesCmayer opened this issue Jul 29, 2023 · 4 comments

Comments

@johannesCmayer
Copy link

I have a lot of issues to go through, so in order to make it easier for me to help you, I ask that you please try these things first

Description

I am having the use case that I concatenate to the current MKV video file that LosslessCut is displaying. I would like it that LosslessCut automatically updates and shows the newly recorded video content. Basically, I record a mkv file using OBS and then use ffmpeg to append the recorded file to the file that is currently open in LosslessCut.

Right now I need to kill LosslessCut and then reopen it for it to recognize the change.

If it would be much easier to just have a hotkey to do this, this would be nice too. The main disadvantage right now is that I always lose settings such as playback speed and playback position. Restarting LosslessCut also takes a few moments, which is a bit annoying.

@mifi
Copy link
Owner
mifi commented Jul 31, 2023

So if you close the file (ctrl+w) and reopen it, it doesn't recognise the changes to the file?

@johannesCmayer
Copy link
Author

This has also the disadvantage of losing the playback position and the playback speed setting. Also, it is even slower than my terminal script of killing LosslessCut completely. Because now I need to close the file and then drag the file again into the LosslessCut window.

Another related thing that might be nice is if the lossless card could open, display and edit files that are being appended to, like mpv. I can record some video in OBS and at the same time play back the file using mpv. And then I would normally pause OBS and then use MPV to preview what I have recorded so far.

@mifi
Copy link
Owner
mifi commented Jul 31, 2023

I managed to find a way to reload the file from disk on command, but it's a bit difficult to detect when this happens in a cross-platform way. And I'm afraid it's going to cause unexpected problems if we auto-reload. As a first version I can make a custom keyboard shortcut to reload the file. Then it will reload the file with its new duration and preserve playback position.

@mifi mifi closed this as completed in 166a51d Aug 1, 2023
@johannesCmayer
Copy link
Author
johannesCmayer commented Aug 2, 2023

Nice, thank you. I did not expect this be fixed so fast, or at all actually. I will try in the next release, as the current nightly doesn't open the GUI for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants