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.

 
Cell Phone Video And Variable Frame Rates
« Next Oldest | Next Newest » Track this topic | Email this topic | Print this topic
ALbino
Posted: Sep 27 2014, 02:15 AM


Advanced Member


Group: Members
Posts: 101
Member No.: 26983
Joined: 9-February 10



Hey all,

With the prevalence of things like iPhones that film everything with a Variable Frame Rate I was wondering if someone has come up with a solution on how to use Virtualdub with VFR and not lose audio sync? I understand that it's theoretically supposed to create duplicate frames to make up for when the frame rate drops, but I'm still having sync issues. Any input would be appreciated, thanks.
 
     Top
dloneranger
Posted: Sep 27 2014, 09:26 AM


Moderator


Group: Moderators
Posts: 2366
Member No.: 22158
Joined: 26-September 07



How do you open them now? (any input plugins etc)
The ffmpeg plugin has code in it that works out frame length so you could try that - I don't have any vfr files to test
If that doesn't work there's an alpha of the next version you can test

--------------------
MultiAdjust JoinWav WavNormalize FFMPeg Input Plugin v1827 UnSharpMask
Windows7/8 Codec Chooser
All FccHandlers Stuff inc. Installers for acm codecs AAC, AC3, LameMp3
 
    Top
ALbino
Posted: Sep 27 2014, 05:43 PM


Advanced Member


Group: Members
Posts: 101
Member No.: 26983
Joined: 9-February 10



QUOTE (dloneranger @ Sep 27 2014, 09:26 AM)
How do you open them now? (any input plugins etc)
The ffmpeg plugin has code in it that works out frame length so you could try that - I don't have any vfr files to test
If that doesn't work there's an alpha of the next version you can test

I open them by dragging them in, and they open just fine and play no problem except for the sync stuff. I tried using FFInputDriver.vdplugin with the same results. I also tried re-deriving the key frames thinking maybe somehow magically that would work, but it didn't :)
 
     Top
dloneranger
Posted: Sep 27 2014, 06:00 PM


Moderator


Group: Moderators
Posts: 2366
Member No.: 22158
Joined: 26-September 07



Try this and see if it helps, it's a test version that uses the frame duration
https://dl.dropboxusercontent.com/u/1702491...Malaksbane2.zip

(You might want to check the file info after opening a file to make sure you've picked the right plugin for loading - sounds silly, but forgetting to pick the plugin is a regular problem)



--------------------
MultiAdjust JoinWav WavNormalize FFMPeg Input Plugin v1827 UnSharpMask
Windows7/8 Codec Chooser
All FccHandlers Stuff inc. Installers for acm codecs AAC, AC3, LameMp3
 
    Top
Abrazo
Posted: Sep 27 2014, 08:56 PM


Advanced Member


Group: Members
Posts: 775
Member No.: 28995
Joined: 5-November 10



I recently bought a Samsung smartphone, and it seems like recorded videos have the MP4 format with H264 (1280x720) and AAC encoding (48Khz / mono).

When I open one of my private recordings for a test in VirtualDub, I have following results, depending on the inputfilter:
- FFMPEG (Malaksbane2 testversion) - 509 frames - 16:826 sec - framerate 30,25
- Quicktime - 631 frames - 16:827 sec - framerate 37,5
- DirectShow - 421 frames - 16:840 sec - framerate 25

Somewhere on the internet (via Google), I found an article saying that Apple QuickTime should play such a videos correctly and that Handbrake should be able to convert the variable framerate into constant framerate:
> http://www.lwks.com/index.php?option=com_k...Itemid=81#78861
 
     Top
dloneranger
Posted: Sep 27 2014, 09:09 PM


Moderator


Group: Moderators
Posts: 2366
Member No.: 22158
Joined: 26-September 07



Whoever thought up VFR should be taken outside and shot - the space savings are so not worth the headache

You should also check the audio length vs video length
I have a note3 and the quicktime plugins gives silly frame rates and length that's wildly different to the audio length
FFMpeg plugin seems to be right, but I haven't got a clip with talking on to check sync all the way through
(I use a test version that's a bit newer than the one above but basically the same)

--------------------
MultiAdjust JoinWav WavNormalize FFMPeg Input Plugin v1827 UnSharpMask
Windows7/8 Codec Chooser
All FccHandlers Stuff inc. Installers for acm codecs AAC, AC3, LameMp3
 
    Top
ALbino
Posted: Sep 28 2014, 05:37 PM


Advanced Member


Group: Members
Posts: 101
Member No.: 26983
Joined: 9-February 10



QUOTE (dloneranger @ Sep 27 2014, 06:00 PM)
Try this and see if it helps, it's a test version that uses the frame duration
https://dl.dropboxusercontent.com/u/1702491...Malaksbane2.zip

(You might want to check the file info after opening a file to make sure you've picked the right plugin for loading - sounds silly, but forgetting to pick the plugin is a regular problem)

Unfortunately that didn't work, but thanks for the idea.

However, Abrazo suggested Handbrake and it totally worked. I changed it from "Variable Framerate" to "Constant Framerate" and now when I open it in Virtualdub it reports 25fps and is in sync. The only disappointing thing is that using Handbrake forces me to re-compress it to h.264 again, but considering it's cell phone video in the first place it's probably not that big of a deal when set to a high enough quality.
 
     Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
6 replies since Sep 27 2014, 02:15 AM Track this topic | Email this topic | Print this topic

<< Back to General Discussion