Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. Domains: forum.doom9.org / forum.doom9.net / forum.doom9.se |
|
|
#1 | Link |
|
Registered User
Join Date: Apr 2024
Posts: 501
|
Video to Gif Error
Whenever I use ffmpeg to try to convert a yuv420p video to gif, I get this:
Code:
[swscaler @ 0000019797c785c0] [swscaler @ 00000197921477c0] No accelerated colorspace conversion found from yuv420p to bgr8. [swscaler @ 0000019797c785c0] [swscaler @ 000001979215e7c0] No accelerated colorspace conversion found from yuv420p to bgr8. [swscaler @ 0000019797c785c0] [swscaler @ 000001979216ef00] No accelerated colorspace conversion found from yuv420p to bgr8. [swscaler @ 0000019797c785c0] [swscaler @ 000001979217f600] No accelerated colorspace conversion found from yuv420p to bgr8. [swscaler @ 0000019797c785c0] [swscaler @ 000001979264be80] No accelerated colorspace conversion found from yuv420p to bgr8. [swscaler @ 0000019797c785c0] [swscaler @ 0000019792658e40] No accelerated colorspace conversion found from yuv420p to bgr8. [swscaler @ 0000019797c785c0] [swscaler @ 0000019792665e40] No accelerated colorspace conversion found from yuv420p to bgr8. [swscaler @ 0000019797c785c0] [swscaler @ 0000019792672e00] No accelerated colorspace conversion found from yuv420p to bgr8. [swscaler @ 0000019797c785c0] [swscaler @ 0000019792698500] No accelerated colorspace conversion found from yuv420p to bgr8. [swscaler @ 0000019797c785c0] [swscaler @ 0000019792d600c0] No accelerated colorspace conversion found from yuv420p to bgr8. [swscaler @ 0000019797c785c0] [swscaler @ 0000019792d6d080] No accelerated colorspace conversion found from yuv420p to bgr8. [swscaler @ 0000019797c785c0] [swscaler @ 0000019792dfbbc0] No accelerated colorspace conversion found from yuv420p to bgr8. [swscaler @ 0000019797c785c0] [swscaler @ 0000019792e12f80] No accelerated colorspace conversion found from yuv420p to bgr8. |
|
|
|
|
|
#6 | Link | |
|
Registered User
Join Date: Aug 2024
Location: Between my two ears
Posts: 940
|
Quote:
I didn't look into the specific piece of code which triggered this warning but I think what it actually means is instruction sets optimization / acceleration. The warning is because the optimization / acceleration is not implemented. Last edited by Z2697; 12th January 2025 at 04:35. |
|
|
|
|
|
|
#7 | Link | |
|
Donor
![]() Join Date: Jun 2024
Location: South Africa
Posts: 659
|
Quote:
|
|
|
|
|
|
|
#8 | Link | |
|
Donor
![]() Join Date: Jun 2024
Location: South Africa
Posts: 659
|
Quote:
|
|
|
|
|
|
|
#9 | Link |
|
Registered User
Join Date: Apr 2024
Posts: 501
|
Here's the command I used:
Code:
ffmpeg -i yuv_video.mkv output.gif Code:
Format : AVC Format/Info : Advanced Video Codec Format profile : High 4:4:4 Predictive@L4 Format settings : CABAC / 3 Ref Frames Format settings, CABAC : Yes Format settings, Reference frames : 3 frames Codec ID : V_MPEG4/ISO/AVC Duration : 8 s 13 ms Bit rate : 92.5 Mb/s Width : 1 920 pixels Height : 1 080 pixels Display aspect ratio : 16:9 Frame rate mode : Constant Frame rate : 23.976 (23976/1000) FPS Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Bits/(Pixel*Frame) : 1.860 Stream size : 88.3 MiB (98%) Writing library : x264 core 157 r2935M 545de2f Encoding settings : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x1:0x111 / me=hex / subme=7 / psy=0 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=0 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=0 / threads=18 / lookahead_threads=3 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=0 / weightp=2 / keyint=250 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc=cqp / mbtree=0 / qp=0 Default : No Forced : No Color range : Limited Matrix coefficients : BT.709 |
|
|
|
|
|
#10 | Link |
|
Donor
![]() Join Date: Jun 2024
Location: South Africa
Posts: 659
|
Adding the accurate-rounding flags removes the warning.
Code:
-sws_flags accurate_rnd+full_chroma_int https://forum.doom9.org/showthread.p...27#post2011227 Code:
ffmpeg -colorspace bt709 -i INPUT -vf palettegen -sws_flags accurate_rnd+full_chroma_int "palette.png" ffmpeg -colorspace bt709 -i INPUT -i "palette.png" -lavfi paletteuse -sws_flags accurate_rnd+full_chroma_int "OUTPUT.gif" |
|
|
|
![]() |
| Tags |
| ffmpeg, yuv420p |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|