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: (5) « First ... 3 4 [5]  ( Go to first unread post )
0055 The Problem That Wont Go Away., compression: (unknown tag 0055)
« Next Oldest | Next Newest » Track this topic | Email this topic | Print this topic
peliopoulos
Posted: Oct 9 2006, 01:06 PM


Newbie


Group: Members
Posts: 3
Member No.: 19943
Joined: 4-October 06



I found a batch process to correct the problem using Dubman, AVISynth and Virtualdub. Using Dubman there is a three stage way to convert all the AVIs with VBR audio (bad header) in a folder to AVIs with CBR audio in another folder. Change the file locations as desired. Here is the Dubman file:
CODE
<?xml version="1.0" encoding="ISO-8859-1"?>
<dubman:template xmlns:dubman="http://dubman.sourceforge.net" name="" format="1.1" version="0.813">
 <dubman:bulk>
   <dubman:wildcard />
 </dubman:bulk>
 <dubman:jobs>
   <dubman:job>
     <dubman:name value="VBR Save Audio" />
     <dubman:input value="X:\MovieFix\Audio1\*.avi" />
     <dubman:output value="" />
     <dubman:deleteInput value="false" />
     <dubman:script>VirtualDub.audio.SetSource(1);
VirtualDub.audio.SetMode(0);
VirtualDub.audio.SetInterleave(1,500,1,0,0);
VirtualDub.audio.SetClipMode(1,1);
VirtualDub.audio.SetConversion(0,0,0,0,0);
VirtualDub.audio.SetVolume();
VirtualDub.audio.SetCompression();
VirtualDub.audio.EnableFilterGraph(0);
VirtualDub.video.SetInputFormat(0);
VirtualDub.video.SetOutputFormat(7);
VirtualDub.video.SetMode(0);
VirtualDub.video.SetFrameRate(0,1);
VirtualDub.video.SetIVTC(0,0,-1,0);
VirtualDub.video.SetCompression();
VirtualDub.video.filters.Clear();
VirtualDub.audio.filters.Clear();</dubman:script>
     <dubman:runWith value="0" />
     <dubman:audio-out value="X:\MovieFix\Audio1\*.wav" />
     <dubman:avisynth>DirectShowSource("%1")</dubman:avisynth>
   </dubman:job>
   <dubman:job>
     <dubman:name value="VBR Load Audio" />
     <dubman:input value="X:\MovieFix\Audio1\*.avi" />
     <dubman:output value="X:\MovieFix\Audio2\*.avi" />
     <dubman:deleteInput value="false" />
     <dubman:script>VirtualDub.audio.SetSource(1);
VirtualDub.audio.SetMode(0);
VirtualDub.audio.SetInterleave(1,500,1,0,0);
VirtualDub.audio.SetClipMode(1,1);
VirtualDub.audio.SetConversion(0,0,0,0,0);
VirtualDub.audio.SetVolume();
VirtualDub.audio.SetCompression();
VirtualDub.audio.EnableFilterGraph(0);
VirtualDub.video.SetInputFormat(0);
VirtualDub.video.SetOutputFormat(7);
VirtualDub.video.SetMode(0);
VirtualDub.video.SetFrameRate(0,1);
VirtualDub.video.SetIVTC(0,0,-1,0);
VirtualDub.video.SetCompression();
VirtualDub.video.filters.Clear();
VirtualDub.audio.filters.Clear();</dubman:script>
     <dubman:runWith value="0" />
     <dubman:audio-in value="X:\MovieFix\Audio1\*.wav" />
   </dubman:job>
   <dubman:job>
     <dubman:name value="Compress Audio" />
     <dubman:input value="X:\MovieFix\Audio2\*.avi" />
     <dubman:output value="X:\MovieFix\Audio3\*.avi" />
     <dubman:deleteInput value="true" />
     <dubman:script>VirtualDub.audio.SetSource(1);
VirtualDub.audio.SetMode(1);
VirtualDub.audio.SetInterleave(1,500,1,0,0);
VirtualDub.audio.SetClipMode(1,1);
VirtualDub.audio.SetConversion(0,0,0,0,0);
VirtualDub.audio.SetVolume();

Change this line to get the compression you want. To do this, run Virtualdub with any AVI file with the desired audio properties, change the audio compression and save the processing settings. Look at the VCF file and find a line with "VirtualDub.audio.SetCompression" and overwrite this line with yours.
CODE

VirtualDub.audio.SetCompression(85,48000,2,0,24000,1,12,"AQAEAAAAQAIBAAAA");
CODE

