[FFmpeg-user] discrepancies in filterchains with yuvj material

Dave Rice dave at dericed.com
Thu Sep 25 19:16:22 CEST 2014


On Sep 25, 2014, at 12:45 PM, Carl Eugen Hoyos <cehoyos at ag.or.at> wrote:

> Dave Rice <dave <at> dericed.com> writes:
> 
>> ffprobe -f lavfi movie=70D_lumarange.mov,signalstats 
>> -show_entries frame_tags=lavfi.signalstats.YMAX
>> ffprobe version 2.3.3 Copyright (c) 2007-2014 the FFmpeg developers
> 
> This looks old.

Only a few weeks old.

> The issue is apparently (difficult to say without 
> ffmpeg command and uncut console output) that 
> signalstats does not support the same colourspaces 
> as the histogram filter meaning scaling takes 
> place (this should be shown with a higher loglevel, 
> please believe me I was *very* unhappy when 
> showing the actually used filterchain was made 
> optional).

Here's a debug output. I made a new one frame long file to keep the output concise. From my reading of the output it looks like the the yuvj to yuv conversion doesn't occur until after signalstats is used.

ffprobe -v debug -f lavfi movie=70D_lumarange_1frame.mov,signalstats -show_entries frame_tags=lavfi.signalstats.YMAX
ffprobe version 2.3.3 Copyright (c) 2007-2014 the FFmpeg developers
  built on Sep 22 2014 21:58:44 with Apple LLVM version 6.0 (clang-600.0.51) (based on LLVM 3.5svn)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/2.3.3 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-avresample --enable-vda --cc=clang --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid --enable-libfreetype --enable-ffplay --enable-libopenjpeg --disable-decoder=jpeg2000 --extra-cflags='-I/usr/local/Cellar/openjpeg/1.5.1_1/include/openjpeg-1.5 '
  libavutil      52. 92.100 / 52. 92.100
  libavcodec     55. 69.100 / 55. 69.100
  libavformat    55. 48.100 / 55. 48.100
  libavdevice    55. 13.102 / 55. 13.102
  libavfilter     4. 11.100 /  4. 11.100
  libavresample   1.  3.  0 /  1.  3.  0
  libswscale      2.  6.100 /  2.  6.100
  libswresample   0. 19.100 /  0. 19.100
  libpostproc    52.  3.100 / 52.  3.100
Adding 'lavfi.signalstats.YMAX' to the entries to show in section 'frame_tags'
'frame_tags' matches section with unique name 'frame_tags'
detected 4 logical cores
[Parsed_movie_0 @ 0x7fd9e340cf80] Setting 'filename' to value '70D_lumarange_1frame.mov'
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fd9e3815e00] Format mov,mp4,m4a,3gp,3g2,mj2 probed with size=2048 and score=100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fd9e3815e00] ISO: File Type Major Brand: qt  
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fd9e3815e00] Before avformat_find_stream_info() pos: 80297 bytes read:66877 seeks:3
[h264 @ 0x7fd9e381e400] AVC: Consumed only 17 bytes instead of 20
[h264 @ 0x7fd9e381e400] AVC: Consumed only 5 bytes instead of 8
[h264 @ 0x7fd9e381e400] AVC: Consumed only 78909 bytes instead of 78912
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fd9e3815e00] All info found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fd9e3815e00] After avformat_find_stream_info() pos: 78956 bytes read:145797 seeks:4 frames:2
[h264 @ 0x7fd9e3827400] AVC: Consumed only 17 bytes instead of 20
[h264 @ 0x7fd9e3827400] AVC: Consumed only 5 bytes instead of 8
[Parsed_movie_0 @ 0x7fd9e340cf80] seek_point:0 format_name:(null) file_name:70D_lumarange_1frame.mov stream_index:-1
[auto-inserted scaler 0 @ 0x7fd9e3412360] w:iw h:ih flags:'bilinear' interl:0
[Parsed_signalstats_1 @ 0x7fd9e3411840] auto-inserting filter 'auto-inserted scaler 0' between the filter 'Parsed_movie_0' and the filter 'Parsed_signalstats_1'
[AVFilterGraph @ 0x7fd9e340cd00] query_formats: 3 queried, 1 merged, 1 already done, 0 delayed
[auto-inserted scaler 0 @ 0x7fd9e3412360] picking yuv420p out of 4 ref:yuvj420p alpha:0
[swscaler @ 0x7fd9e4000c00] deprecated pixel format used, make sure you did set range correctly
[auto-inserted scaler 0 @ 0x7fd9e3412360] w:1280 h:720 fmt:yuvj420p sar:1/1 -> w:1280 h:720 fmt:yuv420p sar:1/1 flags:0x2
[h264 @ 0x7fd9e3827400] AVC: Consumed only 78909 bytes instead of 78912
Input #0, lavfi, from 'movie=70D_lumarange_1frame.mov,signalstats':
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0:0, 1, 1/50000: Video: rawvideo (I420 / 0x30323449), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 1/50000, 50k tbr, 50k tbn, 50k tbc
Processing read interval id:0 start:N/A end:N/A
[FRAME]
TAG:lavfi.signalstats.YMAX=235
[/FRAME]
[AVIOContext @ 0x7fd9e340d220] Statistics: 145797 bytes read, 4 seeks

Best Regards,
Dave Rice


More information about the ffmpeg-user mailing list