Interestingly if I skip avio_open and just try to write the header using avformat_write_header I see some traffic going out to the streaming server up until just after the ANNOUNCE is sent but I get an error saying
'Invalid data found when processing input' ...and the SETUP call is never made. Do I need to open the output file when sending RTSP output and if not how do I fix the 'Invalid data found when processing input' error? Many thanks for any thoughts Tim ________________________________ From: Libav-user <[email protected]> on behalf of Tim Lunt <[email protected]> Sent: Thursday, July 26, 2018 2:57:18 PM To: This list is about using libavcodec, libavformat, libavutil, libavdevice and libavfilter. Subject: Re: [Libav-user] Missing RTSP protocol? Hi still no joy – I’ve tried numerous combinations of options and a few different transcoding / muxing examples and I’m still getting the same output Output #0, rtsp, to 'rtsp:// ###.###.###.###:554/live/stream': True Stream #0:0True , 1, 1/10000000True : Video: rawvideo, 1 reference frame, bgr0, 2048x1152, 0/1, q=2-31True , True 30 fps, True 30 tbr, True 10000k tbn, True 10000k tbcTrue True Stream #0:1True , 0, 1/25True : Video: h264, 1 reference frame, yuv420p, 352x288 (0x0), 0/1, q=2-31, 400 kb/sTrue , True 25 tbnTrue Could not open 'rtsp://###.###.###.###:554/live/stream': Protocol not found Still having similar issues with the protocol not found error message I’ve also tried to just call - avio_check with the following and that’s giving me the same ‘Protocol not found’ output const char *fname = "rtsp://###.###.###.###:554/live/stream"; ret = avio_check(fname, AVIO_FLAG_WRITE); Do you think there is something wrong with the build files I’m using? Any help much appreciated Tim ________________________________ From: Libav-user <[email protected]> on behalf of Tim Lunt <[email protected]> Sent: Monday, July 23, 2018 11:12:02 AM To: This list is about using libavcodec, libavformat, libavutil, libavdevice and libavfilter. Subject: Re: [Libav-user] Missing RTSP protocol? Hi, thanks for the response and clarification on the rtsp being a demuxer (not sure how I missed that). I’ve been able to get an rtsp stream working from the command line using the following command .\ffmpeg.exe -rtbufsize 1500M -f dshow -i video="screen-capture-recorder" -pix_fmt yuv420p -vsync 1 -vcodec libx264 -r 23.976 -threads 0 -b:v: 1024k -bufsize 1024k -preset veryfast -profile:v baseline -tune film -g 48 -x264opts no-scenecut -acodec aac -b:a 192k -ac 2 -ar 48000 -rtsp_transport tcp -f rtsp rtsp:/<server-ip><port>/live/myStream I don’t currently have all of those options set in my AVDictionary (options) so I’m going to have a play with setting a few to see if I can get it running. I’ll update later with any progress ________________________________ From: Libav-user <[email protected]> on behalf of Carl Eugen Hoyos <[email protected]> Sent: Friday, July 20, 2018 9:08:27 PM To: This list is about using libavcodec, libavformat, libavutil, libavdevice and libavfilter. Subject: Re: [Libav-user] Missing RTSP protocol? 2018-07-20 21:58 GMT+02:00, Tim Lunt <[email protected]>: > I’m trying to stream to an RTSP server but I’m getting a protocol not found > error when trying to open the output. > > I’ve used the 4.0 builds from https://ffmpeg.zeranoe.com/builds/ and I cant > see the RTSP protocol being disabled in the build flags (see below) so not > sure what I’m missing – is RTSP still available in 4.0? rtsp is a demuxer, it uses either the udp or the tcp protocol. Does the stream work with the command line interface? Carl Eugen _______________________________________________ Libav-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/libav-user
_______________________________________________ Libav-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/libav-user
