[FFmpeg-user] How to pipe png output from FFmpeg into cavif.

bat guano batguano999 at hotmail.com
Mon Mar 15 19:28:34 EET 2021



________________________________
From: ffmpeg-user <ffmpeg-user-bounces at ffmpeg.org> on behalf of Carl Eugen Hoyos <ceffmpeg at gmail.com>
Sent: 15 March 2021 16:53
To: FFmpeg user questions <ffmpeg-user at ffmpeg.org>
Subject: [SOLVED] Re: [FFmpeg-user] How to pipe png output from FFmpeg into cavif.

-f rawvideo -vcodec png -
Excellent!
Thanks for your help.
:-)


This is the command that I have used...
ffmpeg -i infile.png -vf scale="424:-1" -f rawvideo -c:v png - | cavif -o outfile.avif -

==========================================
ffmpeg -i infile.png -vf scale="424:-1" -f rawvideo -c:v png - | cavif -o outfile.avif -
ffmpeg version N-101507-gb2d0826 Copyright (c) 2000-2021 the FFmpeg developers
  built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.12) 20160609
  configuration: --enable-gpl --enable-nonfree --enable-libfdk-aac --enable-libmp3lame --enable-libvorbis --enable-libwebp --enable-libx264
  libavutil      56. 68.100 / 56. 68.100
  libavcodec     58.131.100 / 58.131.100
  libavformat    58. 73.100 / 58. 73.100
  libavdevice    58. 12.100 / 58. 12.100
  libavfilter     7.109.100 /  7.109.100
  libswscale      5.  8.100 /  5.  8.100
  libswresample   3.  8.100 /  3.  8.100
  libpostproc    55.  8.100 / 55.  8.100
Input #0, png_pipe, from 'infile.png':
  Duration: N/A, bitrate: N/A
  Stream #0:0: Video: png, rgba(pc), 800x505 [SAR 2835:2835 DAR 160:101], 25 fps, 25 tbr, 25 tbn, 25 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (png (native) -> png (native))
Press [q] to stop, [?] for help
Output #0, rawvideo, to 'pipe:':
  Metadata:
    encoder         : Lavf58.73.100
  Stream #0:0: Video: png, rgba(pc, progressive), 424x268 [SAR 5360:5353 DAR 160:101], q=2-31, 200 kb/s, 25 fps, 25 tbn
    Metadata:
      encoder         : Lavc58.131.100 png
frame=    1 fps=0.0 q=-0.0 Lsize=      65kB time=00:00:00.04 bitrate=13235.0kbits/s speed=1.34x
video:65kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000000%
outfile.avif: 17KB (16668B color, 0B alpha, 188B HEIF)
=========================================


More information about the ffmpeg-user mailing list