Opened 2 years ago

Last modified 23 months ago

#8458 new enhancement

h264_redundant_pps bitstream filter option not working with hevc

Reported by: Eyad Aldwaik Owned by:
Priority: wish Component: avcodec
Version: git-master Keywords: hevc
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:

I have a proccess of parallel encoding segments of a file, then stitch all segments back into one.

This worked well for x264 codec, but when I wanted to introduce x265, the stitching didn't work, becasue of the bitstream filter "h264_redundant_pps" is not expected to be used with x265, yet it shall be ok to use it, as it's addressing the PPS AUs, and not relevent to the video encoding.

Can this bitstream filter be updated to reflect its compatability with x265.

How to reproduce: Command

% ffmpeg_x264.exe  -y -hide_banner -safe 0 -f concat -i stitch-list_1.txt  -c copy -bsf:v h264_redundant_pps S000888701028_1.mp4

How to reproduce: Output

Duration: N/A, start: 0.000000, bitrate: 351 kb/s
    Stream #0:0(und): Video: hevc (Main) (hev1 / 0x31766568), yuv420p(tv, progressive), 512x288 [SAR 1:1 DAR 16:9], 351 kb/s, 25 fps, 25 tbr, 12800 tbn, 25 tbc
    Metadata:
      handler_name    : 
        VideoHandler
[AVBSFContext @ 0000025d482de780] 
Codec 'hevc' (173) is not supported by the bitstream filter 'h264_redundant_pps'. Supported codecs are: h264 (27) 
Error initializing bitstream filter: h264_redundant_pps
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
 
   Last message repeated 1 times

Version
ffmpeg 4.2
libavutil 56. 35.101 / 56. 35.101
libavcodec 58. 61.100 / 58. 61.100
libavformat 58. 34.101 / 58. 34.101
libavdevice 58. 9.100 / 58. 9.100
libavfilter 7. 66.100 / 7. 66.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 6.100 / 5. 6.100
libswresample 3. 6.100 / 3. 6.100
libpostproc 55. 6.100 / 55. 6.100

Change History (3)

comment:1 by Eyad Aldwaik, 23 months ago

Component: undeterminedavcodec

comment:2 by Carl Eugen Hoyos, 23 months ago

Keywords: hevc added
Priority: normalwish
Version: 4.2git-master

For future tickets: Please always test current FFmpeg git head and provide the command line you tested together with the complete uncut console output, do not use the -hide_banner option unless you want to report an issue with the option.

comment:3 by Eyad Aldwaik, 23 months ago

Thanks for the response, below the missing banner:

ffmpeg version N-95707-gd8bf24459b-ffmpeg-windows-build-helpers Copyright (c) 2000-2019 the FFmpeg developers

built with gcc 8.3.0 (GCC)
configuration: --pkg-config=pkg-config --pkg-config-flags=--static --extra-version=ffmpeg-windows-build-helpers --enable-version3 --disable-debug --disable-w32threads --arch=x86_64 --target-os=mingw32 --cross-prefix=/home/aldwaik/Desktop/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/bin/x86_64-w64-mingw32- --enable-libcaca --enable-gray --enable-libtesseract --enable-fontconfig --enable-gmp --enable-gnutls --enable-libass --enable-libbluray --enable-libbs2b --enable-libflite --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopus --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libvorbis --enable-libwebp --enable-libzimg --enable-libzvbi --enable-libmysofa --enable-libopenjpeg --enable-libopenh264 --enable-liblensfun --enable-libvmaf --enable-libsrt --enable-demuxer=dash --enable-libxml2 --enable-libdav1d --enable-libsvthevc --enable-libaom --enable-libvpx --enable-nvenc --enable-nvdec --extra-libs=-lharfbuzz --extra-libs=-lm --extra-libs=-lpthread --extra-cflags=-DLIBTWOLAME_STATIC --extra-cflags=-DMODPLUG_STATIC --extra-cflags=-DCACA_STATIC --enable-amf --enable-libmfx --enable-gpl --enable-avisynth --enable-frei0r --enable-filter=frei0r --enable-librubberband --enable-libvidstab --enable-libx264 --enable-libx265 --enable-libxvid --enable-libxavs --enable-avresample --extra-cflags='-mtune=generic' --extra-cflags=-O3 --enable-static --disable-shared --prefix=/home/aldwaik/Desktop/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/x86_64-w64-mingw32 --enable-nonfree --enable-decklink --enable-libfdk-aac
libavutil 56. 35.101 / 56. 35.101
libavcodec 58. 61.100 / 58. 61.100
libavformat 58. 34.101 / 58. 34.101
libavdevice 58. 9.100 / 58. 9.100
libavfilter 7. 66.100 / 7. 66.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 6.100 / 5. 6.100
libswresample 3. 6.100 / 3. 6.100
libpostproc 55. 6.100 / 55. 6.100

Note: See TracTickets for help on using tickets.