Opened 8 years ago

Closed 8 years ago

#5181 closed defect (needs_more_info)

Video component range (mpeg/pc) not tracked properly between filters

Reported by: Misaki Owned by:
Priority: normal Component: undetermined
Version: 2.7.3 Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

I apologize if some aspect of this report is done wrong.

time nice ffmpeg -i "$in" $enc -vf trim=end_frame=1,scale=in_range=mpeg,format=yuv444p,crop=1890,showinfo,scale=1624:-1,showinfo,format=yuv420p,showinfo,crop=1600,showinfo -an -f null -

input is yuvj420p (pc range). First scale leaves video unchanged. Second scale reduces the range, that is it assumes the video is pc range. (Possibly documented before regarding grayscale to yuv conversions for alphamerge, when input was yuvj?)

same result, just more showinfos (and out_range=mpeg)

time nice ffmpeg -i "$in" $enc -vf trim=end_frame=1,showinfo,scale=in_range=mpeg:out_range=mpeg,format=yuv444p,crop=1890,showinfo,scale=1624:-1,showinfo,format=yuv420p,showinfo,crop=1600,showinfo -an -f null -

Fixed by using in_range=mpeg on second scale too.

The relevant portions of -v 9 -loglevel 99:

[Parsed_scale_2 @ 0xa26620] w:1920 h:1080 fmt:yuvj420p sar:0/1 -> w:1920 h:1080 fmt:yuv444p sar:0/1 flags:0x4
[...]
[Parsed_scale_6 @ 0xa28900] w:1890 h:1080 fmt:yuv444p sar:0/1 -> w:1624 h:928 fmt:yuv420p sar:0/1 flags:0x4

Attachments (1)

[MMD] Touhou 十六夜咲夜 PinkCat [20160106H5hQPvxN]-sample.flv (2.2 MB ) - added by Misaki 8 years ago.
yuvj example file, any should do

Change History (3)

by Misaki, 8 years ago

yuvj example file, any should do

comment:1 by Carl Eugen Hoyos, 8 years ago

Please test current FFmpeg git head and please provide the command line that allows to reproduce the issue together with the complete, uncut console output to make this a valid ticket.

comment:2 by Carl Eugen Hoyos, 8 years ago

Resolution: needs_more_info
Status: newclosed

Please reopen this ticket if you can provide the missing information.

Note: See TracTickets for help on using tickets.