-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Auto-reload .ts file being live-streamed to #2230
Comments
You mean llc should send commands to a separate running MPV instance like seek, pause, play etc? Not sure what would be the benefit of that, and it could easily go out of sync.
Have you tried the "Reload current media" shortcut? |
MPV is a player 1) can play a video file .ts while being recorded BUT LLC Now can play HEVC .ts file thru ffmpeg assisted playback with acceptable clarity! Reload current media? No, its of course better than nothing but that wouldnt be practical.. Is it too difficult for you to adjust ffmeg assisted player accordingly to be still be able to play as the new data comes? |
"Reload current media" action was added because it would be quite annoying if it auto-reloaded the file every second or so because it will cause the playback window to flash and the cursor time to be reset to 0, so I thought it's better to have control over it manually. For examply you can press the "Reload current media" button once every 30 seconds in order to load another 30 seconds of video into the player. Not sure if I understand your use case fully. You want to edit a video while it's being recorded and then export segments as files while recording? what will you then do with these exported files (while recording)? |
ok thx for explaining. I agree that it's a cool feature to have.
the original request for reloading the current file was for mkv #1674 but maybe he did something voodoo. So I still think what I said earlier still stands for LosslessCut:
meaning there are some things that would have to be solved before it would be possible to auto-reload file:
once these issues have been solved, we could auto-reload the file whenever it changes. Here's an ffmpeg command to generate a live stream into a .ts file for testing: ffmpeg -hide_banner -re -f lavfi -i 'gradients=s=640x480:rate=30:n=3:type=linear,drawtext=text=%{localtime\\:%T}:fontcolor=white:fontsize=20:box=1:[email protected]:x=(w-text_w)/2:y=(h-text_h)/2,format=yuv420p' -pix_fmt yuv420p -an -vcodec libx264 -b:v 1M -preset ultrafast -f mpegts stream.ts |
OK. In timeline File length continuously updates. The playhead moves normally... and updates When playhead shows abt 3.40 file length is 3.50 After a while play head time catches file length time like 4.01 to 4.00 .. when you stop and start playing again.. Both numbers update correctly! |
One more thing, mpv or mpv.net I believe both Open Source, there might be a clue there for you. They both play .ts files being recorded as well as PP. |
The fewer issues I have to read, the more new features I will have time to implement, so I ask that you please try these things first
Description
Nice improvements since last time including FFmpeg-assisted playback. (allow external engine like mpv player sometime in the future, hopefully.) One more (a great one) LIVE EDIT would be great..
One of your stated use cases is dealing with Recording TV shows. It would be great to be able to play and edit WHILE its been recorded..
Sample workflow:
Use OBS to capture TV Broadcast in .TS muxer. (Hevc codec)
Currently using Potplayer to set chaptermarks-bookmarks while recording this .ts file. Unlike many other players, it keeps updating the data. Which enables to record and watch at the same time.
in LLC (ffmpeg assisted player), I can play and edit this .ts file while its been recorded.
Only problem is it doesnt update the new incoming data, so the file length-size stays same.
I dont know if these might help:
Watch multi-stream video file while being recorded by ffmpeg - Stack Overflow
tee - ffmpeg how to record and preview at the same time - Stack Overflow
Reading from a continuously written .ts file : r/ffmpeg
thanks for your time and help
The text was updated successfully, but these errors were encountered: