Log in

View Full Version : Is MP4 --> RIFF-AVI remux possible?


TVT
12th October 2006, 15:11
Hi!

Is it possible to painlessly remux/reencode Nero Vision produced MP4 container into RIFF-AVI container (say XviD+MP3)?

So far I tried to use AviSynth with DirectShowSource filter. There is no problem to recompress video with VDubMod but recompressing the audio stream is a real headache. Demuxing audio stream gives 6ch WAV-file. Direct recompress into MP3 with BeSweet produces bad MP3-file. Using 2-step recompress (6ch-WAV)-->(6ch-AC3)-->(MP3) is OK but resulting MP3-stream gets out of sync with video stream by the end of the movie.

Anyone has anything to advice?

bond
12th October 2006, 18:35
:readrule: :search:

TVT
12th October 2006, 20:11
I.C. But could you kindly give an example of such search or the title of such book?

temporance
13th October 2006, 20:27
TVT: I'm interested why you'd want to do this - why can't you just keep the mp4 container?

TVT
14th October 2006, 18:29
Because I need to play it on a hardware DVD player that cannot play MP4 contained streams.

BTW I solved the problem by setting video stream frame rate to 24.995. Not very beautiful but I did not find the other way out.

bond
14th October 2006, 18:51
if the video stream in mp4 is asp already you can try to simply remux the video stream from mp4 to avi with mp4box/yamb. no need to reencode
if the video stream is avc/h.264 you will need to reencode with directshowsource

the audio stream is most likely aac. is it 5.1? i assume besweet can reencode 5.1 aac in mp4 to stereo mp3 without the need to go via wav and ac3

TVT
18th October 2006, 08:40
Thank you! I did not know that. Though I was surprised when I have found yamb+mp4box in my own file archive. :confused:

Using yamb+mp4box I extracted video stream with no problem. It was XviD-compressed. But the audio stream extraction in AAC format resulted in an unknown error. I tried to extract audio in the new MP4 format and the process was finished OK. I did not find any freeware tool to convert MP4 audio to MP3 directly so I tried to use GraphEdit (I just hate it) for such a convertion. I muxed video and audio streams with VDubMod and... it seems that both streams were synced CORRECTLY.

Any comment?

Best regards!