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.

Pages: (26) « First ... 14 15 [16] 17 18 ... Last » ( Go to first unread post )
Ffmpeg Input Driver, Experimental driver based on ffmpeg libs
« Next Oldest | Next Newest » Track this topic | Email this topic | Print this topic
moody2014
Posted: Aug 10 2014, 03:52 PM


Member


Group: Members
Posts: 13
Member No.: 37821
Joined: 25-March 14



QUOTE (dloneranger @ Aug 10 2014, 03:47 PM)
Updating to 2.3.1's on my list of things to do, but there's nothing in the 2.3.0 -> 2.3.1 changes that make any difference for users

Ok, thank you biggrin.gif
 
     Top
Malaksbane
Posted: Aug 20 2014, 07:31 PM


Member


Group: Members
Posts: 13
Member No.: 32779
Joined: 24-August 11



Audio is out of sync with HDV video. I don't remember this being the case with earlier versions, but I did use another workflow back when.

Footage is recorded with Sony Z5 with MRC1K Compact Flash recorder, PAL HDV 25p (MPEG-2 TS) in M2T container. I don't have a short sample video handy, it mostly is (painfully) obvious with interviews and those typically aren't short.
 
     Top
dloneranger
Posted: Aug 20 2014, 07:43 PM


Moderator


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



Try comparing with an older version using the same file to compare, as the timestamps of audio/video are inside the file itself

--------------------
MultiAdjust JoinWav WavNormalize FFMPeg Input Plugin v1827 UnSharpMask
Windows7/8 Codec Chooser
All FccHandlers Stuff inc. Installers for acm codecs AAC, AC3, LameMp3
 
    Top
dloneranger
Posted: Aug 20 2014, 07:59 PM


Moderator


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



Also, if the audio is out by a fixed amount you can just move it around to sync it up
I like to use the audio display (on the view menu)
With that shown you can hold shift or ctrl (can;t remember which) and drag the audio left/right with the mouse
This works best on things like doors slamming etc where you can match the audio spike to the video

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


Member


Group: Members
Posts: 13
Member No.: 32779
Joined: 24-August 11



8.02 and 7.32 are also both off.
FFplay (august 2013) seems to play in-sync ok, as is Sony Vegas

Also, with the latest FFInput driver often place the displayed video is shifted down, though processing seems ok, at least processing MXF files, which show the same vertical offset, seemed ok (result is not shifted)

I can not just move and shift it audio around, first off all, you will never get it right trying to sync audio on talking heads and secondly, every shoot has dozens of files and I just don't want to sync them all manually, or at least the ones with audio.

I've used Avisynth with ffms2 some years ago but couldn't find a binary on their site and the ones I (should) have are quite dated.
 
     Top
dloneranger
Posted: Aug 20 2014, 08:30 PM


Moderator


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



I don't have (or have heard of) any of those problems, you're the first to mention them so I don't have anything else to suggest offhand
(virtualdub asks for the audio and video separately so the plugin can't do any sync management either)
Try converting to vid+pcm audio using ffmpeg?

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


Advanced Member


Group: Members
Posts: 384
Member No.: 35081
Joined: 25-June 12



QUOTE (Malaksbane @ Aug 20 2014, 08:13 PM)
I've used Avisynth with ffms2 some years ago but couldn't find a binary on their site and the ones I (should) have are quite dated.

Dunno why you are mentioning FFMS2, but the latest downloads are at https://github.com/FFMS/ffms2/releases
 
     Top
Malaksbane
Posted: Aug 20 2014, 08:41 PM


Member


Group: Members
Posts: 13
Member No.: 32779
Joined: 24-August 11



Same result ... audio is lagging just a bit. I think it's lagging, while it's immediately clear it is out of sync it's always hard to say if audio is ahead or behind video

Some files have it really bad, I have found one with audio obviously out-of-sync, but it is 235 Mb. Another one is 45 Mb. It's dutch, btw.
 
     Top
Malaksbane
Posted: Aug 20 2014, 08:53 PM


Member


Group: Members
Posts: 13
Member No.: 32779
Joined: 24-August 11



QUOTE (raffriff42 @ Aug 20 2014, 08:37 PM)
QUOTE (Malaksbane @ Aug 20 2014, 08:13 PM)
I've used Avisynth with ffms2 some years ago but couldn't find a binary on their site and the ones I (should) have are quite dated.

Dunno why you are mentioning FFMS2, but the latest downloads are at https://github.com/FFMS/ffms2/releases

Yeah, found them from Avisynth. I mention them because using avisynth would be ( a ) another input option and ( b ) it is another ffmpeg input driver and this could be a problem with more recent ffmpeg builds.
 
     Top
dloneranger
Posted: Aug 20 2014, 09:06 PM


Moderator


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



You might want to test if it's just virtualdub lagging on playback
It's not optimized as a player and the plugin does a LOT of seeking around the file
Is a recompressed file out of sync in a normal player?

--------------------
MultiAdjust JoinWav WavNormalize FFMPeg Input Plugin v1827 UnSharpMask
Windows7/8 Codec Chooser
All FccHandlers Stuff inc. Installers for acm codecs AAC, AC3, LameMp3
 
    Top
Malaksbane
Posted: Aug 20 2014, 09:22 PM


Member


Group: Members
Posts: 13
Member No.: 32779
Joined: 24-August 11



Good suggestion.

I re-saved as avi in virtualdub and overlayed the result with the original in Vegas. Doing so the transcoded AVI is frame exact in video, but the audio is lagging when compared to the original. When I delay the M2T by 8 frames (25p) they match, so it would appear that the ffmpeg/virtualdub route delays the audio by 8 frames.

PS. I am going to bed so I can't follow up suggestions until tomorrow.
 
     Top
dloneranger
Posted: Aug 20 2014, 09:32 PM


Moderator


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



Quick fix is to move the audio by -320ms (if I worked that out right 1000/25*8 ??? ) on the audio menu->interleaving
I've pm'd you as well

--------------------
MultiAdjust JoinWav WavNormalize FFMPeg Input Plugin v1827 UnSharpMask
Windows7/8 Codec Chooser
All FccHandlers Stuff inc. Installers for acm codecs AAC, AC3, LameMp3
 
    Top
dloneranger
Posted: Aug 21 2014, 07:00 PM


Moderator


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



OK, a test version for you to play with
https://dl.dropboxusercontent.com/u/1702491..._Malaksbane.zip

I think I fixed a stepping forward and then rewind error + an error a few frames after doing that
The test vid Malaksbane provided has timestamps earlier than the declared start timestamp in the video stream
In effect the video goes something like frame 0,-2,-1,1,2 and then when seeking back to the start we count back like 2,1,-1 and stop there as -1 < the time we wanted, then it winds forward until a complete frame is assembled and goes "oops you wanted frame 0 and this is frame 11"
Hopefully this is fixed and hasn't broken any other formats

The sync problem looks awkward - it's basically due to preroll
The start time of the video and the start time of the audio are different
So I'll need to work out a way of offsetting the audio and video times
This is a pain, as in the code the audio and video doesn't actually have anything to do with each other atm
I'll have to check that it won't break other formats that don't have 'connected' timestamps as well
(Basically a bigger job and much testing needed)

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


Moderator


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



v0.8.1.7 released, see first post for details

--------------------
MultiAdjust JoinWav WavNormalize FFMPeg Input Plugin v1827 UnSharpMask
Windows7/8 Codec Chooser
All FccHandlers Stuff inc. Installers for acm codecs AAC, AC3, LameMp3
 
    Top
moody2014
Posted: Aug 30 2014, 02:03 PM


Member


Group: Members
Posts: 13
Member No.: 37821
Joined: 25-March 14



QUOTE (dloneranger @ Aug 30 2014, 12:05 PM)
v0.8.1.7 released, see first post for details

thanks for new version biggrin.gif

 
     Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
378 replies since May 10 2011, 10:20 AM Track this topic | Email this topic | Print this topic
Pages: (26) « First ... 14 15 [16] 17 18 ... Last »
<< Back to VirtualDub Filters and Filter Development