View Full Version : Simplest mux from mkv to mp4?
Foofaraw
10th January 2012, 18:17
Vegas doesn't support mkv's but it does support mp4.
So I need to remux an mkv into mp4.
Preferably a batch file I could just dump the file on and it would all be automatic.
I tried ffmpeg
ffmpeg.exe -y -acodec copy -vcodec copy -i %1 "%~dpn1.mp4"
It does produce what looks like an mp4 file (Mediainfo says it is) but Vegas doesn't recognize it.
Anybody who can suggest something else?
Or did i miss something in that Forrest of commandline switches?
manolito
10th January 2012, 18:36
http://forum.doom9.org/showthread.php?p=1537903#post1537903
Good luck
manolito
Foofaraw
10th January 2012, 19:37
http://forum.doom9.org/showthread.php?p=1537903#post1537903
Don't suppose you could suggest command line arguments?
obieobieobie
11th January 2012, 21:53
You got megui? Use the mp4 muxer there.
Selur
12th January 2012, 18:27
also run the output ffmpeg creates through mp4box
sneaker_ger
12th January 2012, 18:56
Or you could try this ffmpeg build (http://forum.doom9.org/showthread.php?t=152419). This supposedly fixes some problems the original has had. (I'm not sure if this is still the case, though.)
Also simply:
ffmpeg -i input.mkv -vcodec copy -acodec copy output.mp4
Otherwise I can only suggest demuxing and remuxing again with L-Smash or mp4box or using AviSynth and a virtual file system (http://forum.doom9.org/showthread.php?t=133313).
Foofaraw
13th January 2012, 10:55
Or you could try this ffmpeg build (http://forum.doom9.org/showthread.php?t=152419). This supposedly fixes some problems the original has had. (I'm not sure if this is still the case, though.)
Also simply:
ffmpeg -i input.mkv -vcodec copy -acodec copy output.mp4
Hey sneaker_ger thanks commenting.
Well your commandline produces an mp4, but Vegas still barfs on it.
Otherwise I can only suggest demuxing and remuxing again with L-Smash or mp4box or using AviSynth and a virtual file system (http://forum.doom9.org/showthread.php?t=133313).
Don't know what lsmash is, i'll try and google it.
I'd have liked to have bat file to do this, but since i don't have to do that often i suppose i'll suffer an interface.
sneaker_ger
13th January 2012, 11:31
Both l-smash and mp4box are available as command-line tools, as well as mkvextract, so you can build a batch with them.
l-smash (http://www.mediafire.com/?9l2u6z4s3i9zu) is just an alternative to mp4box, they basically work in the same way: raw video and audio input and mp4 container output.
Midzuki
17th January 2012, 00:02
l-smash (http://www.mediafire.com/?9l2u6z4s3i9zu) is just an alternative to mp4box, they basically work in the same way: raw video and audio input and mp4 container output.
Hi there,
Would you mind explaining why the following command-line doesn't work ???
muxer -i input.264 -o output.mp4
Error: Failed to open input file
WTF? :confused:
sneaker_ger
17th January 2012, 00:33
Sorry, can't help you. That error can mean anything from a misspelled filename to a broken file.
Midzuki
17th January 2012, 00:50
Thanks for answering.
I will keep using mp4box and/or mp4creator.
+++++
EDIT:
Hummm, according to a page written by the VFR_Maniac,
"muxer" is just a renamed upgrade of "audiomuxer" :—/
However, "remuxer" is as stubborn as the MP4 audio muxer :—/
So, IF L-Smash cannot work properly outside of x264,
THEN ¿what is the point of those standalone applications? :rolleyes:
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.