|
|
| terrypin |
| Posted: Jan 12 2015, 09:59 AM |
 |
|
Advanced Member
  
Group: Members
Posts: 180
Member No.: 16609
Joined: 16-September 05

|
It's been a while since I used VirtualDub (1.9.11) in earnest so I'm rusty about specifying its settings. But after an hour or so of trial/error I can't get several files to play their audio content properly and I'd appreciate some help in discovering why please.
Here's an example. (It's 31 MB; I'd have made it much shorter but I wasn't confident how to edit it without risking some other change that might muddy the water.)
https://www.dropbox.com/s/1p8np7obj29m587/T...tering.AVI?dl=0
I can successfully play that file (web source long-forgotten) in video players such as WMP, VLC and MPC-HC. But VirtualDub gives audio bursts of about 0.2 s followed by silent gaps of about 0.7 s, while playing video smoothly.
-- Terry, East Grinstead, UK |
 |
| dloneranger |
| Posted: Jan 12 2015, 11:39 AM |
 |
|
Moderator
  
Group: Moderators
Posts: 2366
Member No.: 22158
Joined: 26-September 07

|
Maybe your pc can't keep up smoothly in virtualdub It plays fine here but virtualdub's not really designed as a media player They do various things to preserve a smooth playback that are fairly incompatible with a media editor - dropping frames when behind etc
You could check a few things though In the options->preferences->threading set video compression threads to 1 In the options->preferences->display try disabling/enabling the directx/3d options Check what codec's being used in the file information dialog for that file (I'm using x264vfw and microsoft ima adpcm codec here, and the ffmpeg plugin also plays it fine)
-------------------- MultiAdjust JoinWav WavNormalize FFMPeg Input Plugin v1827 UnSharpMask Windows7/8 Codec Chooser All FccHandlers Stuff inc. Installers for acm codecs AAC, AC3, LameMp3 |
 |
| terrypin |
| Posted: Jan 12 2015, 05:26 PM |
 |
|
Advanced Member
  
Group: Members
Posts: 180
Member No.: 16609
Joined: 16-September 05

|
Thanks. Looks like it's a performance limitation then. I tried those setting suggestions (and half a dozen others once I got in the swing of it!) but with no change.
It's purely the audio that suffers. Isn't that a bit strange?
FWIW, File Information reports this:
https://dl.dropboxusercontent.com/u/4019461...-FileInfo-1.jpg
-- Terry, East Grinstead, UK PC: Quad Core 2.66 GHz, 4 GB, 512 MB nVIDIA GeoForce 8800GT, running XP (SP3) |
 |
| dloneranger |
| Posted: Jan 12 2015, 06:34 PM |
 |
|
Moderator
  
Group: Moderators
Posts: 2366
Member No.: 22158
Joined: 26-September 07

|
That's the same file information as mine You could try loading the file with the FFMPeg plugin and see if that works - it may be a bit less cpu heavy than x264?? dunno haven't tested.....
-------------------- MultiAdjust JoinWav WavNormalize FFMPeg Input Plugin v1827 UnSharpMask Windows7/8 Codec Chooser All FccHandlers Stuff inc. Installers for acm codecs AAC, AC3, LameMp3 |
 |
| terrypin |
| Posted: Jan 13 2015, 07:22 AM |
 |
|
Advanced Member
  
Group: Members
Posts: 180
Member No.: 16609
Joined: 16-September 05

|
| QUOTE (dloneranger @ Jan 12 2015, 06:34 PM) | You could try loading the file with the FFMPeg plugin |
You're outside my know-how level! How exactly do you do that?
--------------------
Since posting the above, I found the link in your sig, installed VirtualDub 1.10 and the FFMPeg plugin, and copied its contents (the subfolder \ffdlls and the single file FFInputDriver.vdplugin) to C:\Program Files\VirtualDub-1.10.4\plugins32.
But what next? I opened the file under discussion but it still behaved the same. I tried selecting 'FFMpeg Supported files' in the Open File drop-down, but that made no difference either.
Leaving aside this specific file, can you point me to a file that will only open with this plugin, for future reference please.
-- Terry, East Grinstead, UK |
 |
