#11255: H.264 encoding with -profile:v baseline or -profile:v main fails
-------------------------------------+-------------------------------------
             Reporter:  Jeremy       |                     Type:  defect
  Hopkinson                          |
               Status:  new          |                 Priority:  normal
            Component:  ffmpeg       |                  Version:
                                     |  unspecified
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Summary of the bug:
 Trying to re-encode a video to play on an older TV and the video isn't
 being decoded with the high default, which is why I'm reaching back to
 more constrained profiles.

 H.264 Video Encoding Guide states that:

 "The -profile:v option limits the output to a specific H.264 profile. You
 usually do not need to use this option and the recommendation is to omit
 setting the profile which will allow x264 to automatically select the
 appropriate profile"

 yet this profile option does not appear to be limiting it, and x264 is
 nevertheless automatically selecting an inappropriate bit depth.

 What am I missing?

 x264 [error]: main profile doesn't support a bit depth of 10
 [libx264 @ 0000019ccf0a0c40] Error setting profile main.
 [libx264 @ 0000019ccf0a0c40] Possible profiles: baseline main high high10
 high422 high444
 [vost#0:0/libx264 @ 0000019ccf09f400] [enc:libx264 @ 0000019ccf0a0640]
 Error while opening encoder - maybe incorrect parameters such as bit_rate,
 rate, width or height.
 [vf#0:0 @ 0000019ccf09f8c0] Error sending frames to consumers: Invalid
 argument
 [vf#0:0 @ 0000019ccf09f8c0] Task finished with error code: -22 (Invalid
 argument)
 [vf#0:0 @ 0000019ccf09f8c0] Terminating thread with return code -22
 (Invalid argument)
 [vost#0:0/libx264 @ 0000019ccf09f400] [enc:libx264 @ 0000019ccf0a0640]
 Could not open encoder before EOF
 [vost#0:0/libx264 @ 0000019ccf09f400] Task finished with error code: -22
 (Invalid argument)
 [vost#0:0/libx264 @ 0000019ccf09f400] Terminating thread with return code
 -22 (Invalid argument)
 [out#0/mp4 @ 0000019ccf035000] Nothing was written into output file,
 because at least one of its streams received no packets.

 How to reproduce:
 {{{
 % ffmpeg -i input -c:v libx264 -crf 18 -preset slow -tune animation
 -profile:v main -c:a copy output

 ffmpeg version: Unsure, from file "ffmpeg-master-latest-win64-gpl.zip,"
 latest from BtbN
 built on 2024-10-20 13:01
 }}}
 Patches should be submitted to the ffmpeg-devel mailing list and not this
 bug tracker.
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/11255>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
_______________________________________________
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-trac

To unsubscribe, visit link above, or email
ffmpeg-trac-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to