[FFmpeg-user] Unable to do 'rtsp stream' when 'rtsp_flags listen' & '-sdp_file test.sdp'
Dinesh Gupta
dinesh.gupta01 at gmail.com
Wed Dec 26 17:44:30 EET 2018
Hi All,
FFmpeg will not streaming a RSTP stream. I want to FFmpeg work as
server and stream desktop. Also, I am generating '.sdp' file so that
client may connect. But '.sdp' file not being generated.
It hangs and must be terminated with Ctrl+C(press twice).
After issuing a Ctrl+C twice, it displays the error: Could not write
header for output file #0 (incorrect codec parameters ?): Immediate exit
requested
Error initializing output stream 0:0 --
*Please guilde me how may I use rtsp with 'rtsp_flags listen' & '-sdp_file
test.sdp'*
What Command I fired:
D:\small\ffmpeg-4.1-win32-shared\bin>ffmpeg -sdp_file stream1.sdp -f
gdigrab -i desktop -rtsp_flags listen -f rtsp rtsp://100.64.129.179:15450
ffmpeg version 4.1 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 8.2.1 (GCC) 20181017
configuration: --disable-static --enable-shared --enable-gpl
--enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls
--enable-iconv --enable-libass --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-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va
--enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth
libavutil 56. 22.100 / 56. 22.100
libavcodec 58. 35.100 / 58. 35.100
libavformat 58. 20.100 / 58. 20.100
libavdevice 58. 5.100 / 58. 5.100
libavfilter 7. 40.101 / 7. 40.101
libswscale 5. 3.100 / 5. 3.100
libswresample 3. 3.100 / 3. 3.100
libpostproc 55. 3.100 / 55. 3.100
[gdigrab @ 05aed680] Capturing whole desktop as 1366x768x32 at
(0,0)
[gdigrab @ 05aed680] Stream #0: not enough frames to estimate
rate; consider increasing probesize
Input #0, gdigrab, from 'desktop':
Duration: N/A, start: 1545836929.667861, bitrate: 1006131 kb/s
Stream #0:0: Video: bmp, bgra, 1366x768, 1006131 kb/s,
29.97 fps, 1000k tbr, 1000k tbn, 1000k tbc
Stream mapping:
Stream #0:0 -> #0:0 (bmp (native) -> mpeg4 (native))
Press [q] to stop, [?] for help
Could not write header for output file #0 (incorrect codec
parameters ?): Immediate exit requested
Error initializing output stream 0:0 --
Exiting normally, received signal 2.
More information about the ffmpeg-user
mailing list