| dloneranger |
| Posted: Jan 13 2015, 03:22 PM |
 |
|
Moderator
  
Group: Moderators
Posts: 2366
Member No.: 22158
Joined: 26-September 07

|
If there are no other input plugins in virtualdubs plugins32/64 folders then anything like mp4, wmv etc wil be loaded by it You can check by the file information dialog - it'll say FFMPeg Information as the caption
-------------------- MultiAdjust JoinWav WavNormalize FFMPeg Input Plugin v1827 UnSharpMask Windows7/8 Codec Chooser All FccHandlers Stuff inc. Installers for acm codecs AAC, AC3, LameMp3 |
 |
| Abrazo |
| Posted: Jan 13 2015, 05:27 PM |
 |
|
Advanced Member
  
Group: Members
Posts: 775
Member No.: 28995
Joined: 5-November 10

|
To me, it is not clear what is ment by: "I tried selecting 'FFMpeg Supported files' in the Open File drop-down, but that made no difference either."
Did the AVI not go open with the FFMpeg plugin, or did it, but did that not make a difference towards the audio problem ?
Below, you can read the results of my own tests.
When I normally open the concerning AVI in VirtualDub (thus NOT using a plugin), and I play it, then the audio sounds like a steam train (stuttering).
When I open via the FFMpeg plugin (= one click onto the AVI, then at "Files of type" select FFMpeg Support Files, and then click Open), the audio sounds normal but the movie does not play in one run. Sometimes it stops for a while and then continues. It seems like a little 'buffer' has to be filled, or a kind of 'read ahead' has to be done, before it is able to continue to play.
I suppose that the problem comes from the fact that the video datarate is very high (+/- 17000 kbps). Compressing the IMA ADPC encoded audio to something like MP3 (via LAME) + a direct stream of the video into a new AVI, does not resolve the problem. When extracting the audio out of the video and then playing it, there is no problem with it. |
 |
| terrypin |
| Posted: Jan 13 2015, 08:33 PM |
 |
|
Advanced Member
  
Group: Members
Posts: 180
Member No.: 16609
Joined: 16-September 05

|
To me, it is not clear what is ment by: "I tried selecting 'FFMpeg Supported files' in the Open File drop-down, but that made no difference either."
I meant the same as what you meant by "When I open via the FFMpeg plugin (= one click onto the AVI, then at "Files of type" select FFMpeg Support Files, and then click Open)"
Did the AVI not go open with the FFMpeg plugin, or did it, but did that not make a difference towards the audio problem ?
The latter. (Assuming it did use the plugin - how do I know for sure?)
When I normally open the concerning AVI in VirtualDub (thus NOT using a plugin), and I play it, then the audio sounds like a steam train (stuttering).
I get the same.
When I open via the FFMpeg plugin (= one click onto the AVI, then at "Files of type" select FFMpeg Support Files, and then click Open), the audio sounds normal
For me it still stutters/chuffs. The video is OK. IOW, no difference at all. Actually I'm not sure how I know the plug-in is being used. (That's one reason why I asked for a demo file that only works with the plugin.)
I also used the option to show this extra dialog: https://dl.dropboxusercontent.com/u/4019461...ub-FFMpeg-1.jpg
But as it's obscure to me I left it as it was.
I had a tip from jagabo in the videohelp.com Forum to try the Drop Frames... and Sync to Audio options. With both enabled the audio improved but video became jerky.
Reckon I'll leave it and use MPC-HC or VLC when I hit problems playing an AVI.
-- Terry, East Grinstead, UK |
 |
| Abrazo |
| Posted: Jan 13 2015, 08:46 PM |
 |
