[FFmpeg-user] Bitstream filter h264 metadata crop

ROBINSON Stuart Stuart.Robinson at ed.ac.uk
Wed Nov 18 20:28:49 EET 2020


 I am testing cropping video using the bitstream filter shown in the following command:

C:\ffmpeg-2020-11-18-git-e3081d6f4f-full_build\bin>ffplay.exe "Input.mp4" -codec:v copy -an -bsf:v h264_metadata=crop_top=128 "output_cropped.mp4"
ffplay version 2020-11-18-git-e3081d6f4f-full_build-www.gyan.dev Copyright (c) 2003-2020 the FFmpeg developers
  built with gcc 10.2.0 (Rev3, Built by MSYS2 project)

  configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-lzma --enable-libsnappy --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libglslang --enable-vulkan --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint
  libavutil      56. 60.100 / 56. 60.100
  libavcodec     58.112.103 / 58.112.103
  libavformat    58. 64.100 / 58. 64.100
  libavdevice    58. 11.102 / 58. 11.102
  libavfilter     7. 90.100 /  7. 90.100
  libswscale      5.  8.100 /  5.  8.100
  libswresample   3.  8.100 /  3.  8.100
  libpostproc    55.  8.100 / 55.  8.100
Failed to set value 'h264_metadata=crop_top=128' for option 'bsf:v': Option not found

 Very grateful to anyone who can point out where I am going wrong here, it looks simple enough.

 Thanks, Stuart


--

Thanks,

        Stuart Robinson,

        AV Technician,

        Sound Lab,

        School of Scottish Studies,

        University of Edinburgh,

        29 George Square,

        Edinburgh,

        EH8 9LD



        0131 651 5001





The University of Edinburgh is a charitable body, registered in

Scotland, with registration number SC005336.



More information about the ffmpeg-user mailing list