Opened 6 months ago
Last modified 6 months ago
#11049 new defect
Ffmpeg unable to process prores input file (Value 234.000000 for parameter 'colorspace' out of range [0 - 14])
Reported by: | DanMalik | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | ffmpeg |
Version: | 7.0 | Keywords: | colorspace prores mp4 |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
Summary of the bug:
I'm trying to convert the video to mp4, but it seems that ffmpeg is not able to infer colorspace value (could be something else too), which seems to be "unknown". I've attached the file containing metadeta details. I'm not an expert, but I've tried explicitly setting the color values (color_space, color_primaries, color_transfer), but still faced the same issue. Faced similar issue with some other videos too.
How to reproduce:
% ffmpeg -y -i https://d3rka4syouiwkp.cloudfront.net/extra/testVideo.mov -crf 23 -vcodec h264 -acodec aac -ar 44100 -b:a 192k -pix_fmt yuv420p -strict -2 -vf "pad=ceil(iw/2)*2:ceil(ih/2)*2:color=white@0.0" -movflags +faststart output.mp4
ffmpeg version
built on 7.0.1
Platform
mac
Output:
ffmpeg version 7.0.1 Copyright (c) 2000-2024 the FFmpeg developers built with Apple clang version 15.0.0 (clang-1500.3.9.4) configuration: --prefix=/opt/homebrew/Cellar/ffmpeg/7.0.1 --enable-shared --enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags='-Wl,-ld_classic' --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libaribb24 --enable-libbluray --enable-libdav1d --enable-libharfbuzz --enable-libjxl --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librist --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack --enable-videotoolbox --enable-audiotoolbox --enable-neon libavutil 59. 8.100 / 59. 8.100 libavcodec 61. 3.100 / 61. 3.100 libavformat 61. 1.100 / 61. 1.100 libavdevice 61. 1.100 / 61. 1.100 libavfilter 10. 1.100 / 10. 1.100 libswscale 8. 1.100 / 8. 1.100 libswresample 5. 1.100 / 5. 1.100 libpostproc 58. 1.100 / 58. 1.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'https://d3rka4syouiwkp.cloudfront.net/extra/testVideo.mov': Metadata: major_brand : qt minor_version : 0 compatible_brands: qt creation_time : 2024-06-08T05:18:31.000000Z encoder : Lavf61.1.100 Duration: 00:00:01.01, start: 0.000000, bitrate: 950910 kb/s Stream #0:0[0x1](und): Video: prores (HQ) (apch / 0x68637061), yuv422p10le(progressive), 3840x2160, 926658 kb/s, SAR 1:1 DAR 16:9, 29.97 fps, 29.97 tbr, 30k tbn (default) Metadata: creation_time : 2024-06-08T05:18:31.000000Z handler_name : Core Media Video vendor_id : FFMP timecode : 00:00:00:00 Stream #0:1[0x2](eng): Data: none (tmcd / 0x64636D74), 0 kb/s Metadata: creation_time : 2024-06-08T05:18:31.000000Z handler_name : Core Media Time Code timecode : 00:00:00:00 [out#0/mp4 @ 0x600001e58180] Codec AVOption b (set bitrate (in bits/s)) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream. Stream mapping: Stream #0:0 -> #0:0 (prores (native) -> h264 (libx264)) Press [q] to stop, [?] for help [graph 0 input from stream 0:0 @ 0x600001c40000] Value 234.000000 for parameter 'colorspace' out of range [0 - 14] [graph 0 input from stream 0:0 @ 0x600001c40000] Error setting option colorspace to value 234. [graph 0 input from stream 0:0 @ 0x600001c40000] Error applying generic filter options. [vf#0:0 @ 0x60000195c000] Error reinitializing filters! [vf#0:0 @ 0x60000195c000] Task finished with error code: -34 (Result too large) [vf#0:0 @ 0x60000195c000] Terminating thread with return code -34 (Result too large) [vost#0:0/libx264 @ 0x123e065a0] Could not open encoder before EOF [vost#0:0/libx264 @ 0x123e065a0] Task finished with error code: -22 (Invalid argument) [vost#0:0/libx264 @ 0x123e065a0] Terminating thread with return code -22 (Invalid argument) [out#0/mp4 @ 0x600001e58180] Nothing was written into output file, because at least one of its streams received no packets. frame= 0 fps=0.0 q=0.0 Lsize= 0KiB time=N/A bitrate=N/A speed=N/A Conversion failed!
Attachments (1)
Change History (3)
by , 6 months ago
Attachment: | test-video-trimmed2.txt added |
---|
comment:1 by , 6 months ago
Priority: | important → normal |
---|
comment:2 by , 6 months ago
hdrSize: 148 (0x0094) version: 0 (0x0000) creatorID: Lavc frameWidth: 3840 (0x0F00) frameHeight: 2160 (0x0870) chrominance factor: 2 (0x2) - (2 bits) - 4:2:2 reserved: 0 (0x0) - (2 bits) frame type: 0 (0x0) - (2 bits) - Progressive - reserved: 0 (0x0) - (2 bits) reserved: 0 (0x00) primaries: 234 (0xEA) - transf_func: 234 (0xEA) - colorMatrix: 234 (0xEA) - src_pix_fmt: 4 (0x4) - (4 bits) alpha_info: 0 (0x0) - (4 bits) reserved: 0 (0x00) reserved: 0 (0x0) - (6 bits) custom luma quant matrix present: Yes custom chroma quant matrix present: Yes QMatLuma: (64 bytes) QMatChroma: (64 bytes)
Note:
See TracTickets
for help on using tickets.
video file info