[FFmpeg-trac] #10256(ffmpeg:new): ffmpeg incorrectly classifies .yuv input format as "gsm"

FFmpeg trac at avcodec.org
Tue Mar 14 18:04:45 EET 2023

#10256: ffmpeg incorrectly classifies .yuv input format as "gsm"
             Reporter:  Martin       |                    Owner:  (none)
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:  ffmpeg
              Version:  unspecified  |               Resolution:
             Keywords:  gsm          |               Blocked By:
  rawvideo yuv .yuv                  |
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
Comment (by Balling):

 -pix_fmt is a parameter that is deprecated as a global parmater. There is
 another -pix_fmt option that is not deprecated that is inside -f rawvideo,
 that one is not deprecated. Also you managed to make a mistake in

 >no header

 Maybe you should use y4m.

 It does not work:

 ffplay.exe -f rawvideo -video_size 1882x1062 -i problem_file.yuv

 but what does work is

 ffplay.exe -f rawvideo -video_size  1882x742 -i problem_file.yuv

 this allows to see best vf extractplanes=y

 ffplay.exe -f rawvideo -video_size  1882x742 -i problem_file.yuv -vf

 but when looking into u and v plane we see those are not Cb, Cr data. We
 see it is yuv400p or gray.

 So we see do:

 ffplay.exe -f rawvideo -pixel_format gray -video_size 1882x1114 -i

 Now it looks good.
Ticket URL: <https://trac.ffmpeg.org/ticket/10256#comment:3>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker

More information about the FFmpeg-trac mailing list