Quantcast Avisynth: AC3 Trouble - digitalFAQ.com Forums [Archives]
  #1  
03-31-2003, 05:10 PM
hedix hedix is offline
Free Member
 
Join Date: Jan 2003
Posts: 155
Thanks: 0
Thanked 0 Times in 0 Posts
If I try to open an AVS (virtualdub,tmpegenc) like this
Code:
AviSource('Any_AC3.avi')
and the avi file has AC3 audio, I get the "ACM failed to suggest..." message. But if I open the avi file directly in virtualdub, there's no problem.

I know that Avisynth decompress the audio stream, but seems it cannot manage AC3 audio.

Anyone guess why ?

and, Anyone knows a solution for this ?
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
 
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
03-31-2003, 06:05 PM
Bytecode Bytecode is offline
Free Member
 
Join Date: Mar 2003
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
I don't have a solution, but I have seen (and tried to no avail) several AC3 codecs that were supposed to work. I think the problem occurs because the AC3 driver most of us have is just a direct show filter(correct?). I HATE AC3, so I allways extract and convert to mp3 or mp2 depending on what I'm trying to encode.

I know it doesn't solve your problem, but I thought I'd add what I've went through so far. ;p

-BC
Reply With Quote
  #3  
03-31-2003, 06:24 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by hedix
and, Anyone knows a solution for this ?
Try setting or increasing the "DirectShow Multimedia file reader" priority on TMPEG

-kwag
Reply With Quote
  #4  
04-01-2003, 03:38 AM
hedix hedix is offline
Free Member
 
Join Date: Jan 2003
Posts: 155
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by kwag
Quote:
Originally Posted by hedix
and, Anyone knows a solution for this ?
Try setting or increasing the "DirectShow Multimedia file reader" priority on TMPEG

-kwag
It seems to be an Avisyth trouble, because I can open these AVIs with TMpegEnc, but I canīt do it with the script, no matter what are the priorities of the filters.

What do you think
Reply With Quote
  #5  
04-01-2003, 09:10 AM
Jellygoose Jellygoose is offline
Free Member
 
Join Date: Jun 2002
Location: Germany
Posts: 1,288
Thanks: 0
Thanked 0 Times in 0 Posts
Try DirectShowSource instead of avisource. see if that helps!
__________________
j3llyG0053
Reply With Quote
  #6  
04-01-2003, 09:20 AM
hedix hedix is offline
Free Member
 
Join Date: Jan 2003
Posts: 155
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Jellygoose
Try DirectShowSource instead of avisource. see if that helps!
Hi,

I'm afraid it doesnīt work. Read elsewhere that DirectShoeSource doesnīt work with sound by now
Reply With Quote
  #7  
04-01-2003, 10:05 AM
PyRoMaNiA PyRoMaNiA is offline
Free Member
 
Join Date: Jan 2003
Location: a PAL land (UK)
Posts: 408
Thanks: 0
Thanked 0 Times in 0 Posts
Extract the video only with VirtualDub. Open your film in VDub, Click Video, Direct Stream Copy, and Audio, No Audio. Then Save as AVI. The resulting file will have video only, so change your script so that it points towards that.
Reply With Quote
  #8  
04-01-2003, 10:10 AM
Jellygoose Jellygoose is offline
Free Member
 
Join Date: Jun 2002
Location: Germany
Posts: 1,288
Thanks: 0
Thanked 0 Times in 0 Posts
why not just try this:
AviSource('Any_AC3.avi', audio=false)

and encode with TMPGEnc (point to the avs file). than remove the line, and open the avi with virtualdub and extract audio.
__________________
j3llyG0053
Reply With Quote
  #9  
04-01-2003, 10:19 AM
PyRoMaNiA PyRoMaNiA is offline
Free Member
 
Join Date: Jan 2003
Location: a PAL land (UK)
Posts: 408
Thanks: 0
Thanked 0 Times in 0 Posts
Hmm, that's much quicker than my method... Thanks Jellygoose!
Reply With Quote
  #10  
04-01-2003, 11:13 AM
hedix hedix is offline
Free Member
 
