我使用ffmpeg将我的rtmp流转换为rtsp流。以下代码正在进行转换
ffmpeg -i rtmp://xxxxx.com/live/live1 -f rtsp rtsp://xxxxx.com:5454/test1-rtsp.mpg
运行上述命令后,它将返回以下控制台。我得到连接拒绝rtsp 5454和aslo 554.我怎么能解决这个问题?
ffmpeg version N-60489-g03911c4 Copyright (c) 2000-2014 the FFmpeg developers
built on Feb 10 2014 05:44:38 with gcc 4.6 (Debian 4.6.3-1)
configuration: --prefix=/root/ffmpeg-static/64bit --extra-cflags='-I/root/ffmpeg-static/64bit/include -static' --extra-ldflags='-L/root/ffmpeg-static/64bit/lib -static' --extra-libs='-lxml2 -lexpat -lfreetype' --enable-static --disable-shared --disable-ffserver --disable-doc --enable-bzlib --enable-zlib --enable-postproc --enable-runtime-cpudetect --enable-libx264 --enable-gpl --enable-libtheora --enable-libvorbis --enable-libmp3lame --enable-gray --enable-libass --enable-libfreetype --enable-libopenjpeg --enable-libspeex --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-version3 --enable-libvpx
libavutil 52. 63.101 / 52. 63.101
libavcodec 55. 50.100 / 55. 50.100
libavformat 55. 31.100 / 55. 31.100
libavdevice 55. 8.100 / 55. 8.100
libavfilter 4. 1.102 / 4. 1.102
libswscale 2. 5.101 / 2. 5.101
libswresample 0. 17.104 / 0. 17.104
libpostproc 52. 3.100 / 52. 3.100
[flv @ 0x40d1440] Stream discovered after head already parsed
Input #0, flv, from 'rtmp://xxxxx.com/jiljillive/live1':
Metadata:
videokeyframe_frequency: 5
avclevel : 31
videodevice : Broadcast SC Video Filter
keywords :
audiochannels : 2
presetname : Custom
copyright :
audioinputvolume: 100
creationdate : Tue Feb 11 08:47:50 2014
:
author :
audiodevice : Microphone (SplitCam Virtual Au
avcprofile : 66
title :
description :
rating :
Duration: N/A, start: 0.000000, bitrate: 438 kb/s
Stream #0:0: Video: h264 (Baseline), yuv420p(tv), 320x240 [SAR 1:1 DAR 4:3], 307 kb/s, 25 fps, 25 tbr, 1k tbn, 50 tbc
Stream #0:1: Audio: mp3, 44100 Hz, stereo, s16p, 131 kb/s
Stream #0:2: Data: none
[tcp @ 0x40f9c60] Connection to tcp://emedias.com:5454?timeout=0 failed: Connection refused
Output #0, rtsp, to 'rtsp://xxxxxx.com:5454/test1-rtsp.mpg':
Metadata:
videokeyframe_frequency: 5
avclevel : 31
videodevice : Broadcast SC Video Filter
keywords :
audiochannels : 2
presetname : Custom
copyright :
audioinputvolume: 100
creationdate : Tue Feb 11 08:47:50 2014
:
author :
audiodevice : Microphone (SplitCam Virtual Au
avcprofile : 66
title :
description :
rating :
encoder : Lavf55.31.100
Stream #0:0: Video: mpeg4, yuv420p, 320x240 [SAR 1:1 DAR 4:3], q=2-31, 200 kb/s, 90k tbn, 25 tbc
Stream #0:1: Audio: aac (libvo_aacenc), 44100 Hz, stereo, s16, 128 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (h264 -> mpeg4)
Stream #0:1 -> #0:1 (mp3 -> libvo_aacenc)
Could not write header for output file #0 (incorrect codec parameters ?): Input/output error