Discussion:
[FFmpeg-user] Animation issues - colors faded and washed out
Ron Barnes
2018-11-18 13:52:46 UTC
Permalink
All,

I am trying to compress an animated cartoon. When I view the before/after side by side there is a significant difference between the two. My input is vibrant with robust color and my output is faded with a washed out look.

Here is my ffmpeg command. If someone could, would you please recommend a setting that could preserve the quality as much as possible, while still compressing the file size?

ffmpeg -i "Animation Movie in.mkv" -c:v libx265 -preset medium -map 0 -c:s copy -c:a:0 libmp3lame -b:a:0 128k -reserve_index_space 1000k -crf 23 -s 3840x2160 -ac 2 -c:a aac -b:a 128k -metadata title="Movie Title" Animation Movie out.mkv

Thanks in advance,

-Ron

_______________________________________________
ffmpeg-user mailing list
ffmpeg-***@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-***@ffmpeg.org with subject "unsubscr
Kieran O Leary
2018-11-18 14:38:32 UTC
Permalink
Post by Ron Barnes
All,
I am trying to compress an animated cartoon. When I view the before/after
side by side there is a significant difference between the two.
With what playback software?

My input is vibrant with robust color and my output is faded with a washed
Post by Ron Barnes
out look.
Here is my ffmpeg command. If someone could, would you please recommend a
setting that could preserve the quality as much as possible, while still
compressing the file size?
You'll need to post the complete uncut terminal output including your
command line for us to tell you what might be the issue. I guess a few
seconds of the input sample too couldn't hurt.

Best,

Kieran
_______________________________________________
ffmpeg-user mailing list
ffmpeg-***@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-***@ffmpeg.org with subject "unsubscr
Ron Barnes
2018-11-18 16:29:47 UTC
Permalink
Hi,

Here is the log as an attachment.

Thanks,

-Ron

-----Original Message-----
From: ffmpeg-user <ffmpeg-user-***@ffmpeg.org> On Behalf Of Kieran O Leary
Sent: Sunday, November 18, 2018 9:39 AM
To: FFmpeg user questions <ffmpeg-***@ffmpeg.org>
Subject: Re: [FFmpeg-user] Animation issues - colors faded and washed out
Post by Ron Barnes
All,
I am trying to compress an animated cartoon. When I view the
before/after side by side there is a significant difference between the two.
With what playback software?

My input is vibrant with robust color and my output is faded with a washed
Post by Ron Barnes
out look.
Here is my ffmpeg command. If someone could, would you please
recommend a setting that could preserve the quality as much as
possible, while still compressing the file size?
You'll need to post the complete uncut terminal output including your command line for us to tell you what might be the issue. I guess a few seconds of the input sample too couldn't hurt.

Best,

Kieran
_______________________________________________
ffmpeg-user mailing list
ffmpeg-***@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email ffmpeg-user-***@ffmpeg.org with subject "unsubscribe".
Kieran O Leary
2018-11-18 17:15:42 UTC
Permalink
Post by Ron Barnes
Hi,
Here is the log as an attachment.
Cool. I don't know much about x265 and bt2020, but I think the issue
is that your input file is tagged with bt2020 colour metadata:

Stream #0:0: Video: hevc (Main 10), yuv420p10le(tv,
bt2020nc/bt2020/smpte2084), 3840x2160 [SAR 1:1 DAR 16:9], 23.98 fps,
23.98 tbr, 1k tbn, 23.98 tbc (default)

and ffmpeg is not writing this information to your output file:

Stream #0:0: Video: hevc (libx265), yuv420p10le, 3840x2160 [SAR 1:1
DAR 16:9], q=2-31, 23.98 fps, 1k tbn, 23.98 tbc (default)

So you could add these to your command and that should hopefully write
the correct colour metadata, which your player will then use in order
to be able to render the colours correctly:
-color_primaries bt2020 -color_trc smpte2084 -colorspace bt2020nc
-color_range tv

so you could try this command:

ffmpeg -i "Wreck_It_Ralph_Full_Bluray.mkv" -c:v libx265 -preset medium
-map 0 -c:s copy -c:a:0 libmp3lame -b:a:0 128k -reserve_index_space
1000k -crf 23 -s 3840x2160 -color_primaries bt2020 -color_trc
smpte2084 -colorspace bt2020nc -color_range tv -ac 2 -c:a aac -b:a
128k -metadata title="Wreck-it Ralph" Wreck-It_Ralph.mkv

Best,

Kieran O'Leary
_______________________________________________
ffmpeg-user mailing list
ffmpeg-***@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-***@ffmpeg.org with
Ron Barnes
2018-11-18 18:22:29 UTC
Permalink
Thank you!

I will start the process now! I know there is docs on this stuff and for the life of me, it's so confusing. Thank goodness for this mailing list!

-Ron

-----Original Message-----
From: ffmpeg-user <ffmpeg-user-***@ffmpeg.org> On Behalf Of Kieran O Leary
Sent: Sunday, November 18, 2018 12:16 PM
To: FFmpeg user questions <ffmpeg-***@ffmpeg.org>
Subject: Re: [FFmpeg-user] Animation issues - colors faded and washed out
Post by Ron Barnes
Hi,
Here is the log as an attachment.
Cool. I don't know much about x265 and bt2020, but I think the issue is that your input file is tagged with bt2020 colour metadata:

Stream #0:0: Video: hevc (Main 10), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x2160 [SAR 1:1 DAR 16:9], 23.98 fps,
23.98 tbr, 1k tbn, 23.98 tbc (default)

and ffmpeg is not writing this information to your output file:

Stream #0:0: Video: hevc (libx265), yuv420p10le, 3840x2160 [SAR 1:1 DAR 16:9], q=2-31, 23.98 fps, 1k tbn, 23.98 tbc (default)

So you could add these to your command and that should hopefully write the correct colour metadata, which your player will then use in order to be able to render the colours correctly:
-color_primaries bt2020 -color_trc smpte2084 -colorspace bt2020nc -color_range tv

so you could try this command:

ffmpeg -i "Wreck_It_Ralph_Full_Bluray.mkv" -c:v libx265 -preset medium -map 0 -c:s copy -c:a:0 libmp3lame -b:a:0 128k -reserve_index_space 1000k -crf 23 -s 3840x2160 -color_primaries bt2020 -color_trc
smpte2084 -colorspace bt2020nc -color_range tv -ac 2 -c:a aac -b:a 128k -metadata title="Wreck-it Ralph" Wreck-It_Ralph.mkv

Best,

Kieran O'Leary
_______________________________________________
ffmpeg-user mailing list
ffmpeg-***@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email ffmpeg-user-***@ffmpeg.org with subject "unsubscribe".

_______________________________________________
ffmpeg-user mailing list
ffmpeg-***@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-***@ffmpeg.org wi
Ron Barnes
2018-11-20 00:04:34 UTC
Permalink
Hello,

The movie is somewhat improved but the colors are still slightly off. Could it be its compressed too much?

-Ron

-----Original Message-----
From: ffmpeg-user <ffmpeg-user-***@ffmpeg.org> On Behalf Of Kieran O Leary
Sent: Sunday, November 18, 2018 12:16 PM
To: FFmpeg user questions <ffmpeg-***@ffmpeg.org>
Subject: Re: [FFmpeg-user] Animation issues - colors faded and washed out
Post by Ron Barnes
Hi,
Here is the log as an attachment.
Cool. I don't know much about x265 and bt2020, but I think the issue is that your input file is tagged with bt2020 colour metadata:

Stream #0:0: Video: hevc (Main 10), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x2160 [SAR 1:1 DAR 16:9], 23.98 fps,
23.98 tbr, 1k tbn, 23.98 tbc (default)

and ffmpeg is not writing this information to your output file:

Stream #0:0: Video: hevc (libx265), yuv420p10le, 3840x2160 [SAR 1:1 DAR 16:9], q=2-31, 23.98 fps, 1k tbn, 23.98 tbc (default)

So you could add these to your command and that should hopefully write the correct colour metadata, which your player will then use in order to be able to render the colours correctly:
-color_primaries bt2020 -color_trc smpte2084 -colorspace bt2020nc -color_range tv

so you could try this command:

ffmpeg -i "Wreck_It_Ralph_Full_Bluray.mkv" -c:v libx265 -preset medium -map 0 -c:s copy -c:a:0 libmp3lame -b:a:0 128k -reserve_index_space 1000k -crf 23 -s 3840x2160 -color_primaries bt2020 -color_trc
smpte2084 -colorspace bt2020nc -color_range tv -ac 2 -c:a aac -b:a 128k -metadata title="Wreck-it Ralph" Wreck-It_Ralph.mkv

Best,

Kieran O'Leary
_______________________________________________
ffmpeg-user mailing list
ffmpeg-***@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email ffmpeg-user-***@ffmpeg.org with subject "unsubscribe".

_______________________________________________
ffmpeg-user mailing list
ffmpeg-***@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-request@
Kieran O Leary
2018-11-20 00:38:27 UTC
Permalink
Post by Ron Barnes
Hello,
The movie is somewhat improved but the colors are still slightly off. Could it be its compressed too much?
Please post the complete terminal output along with your command line
that created your troublesome file when you have an issue. As has been
the case in this thread, the answer is often in the command
line/terminal output. Can you also post two screenshots of the same
frame, one that shows the correct representation and the other one
that is slightly off? Try lowering the crf value a few numbers to
improve the quality, but I don't think that crf 23 would mess up the
colours.

-K
_______________________________________________
ffmpeg-user mailing list
ffmpeg-***@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-***@ffmpeg.org with subject
Ron Barnes
2018-11-20 22:14:52 UTC
Permalink
Ah - ok - I will submit the job to run again over night (It takes about 8 hours to complete) and pull a few frames to include in my next email.

