Opened 4 years ago

#10154 new defect

cfhd enc: broken output with yuv422p10le pix_fmt when height is not multiple of 16

Reported by: ami_stuff Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

https://trac.ffmpeg.org/raw-attachment/ticket/10068/gold2.avi

./ffmpeg -i gold2.avi -s 560x242 -vcodec cfhd -pix_fmt yuv422p10le -y cfhd.avi
ffmpeg version N-109674-gc0bc804e55-20230127 Copyright (c) 2000-2023 the FFmpeg developers
  built with gcc 12.2.0 (crosstool-NG 1.25.0.90_cf9beb1)
  configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-ffbuild-linux-gnu- --arch=x86_64 --target-os=linux --enable-version3 --disable-debug --enable-iconv --enable-libxml2 --enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp --enable-lzma --enable-fontconfig --enable-libvorbis --enable-opencl --enable-libpulse --enable-libvmaf --enable-libxcb --enable-xlib --enable-amf --enable-libaom --enable-libaribb24 --disable-avisynth --enable-chromaprint --enable-libdav1d --disable-libdavs2 --disable-libfdk-aac --enable-ffnvcodec --enable-cuda-llvm --disable-frei0r --enable-libgme --enable-libkvazaar --enable-libass --enable-libbluray --enable-libjxl --enable-libmp3lame --enable-libopus --enable-mbedtls --enable-librist --enable-libssh --enable-libtheora --enable-libvpx --enable-libwebp --enable-lv2 --disable-libmfx --enable-libvpl --enable-openal --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-librav1e --disable-librubberband --disable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libsvtav1 --enable-libtwolame --enable-libuavs3d --enable-libdrm --enable-vaapi --disable-libvidstab --enable-vulkan --enable-libshaderc --enable-libplacebo --disable-libx264 --disable-libx265 --disable-libxavs2 --disable-libxvid --enable-libzimg --enable-libzvbi --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-ldflags=-pthread --extra-ldexeflags=-pie --extra-libs='-ldl -lgomp' --extra-version=20230127
  libavutil      57. 44.100 / 57. 44.100
  libavcodec     59. 57.100 / 59. 57.100
  libavformat    59. 36.100 / 59. 36.100
  libavdevice    59.  8.101 / 59.  8.101
  libavfilter     8. 54.100 /  8. 54.100
  libswscale      6.  8.112 /  6.  8.112
  libswresample   4.  9.100 /  4.  9.100
Input #0, avi, from 'gold2.avi':
  Duration: 00:00:12.00, start: 0.000000, bitrate: 153 kb/s
  Stream #0:0: Video: srgc (srgc / 0x63677273), bgra, 299x171, 149 kb/s, 15 fps, 15 tbr, 15 tbn
Stream mapping:
  Stream #0:0 -> #0:0 (srgc (native) -> cfhd (native))
Press [q] to stop, [?] for help
Output #0, avi, to 'cfhd.avi':
  Metadata:
    ISFT            : Lavf59.36.100
  Stream #0:0: Video: cfhd (CFHD / 0x44484643), yuv422p10le(tv, progressive), 560x242, q=2-31, 200 kb/s, 15 fps, 15 tbn
    Metadata:
      encoder         : Lavc59.57.100 cfhd
frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=  180 fps=0.0 q=-0.0 Lsize=   14653kB time=00:00:11.93 bitrate=10059.3kbits/s speed=81.9x    
video:14644kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.066728%
./ffmpeg -i cfhd.avi -y out.avi
ffmpeg version N-109674-gc0bc804e55-20230127 Copyright (c) 2000-2023 the FFmpeg developers
  built with gcc 12.2.0 (crosstool-NG 1.25.0.90_cf9beb1)
  configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-ffbuild-linux-gnu- --arch=x86_64 --target-os=linux --enable-version3 --disable-debug --enable-iconv --enable-libxml2 --enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp --enable-lzma --enable-fontconfig --enable-libvorbis --enable-opencl --enable-libpulse --enable-libvmaf --enable-libxcb --enable-xlib --enable-amf --enable-libaom --enable-libaribb24 --disable-avisynth --enable-chromaprint --enable-libdav1d --disable-libdavs2 --disable-libfdk-aac --enable-ffnvcodec --enable-cuda-llvm --disable-frei0r --enable-libgme --enable-libkvazaar --enable-libass --enable-libbluray --enable-libjxl --enable-libmp3lame --enable-libopus --enable-mbedtls --enable-librist --enable-libssh --enable-libtheora --enable-libvpx --enable-libwebp --enable-lv2 --disable-libmfx --enable-libvpl --enable-openal --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-librav1e --disable-librubberband --disable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libsvtav1 --enable-libtwolame --enable-libuavs3d --enable-libdrm --enable-vaapi --disable-libvidstab --enable-vulkan --enable-libshaderc --enable-libplacebo --disable-libx264 --disable-libx265 --disable-libxavs2 --disable-libxvid --enable-libzimg --enable-libzvbi --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-ldflags=-pthread --extra-ldexeflags=-pie --extra-libs='-ldl -lgomp' --extra-version=20230127
  libavutil      57. 44.100 / 57. 44.100
  libavcodec     59. 57.100 / 59. 57.100
  libavformat    59. 36.100 / 59. 36.100
  libavdevice    59.  8.101 / 59.  8.101
  libavfilter     8. 54.100 /  8. 54.100
  libswscale      6.  8.112 /  6.  8.112
  libswresample   4.  9.100 /  4.  9.100
Input #0, avi, from 'cfhd.avi':
  Metadata:
    software        : Lavf59.36.100
  Duration: 00:00:12.00, start: 0.000000, bitrate: 10003 kb/s
  Stream #0:0: Video: cfhd (CFHD / 0x44484643), yuv422p10le, 560x242, 10052 kb/s, 15 fps, 15 tbr, 15 tbn
Stream mapping:
  Stream #0:0 -> #0:0 (cfhd (native) -> mpeg4 (native))
Press [q] to stop, [?] for help
Error while decoding stream #0:0: Invalid data found when processing input
    Last message repeated 80 times
[cfhd @ 0x56180dd27e80] Invalid channel number
Error while decoding stream #0:0: Invalid data found when processing input
    Last message repeated 6 times
Error while decoding stream #0:0: Invalid argument
Error while decoding stream #0:0: Invalid data found when processing input
    Last message repeated 20 times
[cfhd @ 0x56180dc74b40] Invalid subband number
Error while decoding stream #0:0: Invalid data found when processing input
[cfhd @ 0x56180dcdff80] Invalid subband number
Error while decoding stream #0:0: Invalid data found when processing input
[cfhd @ 0x56180dcebf00] Invalid subband number
Error while decoding stream #0:0: Invalid data found when processing input
[cfhd @ 0x56180dcf7f00] Invalid subband number
Error while decoding stream #0:0: Invalid data found when processing input
[cfhd @ 0x56180dd03ec0] Invalid subband number
Error while decoding stream #0:0: Invalid data found when processing input
[cfhd @ 0x56180dd0fec0] Invalid subband number
Error while decoding stream #0:0: Invalid data found when processing input
[cfhd @ 0x56180dd1be80] Invalid subband number
Error while decoding stream #0:0: Invalid data found when processing input
[cfhd @ 0x56180dd27e80] Invalid subband number
Error while decoding stream #0:0: Invalid argument
[cfhd @ 0x56180dd33e40] Invalid subband number
Error while decoding stream #0:0: Invalid argument
    Last message repeated 7 times
Error while decoding stream #0:0: Invalid data found when processing input
    Last message repeated 53 times
Output #0, avi, to 'out.avi':
  Metadata:
    software        : Lavf59.36.100
    ISFT            : Lavf59.36.100
  Stream #0:0: Video: mpeg4 (FMP4 / 0x34504D46), yuv420p, 560x242, q=2-31, 200 kb/s, 15 fps, 15 tbn
    Metadata:
      encoder         : Lavc59.57.100 mpeg4
    Side data:
      cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: N/A
frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 Lsize=       6kB time=-577014:32:22.77 bitrate=N/A speed=N/A    
video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)
Conversion failed!

Change History (0)

Note: See TracTickets for help on using tickets.