VirtualDub.audio.EnableFilterGraph(0);
VirtualDub.video.SetInputFormat(0);
VirtualDub.video.SetOutputFormat(7);
VirtualDub.video.SetMode(0);
VirtualDub.video.SetFrameRate(0,1);
VirtualDub.video.SetIVTC(0,0,-1,0);
VirtualDub.video.SetCompression();
VirtualDub.video.filters.Clear();
VirtualDub.audio.filters.Clear();</dubman:script>
     <dubman:runWith value="0" />
   </dubman:job>
 </dubman:jobs>
</dubman:template>
 
    Top
peliopoulos
Posted: Feb 5 2007, 01:46 PM


Newbie


Group: Members
Posts: 3
Member No.: 19943
Joined: 4-October 06



A better way to deal with this problem is to use mencoder to process the VBR to CBR conversion. I use this Batch Program to process all the files in a directory:

CODE
Setlocal

set MENCODER="C:\Program Files\mplayer\mencoder.exe"

SET AVIDIR=X:\MovieFix\Audio3
SET DOWNLOADDIR=X:\MovieFix\Audio2
SET TRASHDIR=X:\MovieFix\Audio4

FOR %%E in ("%DOWNLOADDIR%\*.avi") DO  %MENCODER% "%DOWNLOADDIR%\%%~nE.avi"  -o "%AVIDIR%\%%~nE.avi"  -audio-preload 0.8 -delay 0.1 -oac mp3lame -lameopts cbr:br=192:vol=1 -ovc copy
:Create CBR Audio AVI files in AVI Directory


MOVE "%DOWNLOADDIR%\*.avi" %TRASHDIR%

Endlocal

 
    Top
Aranael
Posted: Apr 8 2007, 07:37 AM


Newbie


Group: Members
Posts: 1
Member No.: 21192
Joined: 8-April 07



QUOTE (squid_80 @ Nov 12 2005, 05:58 AM)
I actually had this happen for the first time ever today with an avi file given to me. Opened it in virtualdub, got the message about a VBR audio stream, went to file information to check compression: Unknown (tag 0055). So I opened the file in virtualdub's hex editor to check the WAVEFORMATEX header and wBitsPerSample was 16, which seemed odd for a compressed format. I changed it to 00 and now the Fraunhofer codec accepts it and everything works.

my god....you really are the messiah....
master, i will spread the voice all through the internet and will become the foundation stone of your church.



Petrus
 
     Top
AEN007
Posted: Apr 14 2011, 08:38 PM


Advanced Member


Group: Members
Posts: 90
Member No.: 24508
Joined: 10-November 08



14April2011
This evening I had the infamous unknown Tag 0055 problem with VirtualDub 1.9x. VDubMod would still play audio; so would every multimedia player on my XP laptop; but VD 1.9x would not play mp3 audio in any avi file.
I, of course, searched and searched on the web. I read about the hexedit solution.
I knew there must be some other solution because VD 1.9x never had this Tag 0055 / mp3 problem before.

A day or two ago I had looked at Audio Codecs under XP hardware devices.
It seems that giving the Fraunhofer codec highest priority was what caused the problem.
I went through my ACM codecs one by one, giving each highest priority until I found the one that re-enabled mp3 audio in VD 1.9x ...
Maybe this solution might work for others instead of hex editing each & every file in VDub ...
 
     Top
AEN007
Posted: Jul 30 2011, 03:46 PM


Advanced Member


Group: Members
Posts: 90
Member No.: 24508
Joined: 10-November 08



30July2011

Greetings.

This week I had a similar although slightly different problem.
I use ViDub on 2 of my 3 XP laptops.
As much as possible I try to keep all 3 installs as mirrored as possible.
Laptop I has XP-Pro. Laptop G has XP-Home.
Laptop I had the problem I described in the previous post.

I am redoing some avi files I made years ago.
I made these avi files at the time by doing DSC on the video and
encoding a customized wav file to mp3.
I now want to resize them to 320:240 and change the fps to 23.976.
I use aviSynth to do that.
I open the aviSynth script into ViDub & load a vcf file of settings.
I use the audio in the old/original avi file with DSC.
When I try playback in ViDub with the audio from the old/original avi file,
ViDub on laptop G gives me the error message
QUOTE
Could not decompress the stream ... Make sure you have the necessary codec installed ...
; however, laptop I does not give me this error &
plays back the video with the audio from the avi file.

I looked at and played around with the XP codecs to no avail.
When I open the old/orginal avi file directly into ViDub,
then load the vcf file and try playback, laptop G gives NO error message!?!

I finally tried the original procedure on G after choosing
QUOTE
Prefer internal audio decoders ...
under Preferences/AVI. This solved the playback problem on G.
I do not use "Prefer internal audio decoders ..." otherwise.

The problem is only playback.
G will use the audio from the old/original avi file with DSC
to generate a new output avi with no problems.

Anyway, I have no idea what the problem nor solution (on G) is ...
Any helpful replies/insights appreciated.
Thank you.
Regards,
AEN
Æ
 
     Top