|
Advanced Member
  
Group: Members
Posts: 775
Member No.: 28995
Joined: 5-November 10

|
Hi Terry, thanks for your reply.
To verify how the video was opened by VirtualDub, just click the File-menu > File information... If an input plugin was used, you will see it in the title bar of the window that shows up, and you will also see a difference in lay-out of that window when you compare it to those of other plugins or to the default window (when opening an AVI). |
 |
| shekh |
| Posted: Jan 14 2015, 09:41 AM |
 |
|
Advanced Member
  
Group: Members
Posts: 89
Member No.: 37903
Joined: 21-April 14

|
Did you try this plugin? http://sourceforge.net/projects/vdcachingdriver/ I am specifically concerned about performance with it. Some hints though: use Colordepth: Autoselect/Same as decompression use View: Output Pane only use Audio buffering (2 seconds fine) use Video buffering (30 buffers fine) Not sure what other settings may compromise performance, better reset everything to default to begin with. |
 |
| Abrazo |
| Posted: Jan 14 2015, 07:57 PM |
 |
|
Advanced Member
  
Group: Members
Posts: 775
Member No.: 28995
Joined: 5-November 10

|
Indeed, with the vdcachingdriver (cch_input.vdplugin) + lowering down the video- and audio-buffering + Output Video Pane only, the file is playing correctly (via the Output Playback button).
With both Input Pane and Output Pane checked, leaving the zoom of the panes at 100%, and then playing via the Output Playback button, there is strange phenomenon: the output pane is all filled up with a very tiny pattern. Probably this is why you say to only check and use the Output pane.
Another thing to say: while video- and audio-buffering have been lowered down, and then using dloneranger's FFMPeg plugin, the AVI-file also plays fluently.
Question @shekh: When the cch_input.vdplugin is installed, it is no more possible to open AVI-files with the default module of VirtualDub itself. Is this normal and to be expected ? Can this behaviour be changed, without uninstalling the plugin (or renaming its extension from *.vdplugin to something else, before starting VirtualDub) ?
Thanks in advance for your answer. |
 |
| shekh |
| Posted: Jan 14 2015, 09:10 PM |
 |
|
Advanced Member
  
Group: Members
Posts: 89
Member No.: 37903
Joined: 21-April 14

|
| QUOTE (Abrazo @ Jan 14 2015, 07:57 PM) | Indeed, with the vdcachingdriver (cch_input.vdplugin) + lowering down the video- and audio-buffering + Output Video Pane only, the file is playing correctly (via the Output Playback button).
With both Input Pane and Output Pane checked, leaving the zoom of the panes at 100%, and then playing via the Output Playback button, there is strange phenomenon: the output pane is all filled up with a very tiny pattern. Probably this is why you say to only check and use the Output pane.
Another thing to say: while video- and audio-buffering have been lowered down, and then using dloneranger's FFMPeg plugin, the AVI-file also plays fluently.
Question @shekh: When the cch_input.vdplugin is installed, it is no more possible to open AVI-files with the default module of VirtualDub itself. Is this normal and to be expected ? Can this behaviour be changed, without uninstalling the plugin (or renaming its extension from *.vdplugin to something else, before starting VirtualDub) ?
Thanks in advance for your answer. |
Yes you can find cch_input.ini, there are priority settings:
| CODE | [priority] default = -2 select = 1
|
(damn I forget to put it. Just save a text file named cch_input.ini next to cch_input.vdf)
change select to 0, it will be below internal avi.
I dont recommend playing with input pane because it behaves differently and I just dont know all bits yet. But one issue is that decoder is forced to rgb mode, and its implementation inside ffmpeg is not great.
It is interesting that lower buffers help with dloneranger's plugin. In fact I mentioned them by mistake - I thought it was possible to set audio buffering to 0 which is definitely a problem
This post has been edited by shekh on Jan 14 2015, 09:26 PM |
 |