Good morning/day/evening, List. Don't hit me please :) , but I have a silly question: How can I save two autiostreams (aid=(128 and 129) ) during decoding from *.vob to *.avi? Please point me to appropriate part of MEncoder's documentation. Thanks.
Korenko Taras wrote:
Good morning/day/evening, List.
Don't hit me please :) , but I have a silly question: How can I save two autiostreams (aid=(128 and 129) ) during decoding from *.vob to *.avi?
Please point me to appropriate part of MEncoder's documentation.
Thanks.
the avi container doesn't support dual audistreams, it's better to put it in a motroska container. just encode the audio and video separatly, with the -nosound option when you encode the video and the -novideo option when you encode the audio streams, then use the mmg program from mkvtoolnix (www.matroska.org) to merge the video and audio to one mkv file.
On Sat, Apr 09, 2005 at 10:04:39AM +0200, Winterbird wrote:
Korenko Taras wrote:
Good morning/day/evening, List.
Don't hit me please :) , but I have a silly question: How can I save two autiostreams (aid=(128 and 129) ) during decoding from *.vob to *.avi?
Please point me to appropriate part of MEncoder's documentation.
Thanks.
the avi container doesn't support dual audistreams, it's better to put it in a motroska container. just encode the audio and video separatly, with the -nosound option when you encode the video and the -novideo option when you encode the audio streams, then use the mmg program from mkvtoolnix (www.matroska.org) to merge the video and audio to one mkv file.
There is no -novideo for MEncoder, MEncoder must have a video stream to run. I'm not sure how 'mmg' works, but if it can accept input from avi's, you can use: mencoder -o video.avi -nosound file.vob <encoding options> mencoder -o audio1.avi -ovc frameno -mc 0 -noskip file.vob -aid 128 -oac copy mencoder -o audio2.avi -ovc frameno -mc 0 -noskip file.vob -aid 129 -oac copy and then merge as necessary. - ods15
Oded Shimon wrote:
On Sat, Apr 09, 2005 at 10:04:39AM +0200, Winterbird wrote:
Korenko Taras wrote:
Good morning/day/evening, List.
Don't hit me please :) , but I have a silly question: How can I save two autiostreams (aid=(128 and 129) ) during decoding from *.vob to *.avi?
Please point me to appropriate part of MEncoder's documentation.
Thanks.
the avi container doesn't support dual audistreams, it's better to put it in a motroska container. just encode the audio and video separatly, with the -nosound option when you encode the video and the -novideo option when you encode the audio streams, then use the mmg program from mkvtoolnix (www.matroska.org) to merge the video and audio to one mkv file.
There is no -novideo for MEncoder, MEncoder must have a video stream to run. I'm not sure how 'mmg' works, but if it can accept input from avi's, you can use:
mencoder -o video.avi -nosound file.vob <encoding options> mencoder -o audio1.avi -ovc frameno -mc 0 -noskip file.vob -aid 128 -oac copy mencoder -o audio2.avi -ovc frameno -mc 0 -noskip file.vob -aid 129 -oac copy
and then merge as necessary.
- ods15
there is a entry in the manfile that says there is a novideo option, but I admit that I havn't tested it... mmg is the gui to mkvmerge, that merges mkv files, while mkvmerge is somewhat hard to understand mmg is very simple, you'll understand when you try it. mmg supports avi, real and ogm video, mp3, aac, ac3, pcm, ogg, wav, dts, real and flac audio and vobsub, ssa and srt subtitles. Well at least it was last time I checked, now they might have added more formats... also, about avi files; It's possible to insert more than one audiotrack, but it's not recomended since the avi container not officially supports it. That means that most players (like mplayer) can't handle it. I think matroska is a great container, considering it creates small files, supports multiple video/audio/subtitle streams as well as attatchments and other fun stuff. And most of all it is open source. I acctually have been meaning to ask if there is any possibility that mencoder in the future will support encoding directly to mkv?
On Sat, Apr 09, 2005 at 02:04:10PM +0200, Winterbird wrote:
also, about avi files; It's possible to insert more than one audiotrack, but it's not recomended since the avi container not officially supports it. That means that most players (like mplayer) can't handle it.
AFAIK mplayer supports it just fine.
I think matroska is a great container, considering it creates small files, supports multiple video/audio/subtitle streams as well as attatchments and other fun stuff. And most of all it is open source. I acctually have been meaning to ask if there is any possibility that mencoder in the future will support encoding directly to mkv?
If someone would write a native mkv muxer for libavformat, it would be possible to support. MPlayer developers are not interested in linking to more C++ code (i.e. the huge bloated libmatroska/libebml stuff). Rich
On Sat, 09 Apr 2005 14:04:10 +0200 Winterbird <winterbird@anime-avatar.net> wrote:
also, about avi files; It's possible to insert more than one audiotrack, but it's not recomended since the avi container not officially supports it. That means that most players (like mplayer) can't handle it.
I've played multi-channel AVI files with mplayer, so it obviously handles them fine... Just use "-aid" to select the correct audio stream.
On Sat, 09 Apr 2005 10:04:39 +0200 Winterbird <winterbird@anime-avatar.net> wrote:
the avi container doesn't support dual audistreams
Not true, you can have dual audio streams in an AVI. Mencoder doesn't do this, though. I know you can create such files with avidemux2 (the second track may still have to be CBR), not sure about other Unix-based tools though.
On Sat, Apr 09, 2005 at 01:17:29AM -0700, RC wrote:
On Sat, 09 Apr 2005 10:04:39 +0200 Winterbird <winterbird@anime-avatar.net> wrote:
the avi container doesn't support dual audistreams
Not true, you can have dual audio streams in an AVI. Mencoder doesn't do this, though.
I know you can create such files with avidemux2 (the second track may still have to be CBR), not sure about other Unix-based tools though.
Umm, what's with all these broken programs requiring CBR? CBR is harder to handle, not easier.. Rich
On Sat, 9 Apr 2005 13:09:59 -0400 D Richard Felker III <dalias@aerifal.cx> wrote:
Umm, what's with all these broken programs requiring CBR?
I think you're just hearing about the same one over and over again... Avidemux2 is open source, and I'm sure the developers would be happy to have you help fix their VBR audio limitations...
On Apr 9, 2005 2:38 AM, Korenko Taras <icw@ukr.net> wrote:
Good morning/day/evening, List.
Don't hit me please :) , but I have a silly question: How can I save two autiostreams (aid=(128 and 129) ) during decoding from *.vob to *.avi?
Please point me to appropriate part of MEncoder's documentation.
I believe I've read that the avi format can have multiple audio streams, but I don't know how to do it with mencoder. What I've done is dump one audio stream to a file with -ao pcm under mplayer and then encode as mp3 and play it with -audiofile on mplayer. (ogg loses sync with mplayer 1.0pre6a in my experience)
participants (6)
-
D Richard Felker III -
David Starner -
Korenko Taras -
Oded Shimon -
RC -
Winterbird