Hello.
I have a MOV file to convert to webm format. I use the following command:
ffmpeg -y -hwaccel cuvid -c: v mpeg4_cuvid -vsync 0 -i ./a.MOV -vf scale_npp = 1920: 1080 -vcodec hevc_nvenc -an ./a.webm
I get the following message:
Could not find codec parameters for stream 0 (Video: mpeg4 (avc1 / 0x31637661), none(bt709), 1920x1080, 39994 kb/s): unspecified pixel format
Consider increasing the value for the 'analyzeduration' and 'probesize' options
I then add the following options:
ffmpeg -y -hwaccel cuvid -c:v mpeg4_cuvid -vsync 0 -analyzeduration 2147483647 -probesize 10000000 -pix_fmt yuv420p -i ./a.MOV -vf scale_npp=1920:1080 -vcodec hevc_nvenc -an ./a.webm
And I see this message:
Option pixel_format not found.
Suggestions to help me?
The complete output of the last command:
ffmpeg -y -hwaccel cuvid -c:v mpeg4_cuvid -vsync 0 -analyzeduration 2147483647 -probesize 10000000 -pix_fmt yuv420p -i ./a.MOV -vf scale_npp=1920:1080 -vcodec hevc_nvenc -an ./a.webm
ffmpeg version N-94271-g2601eef Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 8 (Ubuntu 8.3.0-6ubuntu1)
configuration: --prefix=/home/maison/Documents/Programmes/Compilation_FFMPEG/ffmpeg_sources/ --pkg-config-flags=--static --extra-cflags=-I/home/maison/Documents/Programmes/Compilation_FFMPEG/ffmpeg_build/include --extra-ldflags=-L/home/maison/Documents/Programmes/Compilation_FFMPEG/ffmpeg_build/lib --extra-cflags=-I/usr/local/include --extra-cflags=-I/usr/local/cuda/include --extra-ldflags=-L/usr/local/cuda/lib64 --extra-cflags=-I../nvidia/cudautils --extra-ldflags=-L../nvidia/cudautils --extra-libs='-lpthread -lm' --bindir=/home/maison/.local/bin --disable-shared --enable-cuda --enable-cuvid --enable-nvenc --enable-nonfree --enable-libnpp --enable-gpl --enable-libaom --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-version3 --enable-avresample --enable-avisynth --enable-openal --enable-opencl --enable-opengl --enable-libxcb --enable-libmfx --enable-vaapi --enable-vdpau --enable-libxvid --enable-libwavpack --enable-libsoxr --enable-libtheora --enable-libssh --enable-openssl --enable-libx264 --enable-libx265
libavutil 56. 30.100 / 56. 30.100
libavcodec 58. 53.101 / 58. 53.101
libavformat 58. 28.101 / 58. 28.101
libavdevice 58. 7.100 / 58. 7.100
libavfilter 7. 56.101 / 7. 56.101
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 4.101 / 5. 4.101
libswresample 3. 4.100 / 3. 4.100
libpostproc 55. 4.100 / 55. 4.100
Option pixel_format not found.
The output of mediainfo on the a.MOV file (video part only).
General
Complete name : ./a.MOV
Format : MPEG-4
Format profile : Base Media / Version 2
Codec ID : mp42 (mp42/avc1)
File size : 3.70 GiB
Duration : 13 min 11 s
Overall bit rate : 40.1 Mb/s
Encoded date : UTC 2019-07-27 06:24:00
Tagged date : UTC 2019-07-27 06:24:00
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4
Format settings : CABAC / 1 Ref Frames
Format settings, CABAC : Yes
Format settings, ReFrames : 1 frame
Format settings, GOP : M=1, N=8
Muxing mode : Container profile=Main@4.0
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 13 min 11 s
Bit rate : 40.0 Mb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 120.000 FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.161
Stream size : 3.69 GiB (100%)
Encoded date : UTC 2019-07-27 06:24:00
Tagged date : UTC 2019-07-27 06:24:00
Color range : Full
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709
Codec configuration box : avcC
Thank you.