[FFmpeg-trac] #1548(avcodec:new): avcodec ignores profile when using ffmpeg C API

FFmpeg trac at avcodec.org
Wed Jul 18 15:40:36 CEST 2012


#1548: avcodec ignores profile when using ffmpeg C API
-------------------------------------+-------------------------------------
             Reporter:  TheSHEEEP    |                     Type:  defect
               Status:  new          |                 Priority:  important
            Component:  avcodec      |                  Version:  0.10.4
             Keywords:  Profile,     |               Blocked By:
  h264, Baseline                     |  Reproduced by developer:  0
             Blocking:               |
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 I first posted this on stackoverflow as I thought this was my mistake
 (maybe it is), but was encouraged that this might be a bug in ffmpeg.

 I am encoding an h264 mp4 in code using the latest ffmpeg libraries on
 Windows. I definitely set the profile property of the AVCodecContext to
 FF_PROFILE_H264_CONSTRAINED_BASELINE.

 However, no matter what I set the profile property to, the video always
 ends up using the "High" profile instead of "Constrained Baseline".

 As the command line "-profile:v baseline" works, this is either a bug in
 the libraries. Or something else must be set from the user, in addition to
 the profile. In the latter case, this must definitely be communicated to
 people using this. Like me ;)

 See the link for more info:
 http://stackoverflow.com/questions/11537830/ffmpeg-api-h264-encoded-video-
 does-not-play-on-all-platforms

 I have also attached the *.cpp that includes the functions used to encode
 the video.

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1548>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list