Animation issues - colors faded and washed out

classic Classic list List threaded Threaded
12 messages Options
Reply | Threaded
Open this post in threaded view
|

Animation issues - colors faded and washed out

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.  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
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Animation issues - colors faded and washed out

Kieran O Leary
On Sun, 18 Nov 2018, 13:53 Ron Barnes <[hidden email] wrote:

> 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
> 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
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Animation issues - colors faded and washed out

Ron Barnes
Hi,

Here is the log as an attachment.

Thanks,

-Ron

-----Original Message-----
From: ffmpeg-user <[hidden email]> On Behalf Of Kieran O Leary
Sent: Sunday, November 18, 2018 9:39 AM
To: FFmpeg user questions <[hidden email]>
Subject: Re: [FFmpeg-user] Animation issues - colors faded and washed out

On Sun, 18 Nov 2018, 13:53 Ron Barnes <[hidden email] wrote:

> 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
> 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
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email [hidden email] with subject "unsubscribe".

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".

ffmpeg_log.txt (58K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Animation issues - colors faded and washed out

Kieran O Leary
On Sun, Nov 18, 2018 at 4:30 PM Ron Barnes <[hidden email]> wrote:
>
> 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
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Animation issues - colors faded and washed out

Ron Barnes
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 <[hidden email]> On Behalf Of Kieran O Leary
Sent: Sunday, November 18, 2018 12:16 PM
To: FFmpeg user questions <[hidden email]>
Subject: Re: [FFmpeg-user] Animation issues - colors faded and washed out

On Sun, Nov 18, 2018 at 4:30 PM Ron Barnes <[hidden email]> wrote:
>
> 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
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email [hidden email] with subject "unsubscribe".

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Animation issues - colors faded and washed out

Ron Barnes
In reply to this post by Kieran O Leary
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 <[hidden email]> On Behalf Of Kieran O Leary
Sent: Sunday, November 18, 2018 12:16 PM
To: FFmpeg user questions <[hidden email]>
Subject: Re: [FFmpeg-user] Animation issues - colors faded and washed out

On Sun, Nov 18, 2018 at 4:30 PM Ron Barnes <[hidden email]> wrote:
>
> 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
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email [hidden email] with subject "unsubscribe".

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Animation issues - colors faded and washed out

Kieran O Leary
On Tue, Nov 20, 2018 at 12:04 AM Ron Barnes <[hidden email]> wrote:
>
> 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
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Animation issues - colors faded and washed out

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.

Thanks!

-Ron

-----Original Message-----
From: ffmpeg-user <[hidden email]> On Behalf Of Kieran O Leary
Sent: Monday, November 19, 2018 7:38 PM
To: FFmpeg user questions <[hidden email]>
Subject: Re: [FFmpeg-user] Animation issues - colors faded and washed out

On Tue, Nov 20, 2018 at 12:04 AM Ron Barnes <[hidden email]> wrote:
>
> 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
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email [hidden email] with subject "unsubscribe".

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Animation issues - colors faded and washed out

Kieran O Leary
On Tue, 20 Nov 2018, 22:15 Ron Barnes <[hidden email] wrote:

> 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
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Animation issues - colors faded and washed out

Ron Barnes
In reply to this post by Kieran O Leary
Here is the log - I'll send the frame samples as soon as I can

-R

-----Original Message-----
From: ffmpeg-user <[hidden email]> On Behalf Of Kieran O Leary
Sent: Monday, November 19, 2018 7:38 PM
To: FFmpeg user questions <[hidden email]>
Subject: Re: [FFmpeg-user] Animation issues - colors faded and washed out

On Tue, Nov 20, 2018 at 12:04 AM Ron Barnes <[hidden email]> wrote:
>
> 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
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email [hidden email] with subject "unsubscribe".

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".

FFMPEG_Log.txt (62K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Animation issues - colors faded and washed out

Ron Barnes
In reply to this post by Kieran O Leary
Now you tell me - Just kidding!  LOL!

-Ron

-----Original Message-----
From: ffmpeg-user <[hidden email]> On Behalf Of Kieran O Leary
Sent: Tuesday, November 20, 2018 5:17 PM
To: FFmpeg user questions <[hidden email]>
Subject: Re: [FFmpeg-user] Animation issues - colors faded and washed out

On Tue, 20 Nov 2018, 22:15 Ron Barnes <[hidden email] wrote:

> 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
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email [hidden email] with subject "unsubscribe".

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Animation issues - colors faded and washed out

Ron Barnes
In reply to this post by Kieran O Leary
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 <[hidden email]> On Behalf Of Kieran O Leary
Sent: Tuesday, November 20, 2018 5:17 PM
To: FFmpeg user questions <[hidden email]>
Subject: Re: [FFmpeg-user] Animation issues - colors faded and washed out

On Tue, 20 Nov 2018, 22:15 Ron Barnes <[hidden email] wrote:

> 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
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email [hidden email] with subject "unsubscribe".

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".