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 frame 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. I'll be grateful if someone can help me with this
Code:
ffmpeg version 7.0.1Code: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
Platform
mac
Output:
Code: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!
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays!
+ Reply to Thread
Results 1 to 2 of 2
Thread
-
-
Some changes in ffmpeg recently broke a bunch of things . Non standard colorimetery flags (or absence of) cause massive problems currently
A workaround is to use a prores bitstream filter , or older ffmpeg version until it gets fixed. Developers are aware, several related bug reports have been filed
Code:ffmpeg -bsf:v prores_metadata=color_primaries=bt709:color_trc=bt709:colorspace=bt709 -i testVideo.mov ...
https://www.ffmpeg.org/ffmpeg-bitstream-filters.html#prores_005fmetadata
Similar Threads
-
FFmpeg ProRes output -- no BT470GB flag
By rgr in forum Video ConversionReplies: 7Last Post: 22nd Oct 2024, 08:25 -
ffmpeg prores: Packet too small
By Gwar in forum Video ConversionReplies: 8Last Post: 2nd Feb 2023, 13:58 -
is ffmpeg prores the same as the prores you get with fc pro
By oduodui in forum Newbie / General discussionsReplies: 5Last Post: 17th Nov 2021, 08:51 -
MPC and VLC display video differently by colorspace and component range
By vice2 in forum Software PlayingReplies: 4Last Post: 9th Aug 2019, 15:31 -
ffmpeg 4.1.4 question regarding "limited color range" output file
By bokeron2020 in forum Newbie / General discussionsReplies: 12Last Post: 1st Aug 2019, 18:28