digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   Mencoder has no sound (http://www.digitalfaq.com/archives/encode/8984-mencoder-sound.html)

itcth 04-06-2004 10:26 AM

Mencoder has no sound
 
I use "makeAVIS.exe" to create fake avi(fake.avi) from avisynth script(Source.avs).VirtualDub can detect both Video and sound from fake.avi but when i try to encode fake.avi with mencoder there is no sound detected.Is this is normal or i made something wrong.

regards,

bilu 04-06-2004 10:40 AM

I don't know if anyone has experience in that field yet :roll:

Bilu

rds_correia 04-06-2004 02:34 PM

@itcth,
Sorry buddy but if you're using a DVD2AVI and makeAVIS it doesn't support sound.
In fact the problem is not with makeAVIS. The *.d2v file created by DVD2AVI doesn't have any sound on it at all.
Though if you created the *.d2v file I expected DVD2AVI to have created a big 300Mb~500Mb file with the audio on it.
That file must be either an *.ac3 file or a *.wav file.
That's because after encoding the video with mencoder (or the libavcodec of your preference encoder) you will have to encode your audio to MP2.
Use either headAC3he or BeSweet to encode the audio track.
Then you can mux video and audio together with bbmpeg or mplex.
Only then you can use the authoring tool of your choice.
Please bear in mind that although using this method it takes quite some time to have the final product, this seems to be the only true reliable method to encode.
BTW this is the method already used with TmpgENC/CCE/MCE for a long time now.
One more thing: are you aiming for KSVCD or KDVD? With KDVD you can use the *.ac3 file with the encoded video, mux it, and burn it on a DVD :D. No need to encode the audio to MP2.
You'll have less space for the video encoded file on your DVD, but you'll have 5.1 Dolby Surround :twisted:
Cheers

@bilu,
Hi Bruno. Nice to see you're still around :D
I myself have been absent for the past few weeks for SEVERAL reasons.
Hope you're feeling better already :)
Cheers.

itcth 04-06-2004 11:09 PM

@rds_correia

Many thanks for your help.Let me explain you more details,i am trying to encode from DV type 2 avi to VCD.Below are my script(C:\Source.avs);

AviSource("C:\DV.avi")
ConvertToYV12()
ResampleAudio(44100)

By feeding to makeAVIS and convert to Fake.avi.Both video and sound can be deteced by virtualdub.then i use mencoder to encode.This is my commandline;

mencoder.exe -forceidx -of mpeg -passlogfile -ovc lavc -lavcopts vcodec=mpeg1video:vqmin=2:vqmax=24:vmax_b_frames=2 :mbd=0:keyint=18:vpass=1:aspect=4/3:vbitrate=1000:vratetol=1000:vrc_maxrate=1150:vrc _buf_size=328:vb_qfactor=1.2:vi_qfactor=0.8:inter_ matrix=16,20,24,28,32,36,40,44,20,24,28,32,36,40,4 4,48,24,28,32,36,40,44,48,52,28,32,36,40,44,48,52, 56,32,36,40,44,48,52,56,58,36,40,44,48,52,56,58,60 ,40,44,48,52,56,58,60,62,44,48,52,56,58,60,62,62:i ntra_matrix=8,16,19,22,26,27,29,34,16,16,22,24,27, 29,34,35,19,22,26,27,29,34,35,38,22,22,26,27,29,34 ,35,40,22,26,27,29,32,35,40,48,26,27,29,32,35,40,4 8,50,26,27,29,35,40,48,50,60,27,29,35,40,48,50,60, 62 -ofps 25 -oac lavc -lavcopts acodec=mp2:abitrate=224 -srate 44100 "C:\Fake.avi"
-o "C:\Fake1.mpg"


Mencoder complains "can not find audio codec for audio format 0x3313" and "Read DOC/HTML/eng/codecs/html!" and continue encoding only video.

One more question.I found mplex.exe in bbmpeg forum.Is there a commandline version of mplex.exe.

Thank again.

rds_correia 04-08-2004 10:59 AM

Quote:

Originally Posted by itcth
@rds_correia

Many thanks for your help.Let me explain you more details,i am trying to encode from DV type 2 avi to VCD.Below are my script(C:\Source.avs);

AviSource("C:\DV.avi")
ConvertToYV12()
ResampleAudio(44100)

By feeding to makeAVIS and convert to Fake.avi.Both video and sound can be deteced by virtualdub.then i use mencoder to encode.This is my commandline;

mencoder.exe -forceidx -of mpeg -passlogfile -ovc lavc -lavcopts vcodec=mpeg1video:vqmin=2:vqmax=24:vmax_b_frames=2 :mbd=0:keyint=18:vpass=1:aspect=4/3:vbitrate=1000:vratetol=1000:vrc_maxrate=1150:vrc _buf_size=328:vb_qfactor=1.2:vi_qfactor=0.8:inter_ matrix=16,20,24,28,32,36,40,44,20,24,28,32,36,40,4 4,48,24,28,32,36,40,44,48,52,28,32,36,40,44,48,52, 56,32,36,40,44,48,52,56,58,36,40,44,48,52,56,58,60 ,40,44,48,52,56,58,60,62,44,48,52,56,58,60,62,62:i ntra_matrix=8,16,19,22,26,27,29,34,16,16,22,24,27, 29,34,35,19,22,26,27,29,34,35,38,22,22,26,27,29,34 ,35,40,22,26,27,29,32,35,40,48,26,27,29,32,35,40,4 8,50,26,27,29,35,40,48,50,60,27,29,35,40,48,50,60, 62 -ofps 25 -oac lavc -lavcopts acodec=mp2:abitrate=224 -srate 44100 "C:\Fake.avi"
-o "C:\Fake1.mpg"


Mencoder complains "can not find audio codec for audio format 0x3313" and "Read DOC/HTML/eng/codecs/html!" and continue encoding only video.

Hi there,
Let me see if I got a clear picture since I don't know much about DV.
That's basically an AVI right?
And you say that VDUB can actually detect the audio right?
So use makeAVIS+Mencoder to encode the video and use VDUBMOD to extract the audio from the AVI.
Then you can encode it to MP2 :) with HeadAC3he/BeSweet.
Mux them with mplex/bbmpeg.
But...I see you're not using rawvideo=1 in mencoder.
I don't know if you forgot about it or if your build of mencoder doesn't support it.
Anyway, without it, you'll have a problem with your encoded video stream: you'll have to demux it prior to muxing video and audio back together. Use bbdmux from bbtool19 package :)

Quote:

Originally Posted by itcth
One more question.I found mplex.exe in bbmpeg forum.Is there a commandline version of mplex.exe.

Thank again.

Don't actually know my friend. I never tried it on a dos-box.
Give it a shoot. Since it's based on bbmpeg it may work because you can use bbmpeg from a dos-box.

Cheers

Fluffbutt 04-27-2004 11:40 AM

Quote:

Originally Posted by rds_correia
<snip>

One more thing: are you aiming for KSVCD or KDVD? With KDVD you can use the *.ac3 file with the encoded video, mux it, and burn it on a DVD :D. No need to encode the audio to MP2.
You'll have less space for the video encoded file on your DVD, but you'll have 5.1 Dolby Surround :twisted:
Cheers
<snip>

I believe svcd (and hence ksvcd?) can also contain ac3, I may be wrong it might have to be mpg5.1, which does exist.

Have to try it one day..

Abond 04-28-2004 02:25 AM

Standart SVCD cannot contain ac3 regarding the specs. It can contain multichannel mp2, but you should search very hard for the player which support such output.


All times are GMT -5. The time now is 08:29 PM  —  vBulletin © Jelsoft Enterprises Ltd

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.