[FFmpeg-user] MKV to MP4

Jack Tucker jtucker2 at outlook.com
Tue Dec 1 23:39:36 CET 2015


Hi Moritz,
Apologies for the lack of info in my last email, it was a long night :)!
I'm not at all good with coding/command so please be as helpful as possible.

I have created  a bat file with the command:for %%a in ("*.mkv") do c:\users\sparrow\desktop\ffmpeg\bin\ffmpeg.exe -i "%%a" -vcodec copy -acodec copy "%%~na .mp4"pause
Which then runs: C:\Program Files (x86)\SABnzbd\downloads\completed\To Be Moved\_UNPACK_Red Oaks\Red Oaks S01 2160p Amazon WEBRip DD2.0 Hi10P x264-TrollUHD>c:\users\sparrow\desktop\ffmpeg\bin\ffmpeg.exe -i "Red Oaks S01E08 2160p AMZN WEBRip DD2.0 x264-TrollUHD.mkv" -vcodec copy -acodec copy "Red Oaks S01E08 2160p AMZN WEBRip DD2.0 x264-TrollUHD .mp4"

I then drop a MKV on the bat file which then copies the file, but windows say it has an issue with codec.Error: "Windows Media Player cannot play the file. The Player might not support the file type or might not support the codec that was used to compress the file."
 The output is:
