-
Notifications
You must be signed in to change notification settings - Fork 105
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
Bad field order when using rffmode=1 #429
Comments
Good bug report. It's unfortunately unfixable without doing full decoding while indexing (which we don't and probably never will) and has been broken forever. It's now removed. |
StvG's fork fixed it here... https://forum.doom9.org/showthread.php?p=1994765#post1994765 |
Sorry just realised you're probably aware of that and what you were actually trying to say (that you don't want to do "full decoding while indexing") |
Looking back at StvG's release notes and my demo of the issue here where you can see the field order fluctuating in FFMS2 and staying fixed in LWLibav, I will make 2 random guesses at what StvG might have done to fix rffmode=1:
|
I did look at StvG's patches but in the end I'm convinced they're not completely correct. Maybe due to some frame offset/other detail of his modification it appears to work but here's the big catch: If you get the field_order using FFmpeg's AVCodecContextParser and store (StvG modification and also fastest way) you realize that it doesn't quite match the repeat_pict and field_order value set in the corresponding fully decoded AVFrames. I believe the AVFrames are correct and the discrepancy is the reason things look bad. Also keep in mind that RFF is more or less only used in the containers where FFMS2 is known to be broken. I always use DGMPGDec and so should the whole world. |
This release shows that the used ffmpeg is with the lsmashsource patches. For MPEG2 here how tff flags are set. |
When using rffmode=1, which is necessary for many MPEG2 videos from NTSC DVD's, the field order of the output frames is not correct.
For test clips and more information please see this doom9 forum post - https://forum.doom9.org/showthread.php?p=1994388#post1994388
Thanks
The text was updated successfully, but these errors were encountered: