|
|
| nzero1 |
| Posted: Jan 24 2015, 08:08 PM |
 |
|
Newbie

Group: Members
Posts: 8
Member No.: 38577
Joined: 24-January 15

|
I use VirtualDub to convert TS recorded with a PVR (DVB-T).
Audio is delayed of about 0.x to 1.5 seconds, depending on the FHD video and it can be observed in the input video pane of VD, and so on up to the final AVI file. "Sync to Audio" option of VD is on, without, preview is jerky and the audio delay seems the same. It seems to only occur for FHD (not for SD format) using VD_ffmpeg_plugin V0.8.1.9 and also V0.8.2.0 (not tested with v0.8.1.8). Synchronisation is OK for V0.8.1.7 on VD 1.10.5 test5 or test7 (changing plug-ins).
Some comparison between V0.8.2.0 (V0820) and V0.8.1.7 (V0817): the number of frame of my test TS file are not the same (less frames with V0820). Missing frames at the beginning of my file are overcome with V0820 and V0817, while I should cut the missing range with V0.8.1.9 to prevent from error. The Key-frame indication [K] seems to appear too much regularly with V0820 or V0819, rather than V0817. But I suppose it comes from solutions found to fix current issues.
I know that TS data content is not perfect... I use VD to cut advertisings, parts of the file suspected to lead to an error for ffmpeg... and to join AVI produced by successive TS files. (AVI format : Xvid 25fps and Lame MP3 48k or 41.2k depending on the DVB source). The audio track is always shorter than video, and I have to join AVI files with a wav file that I could manage to fulfil the missing duration. Curiously, with V0820 or V0819, the difference between audio and video duration is only about 40ms. But I prefer to fill the end of each part of the audio track when using V0817, rather than finding how much I should delay each audio track, TS by TS files, when using V0820.
Unfortunately the conversion seems to need more CPU time with V0817 than V0820.
I hope that a new release of ffmpeg_plugin will fix this hot problem.
Thank you to people contributing to ffmpeg, virtualdub and ffdlls
Nic. |
 |
| dloneranger |
| Posted: Jan 24 2015, 09:18 PM |
 |
|
Moderator
  
Group: Moderators
Posts: 2366
Member No.: 22158
Joined: 26-September 07

|
8.2.1 was pushed out today, try that
820 changed the way it picked a video stream, but that meant that it might select the wrong audio stream if there was more than 1 821 has changed to pick the most likely matching audio stream the first one for virtualdub
re some of your points
| QUOTE | | "Sync to Audio" option of VD is on |
That's a display option for playback in virtualdub only - sync the video output to the audio output or play them independantly (i'm unsure why anyone would want to turn it off)
| QUOTE | | The Key-frame indication [K] |
It's always had questionable accuracy, and takes time to calculate because virtualdub doesn't ask for it when the frames decoded So now it just says 'yes' - as the plugin doesn't do direct stream copy if makes little difference Also some files I've tested don't have any key frames as such so there was a lot of searching for one with a huge amount of unneeded file access
| QUOTE | | Missing frames at the beginning of my file |
That's on purpose If you open some files with other plugins you may notice the first few frames are green That's because the first few frames are b-frames - they're undecodable by themselves but are needed for the correct decoding of the frames afterwards So what this plugin does is start decoding the frames until it gets one that actually shows a picture - then the undecodable ones before that are dropped Example file https://dl.dropboxusercontent.com/u/1702491...umbers%20B8.avi The first frame should show a 0 and then count continuously - if it shows a few black/green frames then you're seeing the undecodable frames
| QUOTE | | The audio track is always shorter than video |
1) Try disabling the sync audio/video option in the plugins extended options from the open file dialog If the start times of the streams aren't the same it trys to correct it and this will alter the position of the audio left/right Downside is that if the audio is actually delayed to correct sync then this will stop the sync Example vid https://dl.dropboxusercontent.com/u/1702491...%20Test%201.mkv The audio should start about 22 seconds in not straight away 2) I'm getting durations from ffmpeg, but I also fixed some maths in 819 or 820 With videos that have actual durations different from the audio I guess I could pad/chop the audio to the same length if I get time?
| QUOTE | | I use VD to cut advertisings, parts of the file suspected to lead to an error for ffmpeg |
Would they be 'discontinuity' errors That's adjustable from the extended options Corrupted files and ones with timestamp jumps in them only show as the same problem, all of a sudden your frame number jumps eg 1,2,3,4,9,10 It could be an actual error or just the timestamps jumping Setting 'allow missing frames' to 'any' will just replicate the frame to fill in the gap without errors - can't chop it out as the audio would jump suddenly
ps Have you tried sheks chaching plugin? http://forums.virtualdub.org/index.php?act...=ST&f=7&t=23108
-------------------- MultiAdjust JoinWav WavNormalize FFMPeg Input Plugin v1827 UnSharpMask Windows7/8 Codec Chooser All FccHandlers Stuff inc. Installers for acm codecs AAC, AC3, LameMp3 |
 |
| nzero1 |
| Posted: Jan 25 2015, 10:31 PM |
 |
|
Newbie

Group: Members
Posts: 8
Member No.: 38577
Joined: 24-January 15

|
I've tried v0.8.2.1, same problem as v0.8.2.0, even without 'Resync Audio To Video', and with 'Any' 'allow missing frames'.
I did not know about the extended option at the opening of the file.
I try with v0.8.1.7 (in VD1.10.5-test5) and "Resync Audio To Video" unchecked, and the same delay is observed.
Concerning "missing frames", it is a discontinuity reading frame reported by VirtualDub error dialog box when using v0.8.1.9 (32 missing frames at the 26th frame, and 32f@25fps is a little more than the delay observed of about 1-1.2seconds. During this beginning part of the video, it is a silent moment, and the video is a fixed logo image).
Now I've tested VD1.10.5-test7+sheks caching plugin32 v1.2, and the synchro is OK, but no extended options dialog box appears. |
 |
| dloneranger |
| Posted: Jan 25 2015, 10:59 PM |
 |
|
Moderator
  
Group: Moderators
Posts: 2366
Member No.: 22158
Joined: 26-September 07

|
I've recently modified some of the audio handling + there was a bug where I ignored the preferences in the options for sync audio/vid and always did it http://forums.virtualdub.org/index.php?act...300entry98164
-------------------- MultiAdjust JoinWav WavNormalize FFMPeg Input Plugin v1827 UnSharpMask Windows7/8 Codec Chooser All FccHandlers Stuff inc. Installers for acm codecs AAC, AC3, LameMp3 |
 |
| shekh |
| Posted: Jan 26 2015, 11:12 AM |
 |
|
Advanced Member
  
Group: Members
Posts: 89
Member No.: 37903
Joined: 21-April 14

|
| QUOTE (nzero1 @ Jan 25 2015, 10:31 PM) | | Now I've tested VD1.10.5-test7+sheks caching plugin32 v1.2, and the synchro is OK, but no extended options dialog box appears. | This is ok, I didnt make any options dialog yet. |
 |
| nzero1 |
| Posted: Jan 26 2015, 09:45 PM |
 |
|
Newbie

Group: Members
Posts: 8
Member No.: 38577
Joined: 24-January 15

|
I've tested 0822 beta c, same problem. It is sure that playback is less cpu consuming than 0817 (many times). |
 |
| nzero1 |
| Posted: Feb 28 2015, 03:13 PM |
 |
|
Newbie

Group: Members
Posts: 8
Member No.: 38577
Joined: 24-January 15

|
If it can help, you will find the beginning of one ts file recorded with my PVR (DVB-T) (cut with VD hex editor) and the avi file obtained with VD 1.10.5-test5+ffmpeg plugin v0.8.1.7, where audio sync is OK. ts: http://www.partage-fichiers.com/upload/fmcl4y5v avi: http://www.partage-fichiers.com/upload/yi6jfpf4 |
 |
| ale5000 |
| Posted: Mar 2 2015, 06:49 AM |
 |
|

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

|
Try the FFMpeg input plugin to 0.8.2.5 beta B here: http://forums.virtualdub.org/index.php?s=&...360entry98436
-------------------- 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 |
 |
| dloneranger |
| Posted: Mar 8 2015, 11:02 AM |
 |
|
Moderator
  
Group: Moderators
Posts: 2366
Member No.: 22158
Joined: 26-September 07

|
The .ts file has 5 audio streams, none of which start at the same timestamp as the video
Older versions didn't pick the same audio stream if there were multiple ones - the newer version uses the 'preferred' one that ffdlls suggests so you might want to select a different stream from the audio menu
The sync audio option uses the video start time and tries to match the audio times to the video times With it off, the audio just starts straight away so that's something else to play with
You can also correct sync in virtualdub itself in two ways 1 In the audio menu->Interleaving->Audio skew correction 1000=1 second
2 Turn on the audio display On the audio waveform, hold down the CTRL key and drag the audio left/right to move it This is easiest if you have eg a door slamming and a spike on the audio to match it up with
-------------------- MultiAdjust JoinWav WavNormalize FFMPeg Input Plugin v1827 UnSharpMask Windows7/8 Codec Chooser All FccHandlers Stuff inc. Installers for acm codecs AAC, AC3, LameMp3 |
 |