[MEncoder-users] map audio to video

Tobias Brockamp tobiasbrockamp at gmx.de
Tue Sep 18 21:03:13 CEST 2007


Am 18.09.2007, 20:46 Uhr, schrieb James Hastings-Trew <jimht at shaw.ca>:

> Tobias Brockamp wrote:
>> Am 18.09.2007, 16:21 Uhr, schrieb Nico Sabbi <Nicola.Sabbi at poste.it>:
>>
>>
>>> Tobias Brockamp wrote:
>>>
>>>
>>>> Hi,
>>>>
>>>> i have a video file which does not contain an audio stream. I want  
>>>> take
>>>> another video file as input and only encode the audio-stream from this
>>>> file
>>>> and "add" it to the first video.
>>>>
>>>> I have no idea if it is possible, anybody an idea?
>>>>
>>>> Kind regards,
>>>>
>>>> Tobias Brockamp
>>>>
>>>>
>>>>
>>>>
>>> RTFM
>>> mencoder videofile -audiofile x.wav -ovc copy -oac copy final.avi
>>>
>>
>> I don't think this would help. Once again with an example.
>>
>> Two files available
>>
>> 1. video file without audiostream (file01.avi)
>> 2. video with both audio and video (file02.avi) no *.wav
>>
>> mencoder should encode the audiostream from file02.avi and write the
>> output in file01.avi.
>>
>> is this possible in any way
> It would have to be a two stage operation:
> 1) get the .wav file:
> mplayer file02.avi -vc null -vo null -ao pcm:fast

isn't it possible without an extra wav-file?

> 2) encode it with your video file:
> mencoder file01.avi -audiofile audiodump.wav -ovc copy -oac lavc (or
> whatever you want to use) -o newfile.avi
>
> _______________________________________________
> MEncoder-users mailing list
> MEncoder-users at mplayerhq.hu
> http://lists.mplayerhq.hu/mailman/listinfo/mencoder-users



-- 
Erstellt mit Operas revolutionärem E-Mail-Modul: http://www.opera.com/mail/



More information about the MEncoder-users mailing list