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. |
4th December 2024, 23:31 | #1 | Link |
Registered User
Join Date: Apr 2024
Posts: 303
|
Shutter Encoder 709 Colors
Here is a sample of my video without any colorimetry flags:
https://www.mediafire.com/file/0r160...video.mkv/file Now use Shutter Encoder make png files and/or an apng out of it. Do they have the 709 colors or the 601 ones? Did they have the gAMA and cHRM tag issues? You can get Shutter Encoder here: https://www.shutterencoder.com/ Last edited by jay123210599; 5th December 2024 at 22:29. |
5th December 2024, 00:35 | #3 | Link |
Registered User
Join Date: Aug 2024
Posts: 329
|
Code:
"C:\Users\a\Desktop\Shutter Encoder 18.6 Windows 64bits\Library\ffmpeg.exe" -strict -2 -hide_banner -threads 0 -i "C:\Users\a\Desktop\sample tagless video.mkv" -compression_level 0 -sws_flags bicubic -an -y "C:\Users\a\Desktop\sample tagless video_%06d.png" |
5th December 2024, 23:29 | #5 | Link | |
Registered User
Join Date: Apr 2024
Posts: 303
|
Quote:
|
|
9th December 2024, 14:08 | #6 | Link | |
Registered User
Join Date: Aug 2024
Posts: 329
|
Quote:
Since it calls FFmpeg CLI tool the same "limitation" applies. |
|
9th December 2024, 15:33 | #8 | Link | |
Registered User
Join Date: Sep 2007
Posts: 5,599
|
Quote:
To recap: for unflagged colorimetry input files, it uses Rec601 for the YUV=>RGB conversion. No PNG chunks written in that case. See this thread (again) http://forum.doom9.org/showthread.php?t=185921 I tested Shutter 18.6 - behaviour is the same as default ffmpeg . As you would expect for that command line. There is no other "logic" used in Shutter. |
|
9th December 2024, 16:33 | #9 | Link | |
Registered User
Join Date: Apr 2024
Posts: 303
|
Quote:
Code:
-map 0 -c copy -bsf:v h264_metadata=colour_primaries=1:transfer_characteristics=1:matrix_coefficients=1 https://www.mediafire.com/file/jsydt...video.mkv/file |
|
9th December 2024, 16:39 | #10 | Link | ||
Registered User
Join Date: Sep 2007
Posts: 5,599
|
Quote:
If you add colorimetry tags to the input file, the output file with have PNG chunks and colors will appear incorrect in many programs, including browsers See this thread (again). You questions were already asked, multiple answers and options give http://forum.doom9.org/showthread.php?t=185921 Quote:
In case you've forgotten what you asked 2 weeks ago, and the many answers already provided, use search http://forum.doom9.org/forum-rules.htm Code:
1a) Use the search function before posting. Chances are your question has already been answered. |
||
9th December 2024, 17:03 | #11 | Link | |
Registered User
Join Date: Apr 2024
Posts: 303
|
Quote:
Also, can I can correctly assume that the PNG chunks apply to APNG as well, and for unflagged sources, ffmpeg and Shutter Encoder will use 601 by default for all formats like JPG and GIF, and even video formats like MP4 and MKV? |
|
9th December 2024, 17:17 | #12 | Link | ||
Registered User
Join Date: Sep 2007
Posts: 5,599
|
Quote:
See this thread http://forum.doom9.org/showthread.php?t=185921&page=2 Quote:
http://forum.doom9.org/showthread.php?t=185921 Again, 601 by default for YUV to RGB conversions. But not all your formats are necessarily RGB To remind you, JPG usually does not use RGB, but YUV and full range 601 as per the spec JPEG spec, and GIF uses PAL8 See this thread, post 15 http://forum.doom9.org/showthread.php?t=185921 Mp4 and MKV are container formats. So it would depend on what you used inside the MP4 and MKV |
||
9th December 2024, 17:41 | #13 | Link | |
Registered User
Join Date: Aug 2024
Posts: 329
|
Quote:
|
|
9th December 2024, 21:41 | #14 | Link |
Registered User
Join Date: Apr 2024
Posts: 303
|
In that case, I'm just going to add flags to my videos and convert it to lossless animated WEBP with the format being bgra, because I know by now that without flags it won't get the 709 colors I want.
Then I'll extract the frames from the WEBP using IrfanView as PNGs where it won't have any tag issues and display the right colors. |
9th December 2024, 21:58 | #15 | Link | |
Registered User
Join Date: Sep 2007
Posts: 5,599
|
Quote:
Or you could use the zscale filter as suggested in that thread. It would be much faster, no intermediate files or extra HDD space (hard drives do break from usage eventually). 1 step instead of 3 |
|
9th December 2024, 22:23 | #16 | Link | |
Registered User
Join Date: Sep 2007
Posts: 5,599
|
Quote:
Code:
[libwebp_anim @ 000000b84c414100] Using libwebp for YUV-to-RGB conversion. You may want to consider passing in RGB instead for lossless encoding. |
|
10th December 2024, 00:53 | #17 | Link | |
Registered User
Join Date: Apr 2024
Posts: 303
|
Quote:
Code:
ffmpeg -i video.mkv -vf format=bgra -lossless 1 output.webp |
|
10th December 2024, 01:28 | #18 | Link | |
Registered User
Join Date: Sep 2007
Posts: 5,599
|
Quote:
You decide what's best for you, but IMO it's pointless to use "lossless" if you incur avoidable rounding errors |
|
10th December 2024, 03:12 | #19 | Link | |
Registered User
Join Date: Apr 2024
Posts: 303
|
Quote:
|
|
10th December 2024, 03:47 | #20 | Link |
Registered User
Join Date: Sep 2007
Posts: 5,599
|
Either use the sws accurate flags, or zscale. It was already mentioned and instructions given in yes... that same thread
But if you're using ffmpeg anyways to export webp, then irfanview - you might as well export PNG or apng once directly and correctly from ffmpeg - and skip the adding metadata , webp, and irfanview steps. It was already mentioned... yes in that same thread, the commands to use. No use repeating everything here again |
Tags |
colorspace, ffmpeg gui, image-quality |
Thread Tools | Search this Thread |
Display Modes | |
|
|