-
Notifications
You must be signed in to change notification settings - Fork 11
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
m2ts: 0x47 byte in TC code confuses seeking #6
Comments
Upon closer look, the file is interesting in that, the first video TS packet's TC code field contains another TS packet sync byte.
Tracing of ffmpeg I'm unable to figure out whether this is a ffmpeg bug or not (when |
…files Fixes AkarinVS#6. Signed-off-by: akarin <i@akarin.info>
I think we also need to fix this for audio seeking as well. Reopen. |
… field in mpegts Updates #6. Signed-off-by: akarin <i@akarin.info>
The underlying issue is already fixed by AkarinVS/L-SMASH-Works#6. Signed-off-by: akarin <i@akarin.info>
The underlying issue is already fixed by AkarinVS/L-SMASH-Works#6. This reverts commit 73fb4f7. Signed-off-by: akarin <i@akarin.info>
The underlying issue is already fixed by AkarinVS/L-SMASH-Works#6. This reverts commit 73fb4f7. Signed-off-by: akarin <i@akarin.info>
Found another related issue |
So. It appears you are using ffmpeg API wrong. FFmpeg has no issues with these two files, it just searches again to the next 0x47 byte. |
Okay, ffmpeg actually has a bug in this file: https://0x0.st/XVJi.m2ts after applying this patch https://patchwork.ffmpeg.org/project/ffmpeg/patch/D1KH1R9UF2X7.7AQL6DW1P6EV@gmail.com/ it can copy all video frames (the black ones). ffmpeg -i XVJi.m2ts -c copy fafma.h264 |
The attached file is the first GOP (24 frames) of a certain BD.
bad.m2ts.zip
lsmas.LWLibavSource
is unable decode the file at all, however other ffmpeg based players like mpv are able to play it back, andffms2.Source
can handle it as well.In fact, lsmas is not even able to create an index for the file.
If we add another GOP, lsmas is able to create the index, but it fails to output the 23rd frame.
bad2.m2ts.zip
From the lwi file, it's clear ffmpeg is able to find all 48 frames, but lsmas can't decode the 23rd frame for some reason.
The text was updated successfully, but these errors were encountered: