[Libav-user] RTSP muxer: how to use it?

hatred adrozdoff at gmail.com
Tue Oct 30 08:07:56 CET 2012


Hi guys!

I looked into ffmpeg --help full and found RTSP muxer in list. So how can I
use it? Can I use it for RTSP streaming?

I try next command (take source from live camera):
ffmpeg -i rtsp://guest:password@188.128.18.207/mpeg4/media.amp -f rtsp -re
"rtsp://0.0.0.0:8544/cam0" -rtsp_flags listen

but I take next error:
~~~~~~
ffmpeg version 1.0 Copyright (c) 2000-2012 the FFmpeg developers
built on Oct 1 2012 18:45:36 with gcc 4.7.1 (GCC) 20120721 (prerelease)
configuration: --prefix=/usr --enable-libmp3lame --enable-libvorbis
--enable-libxvid --enable-libx264 --enable-libvpx --enable-libtheora
--enable-libgsm --enable-libspeex --enable-postproc --enable-shared
--enable-x11grab --enable-libopencore_amrnb --enable-libopencore_amrwb
--enable-libschroedinger --enable-libopenjpeg --enable-librtmp
--enable-libpulse --enable-libv4l2 --enable-gpl --enable-version3
--enable-runtime-cpudetect --enable-debug=gdb3 --enable-static
--disable-stripping
libavutil 51. 73.101 / 51. 73.101
libavcodec 54. 59.100 / 54. 59.100
libavformat 54. 29.104 / 54. 29.104
libavdevice 54. 2.101 / 54. 2.101
libavfilter 3. 17.100 / 3. 17.100
libswscale 2. 1.101 / 2. 1.101
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100
[rtsp @ 0x75e240] Estimating duration from bitrate, this may be inaccurate
Input #0, rtsp, from 'rtsp://guest:password@188.128.18.207/mpeg4/media.amp':
Metadata:
title : Media Presentation
Duration: N/A, start: 0.029989, bitrate: N/A
Stream #0:0: Video: mpeg4 (Advanced Simple Profile), yuv420p, 704x576 [SAR
12:11 DAR 4:3], 100 tbr, 90k tbn, 100 tbc
[tcp @ 0x871200] TCP connection to 0.0.0.0:8544 failed: Connection refused
Output #0, rtsp, to 'rtsp://0.0.0.0:8544/cam0':
Metadata:
title : Media Presentation
encoder : Lavf54.29.104
Stream #0:0: Video: mpeg4, yuv420p, 704x576 [SAR 12:11 DAR 4:3], q=2-31,
200 kb/s, 90k tbn, 100 tbc
Stream mapping:
Stream #0:0 -> #0:0 (mpeg4 -> mpeg4)
Could not write header for output file #0 (incorrect codec parameters ?):
Input/output error
~~~~~~
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20121030/7de94b62/attachment.html>


More information about the Libav-user mailing list