[FFmpeg-trac] #9361(avformat:new): av_read_frame infinite loop

FFmpeg trac at avcodec.org
Tue Sep 7 15:39:54 EEST 2021


#9361: av_read_frame infinite loop
-------------------------------------+-------------------------------------
             Reporter:  Кабалин      |                    Owner:  (none)
  Сергей                             |
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:  avformat
              Version:  git-master   |               Resolution:
             Keywords:  dshow        |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Description changed by Кабалин Сергей:

Old description:

> Summary of the bug:
>
> Sound recording does not stop when the device is disconnected
>
> How to reproduce:
> {{{
> 1)run ffmpeg.exe -f dshow -i audio="device" output.mp3
>
> 2)disable device in Control Panel > Hardware and Sound > Sound > Playback
> tab
>
> 3)....
>
> 4)infinite loop in av_read_frame
>
> }}}

New description:

 Summary of the bug:

 Sound recording does not stop when the device is disconnected

 How to reproduce:
 {{{
 1)run ffmpeg.exe -f dshow -i audio="device" output.mp3

 2)disable device in Control Panel > Hardware and Sound > Sound > Playback
 tab

 3)....

 4)infinite loop in av_read_frame

 }}}


 .\ffmpeg.exe -f dshow -i
 audio="@device_cm_{33D9A762-90C8-11D0-BD43-00A0C911CE86}\wave_{21796D40-EC49
 -4F1C-AA60-5DCE6AF1B0C8}" o
 utput.mp3
 ffmpeg version git-2019-12-11-13f2b6d Copyright (c) 2000-2019 the FFmpeg
 developers
   built with gcc 9.2.1 (GCC) 20191125
   configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-
 fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-
 libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame
 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
 --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr
 --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack
 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2
 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-
 libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa
 --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx
 --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc
 --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt
 --enable-amf
   libavutil      56. 36.101 / 56. 36.101
   libavcodec     58. 64.101 / 58. 64.101
   libavformat    58. 35.101 / 58. 35.101
   libavdevice    58.  9.101 / 58.  9.101
   libavfilter     7. 68.100 /  7. 68.100
   libswscale      5.  6.100 /  5.  6.100
   libswresample   3.  6.100 /  3.  6.100
   libpostproc    55.  6.100 / 55.  6.100
 Guessed Channel Layout for Input Stream #0.0 : stereo
 Input #0, dshow, from
 'audio=@device_cm_{33D9A762-90C8-11D0-BD43-00A0C911CE86}\wave_{21796D40-EC49
 -4F1C-AA60-5DCE6AF1B0C8}':
   Duration: N/A, start: 358674.267000, bitrate: 1411 kb/s
     Stream #0:0: Audio: pcm_s16le, 44100 Hz, stereo, s16, 1411 kb/s
 Stream mapping:
   Stream #0:0 -> #0:0 (pcm_s16le (native) -> mp3 (libmp3lame))
 Press [q] to stop, [?] for help
 Output #0, mp3, to 'output.mp3':
   Metadata:
     TSSE            : Lavf58.35.101
     Stream #0:0: Audio: mp3 (libmp3lame), 44100 Hz, stereo, s16p
     Metadata:
       encoder         : Lavc58.64.101 libmp3lame
 size=     256kB time=00:00:26.68 bitrate=  78.6kbits/s speed=0.494x

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


More information about the FFmpeg-trac mailing list