[FFmpeg-trac] #9176(avcodec:new): H.264 data fields not populated when threaded

FFmpeg trac at avcodec.org
Fri Apr 9 15:35:04 EEST 2021


#9176: H.264 data fields not populated when threaded
-------------------------------------+-------------------------------------
             Reporter:  colekas      |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:  avcodec      |                  Version:  git-
             Keywords:  avc dash     |  master
  h264                               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Summary of the bug: H.264 context members are not being populated when ran
 in a threaded manner. When ran single threaded they are being populated.
 May be related to just DASH and AVC related fields.

 How to reproduce:
 {{{
 ffprobe -hide_banner -threads 2  -select_streams v:0 -show_entries
 program_stream=is_avc,nal_length_size
 https://dash.akamaized.net/akamai/bbb_30fps/bbb_30fps.mpd
 ffmpeg version HEAD (
 built on 2021-04-09

 ffprobe version N-101901-gb593abda6c Copyright (c) 2007-2021 the FFmpeg
 developers
   built with gcc 9 (Ubuntu 9.3.0-17ubuntu1~20.04)
   configuration: --disable-x86asm --disable-debug --disable-doc --disable-
 shared --disable-autodetect --disable-programs --disable-alsa --disable-
 indev=sndio --disable-outdev=sndio --cc=gcc --enable-libxml2 --enable-
 gnutls --enable-static --enable-version3 --enable-nonfree --enable-
 pthreads --enable-alsa --enable-pic --enable-ffprobe --pkg-config-
 flags=--static --disable-stripping --disable-optimizations --extra-
 ldflags='-L/usr/lib -L/usr/lib/x86_64-linux-gnu -Bstatic'
   libavutil      56. 72.100 / 56. 72.100
   libavcodec     58.135.100 / 58.135.100
   libavformat    58. 78.100 / 58. 78.100
   libavdevice    58. 14.100 / 58. 14.100
   libavfilter     7.111.100 /  7.111.100
   libswscale      5. 10.100 /  5. 10.100
   libswresample   3. 10.100 /  3. 10.100

 }}}

 When running with the following
 {{{
 ffprobe  -select_streams v:0 -show_entries stream=is_avc,nal_length_size
 https://dash.akamaized.net/akamai/bbb_30fps/bbb_30fps.mpd
 }}}

 I get the following

 {{{
 [PROGRAM]
 [STREAM]
 is_avc=true
 nal_length_size=4
 [/STREAM]
 [/PROGRAM]
 }}}

 When -threads 2 is added

 {{{
 ffprobe -threads 2 -select_streams v:0 -show_entries
 stream=is_avc,nal_length_size
 https://dash.akamaized.net/akamai/bbb_30fps/bbb_30fps.mpd
 }}}

 I get the following

 {{{
 [PROGRAM]
 [STREAM]
 is_avc=false
 nal_length_size=0
 [/STREAM]
 [/PROGRAM]
 }}}

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


More information about the FFmpeg-trac mailing list