[FFmpeg-user] zimg colorspace yuv -> rgb possible?
Andy Furniss
adf.lists at gmail.com
Tue Jan 26 21:59:17 CET 2016
Paul B Mahol wrote:
> On 1/26/16, Andy Furniss <adf.lists at gmail.com> wrote:
>> Paul B Mahol wrote:
>>> On 1/26/16, Andy Furniss <adf.lists at gmail.com> wrote:
>>
>>>> Maybe there is some way - or maybe not, I thought I would ask
>>>> before doing my usual ffmpeg game of trying many many
>>>> options/variants in the hope that eventually something will work
>>>> :-)
>>>
>>> ffmpeg -i yuv -vf zscale,format=gbrp out.png
>>
>> Thanks there is hope then - doesn't seem to work, but I am using git
>> z.img perhaps that's not best. I even managed to get it to assert at
>> one point trying random things :-).
>>
>> [Parsed_zscale_0 @ 0x2502720] w:720 h:576 fmt:yuv422p sar:64/45 -> w:720
>> h:576 fmt:gbrp sar:64/45
>> [Parsed_zscale_0 @ 0x2502720] code 3074: no path between colorspaces
>
> Can you post what you tried but full output not trimmed everything and leave
> the most useless info?
The example you gave gives that, I have started trying to add more
options but not found a working combination yet.
So for now no options =
ffmpeg -loglevel debug -i snk-422i-flags.y4m -vf zscale,format=gbrp
zimg-422.png
ffmpeg version N-78059-g2e31434 Copyright (c) 2000-2016 the FFmpeg
developers
built with gcc 5.3.0 (GCC)
configuration: --prefix=/usr --disable-doc --enable-gpl
--enable-libzimg --enable-libvpx --enable-libx265 --enable-libdcadec
--enable-libmp3lame --enable-libx264
libavutil 55. 15.100 / 55. 15.100
libavcodec 57. 22.101 / 57. 22.101
libavformat 57. 23.100 / 57. 23.100
libavdevice 57. 0.100 / 57. 0.100
libavfilter 6. 27.100 / 6. 27.100
libswscale 4. 0.100 / 4. 0.100
libswresample 2. 0.101 / 2. 0.101
libpostproc 54. 0.100 / 54. 0.100
Splitting the commandline.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging
level) with argument 'debug'.
Reading option '-i' ... matched as input file with argument
'snk-422i-flags.y4m'.
Reading option '-vf' ... matched as option 'vf' (set video filters) with
argument 'zscale,format=gbrp'.
Reading option 'zimg-422.png' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option loglevel (set logging level) with argument debug.
Successfully parsed a group of options.
Parsing a group of options: input file snk-422i-flags.y4m.
Successfully parsed a group of options.
Opening an input file: snk-422i-flags.y4m.
[yuv4mpegpipe @ 0x24fb0a0] Format yuv4mpegpipe probed with size=2048 and
score=100
[yuv4mpegpipe @ 0x24fb0a0] Before avformat_find_stream_info() pos: 52
bytes read:32768 seeks:0
[yuv4mpegpipe @ 0x24fb0a0] All info found
[yuv4mpegpipe @ 0x24fb0a0] After avformat_find_stream_info() pos: 829498
bytes read:829498 seeks:0 frames:1
Input #0, yuv4mpegpipe, from 'snk-422i-flags.y4m':
Duration: 00:00:00.04, start: 0.000000, bitrate: 165899 kb/s
Stream #0:0, 1, 1/25: Video: rawvideo, 1 reference frame (Y42B /
0x42323459), yuv422p, 720x576, 1/25, SAR 64:45 DAR 16:9, 25 fps, 25 tbr,
25 tbn, 25 tbc
Successfully opened the file.
Parsing a group of options: output file zimg-422.png.
Applying option vf (set video filters) with argument zscale,format=gbrp.
Successfully parsed a group of options.
Opening an output file: zimg-422.png.
Successfully opened the file.
detected 4 logical cores
[Parsed_format_1 @ 0x2502ec0] compat: called with args=[gbrp]
[Parsed_format_1 @ 0x2502ec0] Setting 'pix_fmts' to value 'gbrp'
[graph 0 input from stream 0:0 @ 0x2502d40] Setting 'video_size' to
value '720x576'
[graph 0 input from stream 0:0 @ 0x2502d40] Setting 'pix_fmt' to value '4'
[graph 0 input from stream 0:0 @ 0x2502d40] Setting 'time_base' to value
'1/25'
[graph 0 input from stream 0:0 @ 0x2502d40] Setting 'pixel_aspect' to
value '64/45'
[graph 0 input from stream 0:0 @ 0x2502d40] Setting 'sws_param' to value
'flags=2'
[graph 0 input from stream 0:0 @ 0x2502d40] Setting 'frame_rate' to
value '25/1'
[graph 0 input from stream 0:0 @ 0x2502d40] w:720 h:576 pixfmt:yuv422p
tb:1/25 fr:25/1 sar:64/45 sws_param:flags=2
[format @ 0x2503720] compat: called with
args=[rgb24|rgba|rgb48be|rgba64be|pal8|gray|ya8|gray16be|ya16be|monob]
[format @ 0x2503720] Setting 'pix_fmts' to value
'rgb24|rgba|rgb48be|rgba64be|pal8|gray|ya8|gray16be|ya16be|monob'
[auto-inserted scaler 0 @ 0x250c5a0] Setting 'flags' to value 'bicubic'
[auto-inserted scaler 0 @ 0x250c5a0] w:iw h:ih flags:'bicubic' interl:0
[format @ 0x2503720] auto-inserting filter 'auto-inserted scaler 0'
between the filter 'Parsed_format_1' and the filter 'format'
[AVFilterGraph @ 0x2501d40] query_formats: 5 queried, 3 merged, 1
already done, 0 delayed
[auto-inserted scaler 0 @ 0x250c5a0] picking rgb24 out of 9 ref:gbrp alpha:0
[Parsed_zscale_0 @ 0x2502720] w:720 h:576 fmt:yuv422p sar:64/45 -> w:720
h:576 fmt:gbrp sar:64/45
[swscaler @ 0x250db00] Forcing full internal H chroma due to input
having non subsampled chroma
[auto-inserted scaler 0 @ 0x250c5a0] w:720 h:576 fmt:gbrp sar:64/45 ->
w:720 h:576 fmt:rgb24 sar:64/45 flags:0x4
Output #0, image2, to 'zimg-422.png':
Metadata:
encoder : Lavf57.23.100
Stream #0:0, 0, 1/25: Video: png, 1 reference frame, rgb24, 720x576
[SAR 64:45 DAR 16:9], 1/25, q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc
Metadata:
encoder : Lavc57.22.101 png
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo (native) -> png (native))
Press [q] to stop, [?] for help
cur_dts is invalid (this is harmless if it occurs once at the start per
stream)
[Parsed_zscale_0 @ 0x2502720] w:720 h:576 fmt:yuv422p sar:64/45 -> w:720
h:576 fmt:gbrp sar:64/45
[Parsed_zscale_0 @ 0x2502720] code 3074: no path between colorspaces
cur_dts is invalid (this is harmless if it occurs once at the start per
stream)
Last message repeated 2 times
[output stream 0:0 @ 0x2503260] EOF on sink link output stream 0:0:default.
No more output streams to write to, finishing.
frame= 0 fps=0.0 q=0.0 Lsize=N/A time=00:00:00.00 bitrate=N/A speed=
0x
video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: unknown
Input file #0 (snk-422i-flags.y4m):
Input stream #0:0 (video): 1 packets read (829440 bytes); 1 frames
decoded;
Total: 1 packets (829440 bytes) demuxed
Output file #0 (zimg-422.png):
Output stream #0:0 (video): 0 frames encoded; 0 packets muxed (0 bytes);
Total: 0 packets (0 bytes) muxed
Output file is empty, nothing was encoded (check -ss / -t / -frames
parameters if used)
1 frames successfully decoded, 0 decoding errors
[AVIOContext @ 0x24fb780] Statistics: 829498 bytes read, 0 seeks
More information about the ffmpeg-user
mailing list