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.

 

Go Back   Doom9's Forum > Announcements and Chat > General Discussion

Reply
 
Thread Tools Search this Thread Display Modes
Old 12th January 2025, 01:14   #1  |  Link
jay123210599
Registered User
 
Join Date: Apr 2024
Posts: 393
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.
How do I fix this?
jay123210599 is offline   Reply With Quote
Old 12th January 2025, 02:10   #2  |  Link
Z2697
Registered User
 
Join Date: Aug 2024
Posts: 525
Contribute to FFmpeg.
Z2697 is offline   Reply With Quote
Old 12th January 2025, 02:26   #3  |  Link
jay123210599
Registered User
 
Join Date: Apr 2024
Posts: 393
Quote:
Originally Posted by Z2697 View Post
Contribute to FFmpeg.
I'm serious.
jay123210599 is offline   Reply With Quote
Old 12th January 2025, 02:50   #4  |  Link
huhn
Registered User
 
Join Date: Oct 2012
Posts: 8,392
there is no information to work with...
you try to use hardware acceleration which the api can't do.
huhn is online now   Reply With Quote
Old 12th January 2025, 04:27   #5  |  Link
Z2697
Registered User
 
Join Date: Aug 2024
Posts: 525
Quote:
Originally Posted by jay123210599 View Post
I'm serious.
I'm also serious.
Z2697 is offline   Reply With Quote
Old 12th January 2025, 04:30   #6  |  Link
Z2697
Registered User
 
Join Date: Aug 2024
Posts: 525
Quote:
Originally Posted by huhn View Post
there is no information to work with...
you try to use hardware acceleration which the api can't do.
If you mean GPU acceleration that's not actually the case here.
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.
Z2697 is offline   Reply With Quote
Old 12th January 2025, 07:17   #7  |  Link
GeoffreyA
Registered User
 
Join Date: Jun 2024
Location: South Africa
Posts: 346
Quote:
Originally Posted by Z2697 View Post
If you mean GPU acceleration that's not actually the case here.
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.
Yes. Probably, it's just the plain C code, and that specific path hasn't got an SIMD version.
GeoffreyA is offline   Reply With Quote
Old 12th January 2025, 07:18   #8  |  Link
GeoffreyA
Registered User
 
Join Date: Jun 2024
Location: South Africa
Posts: 346
Quote:
Originally Posted by jay123210599 View Post
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.
How do I fix this?
Is the result all right?
GeoffreyA is offline   Reply With Quote
Old 12th January 2025, 13:10   #9  |  Link
jay123210599
Registered User
 
Join Date: Apr 2024
Posts: 393
Here's the command I used:
Code:
ffmpeg -i yuv_video.mkv output.gif
Here's the information of my video:
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
jay123210599 is offline   Reply With Quote
Old 12th January 2025, 14:00   #10  |  Link
GeoffreyA
Registered User
 
Join Date: Jun 2024
Location: South Africa
Posts: 346
Adding the accurate-rounding flags removes the warning.

Code:
-sws_flags accurate_rnd+full_chroma_int
As noted a couple of weeks ago, a palette can be used for better quality, but it takes more time.

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"
GeoffreyA is offline   Reply With Quote
Reply

Tags
ffmpeg, yuv420p

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:18.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.