Join Date: Jan 2003
Posts: 155
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Jellygoose
why not just try this:
AviSource('Any_AC3.avi', audio=false)

and encode with TMPGEnc (point to the avs file). than remove the line, and open the avi with virtualdub and extract audio.
Yes, this is the thing. I'm just trying to find an alternative (one-step)method for ToK users.

Thank you.
Reply With Quote
  #11  
04-01-2003, 01:20 PM
Jellygoose Jellygoose is offline
Free Member
 
Join Date: Jun 2002
Location: Germany
Posts: 1,288
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by PyRoMaNiA
Hmm, that's much quicker than my method... Thanks Jellygoose!
No problem bro!

Quote:
Originally Posted by hedix
Yes, this is the thing. I'm just trying to find an alternative (one-step)method for ToK users. Thank you.
sorry buddy i missed your intention. I didn't mean to make fun of you or something. Well Pyros way is a bit complicated and space-robbing I guess... isn't there something like an avi-demuxer out there? you could implement that into ToK maybe...[/quote]
__________________
j3llyG0053
Reply With Quote
  #12  
04-01-2003, 02:34 PM
hedix hedix is offline
Free Member
 
Join Date: Jan 2003
Posts: 155
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Jellygoose
sorry buddy i missed your intention. I didn't mean to make fun of you or something.
I donīt mean it, man
Quote:
isn't there something like an avi-demuxer out there? you could implement that into ToK maybe...
Hey, this is a good idea

I will try with "decompress", in avi2vcd.

Regards.
Reply With Quote
  #13  
04-01-2003, 03:07 PM
PyRoMaNiA PyRoMaNiA is offline
Free Member
 
Join Date: Jan 2003
Location: a PAL land (UK)
Posts: 408
Thanks: 0
Thanked 0 Times in 0 Posts
Isn't there a way to just insert something into the script? Like, look for the line: AviSource("*.avi") ...and replace it with
AviSource("*.avi", audio=false)
Reply With Quote
  #14  
04-01-2003, 03:30 PM
hedix hedix is offline
Free Member
 
Join Date: Jan 2003
Posts: 155
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by PyRoMaNiA
Isn't there a way to just insert something into the script? Like, look for the line: AviSource("*.avi") ...and replace it with
AviSource("*.avi", audio=false)
Yes. What are you thinking about ?
Reply With Quote
  #15  
04-01-2003, 06:39 PM
alfredini alfredini is offline
Free Member
 
Join Date: Dec 2002
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
acp used VD-Jobs (below) Scripts to extract audio. It also worked well with ac3.
If you can extract the Filename out of the avs script then maybe you can use those Jobs-Scripts too.
Also i find it a good way that acp always used AviSource("video.avi", false)

The call for VD was like that:
C:\Video\VirtualDub\VirtualDub.exe /s"C:\Tmp\audio.jobs" /x

Code:
// VirtualDub job list (Sylia script format)
// This is a program generated file -- edit at your own risk.
//
// $numjobs 1
//

// $job "Job 1"
// $input "M:\royster.avi"
// $output "C:\Tmp\video.avi"
// $state 0
// $start_time 0 0
// $end_time 0 0
// $script
VirtualDub.Open("M:\\royster.avi",0,0);
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.video.SetDepth(24,24);
VirtualDub.video.SetMode(0);
VirtualDub.video.SetFrameRate(0,1);
VirtualDub.video.SetIVTC(0,0,-1,0);
VirtualDub.video.SetRange(0,0);
VirtualDub.video.SetCompression();
VirtualDub.video.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveWAV("C:\\Tmp\\audio.mpa");
VirtualDub.Close();

// $endjob
//
//--------------------------------------------------
// $done

I found this on MarcFD's Site:
Quote:
ac3source
(ac3 decoder)
classic AC3 decoding, with Dynamic range compression
and Stereo downmix.
ī
http://ziquash.chez.tiscali.fr/

Maybe you can use a checkbox for AC3 Sources
Reply With Quote
  #16  
04-02-2003, 03:30 AM
hedix hedix is offline
Free Member
 