AEN007
Posted: Jan 25 2012, 02:03 PM


Advanced Member


Group: Members
Posts: 90
Member No.: 24508
Joined: 10-November 08



QUOTE (AEN007 @ Jul 30 2011, 03:46 PM)
I finally tried the original procedure on G after choosing
QUOTE
Prefer internal audio decoders ...
under Preferences/AVI. This solved the playback problem on G.
I do not use "Prefer internal audio decoders ..." otherwise.

Does this "Prefer internal audio decoders" (which is under Preferences/AVI)
affect ALL ViDub audio decoding or only avi audio decoding?
I only need to select "Prefer internal audio decoders" on laptop G
when I do avi playback in ViDub.
Does that setting affect ViDub audio decoding of avs/flv/mp4/mpeg (non-avi) etc files?
 
     Top
Placio74
Posted: Jan 26 2012, 07:14 AM


VideoAudio


Group: Members
Posts: 1216
Member No.: 21485
Joined: 24-May 07



QUOTE (AEN007 @ Jan 25 2012, 04:03 PM)
Does this "Prefer internal audio decoders" (which is under Preferences/AVI)
affect ALL ViDub audio decoding or only avi audio decoding?

Not all, but also not only from AVI container.

QUOTE (AEN007 @ Jan 25 2012, 04:03 PM)
Does that setting affect ViDub audio decoding of avs/flv/mp4/mpeg (non-avi) etc files?

Depends on plugin...

--------------------
VideoAudio.pl - Serwis o technologii wideo & audio
 
     Top
ale5000
Posted: Jan 26 2012, 09:12 AM


Advanced Member


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



QUOTE (AEN007 @ Jan 25 2012, 04:03 PM)
Does this "Prefer internal audio decoders" (which is under Preferences/AVI)
affect ALL ViDub audio decoding or only avi audio decoding?

It doesn't affect input plugins.

--------------------
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
 
     Top
Placio74
Posted: Jan 26 2012, 12:45 PM


VideoAudio


Group: Members
Posts: 1216
Member No.: 21485
Joined: 24-May 07



I would not be so sure...
Internal audio decoders can be used when importing A/V through some plugins.
But I'm not sure whether they could be preferable when enable mentioned option.
Because... (at this moment) in file information, info about used internal audio decoder is not shown (only name external ACM codec or just "unknown" with tag). Relevant info is displayed for internal video decoders, but I do not see that it was also for internal audio decoders.

--------------------
VideoAudio.pl - Serwis o technologii wideo & audio
 
     Top
ale5000
Posted: Jan 26 2012, 01:33 PM


Advanced Member


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



QUOTE (ale5000 @ Jan 26 2012, 10:12 AM)
QUOTE (AEN007 @ Jan 25 2012, 04:03 PM)
Does this "Prefer internal audio decoders" (which is under Preferences/AVI)
affect ALL ViDub audio decoding or only avi audio decoding?

It doesn't affect input plugins.

I don't remember exactly when but phaeron said it some times ago.

--------------------
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
 
     Top
AEN007
Posted: Jan 26 2012, 03:30 PM


Advanced Member


Group: Members
Posts: 90
Member No.: 24508
Joined: 10-November 08



26January2012

Greetings.

OK ... not sure what that reply means exactly ...
but it seems that maybe it doesn't matter after all ... I unchecked
CODE
Disable auto-correction of data rate for MPEG layer III audio streams
and that seems to have solved the ViDub avi/mp3 playback problem
I was having on one my XP laptops ...
 
     Top
Placio74
Posted: Jan 26 2012, 08:36 PM


VideoAudio


Group: Members
Posts: 1216
Member No.: 21485
Joined: 24-May 07



Keep in mind that this option is not enabled by default.

--------------------
VideoAudio.pl - Serwis o technologii wideo & audio
 
     Top
phaeron
Posted: Feb 4 2012, 09:43 PM


Virtualdub Developer


Group: Administrator
Posts: 7773
Member No.: 61
Joined: 30-July 02



QUOTE (ale5000 @ Jan 26 2012, 06:33 AM)
QUOTE (ale5000 @ Jan 26 2012, 10:12 AM)
QUOTE (AEN007 @ Jan 25 2012, 04:03 PM)
Does this "Prefer internal audio decoders" (which is under Preferences/AVI)
affect ALL ViDub audio decoding or only avi audio decoding?

It doesn't affect input plugins.

I don't remember exactly when but phaeron said it some times ago.

It can affect audio plugins, if they pass along compressed data. This is because the input plugins don't have an audio decoding API.
 
    Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
72 replies since Oct 24 2005, 05:09 AM Track this topic | Email this topic | Print this topic
Pages: (5) « First ... 3 4 [5] 
<< Back to Codec Discussion