Log in

View Full Version : AutoGK: Unsupported audio type


nine_mm
13th June 2005, 11:27
Hello!

Wouldn't it be smarter to check if audio type is supported BEFORE the source analysis is performed?

In the case following 2 hours 42 minutes were wasted for nothing.

What do you think?

Cheers! :-)

--------------------------------
[13.06.2005 07:16:10] AutoGK 2.09b
[13.06.2005 07:16:10] OS: Win2000 (5.0.2195).2
[13.06.2005 07:16:10] Job started.
[13.06.2005 07:16:10] Input file: xyz.avi
[13.06.2005 07:16:10] Input codec: DivX 4
[13.06.2005 07:16:10] Source duration: 1h 37mn 50s 280ms
[13.06.2005 07:16:10] Output file: C:\xyz_agk.avi
[13.06.2005 07:16:10] Output codec: XviD
[13.06.2005 07:16:10] Audio1: 192 Kbps MPEG1/2 L1 2ch
[13.06.2005 07:16:10] Subtitles: none
[13.06.2005 07:16:10] Format: .AVI
[13.06.2005 07:16:10] Target size: 746Mb
[13.06.2005 07:16:10] Standalone support enabled: MTK/Sigma
[13.06.2005 07:16:10] Started encoding.
[13.06.2005 07:16:10] Source resolution: 608x400
[13.06.2005 07:16:10] Source fps: 25
[13.06.2005 07:16:10] Analyzing source.
[13.06.2005 09:59:04] Source has percentage of interlacing in motion areas: 0.00
[13.06.2005 09:59:04] Source is considered to be progressive.
[13.06.2005 09:59:04] Output will contain 146757 frames
[13.06.2005 09:59:04] Demuxing audio.
*************************************
EXCEPTION: Unsupported audio type.
*************************************
[13.06.2005 09:59:04] Job finished. Total time: 2 hours 42 minutes 54 seconds

buzzqw
13th June 2005, 12:36
sure would be...

but what audio type is in these avi ?

BHH

nine_mm
13th June 2005, 12:46
sure would be...

but what audio type is in these avi ?

BHH

GSpot v2.21 says about the mp3 stream:

Audio Codec Name: 0x0050(MPEG) ID'd as MPEG-1 Layer 2
Audio Bitrate: 192 kb/s (96/ch, stereo) CBR
Fs (sample freq): 48000 Hz

buzzqw
13th June 2005, 13:09
Audio Codec Name: 0x0050(MPEG) ID'd as MPEG-1 Layer 2

isnt' mp3 is a mp2 audio

