Log in

View Full Version : Muxing AVI with mencoder?


Bathrone
24th March 2009, 08:49
I tried doing dumpvideo with mplayer but that didnt work correctly so I used MP4Box:

MP4Box -aviraw audio xyz.avi
MP4Box -aviraw video xyz.avi

This worked great, I got an mp3 audio file and a cmp video file.

Since I dont want to create an mp4 container, I am trying to use mencoder to put together my new cmp and mp3 files into an AVI with no success.

Or should I be using some other command line tool to mux the cmp and mp3?

nm
24th March 2009, 11:18
What is the purpose of this process? How about this, if you only want to remux: mencoder -ovc copy -oac copy -o output.avi input.avi
What is cmp video?

unskinnyboy
24th March 2009, 12:37
What is cmp video?Raw MPEG-4 ASP video.

What is the purpose of this process?
I have the same question.

Bathrone, looks like you are demuxing everything, only to mux them back in again?

Bathrone
24th March 2009, 12:54
Thats correct unskinnyboy - I'm trying to nail down a problem I'm having and then ran into this problem.

unskinnyboy
25th March 2009, 03:33
OK. Well, you can't use mencoder, it wouldn't handle this scenario and would just create unplayable AVI files.

Use ffmpeg.

ffmpeg -i input_raw_video.cmp -i input_audio.mp3 -vcodec copy -acodec copy output_muxed_video.avi

should work.