Am 11.03.20 um 13:50 schrieb Moritz Barsnick:
On Wed, Mar 11, 2020 at 13:25:45 +0100, Ulf Zibis wrote:
Anyway, does my command line have the right syntax?
ffmpeg -i MVI_1324.MOV -c:a copy -c:v h264_vaapi -profile:v
constrained_baseline -level 4.1 MVI_1324.mov
It's syntactically correct, but it won't suffice. You need some more
"trickery" in order to do HW supported encode.
I have little experience myself, so I can only point to this page,
which explains it quite nicely (AFAICT):
https://trac.ffmpeg.org/wiki/Hardware/VAAPI
Thanks for the great pointer.
From this tutorial I get:
$ ~/Projects/ffmpeg/dev_2/ffmpeg -vaapi_device /dev/dri/renderD128 -i
MVI_1324.MOV -c:a copy -vf 'format=nv12,hwupload' -c:v h264_vaapi
-profile:v constrained_baseline -level 4.1 -map_metadata 0 -movflags
+faststart MVI_1324.mov
ffmpeg version N-96935-g34d7c8d942 Copyright (c) 2000-2020 the FFmpeg
developers
built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)
configuration:
libavutil 56. 42.100 / 56. 42.100
libavcodec 58. 75.100 / 58. 75.100
libavformat 58. 41.100 / 58. 41.100
libavdevice 58. 9.103 / 58. 9.103
libavfilter 7. 77.100 / 7. 77.100
libswscale 5. 6.100 / 5. 6.100
libswresample 3. 6.100 / 3. 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
File 'MVI_1324.mov' already exists. Overwrite? [y/N] y
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_vaapi))
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[swscaler @ 0x561213fdfa80] deprecated pixel format used, make sure you
did set range correctly
[h264_vaapi @ 0x561213e138c0] No usable encoding profile found.
Error initializing output stream 0:0 -- Error while opening encoder for
output stream #0:0 - maybe incorrect parameters such as bit_rate, rate,
width or height
Conversion failed!
Does anyone know, how to set the pixel format correctly?
-Ulf
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".