Thanks!

-Ron

-----Original Message-----
From: ffmpeg-user <ffmpeg-user-***@ffmpeg.org> On Behalf Of Kieran O Leary
Sent: Monday, November 19, 2018 7:38 PM
To: FFmpeg user questions <ffmpeg-***@ffmpeg.org>
Subject: Re: [FFmpeg-user] Animation issues - colors faded and washed out
Post by Ron Barnes
Hello,
The movie is somewhat improved but the colors are still slightly off. Could it be its compressed too much?
Please post the complete terminal output along with your command line that created your troublesome file when you have an issue. As has been the case in this thread, the answer is often in the command line/terminal output. Can you also post two screenshots of the same frame, one that shows the correct representation and the other one that is slightly off? Try lowering the crf value a few numbers to improve the quality, but I don't think that crf 23 would mess up the colours.

-K
_______________________________________________
ffmpeg-user mailing list
ffmpeg-***@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email ffmpeg-user-***@ffmpeg.org with subject "unsubscribe".

_______________________________________________
ffmpeg-user mailing list
ffmpeg-***@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-***@ffmpeg.org with subject "uns
Kieran O Leary
2018-11-20 22:16:41 UTC
Permalink
Post by Ron Barnes
Ah - ok - I will submit the job to run again over night (It takes about 8
hours to complete) and pull a few frames to include in my next email.
Why not just encode a few minutes? You can use -t 60 to just encode 60
seconds.. adjust it to whatever suits your testing..
_______________________________________________
ffmpeg-user mailing list
ffmpeg-***@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-***@ffmpeg.org with sub
Ron Barnes
2018-11-21 00:36:41 UTC
Permalink
Now you tell me - Just kidding! LOL!

-Ron

-----Original Message-----
From: ffmpeg-user <ffmpeg-user-***@ffmpeg.org> On Behalf Of Kieran O Leary
Sent: Tuesday, November 20, 2018 5:17 PM
To: FFmpeg user questions <ffmpeg-***@ffmpeg.org>
Subject: Re: [FFmpeg-user] Animation issues - colors faded and washed out
Post by Ron Barnes
Ah - ok - I will submit the job to run again over night (It takes
about 8 hours to complete) and pull a few frames to include in my next email.
Why not just encode a few minutes? You can use -t 60 to just encode 60 seconds.. adjust it to whatever suits your testing..
_______________________________________________
ffmpeg-user mailing list
ffmpeg-***@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email ffmpeg-user-***@ffmpeg.org with subject "unsubscribe".

_______________________________________________
ffmpeg-user mailing list
ffmpeg-***@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-***@ffmpeg.org with subject
Ron Barnes
2018-11-21 01:08:22 UTC
Permalink
I am having issues attaching the frames. Each frame is larger than the server will allow to be attached.
I will try and find an alternate route to get you the pictures.

-----Original Message-----
From: ffmpeg-user <ffmpeg-user-***@ffmpeg.org> On Behalf Of Kieran O Leary
Sent: Tuesday, November 20, 2018 5:17 PM
To: FFmpeg user questions <ffmpeg-***@ffmpeg.org>
Subject: Re: [FFmpeg-user] Animation issues - colors faded and washed out
Post by Ron Barnes
Ah - ok - I will submit the job to run again over night (It takes
about 8 hours to complete) and pull a few frames to include in my next email.
Why not just encode a few minutes? You can use -t 60 to just encode 60 seconds.. adjust it to whatever suits your testing..
_______________________________________________
ffmpeg-user mailing list
ffmpeg-***@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email ffmpeg-user-***@ffmpeg.org with subject "unsubscribe".

_______________________________________________
ffmpeg-user mailing list
ffmpeg-***@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-***@ffmpeg.org

Ron Barnes
2018-11-20 22:29:47 UTC
Permalink
Here is the log - I'll send the frame samples as soon as I can

-R

-----Original Message-----
From: ffmpeg-user <ffmpeg-user-***@ffmpeg.org> On Behalf Of Kieran O Leary
Sent: Monday, November 19, 2018 7:38 PM
To: FFmpeg user questions <ffmpeg-***@ffmpeg.org>
Subject: Re: [FFmpeg-user] Animation issues - colors faded and washed out
Post by Ron Barnes
Hello,
The movie is somewhat improved but the colors are still slightly off. Could it be its compressed too much?
Please post the complete terminal output along with your command line that created your troublesome file when you have an issue. As has been the case in this thread, the answer is often in the command line/terminal output. Can you also post two screenshots of the same frame, one that shows the correct representation and the other one that is slightly off? Try lowering the crf value a few numbers to improve the quality, but I don't think that crf 23 would mess up the colours.

-K
_______________________________________________
ffmpeg-user mailing list
ffmpeg-***@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email ffmpeg-user-***@ffmpeg.org with subject "unsubscribe".
Continue reading on narkive:
Loading...