better to demux manually (with virtualdubmod or virtualdub mpeg2, or as i will do with avidemux http://fixounet.free.fr/avidemux/ shameless spot.. )

BHH

len0x
14th June 2005, 00:47
adding MPA support is not a big deal - I just never saw one in avi before...

P.S. Audio has to be processed before as very often ppl would like to see result of analysis without waiting for audio encoding...

nine_mm
14th June 2005, 05:28
adding MPA support is not a big deal - I just never saw one in avi before...

P.S. Audio has to be processed before as very often ppl would like to see result of analysis without waiting for audio encoding...

You mean video?

Anyway, if audio stream in avi is not supported it should be checked in the very first stages.

nine_mm
14th June 2005, 05:44
Here is some more unsupported audio. Canon PowerShot family digital cameras capture video in avi format. Here is an example of a video file taken with PowerShot A60:

Filename: MVI_1910.AVI
File Size: 16.2 MB (or 16,654 KB or 17,054,214 bytes)
File Type: AVI
Video Codec 4CC : mjpg
Video Codec Name: Motion JPEG including Huffman Tables
x:y (aspect ratio) : 320x240 (1.33:1) [=4:3]
Video Bitrate: 2048 kb/s
FPS (frames/sec) : 15.000
Length (duration) : 00:01:04 (957 fr)
Audio Codec Name : PCM Audio
Audio Codec "Stat" : PCM: No Codec Required
Audio Bitrate: 88 kb/s, monophonic
Fs (sample freq) : 11024 Hz
I/L (interleave) : Not supported.
IMRR (I/L rate ratio) : n.s.
"Qf" (Frame Quality) : 1.778 bits/pixel


And tried to convert it to xvid with AutoGK:

[14.06.2005 07:37:56] AutoGK 2.09b
[14.06.2005 07:37:56] OS: Win2000 (5.0.2195).2
[14.06.2005 07:37:56] Job started.
[14.06.2005 07:37:56] Input file: MVI_1910.AVI
[14.06.2005 07:37:56] Input codec: MJPEG
[14.06.2005 07:37:56] Source duration: 1mn 3s 799ms
[14.06.2005 07:37:56] Output file: E:\MVI_1910_agk.avi
[14.06.2005 07:37:56] Output codec: XviD
[14.06.2005 07:37:56] Audio1: 88 Kbps PCM 1ch
[14.06.2005 07:37:56] Subtitles: none
[14.06.2005 07:37:56] Format: .AVI
[14.06.2005 07:37:56] Target size: 10Mb
[14.06.2005 07:37:56] Standalone support enabled: MTK/Sigma
[14.06.2005 07:37:56] Started encoding.
[14.06.2005 07:37:56] Source resolution: 320x240
[14.06.2005 07:37:56] Source fps: 15
[14.06.2005 07:37:56] Analyzing source.
[14.06.2005 07:38:24] Source has percentage of interlacing in motion areas: 0.00
[14.06.2005 07:38:24] Source has percentage of telecined patterns: 0.00
[14.06.2005 07:38:24] Source has percentage of progressive patterns: 0.00
[14.06.2005 07:38:24] Source has percentage of interlaced patterns: 0.00
[14.06.2005 07:38:24] Source is considered to be progressive.
[14.06.2005 07:38:24] Output will contain 957 frames
[14.06.2005 07:38:24] Demuxing audio.
[14.06.2005 07:38:27] Normalizing audio.
[14.06.2005 07:38:28] Encoding audio.
*************************************
EXCEPTION: Audio1 is corrupted. Encoding aborted.
*************************************
[14.06.2005 07:38:28] Job finished. Total time: 31 seconds

Schrade
14th June 2005, 09:52
nine_mm, I was just about to post the same thing hehe. This would be great to get working. My friend has just started taking movies with her camera and getting it to work in AutoGK would make it really easy for her to convert her MJPEG movies and post them for her family.

len0x
15th June 2005, 02:22
This error is displayed when encoded audio is less than 5K that usually indicates that LAME choked on the input wav audio...

Schrade
19th July 2005, 10:37
nine_mm:

Here's what you can do to make the movies captured from Canon cameras work in AutoGK:

1) Download and run VirtualDub
2) Drag and drop the movie into the VirtualDub window
3) Go to the Video menu and select 'Direct Stream Copy'
4) Go to the Audio menu and select 'Full Processing Mode'
5) In the Audio menu select 'Conversion' - Click on 22050Hz, Checkmark 'High Quality' then click 'OK'
6) Go to the File menu and select 'Save as AVI' then save the movie out with a different name.

Now you can load that into AutoGK and do your conversion! Apparently the audio conversion setup that AutoGK uses doesn't like 11024Hz audio.

(Is that fixable, Len0x?)

appyface
19th February 2007, 16:44
AutoGK doesn't recognize the audio format "MPEG-1 Layer 2" after processing for over an hour????

I found this thread, but sorry am complete n00b here, not sure what to do. Hope you can help?

Just got my first TV tuner comes with SageTV. The recordings it makes are video "MPEG-2 Program Stream" and audio "MPEG-1 Layer 2". There are no other choices for recording. Only some choices within Sage to convert to other mpeg formats.

But I would like to convert these to AVI files using Xvid or DivX codecs. I was recommended AutoGK but it doesn't recognize the audio format?

I read elsewhere in this thread about processing the audio first? If AutoGK can't process this audio format could you please point me to n00b guide on how to process the audio, then use AutoGK to make AVI file?

Thanks and regards,
--appyface

BigDid
19th February 2007, 17:36
AutoGK doesn't recognize the audio format "MPEG-1 Layer 2" after processing for over an hour????
Hi and welcome to the forum,

That was 2 years ago and if you look at the recent log in this thread the audio problem (corrupted) is pointed out a few minutes after beginning encoding.

Just got my first TV tuner comes with SageTV. The recordings it makes are video "MPEG-2 Program Stream" and audio "MPEG-1 Layer 2"...
These codecs are recognized: Mpeg2 for video and mpeg1-2 (or mp2 or mpa) for audio.

