Right now I'm using ffmpegsource to open mkv files which I am deinterlacing, but in the userguide it states that the following is a known issue:
Is there a better way for me to import the video?Interlaced H.264 is decoded in an odd way; each field gets its own full-height frame and the fieldrate is reported as the framerate, and furthermore one of the fields (odd or even) may "jump around". To get the correct behavior, you can try setting fpsnum and fpsden so that the framerate is halved (may or may not work). This issue is caused by libavcodec.
+ Reply to Thread
Results 1 to 14 of 14
-
-
The problems with interlaced h.264 varies with ffMpegSource(). I usually use ffMpegSource() but sometimes have to revert to DirectShowSource(). The latter has its problems too (not always frame accurate when seeking) and will depend on what DirectShow filters you have installed. In a worst case scenario I'll use DirectShowSource() and convert linearly to a lossless codec for non-linear access later.
-
Arguably the "best" way if you have an compatible Nvidia card is to use dgnvtools to index it. But it's not free (donationware)
http://neuron2.net/dgdecnv/dgdecnv.html
What was the original format before MKV? (Was it an interlaced h.264 transport stream?)
For some people, L-SmashSource is an improvement on FFVideosource in this situation
LWLibavVideoSource("video.mkv", repeat=true)
In addition to jagabo's technique, other people use ffmbc to encode to a lossless intermediate like ffv1 (ffmbc decodes interlaced AVC transport streams without problems) -
Thanks I'll look into those options when I get the time. The file I'm working with was originally from a DVD and has been encoded once already, progressively, to h264.
-
-
Sorry, to clarify, it has been encoded as if it were progressive. It has not yet been deinterlaced. Unfortunately I don't have access to the originals, but if this is the case then FFMS2 won't have any of these issues?
-
Yes, FFMS2 won't have any of those issues. Those issues only occur with "interlaced" AVC (PAFF streams) . If it's a movie or theatrical release, deinterlacing is usually the wrong thing to do . If it's been resized as well, you're going to have big problems
-
Fortunately it hasn't been re-sized and it's animation, will that cause any issues?
-
"Hasn't been resized" is a good thing -
But animation is very rarely interlaced ; it usually has pulldown for NTSC DVD release . If you post a sample someone will have a look at it and suggest some options . Again , deinterlacing is usually wrong thing to do -
If it is telecined film that was encoded progressive you can restore the luma channel but the progressive encoding of the interlaced chroma channels will have blurred the two chroma fields together (assuming YV12 video). When there's lots of motion you will get colors that don't line up with the luma.
-
That's in sad shape. It looks like someone tried to inverse telecine to 23.976 fps but it didn't work properly, leaving some combed frames. Then they duplicated frames to restore the 29.97 fps frame rate. Sometimes the combed frames are duplicated. Since it is encoded progressive the interlaced chroma channels have blended together. Here's one field from a sequence of frames. The top and bottom images are from fields where the original frame was progressive, the middle field is from an interlaced frame encoded progressive:
You can see that the middle field has a blend of the colors of the two other fields.
They also packaged a ~640x480 square pixel 4:3 frame into a 720x480 square pixel frame. Bizarre.
I'd look for a better source.
Similar Threads
-
How to open AVC and AAC in VirtualDub (AviSynth/DShowPlugin)?
By klischee in forum EditingReplies: 37Last Post: 8th Aug 2014, 02:38 -
Can't open AviSynth in VirtualDubMod
By atamo in forum EditingReplies: 21Last Post: 8th Sep 2013, 07:30 -
Can't open FLV with Avisynth
By Greensmurfet in forum Video ConversionReplies: 1Last Post: 21st Oct 2011, 18:00 -
AviSynth open failure in VirtualDub
By fatcharlie in forum Newbie / General discussionsReplies: 5Last Post: 3rd Mar 2011, 21:32 -
How to open aac file in avisynth?
By lovyagin in forum Video ConversionReplies: 13Last Post: 16th Aug 2009, 08:25