Welcome Guest ( Log In | Register )


Important

The forums will be closing permanently the weekend of March 15th. Please see the notice in the announcements forum for details.

 
Flvinputdriver Vs. Flv.vdplugin
« Next Oldest | Next Newest » Track this topic | Email this topic | Print this topic
MrSmite
Posted: Jul 12 2011, 09:22 AM


Advanced Member


Group: Members
Posts: 102
Member No.: 25620
Joined: 30-May 09



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/Plugin.../FLV/index.html

Thanks
 
     Top
Placio74
Posted: Jul 12 2011, 01:11 PM


VideoAudio


Group: Members
Posts: 1216
Member No.: 21485
Joined: 24-May 07



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 tc2cfr > mux video and audio together.

This post has been edited by Placio74 on Jul 12 2011, 04:10 PM

--------------------
VideoAudio.pl - Serwis o technologii wideo & audio
 
     Top
MrSmite
Posted: Jul 12 2011, 08:05 PM


Advanced Member


Group: Members
Posts: 102
Member No.: 25620
Joined: 30-May 09



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:

CODE

Video
Format                           : VP6
Codec ID                         : 4
Duration                         : 4mn 33s
Bit rate                         : 1 600 Kbps
Width                            : 848 pixels
Height                           : 360 pixels
Display aspect ratio             : 2.35:1
Frame rate mode                  : Constant
Frame rate                       : 24.110 fps
Bit depth                        : 8 bits
Bits/(Pixel*Frame)               : 0.217
Stream size                      : 52.2 MiB (92%)

Audio
Format                           : MPEG Audio
Format version                   : Version 1
Format profile                   : Layer 3
Codec ID                         : 2
Codec ID/Hint                    : MP3
Duration                         : 4mn 33s
Bit rate mode                    : Constant
Bit rate                         : 160 Kbps
Channel(s)                       : 2 channels
Sampling rate                    : 44.1 KHz
Compression mode                 : Lossy
Stream size                      : 5.22 MiB (9%)


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.
 
     Top
Placio74
Posted: Jul 12 2011, 09:03 PM


VideoAudio


Group: Members
Posts: 1216
Member No.: 21485
Joined: 24-May 07



QUOTE (MrSmite @ Jul 12 2011, 10:05 PM)
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.

Go to ffdshow video decoder configuration (DirectShow filter).
Also, must have installed FLV Splitter.


QUOTE (MrSmite @ Jul 12 2011, 10:05 PM)
...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.

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).

--------------------
VideoAudio.pl - Serwis o technologii wideo & audio
 
     Top
ale5000
Posted: Jul 12 2011, 09:53 PM


Advanced Member


Group: Members
Posts: 1114
Member No.: 22180
Joined: 30-September 07



MediaInfo say "Frame rate mode: Constant" so it isn't VFR, upload the file so it can be checked directly.

--------------------
New VirtualDub forum
VirtualDub AIO (All-in-One installer for VirtualDub and plugins)
Codec Toolbox RS (A tool to read/change merit of codecs and many other things)
Input plugins for VirtualDub / ACM codecs / VFW codecs
 
     Top
Placio74
Posted: Jul 12 2011, 10:40 PM


VideoAudio


Group: Members
Posts: 1216
Member No.: 21485
Joined: 24-May 07



QUOTE (ale5000 @ Jul 12 2011, 11:53 PM)
MediaInfo say "Frame rate mode: Constant" so it isn't VFR, ...

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.

--------------------
VideoAudio.pl - Serwis o technologii wideo & audio
 
     Top
ale5000
Posted: Jul 12 2011, 10:51 PM


Advanced Member


Group: Members
Posts: 1114
Member No.: 22180
Joined: 30-September 07



Now I hate flv even more!!!
Every info in the flv header is wrong.

--------------------
New VirtualDub forum
VirtualDub AIO (All-in-One installer for VirtualDub and plugins)
Codec Toolbox RS (A tool to read/change merit of codecs and many other things)
Input plugins for VirtualDub / ACM codecs / VFW codecs
 
     Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
6 replies since Jul 12 2011, 09:22 AM Track this topic | Email this topic | Print this topic

<< Back to Codec Discussion