-
-
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
No keyframes shown on Skydio 2 recordings. v6.0.x #308
Comments
I might be able to provide some insight into this. We include a thumbnail in our video files, which ffmpeg by default (for some reason) recognizes as an MJPEG stream at index 0. The actual video content is at index 1. However, the MJPEG stream (which is only a single frame long), has a A better way, depending on how LosslessCut works, is to use the output of It's a weird ffmpeg behavior, but technically isn't a bug. This will happen in any MP4 that includes a thumbnail AFAIK. For reference, this is the output of Ubuntu 18's
|
For anyone following along, I corrected all of my recent Skydio 2 footage with: It then works as intended within LosslessCut, keyframes and all. |
@wolfd thanks for digging! I think this will be a problem with any video file that has the thumbnail as video stream #0 (which may be all?) I'm already running ffprobe so I can filter out. |
Happy to help! There may be a way for us get the thumbnail to show as stream 1, which we're investigating (some careful reordering of atoms in the MP4), but it may cause problems in other programs. MP4 parsers are weird, and have different expectations. I still think it's still a good idea to filter out |
Yea I just implemented and tested. will be fixed in the next version! |
I just tested with the sample footage above as well as my own Skydio 2 footage. The fix for showing keyframes is working, but the resulting exported video output only works in roughly half of my cuts. Many of the exported segments appear as solid black video in QuickTime on macOS. I could reproduce this with the sample footage above when making multiple cuts. If I check the resulting segments of my own footage with If you need a longer sample video clip for testing, I can assist. Update: I opened one of the problematic source videos, turned off stream 0 (MJPEG thumbnail), and exported the full video. I then re-opened that resulting video in LLC, marked numerous cuts and exported them. All of the segments play properly and have keyframes starting at 0.000000. There is something about the initial process above that is breaking the video clips that is resolved when processing them via this second method (open, export, open, proceed as normal). Update 2: Turning off stream 0 and exporting segments works, too. If stream 0 is not manually turned off, much of the resulting video segments are unplayable. |
Ohh awesome job researching this. Maybe I will change it so thumbnails stream defaults to off. |
Just a quick note to say the latest Skydio 2 firmware has put the thumbnail track in the second position, and LosslessCut is reading and displaying the keyframes as expected! |
Ok. But i still think there will be the issues when cutting if there is a thumbnail track. Therefore in the newest lc version i have now disabled thimnail tracks by default (But user can of course turn it on) |
On the recent update of the Skydio 2 firmware, the video files recorded don't display keyframes in LosslessCut.
small sample file - https://www.dropbox.com/s/ib2pwhsxyk41qnz/S1000024.MP4.zip?dl=0
The text was updated successfully, but these errors were encountered: