Hi ALL,
Can someone help on the issue which we are facing to connect SDP file and converting into MP3. Whole pipeline works until broadcaster stop and there is no packets being recieving.
Is there any ways we can set timeout for ffmpeg?
but not able to find it what was the fixed applied.
below are the full logs when we connects to the udp packets using ffmpeg, we recieves the timeout from the SDP. but when we have streams and packets correctly it works without any issue, it starts happening when there is no packets.
CMD - /usr/bin/ffmpeg -protocol_whitelist file,crypto,udp,rtp -acodec opus -i test.sdp -acodec libmp3lame -f segment -segment_atclocktime 1 -segment_time 15 -strftime 1 %s.mp3 -v verbose 2>&1
LOGS:
ffmpeg version 4.2.7-0ubuntu0.1 Copyright (c) 2000-2022 the FFmpeg developers built with gcc 9 (Ubuntu 9.4.0-1ubuntu1~20.04.1) configuration: --prefix=/usr --extra-version=0ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared libavutil 56. 31.100 / 56. 31.100 libavcodec 58. 54.100 / 58. 54.100 libavformat 58. 29.100 / 58. 29.100 libavdevice 58. 8.100 / 58. 8.100 libavfilter 7. 57.100 / 7. 57.100 libavresample 4. 0. 0 / 4. 0. 0 libswscale 5. 5.100 / 5. 5.100 libswresample 3. 5.100 / 3. 5.100 libpostproc 55. 5.100 / 55. 5.100 [sdp @ 0x56055905b880] setting jitter buffer size to 500 Input #0, sdp, from 'test.sdp': Duration: N/A, bitrate: N/A Stream #0:0: Audio: opus, 48000 Hz, stereo, fltp Stream mapping: Stream #0:0 -> #0:0 (opus (native) -> mp3 (libmp3lame)) Press [q] to stop, [?] for help test.sdp: Connection timed out [graph_0_in_0_0 @ 0x5605590e2380] tb:1/48000 samplefmt:fltp samplerate:48000 chlayout:0x3 [segment @ 0x560559060540] Selected stream id:0 type:audio [segment @ 0x560559060540] Opening '1705914891.mp3' for writing Output #0, segment, to '%s.mp3': Metadata: encoder : Lavf58.29.100 Stream #0:0: Audio: mp3 (libmp3lame), 48000 Hz, stereo, fltp, delay 1105 Metadata: encoder : Lavc58.54.100 libmp3lame No more output streams to write to, finishing. 0x [segment @ 0x560559060540] segment:'1705914891.mp3' count:0 ended [AVIOContext @ 0x560559108a40] Statistics: 0 seeks, 1 writeouts size=N/A time=00:00:00.00 bitrate=N/A speed= 0x video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown Input file #0 (test.sdp): Input stream #0:0 (audio): 0 packets read (0 bytes); 0 frames decoded (0 samples); Total: 0 packets (0 bytes) demuxed Output file #0 (%s.mp3): Output stream #0:0 (audio): 0 frames encoded (0 samples); 0 packets muxed (0 bytes); Total: 0 packets (0 bytes) muxed Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used) [AVIOContext @ 0x560559064640] Statistics: 141 bytes read, 0 seeks