But I would like to convert these to AVI files using Xvid or DivX codecs. I was recommended AutoGK but it doesn't recognize the audio format?
Please post your log file.

Did

appyface
19th February 2007, 18:01
Hi and welcome to the forum,
That was 2 years ago and if you look at the recent log in this thread the audio problem (corrupted) is pointed out a few minutes after beginning encoding.

These codecs are recognized: Mpeg2 for video and mpeg1-2 (or mp2 or mpa) for audio.

Please post your log file.


Thank you for fast response.

AutoGK is recognizing the files from SageTV now. I unstalled AutoGK and used registry cleaners to clean up, rebooted, reinstalled AutoGK, rebooted, and tried again. I have a file that is in first pass now so I hope it will convert.

I had installed AutoGK 2.40 fresh on a fresh WinXP Pro SP2 system. I received no error messages during the first install. I took all defaults. AutoGK went through the "analyzing source" phase all the way before reporting "unsupported audio" -- just over an hour on the first file I tried. Not minutes as you suggest...

I can only find the current AGK log files, so I am unable to post the ones that were in error, darn it!

Thank you again for your response, I seem to be good to go although I wish I knew why.

Best regards,
--appyface

BigDid
19th February 2007, 18:23
... I took all defaults. AutoGK went through the "analyzing source" phase all the way before reporting "unsupported audio" -- just over an hour on the first file I tried. Not minutes as you suggest...
It was not a suggestion but a fact given in this post: http://forum.doom9.org/showthread.php?p=672045#post672045
: less than one minute for the "EXCEPTION: Audio1 is corrupted. Encoding aborted." message.
One suggestion I always give: post your logfile when reporting a problem ;)

Thank you again for your response, I seem to be good to go although I wish I knew why...
You are welcome, and also can have a look at the FAQ: http://forum.doom9.org/showthread.php?s=&threadid=72679 specially n° 2.7 and 2.10

Did

appyface
19th February 2007, 20:29
It was not a suggestion but a fact given in this post: http://forum.doom9.org/showthread.php?p=672045#post672045
: less than one minute for the "EXCEPTION: Audio1 is corrupted. Encoding aborted." message.


Ah! But that was not the message. The message was "Unsupported audio format".

BigDid
19th February 2007, 21:13
Ah! But that was not the message. The message was "Unsupported audio format".
:confused: Please read my posts carefully... :

1st post stated:
...if you look at the recent log in this thread the audio problem (corrupted) is pointed out a few minutes after beginning encoding.2nd post stated:
It was not a suggestion but a fact given in this post: http://forum.doom9.org/showthread.ph...045#post672045
: less than one minute for the "EXCEPTION: Audio1 is corrupted. Encoding aborted." message.
I have referenced the same post and quoted each time "CORRUPTED"
Please do not misquote me.

...

Please keep the focus on the subject because I would not like to get a warning (I, not you) regarding rule3.
Also when people refrain from posting logfiles it, usuallly, is cause they know the source is not DVD/VOB but downloaded/torrent files for which we do not give support regarding rule6 (I do not accuse you, I just point out usual behaviour).
Rules: http://forum.doom9.org/forum-rules.htm
Sanctions: http://forum.doom9.org/sanctions.htm

This is my last post regarding this subject.

Did

appyface
19th February 2007, 22:12
Please, you are very frustrating. I wish you to step down from your horse and and be humble.

I have found the problem again. This time after 26 minutes of waiting, "unsupported audio type". Not a SageTV file this time. GSpot reports the audio as MPEG-1 Layer 3.

Here is the log:

