hydra3333
25th January 2010, 08:51
Having created a .mkv, I find I have a tool which only accepts .mp4 files as input.
Can some please tell me the (free) commandline only tool(s) to re-mux a .MKV into a .MP4
... and if possible, the commandlines for inclusion in a .BAT file ?
I tried ffmpeg within this .BAT file
@echo on
REM %~1 - expands %1 removing any surrounding quotes (")
REM %~f1 - expands %1 to a fully qualified path name
REM %~d1 - expands %1 to a drive letter only
REM %~p1 - expands %1 to a path only
REM %~n1 - expands %1 to a file name only
REM %~x1 - expands %1 to a file extension only
REM %~s1 - expanded path contains short names only
REM %~a1 - expands %1 to file attributes
REM %~t1 - expands %1 to date/time of file
REM %~z1 - expands %1 to size of file
REM The modifiers can be combined to get compound results:
REM %~dp1 - expands %1 to a drive letter and path only
REM %~nx1 - expands %1 to a file name and extension only
%~d1
CD "%~dp1"
"C:\software\ffmpeg\ffmpeg.exe" -i "%~1" -f mp4 -vcodec copy -acodec copy -y "%~1-mp4.mp4"
pause
by dragging and dropping the .mpv onto it, but got this error
Could not write header for output file #0 (incorrect codec parameters ?)
:thanks:
Edit: the input is .mkv with h264 audio and AC3 audio
Can some please tell me the (free) commandline only tool(s) to re-mux a .MKV into a .MP4
... and if possible, the commandlines for inclusion in a .BAT file ?
I tried ffmpeg within this .BAT file
@echo on
REM %~1 - expands %1 removing any surrounding quotes (")
REM %~f1 - expands %1 to a fully qualified path name
REM %~d1 - expands %1 to a drive letter only
REM %~p1 - expands %1 to a path only
REM %~n1 - expands %1 to a file name only
REM %~x1 - expands %1 to a file extension only
REM %~s1 - expanded path contains short names only
REM %~a1 - expands %1 to file attributes
REM %~t1 - expands %1 to date/time of file
REM %~z1 - expands %1 to size of file
REM The modifiers can be combined to get compound results:
REM %~dp1 - expands %1 to a drive letter and path only
REM %~nx1 - expands %1 to a file name and extension only
%~d1
CD "%~dp1"
"C:\software\ffmpeg\ffmpeg.exe" -i "%~1" -f mp4 -vcodec copy -acodec copy -y "%~1-mp4.mp4"
pause
by dragging and dropping the .mpv onto it, but got this error
Could not write header for output file #0 (incorrect codec parameters ?)
:thanks:
Edit: the input is .mkv with h264 audio and AC3 audio