Article 4QAF2 How to add an another audio (language) to movie?

How to add an another audio (language) to movie?

by
hujikor
from LinuxQuestions.org on (#4QAF2)
How to add an another audio (language) to movie?
Why? Because I learn the English language.

See, I have two films (same content, different title, long name below):
hysteria.mp4 - with english audio
bez-isteriki.avi - with russian audio

What I would like?
Result file hysteria-eng-rus.mp4 with two audio tracks (rus and eng) and when I will be playing it via mplayer, I use slave move of mplayer to change audio every 5 min (cron helps me).
It's interesting to listen to.

I type these commands:
Code:mencoder bez-isteriki.avi -of rawaudio -oac copy -ovc copy -o bez-isteriki-audio-rus.ac3Code:mencoder hysteria.mp4 -o hysteria-eng-rus.mp4 -ovc copy -oac copy -audiofile bez-isteriki-audio-rus.ac3But it doesn't work, no sound.
Playing Hysteria-eng-rus.mp4.
libavformat version 53.21.0 (external)
Mismatching header version 53.19.0
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO: [H264] 1280x544 24bpp 25.000 fps 814.8 kbps (99.5 kbyte/s)

Maybe I must see -aid 2 ?

Regards!

PS
Output:
file bez-isteriki.avi
bez-isteriki.avi: RIFF (little-endian) data, AVI, 720 x 304, 24.00 fps, video: XviD, audio: Dolby AC3 (6 channels, 48000 Hz)

file hysteria.mp4
Hysteria.2011.720p.bluray.x264.YIFY.mp4: ISO Media, MPEG v4 system, version 1

And this
Quote:
http://www.mplayerhq.hu/DOCS/tech/slave.txt
switch_audio [value] (currently MPEG*, AVI, Matroska and streams handled by libavformat)
Switch to the audio track with the ID [value]. Cycle through the
available tracks if [value] is omitted or negative.
latest?d=yIl2AUoC8zA latest?i=4cX4qewVjSo:WBygWBQNNgU:F7zBnMy latest?i=4cX4qewVjSo:WBygWBQNNgU:V_sGLiP latest?d=qj6IDK7rITs latest?i=4cX4qewVjSo:WBygWBQNNgU:gIN9vFw4cX4qewVjSo
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments