[FFmpeg-user] White is not pure white in overlay of PNG on JPEG image
Paul B Mahol
onemda at gmail.com
Wed Oct 9 17:21:29 EEST 2019
On 10/9/19, Jason Green <jason.green at threadsstyling.com> wrote:
> Ok so I get that png doesn't have a colourspace, so do I need to specify a
> colorspace for the input? Plus I need to specify the output I am guessing.
> I have tried outputting with various colorspace and color_range values but
> I'm having no luck. Do I need to just keep experimenting with these values?
colorspace in this context: jpg is yuv ang png is rgb.
> On Wed, 9 Oct 2019 at 12:19, Paul B Mahol <onemda at gmail.com> wrote:
>> On 10/9/19, Jason Green <jason.green at threadsstyling.com> wrote:
>> > I'm sorry to bother you all with this but I have been unable to resolve
>> > issue with my own research (which is really rare for me :) ).
>> > I am trying to overlay pngs of text that have been generated by another
>> > source onto jpg photos. I have simplified the command down to it's
>> > example and I am using public images so you can even try the command
>> > yourself.
>> > ffmpeg -y -i "
>> > https://asset-info-examples.s3-eu-west-1.amazonaws.com/white-text-bg.jpg
>> > -i "
>> > -movflags faststart -filter_complex "overlay=x=131:y=300" -q:v 6
>> > -f
>> > image2 -codec:v mjpeg test_remote.jpg
>> > The white text png has perfectly white pixels in the original, but in
>> > the
>> > final they are slightly grey. I have tried various options using format
>> > I can't manage to get it to work.
>> > Any suggestions would be appreciated.
>> Avoid implicit colorspace conversion, and do it explicitly.
>> > _______________________________________________
>> > ffmpeg-user mailing list
>> > ffmpeg-user at ffmpeg.org
>> > https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>> > To unsubscribe, visit link above, or email
>> > ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
>> ffmpeg-user mailing list
>> ffmpeg-user at ffmpeg.org
>> To unsubscribe, visit link above, or email
>> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
> *Jason Green*
> *Principal Developer Email: jason.green at threadsstyling.com
> <christina.s at threadsstyling.com> Mobile: +44 7462 752 694
> [image: Snapchat] <https://www.snapchat.com/add/threads_styling> [image:
> Instagram] <https://www.instagram.com/threadsstyling> [image: LinkedIn]
> This email and any files transmitted with it are confidential and intended
> solely for the use of the individual or entity to whom they are addressed.
> If you have received this email in error please notify the system manager.
> This message contains confidential information and is intended only for the
> individual named. If you are not the named addressee you should not
> disseminate, distribute or copy this e-mail. Please notify the sender
> immediately by e-mail if you have received this e-mail by mistake and
> delete this e-mail from your system. If you are not the intended recipient
> you are notified that disclosing, copying, distributing or taking any
> action in reliance on the contents of this information is strictly
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
More information about the ffmpeg-user