[FFmpeg-trac] #9007(undetermined:new): dash muxer sets invalid bit depth on codecs line with vp9_vaapi encoder

FFmpeg trac at avcodec.org
Tue Nov 24 23:49:12 EET 2020


#9007: dash muxer sets invalid bit depth on codecs line with vp9_vaapi encoder
-------------------------------------+-------------------------------------
             Reporter:  aphysically  |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
                                     |  undetermined
              Version:  git-master   |               Resolution:
             Keywords:  dash         |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by aphysically):

 Replying to [comment:1 kepstin]:
 > I have a suspicion that this is caused by the VPCC get_bit_depth
 function only seeing the hardware pixel format ("vaapi_vld" or so) rather
 than the real pixel format.
 >
 > I've attached a patch (untested - i don't have any hardware capable of
 encoding vp9) which should make the VPCC functions fail if a hardware
 pixel format is seen, which should in turn cause the dash encoder to fall
 back to the generic "vp9" string rather than the ISOBMFF-based codec
 parameter string. (It will print out a warning "Could not find VP9 profile
 and/or level" if this happens.)

 The patch works as you described, but the resulting encode gives mp4
 metadata decoding errors on Firefox and I wasn't able to play it with
 streamlink (utilizes ffmpeg). I was able to play it with streamlink before
 the patch, albeit with quality bad enough relative that I suspected
 something was up with my encoding settings. I'm going to have to look into
 this more before making any definite conclusions (particularly the vaapi
 vp9 encoder in general), but I'm happy to take any suggestions if you have
 them.

--
Ticket URL: <https://trac.ffmpeg.org/ticket/9007#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list