mov_to_.mp4
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
mov_to_.mp4 [2017/08/15 19:21] – walkeradmin | mov_to_.mp4 [2023/03/09 22:35] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 7: | Line 7: | ||
\\ | \\ | ||
\\ | \\ | ||
- | This command only changes the container, it does not transcode the video/ | + | This command only changes the container, it does not transcode the video/audio. This is useful when you want to convert MKV files (which are mp4 anyway) to MP4 without transcoding and wasting loads of time. You may have to transcode the audio to make them compliant. |
\\ | \\ | ||
\\ | \\ | ||
ffmpeg -i in.mov -vcodec copy -acodec copy out.mp4 | ffmpeg -i in.mov -vcodec copy -acodec copy out.mp4 | ||
+ | \\ | ||
+ | \\ | ||
+ | To specify bit rates: | ||
+ | \\ | ||
+ | \\ | ||
+ | ffmpeg -i input.mov -b:v 1M -b:a 192k output.mp4 | ||
+ | \\ | ||
+ | \\ | ||
+ | This example converts a .MOV input file, to a h264 output file at 300Mbs. | ||
+ | \\ | ||
+ | \\ | ||
+ | ffmpeg.exe -i sourcefile.mov -vcodec h264 -b:v 300M -b:a 240K outputfile.mp4 | ||
+ | | ||
+ | It's important to get the files correct, initially I specified <color # | ||
+ | \\ | ||
+ | \\ | ||
+ | If you are getting juddery video you can try adding the -vsync 0 switch. | ||
+ | \\ | ||
+ | \\ | ||
+ | ffmpeg.exe -i sourcefile.mov -vcodec h264 -b:v 300M -b:a 240K outputfile.mp4 -vsync 0 | ||
+ | \\ | ||
+ | \\ | ||
+ | The output from this was: | ||
+ | < | ||
+ | ffmpeg version N-82597-gd316b21 Copyright (c) 2000-2016 the FFmpeg developers | ||
+ | built with gcc 5.4.0 (GCC) | ||
+ | configuration: | ||
+ | ble-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable- | ||
+ | libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enab | ||
+ | le-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-li | ||
+ | bopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspe | ||
+ | ex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx | ||
+ | | ||
+ | mg --enable-lzma --enable-decklink --enable-zlib | ||
+ | libavutil | ||
+ | libavcodec | ||
+ | libavformat | ||
+ | libavdevice | ||
+ | libavfilter | ||
+ | libswscale | ||
+ | libswresample | ||
+ | libpostproc | ||
+ | Input #0, mov, | ||
+ | Metadata: | ||
+ | creation_time | ||
+ | Duration: 00: | ||
+ | Stream #0:0(eng): Video: prores (apch / 0x68637061), | ||
+ | 1 DAR 16:9, 50 fps, 50 tbr, 50 tbn, 50 tbc (default) | ||
+ | Metadata: | ||
+ | creation_time | ||
+ | handler_name | ||
+ | encoder | ||
+ | timecode | ||
+ | Stream #0:1(eng): Data: none (tmcd / 0x64636D74) (default) | ||
+ | Metadata: | ||
+ | creation_time | ||
+ | handler_name | ||
+ | timecode | ||
+ | No pixel format specified, yuv422p for H.264 encoding chosen. | ||
+ | Use -pix_fmt yuv420p for compatibility with outdated media players. | ||
+ | [libx264 @ 000000000065bb60] using SAR=1/1 | ||
+ | [libx264 @ 000000000065bb60] using cpu capabilities: | ||
+ | [libx264 @ 000000000065bb60] profile High 4:2:2, level 5.1, 4:2:2 8-bit | ||
+ | [libx264 @ 000000000065bb60] 264 - core 148 r2721 72d53ab - H.264/ | ||
+ | eolan.org/ | ||
+ | _ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21, | ||
+ | ead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_ | ||
+ | adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahe | ||
+ | ad=40 rc=abr mbtree=1 bitrate=300000 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 | ||
+ | Output #0, mp4, to ' | ||
+ | Metadata: | ||
+ | encoder | ||
+ | Stream #0:0(eng): Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv422p, 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 30 | ||
+ | 0000 kb/s, 50 fps, 12800 tbn, 50 tbc (default) | ||
+ | Metadata: | ||
+ | creation_time | ||
+ | handler_name | ||
+ | timecode | ||
+ | encoder | ||
+ | Side data: | ||
+ | cpb: bitrate max/ | ||
+ | Stream mapping: | ||
+ | Stream #0:0 -> #0:0 (prores (native) -> h264 (libx264)) | ||
+ | Press [q] to stop, [?] for help | ||
+ | frame=13570 fps=3.3 q=-1.0 Lsize=10188596kB time=00: | ||
+ | video: | ||
+ | [libx264 @ 000000000065bb60] frame I:69 Avg QP: 0.45 size: | ||
+ | [libx264 @ 000000000065bb60] frame P: | ||
+ | [libx264 @ 000000000065bb60] frame B:10081 Avg QP: 3.03 size:602403 | ||
+ | [libx264 @ 000000000065bb60] consecutive B-frames: | ||
+ | [libx264 @ 000000000065bb60] mb I I16..4: 16.3% 25.5% 58.3% | ||
+ | [libx264 @ 000000000065bb60] mb P I16..4: | ||
+ | [libx264 @ 000000000065bb60] mb B I16..4: | ||
+ | .9% L1:21.0% BI:47.0% | ||
+ | [libx264 @ 000000000065bb60] final ratefactor: -2.95 | ||
+ | [libx264 @ 000000000065bb60] 8x8 transform intra:42.6% inter:39.7% | ||
+ | [libx264 @ 000000000065bb60] coded y,uvDC,uvAC intra: 98.9% 99.5% 99.3% inter: 68.0% 64.4% 64.2% | ||
+ | [libx264 @ 000000000065bb60] i16 v, | ||
+ | [libx264 @ 000000000065bb60] i8 v, | ||
+ | [libx264 @ 000000000065bb60] i4 v, | ||
+ | [libx264 @ 000000000065bb60] i8c dc,h,v,p: 60% 11% 22% 7% | ||
+ | [libx264 @ 000000000065bb60] Weighted P-Frames: Y:0.2% UV:0.0% | ||
+ | [libx264 @ 000000000065bb60] ref P L0: 47.1% 13.3% 22.3% 17.2% 0.0% | ||
+ | [libx264 @ 000000000065bb60] ref B L0: 79.7% 14.0% 6.3% | ||
+ | [libx264 @ 000000000065bb60] ref B L1: 94.7% 5.3% | ||
+ | [libx264 @ 000000000065bb60] kb/ | ||
+ | </ | ||
+ | \\ | ||
+ | --- | ||
+ | \\ | ||
+ | ffmpeg -i / | ||
\\ | \\ | ||
\\ | \\ |
mov_to_.mp4.1502821271.txt.gz · Last modified: 2023/03/09 22:35 (external edit)