mkv TO mp4
-
@בערל מכיון שגם MP4 וגם MKV הם פורמטי מכל, אז הסיומת של הקובץ לא אומר כלום על הקידוד של המדיה שכלול בתוכו.
ייתכן שזה מקודד בפורמט שנתמך על ידי MP4 ואם כן הכי מהיר והכי איכותי יהיה פשוט להעתיק את ערוצי השמע והוידאו ישירות בלי שום המרה.ffmpeg -i input.mkv -codec copy output.mp4
-
@yossiz תודה!
זה מה שנותן לי בהרצת הפקודה:
Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved. C:\Users\1>ffmpeg -i C:\Users\1\Desktop\input.mkv -codec copy output.mp4 ffmpeg version 4.1.1 Copyright (c) 2000-2019 the FFmpeg developers built with gcc 8.2.1 (GCC) 20190212 configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfi g --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-lib freetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amr wb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy -- enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-l ibwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 -- enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --en able-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --en able-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --e nable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enab le-avisynth libavutil 56. 22.100 / 56. 22.100 libavcodec 58. 35.100 / 58. 35.100 libavformat 58. 20.100 / 58. 20.100 libavdevice 58. 5.100 / 58. 5.100 libavfilter 7. 40.101 / 7. 40.101 libswscale 5. 3.100 / 5. 3.100 libswresample 3. 3.100 / 3. 3.100 libpostproc 55. 3.100 / 55. 3.100 Input #0, matroska,webm, from 'C:\Users\1\Desktop\input.mkv': Metadata: COMPATIBLE_BRANDS: isomiso2avc1mp41 MAJOR_BRAND : isom MINOR_VERSION : 512 ENCODER : IDMmkvlib0.1 LANGUAGE : und HANDLER_NAME : AudioHandler Duration: 00:05:23.04, start: 0.000000, bitrate: 494 kb/s Stream #0:0: Video: vp9 (Profile 0), yuv420p(tv, bt709/unknown/unknown), 640 x360, SAR 1:1 DAR 16:9, 25 fps, 25 tbr, 1k tbn, 1k tbc (default) Stream #0:1: Audio: opus, 48000 Hz, stereo, fltp (default) [mp4 @ 00000000022fa3c0] track 1: codec frame size is not set [mp4 @ 00000000022fa3c0] opus in MP4 support is experimental, add '-strict -2' i f you want to use it. Could not write header for output file #0 (incorrect codec parameters ?): Experi mental feature Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) Last message repeated 1 times C:\Users\1>
-
@yossiz זה יצר לי קובץ mp4 ריק.
Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved. C:\Users\1>ffmpeg -strict -2 -i C:\Users\1\Desktop\input.mkv -codec copy C:\User s\1\Desktop\input.mp4 ffmpeg version 4.1.1 Copyright (c) 2000-2019 the FFmpeg developers built with gcc 8.2.1 (GCC) 20190212 configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfi g --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-lib freetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amr wb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy -- enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-l ibwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 -- enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --en able-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --en able-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --e nable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enab le-avisynth libavutil 56. 22.100 / 56. 22.100 libavcodec 58. 35.100 / 58. 35.100 libavformat 58. 20.100 / 58. 20.100 libavdevice 58. 5.100 / 58. 5.100 libavfilter 7. 40.101 / 7. 40.101 libswscale 5. 3.100 / 5. 3.100 libswresample 3. 3.100 / 3. 3.100 libpostproc 55. 3.100 / 55. 3.100 Input #0, matroska,webm, from 'C:\Users\1\Desktop\input.mkv': Metadata: COMPATIBLE_BRANDS: isomiso2avc1mp41 MAJOR_BRAND : isom MINOR_VERSION : 512 ENCODER : IDMmkvlib0.1 LANGUAGE : und HANDLER_NAME : AudioHandler Duration: 00:05:23.04, start: 0.000000, bitrate: 494 kb/s Stream #0:0: Video: vp9 (Profile 0), yuv420p(tv, bt709/unknown/unknown), 640 x360, SAR 1:1 DAR 16:9, 25 fps, 25 tbr, 1k tbn, 1k tbc (default) Stream #0:1: Audio: opus, 48000 Hz, stereo, fltp (default) [mp4 @ 00000000003c3280] track 1: codec frame size is not set [mp4 @ 00000000003c3280] opus in MP4 support is experimental, add '-strict -2' i f you want to use it. Could not write header for output file #0 (incorrect codec parameters ?): Experi mental feature Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) Last message repeated 1 times C:\Users\1>
-
@yossiz אמר בmkv TO mp4:
הממ... אולי התחביר כך:
ffmpeg -i input.mkv -codec copy -strict -2 output.mp4
שוב יצר קובץ ריק..
Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved. C:\Users\1>ffmpeg -i C:\Users\1\Desktop\input.mkv -codec copy -strict -2 C:\User s\1\Desktop\input.mp4 ffmpeg version 4.1.1 Copyright (c) 2000-2019 the FFmpeg developers built with gcc 8.2.1 (GCC) 20190212 configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfi g --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-lib freetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amr wb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy -- enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-l ibwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 -- enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --en able-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --en able-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --e nable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enab le-avisynth libavutil 56. 22.100 / 56. 22.100 libavcodec 58. 35.100 / 58. 35.100 libavformat 58. 20.100 / 58. 20.100 libavdevice 58. 5.100 / 58. 5.100 libavfilter 7. 40.101 / 7. 40.101 libswscale 5. 3.100 / 5. 3.100 libswresample 3. 3.100 / 3. 3.100 libpostproc 55. 3.100 / 55. 3.100 Input #0, matroska,webm, from 'C:\Users\1\Desktop\input.mkv': Metadata: COMPATIBLE_BRANDS: isomiso2avc1mp41 MAJOR_BRAND : isom MINOR_VERSION : 512 ENCODER : IDMmkvlib0.1 LANGUAGE : und HANDLER_NAME : AudioHandler Duration: 00:05:23.04, start: 0.000000, bitrate: 494 kb/s Stream #0:0: Video: vp9 (Profile 0), yuv420p(tv, bt709/unknown/unknown), 640 x360, SAR 1:1 DAR 16:9, 25 fps, 25 tbr, 1k tbn, 1k tbc (default) Stream #0:1: Audio: opus, 48000 Hz, stereo, fltp (default) [mp4 @ 000000000059e840] track 1: codec frame size is not set Output #0, mp4, to 'C:\Users\1\Desktop\input.mp4': Metadata: COMPATIBLE_BRANDS: isomiso2avc1mp41 MAJOR_BRAND : isom MINOR_VERSION : 512 HANDLER_NAME : AudioHandler LANGUAGE : und encoder : Lavf58.20.100 Stream #0:0: Video: vp9 (Profile 0) (vp09 / 0x39307076), yuv420p(tv, bt709/u nknown/unknown), 640x360 [SAR 1:1 DAR 16:9], q=2-31, 25 fps, 25 tbr, 16k tbn, 1k tbc (default) Stream #0:1: Audio: opus (Opus / 0x7375704F), 48000 Hz, stereo, fltp (defaul t) Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) Press [q] to stop, [?] for help frame= 1624 fps=0.0 q=-1.0 size= 3584kB time=00:01:04.92 bitrate= 452.3kbits/ frame= 2699 fps=2548 q=-1.0 size= 6400kB time=00:01:47.92 bitrate= 485.8kbits frame= 3645 fps=2277 q=-1.0 size= 8448kB time=00:02:25.76 bitrate= 474.8kbits frame= 4684 fps=2215 q=-1.0 size= 11008kB time=00:03:07.32 bitrate= 481.4kbits frame= 5540 fps=2118 q=-1.0 size= 13312kB time=00:03:41.56 bitrate= 492.2kbits frame= 7245 fps=2312 q=-1.0 size= 17152kB time=00:04:49.76 bitrate= 484.9kbits frame= 8076 fps=2309 q=-1.0 Lsize= 19493kB time=00:05:23.00 bitrate= 494.4kbit s/s speed=92.3x video:13668kB audio:5666kB subtitle:0kB other streams:0kB global headers:0kB mux ing overhead: 0.824590% C:\Users\1>
-