ffmpeg version N-76860-g72eaf72 Copyright (c) 2000-2015 the FFmpeg developers  built with gcc 5.2.0 (GCC)  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib  libavutil      55.  9.100 / 55.  9.100  libavcodec     57. 16.100 / 57. 16.100  libavformat    57. 19.100 / 57. 19.100  libavdevice    57.  0.100 / 57.  0.100  libavfilter     6. 15.100 /  6. 15.100  libswscale      4.  0.100 /  4.  0.100  libswresample   2.  0.101 /  2.  0.101  libpostproc    54.  0.100 / 54.  0.100Input #0, matroska,webm, from 'Red Oaks S01E08 2160p AMZN WEBRip DD2.0 x264-TrollUHD.mkv':  Metadata:    encoder         : libebml v1.3.1 + libmatroska v1.4.2    creation_time   : 2015-10-29 04:19:54  Duration: 00:22:58.66, start: 0.000000, bitrate: 31972 kb/s    Stream #0:0: Video: h264 (High 10), yuv420p10le, 3840x2160 [SAR 1:1 DAR 16:9], 24 fps, 24 tbr, 1k tbn, 48 tbc (default)    Metadata:      BPS             : 31330552      BPS-eng         : 31330552      DURATION        : 00:22:58.625000000      DURATION-eng    : 00:22:58.625000000      NUMBER_OF_FRAMES: 33087      NUMBER_OF_FRAMES-eng: 33087      NUMBER_OF_BYTES : 5399135394      NUMBER_OF_BYTES-eng: 5399135394      _STATISTICS_WRITING_APP: mkvmerge v8.3.0 ('Over the Horizon') 64bit      _STATISTICS_WRITING_APP-eng: mkvmerge v8.3.0 ('Over the Horizon') 64bit      _STATISTICS_WRITING_DATE_UTC: 2015-10-29 04:19:54      _STATISTICS_WRITING_DATE_UTC-eng: 2015-10-29 04:19:54      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES    Stream #0:1(eng): Audio: ac3, 48000 Hz, stereo, fltp, 640 kb/s (default)    Metadata:      BPS             : 640000      BPS-eng         : 640000      DURATION        : 00:22:58.656000000      DURATION-eng    : 00:22:58.656000000      NUMBER_OF_FRAMES: 43083      NUMBER_OF_FRAMES-eng: 43083      NUMBER_OF_BYTES : 110292480      NUMBER_OF_BYTES-eng: 110292480      _STATISTICS_WRITING_APP: mkvmerge v8.3.0 ('Over the Horizon') 64bit      _STATISTICS_WRITING_APP-eng: mkvmerge v8.3.0 ('Over the Horizon') 64bit      _STATISTICS_WRITING_DATE_UTC: 2015-10-29 04:19:54      _STATISTICS_WRITING_DATE_UTC-eng: 2015-10-29 04:19:54      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES[mp4 @ 0000000002d743c0] Codec for stream 0 does not use global headers but container format requires global headers[mp4 @ 0000000002d743c0] Codec for stream 1 does not use global headers but container format requires global headers[mp4 @ 0000000002d743c0] track 1: codec frame size is not setOutput #0, mp4, to 'Red Oaks S01E08 2160p AMZN WEBRip DD2.0 x264-TrollUHD .mp4':  Metadata:    encoder         : Lavf57.19.100    Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p10le, 3840x2160 [SAR 1:1 DAR 16:9], q=2-31, 24 fps, 24 tbr, 16k tbn, 1k tbc (default)    Metadata:      BPS             : 31330552      BPS-eng         : 31330552      DURATION        : 00:22:58.625000000      DURATION-eng    : 00:22:58.625000000      NUMBER_OF_FRAMES: 33087      NUMBER_OF_FRAMES-eng: 33087      NUMBER_OF_BYTES : 5399135394      NUMBER_OF_BYTES-eng: 5399135394      _STATISTICS_WRITING_APP: mkvmerge v8.3.0 ('Over the Horizon') 64bit      _STATISTICS_WRITING_APP-eng: mkvmerge v8.3.0 ('Over the Horizon') 64bit      _STATISTICS_WRITING_DATE_UTC: 2015-10-29 04:19:54      _STATISTICS_WRITING_DATE_UTC-eng: 2015-10-29 04:19:54      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES    Stream #0:1(eng): Audio: ac3 ([165][0][0][0] / 0x00A5), 48000 Hz, stereo, 640kb/s (default)    Metadata:      BPS             : 640000      BPS-eng         : 640000      DURATION        : 00:22:58.656000000      DURATION-eng    : 00:22:58.656000000      NUMBER_OF_FRAMES: 43083      NUMBER_OF_FRAMES-eng: 43083      NUMBER_OF_BYTES : 110292480      NUMBER_OF_BYTES-eng: 110292480      _STATISTICS_WRITING_APP: mkvmerge v8.3.0 ('Over the Horizon') 64bit      _STATISTICS_WRITING_APP-eng: mkvmerge v8.3.0 ('Over the Horizon') 64bit      _STATISTICS_WRITING_DATE_UTC: 2015-10-29 04:19:54      _STATISTICS_WRITING_DATE_UTC-eng: 2015-10-29 04:19:54      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTESStream mapping:  Stream #0:0 -> #0:0 (copy)  Stream #0:1 -> #0:1 (copy)Press [q] to stop, [?] for helpframe=  302 fps=0.0 q=-1.0 size=   20462kB time=00:00:12.57 bitrate=13328.6kbits/sframe=  463 fps=454 q=-1.0 size=   37435kB time=00:00:19.39 bitrate=15814.1kbits/s


> Date: Tue, 1 Dec 2015 18:31:36 +0100
> From: barsnick at gmx.net
> To: ffmpeg-user at ffmpeg.org
> Subject: Re: [FFmpeg-user] MKV to MP4
> 
> On Tue, Dec 01, 2015 at 03:09:42 +0000, Jack Tucker wrote:
> > I am trying to convert a MKV into m4p using Windows, every time I do it has issues with codec. Which line of code canI I use which will work?
> > I have tried for %%a in ("*.mkv") do ffmpeg.exe -i "%%a" -vcodec copy -acodec copy "%%~na .mp4"
> > but no luck and ffmpeg -i input.mkv -c:v copy -c:a copy output.mp4, again, no luck
> 
> Hi Jack,
> "no luck" is a very short error description. Please show us a (real,
> complete) command line and the full, uncut console output.
> 
> Please realize that ffmpeg's console output contains a lot of useful
> information, and it should even tell us what was going wrong. There's
> no general answer to your question, as it depends on a few things.
> 
> Moritz
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
 		 	   		  


More information about the ffmpeg-user mailing list