[FFmpeg-user] PNG images to avi - transparency issue

Tom Sparks tomasparks.ts at gmail.com
Wed Dec 23 21:25:07 EET 2020


On 23/12/2020, Gopi Nath <tagopinath at gmail.com> wrote:
> Hello,
>
> i am trying to convert png images to avi which is working fine, but the
> video is not showing the background transparency (png images has)
>
> this is what my statement
> ffmpeg -r 30 -start_number 1 -f image2 -i "imagespath" -y -pix_fmt yuv420p
> -q:v 1 "output.avi"
>
> after reading from forum, i tried adding png codec
> ffmpeg -r 30 -start_number 1 -f image2 -i "imagespath" -vcodec png -y
> -pix_fmt yuv420p -q:v 1 "output.avi"
>
> then it shows the error
> Incompatible pixel format 'yuv420p' for codec 'png', auto-selecting format
> 'rgb24'
>
> so, i removed pix_fmt, then it creates video with transparency, but i am
> able to open this video ONLY in VLC player, not any other players supported
> this codec
> ffmpeg -r 30 -start_number 1 -f image2 -i "imagespath" -vcodec png -y -q:v
> 1 "output.avi"
>
> please suggest me any working method.

first update your version of ffmpeg to latest

PNG image inside avi/mov are not support in all plays, it is commonly
intermediate format

what are trying to do?


>
> Regards,
> Gopi.
> _______________________________________________
> 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".


More information about the ffmpeg-user mailing list