Join Date: Jan 2003
Posts: 155
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by alfredini
acp used VD-Jobs (below) Scripts to extract audio. It also worked well with ac3.
If you can extract the Filename out of the avs script then maybe you can use those Jobs-Scripts too.
Also i find it a good way that acp always used AviSource("video.avi", false)

The call for VD was like that:
C:\Video\VirtualDub\VirtualDub.exe /s"C:\Tmp\audio.jobs" /x
Hey !, ToK make the same thing !. I learned from ACP and D2S.

Quote:
I found this on MarcFD's Site:
ac3source
(ac3 decoder)
classic AC3 decoding, with Dynamic range compression
and Stereo downmix.
Yes, but only for Avisynth 2.5

Quote:
Maybe you can use a checkbox for AC3 Sources
First I thougth to always extract audio directly from AVI , but then I cannot encode sources with multiple AVIs, etc. And if you make some audio processing in the script, you loose it too

So maybe your suggestion is the solution

Anyway, any idea is welcome.
Reply With Quote
  #17  
04-02-2003, 07:35 AM
alfredini alfredini is offline
Free Member
 
Join Date: Dec 2002
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by hedix
Hey !, ToK make the same thing !. I learned from ACP and D2S.
Oowhh really really sorry. The earliear version of ToK didn't worked to encode audio. So i always extract the audio by myself... sorry

Quote:
Originally Posted by hedix
First I thougth to always extract audio directly from AVI , but then I cannot encode sources with multiple AVIs, etc. And if you make some audio processing in the script, you loose it too

So maybe your suggestion is the solution

Anyway, any idea is welcome.
I think VD is able to append Avi files. If you can extract the names of the multiple Avi's... (i am not sure... i don't even have one ac3 Avi source)
Reply With Quote
  #18  
04-02-2003, 10:00 AM
PyRoMaNiA PyRoMaNiA is offline
Free Member
 
Join Date: Jan 2003
Location: a PAL land (UK)
Posts: 408
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Quote:
Isn't there a way to just insert something into the script? Like, look for the line: AviSource("*.avi") ...and replace it with
AviSource("*.avi", audio=false)

Yes. What are you thinking about ?
Couldn't you just put a checkbox or something, like alfredini said, like "AVI file with AC3 audio" so that ToK doesn't load the audio with the video from the AVS, but just extracts and encodes from the source AVI as with any other file? Or have I got the wrong idea?
Reply With Quote
  #19  
04-02-2003, 12:01 PM
hedix hedix is offline
Free Member
 
Join Date: Jan 2003
Posts: 155
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by PyRoMaNiA
Couldn't you just put a checkbox or something, like alfredini said, like "AVI file with AC3 audio" so that ToK doesn't load the audio with the video from the AVS, but just extracts and encodes from the source AVI as with any other file? Or have I got the wrong idea?
Yes. I'd like ToK to "know" about audio stream type, but I donīt have time now to play with the avi file header.

So by now it will be the checkbox

Regards
Reply With Quote
  #20  
04-02-2003, 01:00 PM
alfredini alfredini is offline
Free Member
 
Join Date: Dec 2002
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
I think you don't have to let ToK know about the audio Stream. If you use Append Avi File in VD. VD will handle the multiple Avi's as one Avi. Then you can extract the Audio. This should be possible with the VD-Jobs-Script
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
AviSynth trouble after reinstall? the viking Avisynth Scripting 2 11-04-2004 06:57 AM
Avisynth: Trouble Identifying Problem (pixelating?) cheung31 Avisynth Scripting 1 08-26-2004 03:06 AM
Avisynth: Trouble with MA-Script in PAL? Avalon Avisynth Scripting 45 07-18-2003 04:48 PM
Avisynth: Trouble with GripCrop in the MA script! audioslave Avisynth Scripting 17 07-08-2003 11:19 AM
PC Trouble bigdaddydre20 Computers 0 07-26-2002 08:19 AM

Thread Tools



 
All times are GMT -5. The time now is 08:39 AM  —  vBulletin Đ Jelsoft Enterprises Ltd