[Libav-user] How to encode with h264_amf correctly?
vouk at mailbox.org
vouk at mailbox.org
Tue May 21 23:10:47 EEST 2019
> Carl Eugen Hoyos <ceffmpeg at gmail.com> hat am 21. Mai 2019 um 20:43 geschrieben:
> Am Di., 21. Mai 2019 um 10:53 Uhr schrieb <vouk at mailbox.org>:
> > I was testing encoding with AMF recently and I check
> > if the encoder is actually available to the user first:
> Did you also test with the ffmpeg tool?
> This may help with debugging, Carl Eugen
Yes, I tested it with the ffmpeg.exe and it - partially - worked. At least the encoder could be initialized.
C:\TeamCity\buildAgent\work\ffmpeg_nightly_release\build\bin>ffmpeg.exe -i "z:\demo.mkv" -c:v h264_amf -an "c:\Users\Daniel\Desktop\test2.mp4"
ffmpeg version 4.1.git Copyright (c) 2000-2019 the FFmpeg developers
built with Microsoft (R) C/C++-Optimierungscompiler Version 19.15.26732.1 für x64
configuration: --toolchain=msvc --extra-cflags='-MD -I/c/TeamCity/buildAgent/work/ffmpeg_nightly_release/build/include' --extra-ldflags='-LIBPATH:/c/TeamCity/buildAgent/work/ffmpeg_nightly_release/build/lib' --prefix=/c/TeamCity/buildAgent/work/ffmpeg_nightly_release/build --pkg-config-flags=--static --disable-doc --disable-shared --enable-static --enable-runtime-cpudetect --disable-devices --disable-network --enable-w32threads --enable-gpl --enable-libmp3lame --enable-libzimg --enable-avisynth --enable-libx264 --enable-libx265 --enable-cuda --enable-cuvid --enable-d3d11va --enable-nvenc --enable-amf --enable-libfdk-aac --enable-libvpx --enable-libvorbis --enable-libopus
libavutil 56. 28.100 / 56. 28.100
libavcodec 58. 52.102 / 58. 52.102
libavformat 58. 27.103 / 58. 27.103
libavdevice 58. 7.100 / 58. 7.100
libavfilter 7. 53.101 / 7. 53.101
libswscale 5. 4.101 / 5. 4.101
libswresample 3. 4.100 / 3. 4.100
libpostproc 55. 4.100 / 55. 4.100
Input #0, matroska,webm, from 'z:\demo.mkv':
Metadata:
ENCODER : Lavf58.5.100
Duration: 00:00:01.57, start: 0.000000, bitrate: 2062 kb/s
Stream #0:0: Video: h264 (High), yuv420p(tv, bt709, progressive), 2048x1152 [SAR 1:1 DAR 16:9], 1k fps, 60 tbr, 1k tbn, 120 tbc (default)
Metadata:
DURATION : 00:00:01.567000000
Stream #0:1: Audio: flac, 48000 Hz, stereo, s16 (default)
Metadata:
DURATION : 00:00:01.536000000
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_amf))
Press [q] to stop, [?] for help
Output #0, mp4, to 'c:\Users\Daniel\Desktop\test2.mp4':
Metadata:
encoder : Lavf58.27.103
Stream #0:0: Video: h264 (h264_amf) (avc1 / 0x31637661), yuv420p, 2048x1152 [SAR 1:1 DAR 16:9], q=-1--1, 2000 kb/s, 60 fps, 15360 tbn, 60 tbc (default)
Metadata:
DURATION : 00:00:01.567000000
encoder : Lavc58.52.102 h264_amf
[matroska,webm @ 00000220CAB4C600] Element at 0x62a53 ending at 0x62a6a exceeds containing master element ending at 0x62a47
frame= 95 fps= 62 q=-0.0 Lsize= 784kB time=00:00:01.56 bitrate=4096.8kbits/s speed=1.02x
video:782kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.151916%
More information about the Libav-user
mailing list