[2/19/2007 11:45:07 AM] AutoGK 2.40
[2/19/2007 11:45:07 AM] OS: WinXP (5.1.2600).2
[2/19/2007 11:45:07 AM] Job started.
[2/19/2007 11:45:07 AM] Input file: F:\work\test.avi
[2/19/2007 11:45:07 AM] Input codec: XviD
[2/19/2007 11:45:07 AM] Source duration: 2h 20mn 29s 720ms
[2/19/2007 11:45:07 AM] Output file: F:\work\test_agk.avi
[2/19/2007 11:45:07 AM] Output codec: XviD
[2/19/2007 11:45:07 AM] Audio 1: 162 Kbps MPEG-1/2 L3 2ch
[2/19/2007 11:45:07 AM] Subtitles: none
[2/19/2007 11:45:07 AM] Format: AVI
[2/19/2007 11:45:07 AM] Target size: 1493Mb
[2/19/2007 11:45:07 AM] Audio 1 settings: Auto
[2/19/2007 11:45:07 AM] Started encoding.
[2/19/2007 11:45:07 AM] Source resolution: 672x256
[2/19/2007 11:45:07 AM] Source fps: 25
[2/19/2007 11:45:07 AM] Analyzing source.
[2/19/2007 12:11:50 PM] Source has percentage of interlacing in motion areas: 0.00
[2/19/2007 12:11:50 PM] Source is considered to be progressive.
[2/19/2007 12:11:50 PM] Output will contain 210743 frames
[2/19/2007 12:11:50 PM] Demuxing audio.
*************************************
EXCEPTION: Unsupported audio type.
*************************************
[2/19/2007 12:11:50 PM] Job finished. Total time: 26 minutes 42 seconds

I have looked through the FAQ and other material, but am unable to find anything further on this error. Please point me to posts which tell how to resolve this error.

BigDid
20th February 2007, 00:05
Sir,

I respectfully have to ask you to withdraw your first line from your preceding post: http://forum.doom9.org/showthread.php?p=956610#post956610

I take this sentence as a personal attack with insulting comments and will ask rule4 to apply if not withdrawn.

I also have edited my last post accordingly. Thank you.

Did

Edit: appyface is now on my ignore list.

