| Printable Version of Topic
Click here to view this topic in its original format |
| Unofficial VirtualDub Support Forums > Codec Discussion > Flvinputdriver Vs. Flv.vdplugin |
| Posted by: MrSmite Jul 12 2011, 09:22 AM |
| I have a FLV file that MediaInfo reports as VP6 that behaves differently depending on what I open it with... If I play it in MPC HomeCinema using FFDShow it plays fine If I open it in VDub using FLV.vdplugin it opens and plays fine .... If I compress it to HuffYUV, it is out of sync no matter what audio options I pick If I open it with FLVInputDriver.vdplugin it plays fine and recompresses in sync. The problem is, FLVInputDriver reads the file differently so seeking and editing is a pain. What is the fundamental difference between these two plugins and can they coexist in one VDub instance? Currently I run two copies of VDub with each plugin in case one can't read a file. I noticed that FLVInputDriver is very old (2008) and oddly it handles a file that was created in 2010... FYI: When I load the FLV using FLVInputDriver and choose "File Info", it shows this: Synch Error Median: -26ms Average: -26ms Maximum: -53ms but it seems to compensate for this problem because the audio is in synch. FLVInputDriver: http://moitah.net/ FLV.vdplugin: http://home.comcast.net/~fcchandler/Plugins/FLV/index.html Thanks |
| Posted by: Placio74 Jul 12 2011, 01:11 PM |
| First plugin supports variable frame rate (converts VFR>CFR). Second plugin does not (yet) support VFR. Second plugin handles AVC video and AAC audio, when first plugin not. Also... - both does not 'support' Nellymoser audio (there is no ACM decoder for this format), - Moitah's plugin recoginzes ADPCM (in SWF variant) audio, but can't 'decode' - fccHandler's plugin can. --- If your FLV file has a variable FPS and want to maintain A/V sync, you can (for now) import through... - Moitah's FLV input plugin, - DirectShow import driver, - Avisynth script using DirectShowSource with ConvertFPS. Or... extract video, audio and timecodes using FLV Extract > process video with timecodes using http://bengal.missouri.edu/~kes25c/#c3 > mux video and audio together. |
| Posted by: MrSmite Jul 12 2011, 08:05 PM | ||
| Thanks for the details. Interestingly I tried using the DirectShowInputDriver but after the file loaded it said "missing codec", even though I have FFDshow VFW set to decode VP6 and all other flash variants. FWIW, here's the MediaInfo details:
Incidentally under the "sound - hardware - video codecs" dialog (XP), codec 4 is ffdshow. I also have another interesting entry at #18: vp6vfw.dll but I'm not sure exactly how to give it a higher priority. I installed a VP6 codec from On2 (now owned by Google) which gave me the following: vp6.ax vp6dec_settings.cpl vp6vfw.dll (VP6 video for windows codec) but I have no idea how to get VDub to use them. I've tried GSpot to change priority and other things but to no avail. |
| Posted by: Placio74 Jul 12 2011, 09:03 PM | ||||
Go to ffdshow video decoder configuration (DirectShow filter). Also, must have installed FLV Splitter.
On2 VP6 codec handle VP60, VP61 and VP62 FourCC. In Flash is 'used' other - VP6F (this is not supported by mentioned codec). If you change container (to AVI) and change FourCC code (from VP6F to VP62), On2 VP6 codec will decode this video - but with image upside-down. Some people use reverse method to create FLV's (encoding upside-down video with VP6 codec > change FourCC code > change container to FLV). However commonly On2 VP6 VfW codec is not used to create Flash Video - apps such as Flash Media Encoder, On2 Flix or Sorenson Squeeze does not use VfW (VP6 is used, but not through VfW - rather as 'integrated' in these apps). |
| Posted by: ale5000 Jul 12 2011, 09:53 PM |
| MediaInfo say "Frame rate mode: Constant" so it isn't VFR, upload the file so it can be checked directly. |
| Posted by: Placio74 Jul 12 2011, 10:40 PM | ||
This is not a reliable... as I remember... If FLV contain framerate tag in metadata, MediaInfo 'say' FPS is constant and display FPS from tag - however it does not necessarily comply with 'real' FPS (sometimes yes, sometimes not). If FLV does not contain FPS info in metadata, MediaInfo 'say' FPS is variable. MediaInfo does not parse whole file (because it's too slow), so can't detect/calculate 'real' FPS. |
| Posted by: ale5000 Jul 12 2011, 10:51 PM |
| Now I hate flv even more!!! Every info in the flv header is wrong. |