[FFmpeg-user] How to compress .MOV file compatible to Canon camera
Ulf Zibis
Ulf.Zibis at gmx.de
Wed Mar 11 00:39:22 EET 2020
Am 29.02.20 um 00:50 schrieb Ulf Zibis:
> I tried with "-profile:v baseline -level 3.0" from here;
> https://trac.ffmpeg.org/wiki/Encode/H.264#Compatibility
>
> Unfortunately this didn't help.
>
> As I don't find any documentation on this at
> https://www.ffmpeg.org/ffmpeg-codecs.html#libx264_002c-libx264rgb
> maybe there are more levels and variations ... where do I find more or
> complete documentation on this?
With mediainfo I see, that I need "-profile:v constrained_baseline
-level 4.1":
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Baseline at L4.1 <== here ==<
Format settings : 1 Ref Frames
Format settings, CABAC : No
Format settings, ReFrames : 1 frame
Format settings, GOP : M=1, N=15
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 29 s 96 ms
Bit rate : 23.2 Mb/s
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 29.970 (30000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.841
Stream size : 80.6 MiB (99%)
Language : English
Encoded date : UTC 2020-02-05 20:17:27
Tagged date : UTC 2020-02-05 20:17:27
Color range : Full
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.601
This profile is only available with VAAPI encoder, see
libavcodec/vaapi_encode_h264.c
or amfenc encoder, see libavcodec/amfenc_h264.c
So I tried:
$ ~/Projects/ffmpeg/ffmpeg-git-20200211-amd64-static/ffmpeg -i
MVI_1324.MOV -c:a copy -c:v h264_vaapi -profile:v constrained_baseline
-level 4.1 MVI_1324.mov
ffmpeg version N-51730-gf15007afa9-static
https://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2020 the FFmpeg
developers
built with gcc 8 (Debian 8.3.0-6)
configuration: --enable-gpl --enable-version3 --enable-static
--disable-debug --disable-ffplay --disable-indev=sndio
--disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r
--enable-gnutls --enable-gmp --enable-libgme --enable-gray
--enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf
--enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband
--enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis
--enable-libopus --enable-libtheora --enable-libvidstab
--enable-libvo-amrwbenc --enable-libvpx --enable-libwebp
--enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d
--enable-libxvid --enable-libzvbi --enable-libzimg
libavutil 56. 39.100 / 56. 39.100
libavcodec 58. 68.102 / 58. 68.102
libavformat 58. 38.100 / 58. 38.100
libavdevice 58. 9.103 / 58. 9.103
libavfilter 7. 75.100 / 7. 75.100
libswscale 5. 6.100 / 5. 6.100
libswresample 3. 6.100 / 3. 6.100
libpostproc 55. 6.100 / 55. 6.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'MVI_1324.MOV':
Metadata:
major_brand : qt
minor_version : 537331968
compatible_brands: qt CAEP
creation_time : 2020-02-05T20:17:27.000000Z
Duration: 00:00:29.10, start: 0.000000, bitrate: 23351 kb/s
Stream #0:0(eng): Video: h264 (Constrained Baseline) (avc1 /
0x31637661), yuvj420p(pc, smpte170m/bt709/bt709), 1280x720, 23228 kb/s,
29.97 fps, 29.97 tbr, 30k tbn, 60k tbc (default)
Metadata:
creation_time : 2020-02-05T20:17:27.000000Z
Stream #0:1(eng): Audio: pcm_u8 (raw / 0x20776172), 12000 Hz,
mono, u8, 96 kb/s (default)
Metadata:
creation_time : 2020-02-05T20:17:27.000000Z
Unknown encoder 'h264_vaapi'
It seems, I use the wrong syntax. What is the correct syntax for
'h264_vaapi'?
-Ulf
More information about the ffmpeg-user
mailing list