Printable Version of Topic
Click here to view this topic in its original format
Unofficial VirtualDub Support Forums > Newbie Questions > Wrong Frame Rate


Posted by: sstefany Apr 15 2014, 05:28 PM
I import a MTS file using direct show and the camera shoots 29.97 frames per second (60i though). It opens fine in Virtual Dub but when I click on the menu top VIDEO, then FRAME RATE, it shows 25 fps. I want to use the BOB double filter to get 59.94 fps 'deinterlace'.... it but it gives me 50 fps instead - which makes sense when it doubles the 25 fps ....but it should initially show 29.97 frames per second for the imported video. What can I do?? Thanks!

When I play the 50 fps deinterlaced version...it's jerky like it's looking for the other 10 frames.

Posted by: Abrazo Apr 15 2014, 08:31 PM
Maybe you can try the FFMpeg plugin for VirtualDub ?
With this plugin you can open MTS files. It has its own decoder dll's. For this plugin you must at least have VirtualDub 1.10.4.
> https://sourceforge.net/projects/virtualdubffmpeginputplugin/

When I open an MTS via the DirectShow plugin for VirtualDub,
the Haali Media Splitter (Matroska) is started and the ffdshow Audio and Video decoders are being used.
> http://www.videohelp.com/download/MatroskaSplitter23062013.exe
> http://sourceforge.net/projects/ffdshow-tryout/files/Official%20releases/

I only have 25 and 50 frames MTS files.
No problem when opening them via FFMpeg, nor via DirectShow.

Posted by: sstefany Apr 15 2014, 08:40 PM
I put the files you suggested in the plugin folder but didn't see how to use them after Direct Show. As soon as the video is imported it says 25 fps when I check via the menu. Thanks for your reply. Still searching. I have the latest version of VD.

Posted by: Abrazo Apr 15 2014, 08:54 PM
The download of that plugin is a ZIP-file.
In that ZIP-file you will find two ranges of files, one range to be used with the 32-bit version of VirtualDub, another for the 64-bit version.

Suppose you have a 32-bit installation of VirtualDub:
You must extract the right "FFInputDriver.vdplugin" file to the plugins32 subfolder of VirtualDub,
for exemple C:\Program Files\VirtualDub\plugins32\FFInputDriver.vdplugin

The dll's must be placed in a ffdlls subfolder of plugins32
for exemple C:\Program Files\VirtualDub\plugins32\ffdlls\avcodec-55.dll (same thing for the three other dll's of course)

Now when in VirtualDub, click File > Open video file... , do select one of your MTS files (one single click) and at "Files of type: " do select "FFMpeg Supported Files", then click Open.

Posted by: sstefany Apr 15 2014, 11:13 PM
Great.....that worked with your instructions......the frame rate showed as 29.97 and it processed to 59.94 with the Bob filter.

....to an AVI file. I could play it with VLC and WM Player...however, Adobe Premiere Pro CS6 wouldn't import that AVI. I installed (that's all I did) Haali Media Splitter (Matroska) but not sure how Virtual Dub uses it.

The overall idea is I'll be taking progressive (1080p/60 fps) and interlace (1080/30fps/60i) video this summer. The plan is to take the 60i and Bob Double deinterlace it and then it will match my other 60 fps progressive.

So far I got it to AVI format - 60fps well deinterlaced but I need to lower the size but Adobe won't import it. I tried OLD Avi also, same result. Is there anything else I can try with Virtual Dub or is it time to work on fixing Adobe PP?

Thanks for getting thru this frustrating issue...progress has been made.

Steve

Posted by: sstefany Apr 16 2014, 12:02 AM
OK....I got an avi to import into Premiere by changing this and that and not sure what I did but I hope to duplicate it tomorrow.....

Posted by: sstefany Apr 16 2014, 12:38 PM
Well...I can export my MTS video from Virtual Dub, the video's fine either with FFMpeg OR Direct Show. But when I export it by using Direct Show (to import) no audio appears in the file but the counter, when processing shows data going by. When I import it using FFMpeg, there's audio in the exported file when I play it but Adobe Premiere Pro doesn't see the video, just the audio. When I process it with Direct Show, Premiere sees the video but there's no audio. And trying to take the video from one file and matching it up with the other would take time because the lengths, if synced on the timeline, don't match the audio to video. Anyway, I shouldn't have to make two files to get video, then audio.

It would be great if I can get Virtual Dub to export my deinterlaced video (which is what I want VD for) with video AND audio in one file that Premiere would accept.

Thanks

Posted by: Abrazo Apr 16 2014, 04:34 PM
(I already wrote some info about codecs in an other thread, but cannot find it back immediatly, so I repeat ...)
EDIT: in the meantime I did find it: http://forums.virtualdub.org/index.php?act=ST&f=15&t=22230

In fact the FFMPeg and the DirectShow plugins are only used by VirtualDub to be able to "open" a video.
FFMPeg has its own video- and audio-decoders included, while DirectShow will use DirectShow-compatible decoders available on your computer.

When you "save" a video via VirtualDub it uses a (Video for Windows compatible) "video"-codec (read "encoder") and an (ACM) "audio"-codec.
So the kind of encoding (H264, DivX, Xvid, ... // AAC, MP3) will be the same, but the software that has been used for it was different.

In VirtualDub, before saving your MTS-video as an AVI, you must select "Full processing mode" in the Video- and in the Audio-menu.
After that you must set a video-codec via Compression... in the Video- and an audio-codec via Compression... in the Audio-menu.

Now, when you do a File > Save as AVI... these codecs will be used for compressing the video- and audio.

When you open the resulting video-file (or an other video) in VirtualDub, you can check which codecs have been used via File > File Information...

I hope this will help ...

Posted by: sstefany Apr 17 2014, 10:07 AM
Thanks Abrarzo for all your help. I'm away from home till Sunday so I will continue experimenting then and will post what I find Monday or so.

Posted by: sstefany Apr 21 2014, 12:23 AM
Great- I got everything working almost to the way I want it.

One problem...the video exported by VD is a couple of shades darker (more contrast) than the original. I compare them by opening Sony Vegas and placing them on the timeline one above the other and flipping back and forth between the two.

I can do uncompressed, X264vfw/MP4, or even Cinepak...and it all comes out a little darker with some of the white detail lost. (With or without the Bob Double deinterlace filter, it makes no difference in the shading also.)

I'm going to try to lighten it up so that it cancels the darkening effect...but that seems the long way around.

Any ideas? Thanks again. Steve

Posted by: dloneranger Apr 21 2014, 12:38 AM
It's an imbalance in the levels - limited vs full range

You can use the filters 'alias format' to force it one way or the other
(or the multiadjust filter, if you want to see the difference in a preview window)

Posted by: sstefany Apr 21 2014, 04:38 AM
Thanks....Turns out...in Sony Vegas there is the shading difference but with the same two files in Adobe PPro, there is no difference.

Powered by Invision Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)