Opened 3 years ago

Last modified 3 years ago

#9361 new defect

av_read_frame infinite loop

Reported by: Кабалин Сергей Owned by:
Priority: normal Component: avformat
Version: git-master Keywords: dshow
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description (last modified by Кабалин Сергей)

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

Change History (3)

comment:1 by Carl Eugen Hoyos, 3 years ago

Keywords: dshow added

Please provide the command line you tested together with the complete, uncut console output to make this a valid ticket.

comment:2 by Кабалин Сергей, 3 years ago

Description: modified (diff)

in reply to:  1 comment:3 by Кабалин Сергей, 3 years ago

Replying to Carl Eugen Hoyos:

Please provide the command line you tested together with the complete, uncut console output to make this a valid ticket.

added console output

Note: See TracTickets for help on using tickets.