I'm trying to create a video from PNG frames that use transparency, and I'm
trying to output with transparency in the FLV format for later processing.
rgba is listed as a pix_fmt for FLV, but using it (or yuva420p) fails
saying the format is incompatible.
I need to output with transparency because some regions of the images were
"deleted" by simply applying full transparency, and when transparency is
ignored these regions show up again.
I couldn't find up a similar use case in Google, sorry if this was already
asked.
avconv version:
avconv version 0.8.10-4:0.8.10-0ubuntu0.12.04.1, Copyright (c) 2000-2013
the Libav developers
built on Feb 6 2014 20:56:59 with gcc 4.6.3
avconv 0.8.10-4:0.8.10-0ubuntu0.12.04.1
libavutil 51. 22. 2 / 51. 22. 2
libavcodec 53. 35. 0 / 53. 35. 0
libavformat 53. 21. 1 / 53. 21. 1
libavdevice 53. 2. 0 / 53. 2. 0
libavfilter 2. 15. 0 / 2. 15. 0
libswscale 2. 1. 0 / 2. 1. 0
libpostproc 52. 0. 0 / 52. 0. 0
Command line and output:
$ avconv -r 10 -pix_fmt yuva420p -i brick%03d.png out.flv
avconv version 0.8.10-4:0.8.10-0ubuntu0.12.04.1, Copyright (c) 2000-2013
the Libav developers
built on Feb 6 2014 20:56:59 with gcc 4.6.3
Input #0, image2, from 'brick%03d.png':
Duration: 00:00:01.10, start: 0.000000, bitrate: N/A
Stream #0.0: Video: png, bgra, 320x240, 10 fps, 10 tbr, 10 tbn, 10 tbc
Incompatible pixel format 'bgra' for codec 'flv', auto-selecting format
'yuv420p'
[buffer @ 0x1c51880] w:320 h:240 pixfmt:bgra
[avsink @ 0x1c532e0] auto-inserting filter 'auto-inserted scaler 0' between
the filter 'src' and the filter 'out'
[scale @ 0x1c53a00] w:320 h:240 fmt:bgra -> w:320 h:240 fmt:yuv420p
flags:0x4
Output #0, flv, to 'out.flv':
Metadata:
encoder : Lavf53.21.1
Stream #0.0: Video: flv, yuv420p, 320x240, q=2-31, 200 kb/s, 1k tbn, 10
tbc
Stream mapping:
Stream #0:0 -> #0:0 (png -> flv)
Press ctrl-c to stop encoding
frame= 11 fps= 0 q=2.1 Lsize= 49kB time=1.10 bitrate= 362.1kbits/s
video:48kB audio:0kB global headers:0kB muxing overhead 0.781266%
Pixel formats for FLV:
$ avconv -pix_fmts flv
avconv version 0.8.10-4:0.8.10-0ubuntu0.12.04.1, Copyright (c) 2000-2013
the Libav developers
built on Feb 6 2014 20:56:59 with gcc 4.6.3
Pixel formats:
I.... = Supported Input format for conversion
.O... = Supported Output format for conversion
..H.. = Hardware accelerated format
...P. = Paletted format
....B = Bitstream format
FLAGS NAME NB_COMPONENTS BITS_PER_PIXEL
-----
IO... yuv420p 3 12
IO... yuyv422 3 16
IO... rgb24 3 24
IO... bgr24 3 24
IO... yuv422p 3 16
IO... yuv444p 3 24
IO... yuv410p 3 9
IO... yuv411p 3 12
IO... gray 1 8
IO..B monow 1 1
IO..B monob 1 1
I..P. pal8 1 8
IO... yuvj420p 3 12
IO... yuvj422p 3 16
IO... yuvj444p 3 24
..H.. xvmcmc 0 0
..H.. xvmcidct 0 0
IO... uyvy422 3 16
..... uyyvyy411 3 12
IO.P. bgr8 3 8
.O..B bgr4 3 4
IO.P. bgr4_byte 3 4
IO.P. rgb8 3 8
.O..B rgb4 3 4
IO.P. rgb4_byte 3 4
IO... nv12 3 12
IO... nv21 3 12
IO... argb 4 32
IO... rgba 4 32
IO... abgr 4 32
IO... bgra 4 32
IO... gray16be 1 16
IO... gray16le 1 16
IO... yuv440p 3 16
IO... yuvj440p 3 16
IO... yuva420p 4 20
..H.. vdpau_h264 0 0
..H.. vdpau_mpeg1 0 0
..H.. vdpau_mpeg2 0 0
..H.. vdpau_wmv3 0 0
..H.. vdpau_vc1 0 0
IO... rgb48be 3 48
IO... rgb48le 3 48
IO... rgb565be 3 16
IO... rgb565le 3 16
IO... rgb555be 3 15
IO... rgb555le 3 15
IO... bgr565be 3 16
IO... bgr565le 3 16
IO... bgr555be 3 15
IO... bgr555le 3 15
..H.. vaapi_moco 0 0
..H.. vaapi_idct 0 0
..H.. vaapi_vld 0 0
IO... yuv420p16le 3 24
IO... yuv420p16be 3 24
IO... yuv422p16le 3 32
IO... yuv422p16be 3 32
IO... yuv444p16le 3 48
IO... yuv444p16be 3 48
..H.. vdpau_mpeg4 0 0
..H.. dxva2_vld 0 0
IO... rgb444le 3 12
IO... rgb444be 3 12
IO... bgr444le 3 12
IO... bgr444be 3 12
I.... y400a 2 16
IO... bgr48be 3 48
IO... bgr48le 3 48
IO... yuv420p9be 3 13
IO... yuv420p9le 3 13
IO... yuv420p10be 3 15
IO... yuv420p10le 3 15
IO... yuv422p10be 3 20
IO... yuv422p10le 3 20
IO... yuv444p9be 3 27
IO... yuv444p9le 3 27
IO... yuv444p10be 3 30
IO... yuv444p10le 3 30
IO... yuv422p9be 3 18
IO... yuv422p9le 3 18
..H.. vda_vld 0 0
I.... gbrp 3 24
I.... gbrp9be 3 27
I.... gbrp9le 3 27
I.... gbrp10be 3 30
I.... gbrp10le 3 30
I.... gbrp16be 3 48
I.... gbrp16le 3 48
_______________________________________________
libav-tools mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-tools