Unable to do 'rtsp stream' when 'rtsp_flags listen' & '-sdp_file test.sdp'

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Unable to do 'rtsp stream' when 'rtsp_flags listen' & '-sdp_file test.sdp'

Dinesh Gupta
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.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Unable to do 'rtsp stream' when 'rtsp_flags listen' & '-sdp_file test.sdp'

Carl Eugen Hoyos-2
2018-12-26 16:44 GMT+01:00, Dinesh Gupta <[hidden email]>:

> 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

Move "-sdp_file stream1.sdp" behind "desktop" and please remember
that only current FFmpeg git head is supported here.

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Unable to do 'rtsp stream' when 'rtsp_flags listen' & '-sdp_file test.sdp'

Dinesh Gupta
I downloaded latest nightly build but still getting same issue, hang up,

'ffmpeg-20181229-fccba32-win32-shared.zip' downloaded & run below command as
        'ffmpeg -f gdigrab -i desktop -sdp_file stream1.sdp  -rtsp_flags
listen -f rtsp rtsp://10.0.0.30:15450'

[image: image.png]

I want to work as a server and wait for client to connect.

When I tried to connect via VLC

[image: image.png]
Then I am getting error message on VLC
[image: image.png]

Please guide me how may I achieve above result.

Thanks & Regards,
Dinesh Gupta

On Sat, Dec 29, 2018 at 4:05 PM Carl Eugen Hoyos <[hidden email]> wrote:

> 2018-12-26 16:44 GMT+01:00, Dinesh Gupta <[hidden email]>:
>
> > 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
>
> Move "-sdp_file stream1.sdp" behind "desktop" and please remember
> that only current FFmpeg git head is supported here.
>
> Carl Eugen
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".

image.png (27K) Download Attachment
image.png (23K) Download Attachment
image.png (117K) Download Attachment