CWR03
20th February 2007, 01:11
Open the source file with GSpot - it will tell you if you have the appropriate audio codec installed that can deal with the audio (which is probably not the issue, but it's a place to start). Otherwise, extract the audio and convert it to a supported format.

appyface
20th February 2007, 01:58
Open the source file with GSpot - it will tell you if you have the appropriate audio codec installed that can deal with the audio (which is probably not the issue, but it's a place to start). Otherwise, extract the audio and convert it to a supported format.

Thank you for trying to help.

Regarding GSpot, it reports
Codec box: 0x0055 MPEG-1 Layer 3 (VBR button green)
Info Box: 48000Hz 162 kb/s tot , Joint Stereo LAME3.90.
Status is: Codec(s) installed

How do I extract the audio and convert it? I have been pouring over the AutoGK FAQ, tutorials, guides here but can find no information on this. Please point me to any posts that will give me assistance with this? I am n00b these are my first attempts at conversion and I don't even know what the right questions are! Your help is appreciated.

Thanks and regards,
--appyface

CWR03
20th February 2007, 09:56
Try checking "Original audio" under the Advanced Options. That way you won't be processing the audio at all, and you shouldn't have any errors. You might also install the latest Lame if you prefer to process the audio to reduce its size. You may have the ability to play it but not re-encode it.

appyface
20th February 2007, 14:39
Well, "original" options shows "AC3/DTS/MPA only" but I tried it anyway as you suggest. Unfortunately same result, on this file AutoGK goes 26 minutes then gives "unsupported audio type" :(

I would really like to change the audio to AC3 anyway (I have AC3 encoder). AutoGK would not be the tool for this from what I can gather, can you recommend a good tool (and good for n00b) and I'll go check it out?

Thanks again for help.

setarip_old
20th February 2007, 16:29
@appyface

Hi!

As an experiment, try using a different program, such as MPEGMediator, to convert one of your "Sage" MPEG videos to .AVI - and see if a similar problem occurs...

appyface
20th February 2007, 20:12
As an experiment, try using a different program, such as MPEGMediator, to convert one of your "Sage" MPEG videos to .AVI - and see if a similar problem occurs...

Thank you for suggestion, I will try this program.

manono
20th February 2007, 21:13
To extract the audio, open the AVI in VDubMod and answer No to the question about VBR audio. Then go Streams->Stream List->Demux->Give it a name, and wait.

And please be polite to those trying to help you.

Also, your source AVI is 672x256. This is an extremely wide film with an AR of 2.625:1. Unless it's Ben-Hur or some other similarly wide film, I'd say that whoever created it didn't know what he was doing and everything and everyone looks a bit fat and short. Round things are probably oval shaped.

appyface
21st February 2007, 04:32
@setarip_old

I tried MPEGMediator v1.5, it will extract WAV file from SageTV files but all other convert options are greyed out?


@manono

Not sure what you mean by extremely wide film -- it looks and plays correctly (and people and objects are correct shape) in Windows Media Player. No distortion, video or audio.

Followed your instructions to extract WAV using VirtualDubMod. It hangs a few seconds into the demux operation:

Dub: I/O thread has not cycled for ten seconds - possible livelock.
Dub: Processing thread has not cycled for ten seconds - possible livelock.

I am not able to find the cause of this error. There are no other programs running (and I even tried killing all unnecessary processes) and still the error is consistent.


I did find a program VirtualDub 1.7.1 which was able to extract the WAV and then rebuild the AVI using uncompressed PCM wav. I am next going to try recoding this AVI's sound to AC3. (I tried going straight to AC3 when rebuilding AVI with the WAV, but the sound became out of sync with the video every time. Obviously I do not know the correct settings to use.) I will continue to play with VirtualDub and see what I can accomplish.

If anyone has any other programs to recommend, suggestions for success with the above or other programs, etc. please let me know. There is a lot of information available but it all seems to assume a certain degree of knowledge.

Thanks and regards,
--appyface

setarip_old
21st February 2007, 05:17
all other convert options are greyed out?It sounds like you haven't read the "Readme.txt" file that, among other things, explains in detail the need for,"its use of 'Flask'-style plugins to output the converted video"...

manono
21st February 2007, 13:29
Hi-

Not sure what you mean by extremely wide film -- it looks and plays correctly (and people and objects are correct shape) in Windows Media Player. No distortion, video or audio.

OK, if you say so. Most "wide" films are 2.35:1-2.40:1. This one of yours is quite a bit wider than that. Maybe the encoder just cropped more from the top and bottom for some reason, but kept it at a proper AR.

I'm glad you were able to get the audio out of the AVI by decompressing to WAV audio. I'd be real worried that I couldn't get the MP3 out, as that could be a sign of corruption of some sort (that and the fact that AutoGK choked on it). But more power to you for coming up with an alternative method.

If you can now save the video by Direct Streaming it and also disabling the audio, you can create a video-only AVI. If you want to try AutoGK again, it should be able to reencode the video now. If burning to CD, just save room for the size of whatever audio you plan to make, plus another couple of MB for the muxing overhead.

appyface
21st February 2007, 14:49
It sounds like you haven't read the "Readme.txt" file that, among other things, explains in detail the need for,"its use of 'Flask'-style plugins to output the converted video"...

I did read it, but I didn't see any instructions that I need to to do something? In fact it does say to use the MPEGMediator plugins, which I presume came with MPEGMediator? So what is it you mean for me to do?

setarip_old
21st February 2007, 21:02
From the "Readme.txt" filePlugins:

MPEG Mediator uses 'Flask'-style plugins to output the converted
video. To use a new plugin for output simply copy its file to MPEG
Mediators program directory and rename it to have the suffix
'.prm' (e.g. 'odmlavioutput.prm'). After restarting MPEG Mediator
the newly installed plugin should appear in MPEG Mediators
'Output'-menu.3) How to initiate a conversion
-------------------------------

- Choose "Open" from the "File"-menu
- Add all files that comprise the whole video stream in their
appropriate order to the stream list
- Choose "Ok"
- Select an audio track (if available) in the "Audio Tracks" menu
- Choose an Output-Plugin from the "Output"-menu
- Select "Configure Plugin..."
- Choose the settings and confirm your selections
- Choose the name of the output file by selecting "Set Output File..."
from the "Plugins"-menu
- Hit "Convert All Frames" in the "Start"-menu

4) Known Problems
-----------------

Plugins:

Almost all avi-plugins that come with Flask or one of it's clones have
a lot of bugs and may cause trouble, so I strongly recommend to use the
avi-plugin that comes with MPEG Mediator.

appyface
22nd February 2007, 02:10
Oh, I see. I thought those instructions were only if I were adding a new plugin, I didn't take those to be the actual instructions on using the program as-is. I will give that a try. Thanks.

setarip_old
22nd February 2007, 02:13
Now that you understand this, let us know how it goes ;>}

len0x
2nd March 2007, 19:31
from what I can see in the autogk log - the demuxing step fails as you can't demux 2h long file in under a second :) Error message may be misleading in this case if the audio file is not present at all (which is easy to check in the agk_tmp directory).