TCP 5454 和 554 连接被拒绝通过 ffmpeg 进行 rtsp 流传输

TCP 5454 和 554 连接被拒绝通过 ffmpeg 进行 rtsp 流传输

我正在尝试使用 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

使用此命令 nmap localhost 检查端口是否打开

启动 Nmap 5.21 (http://nmap.org) 于 2014-02-11 10:40 UTC Nmap 扫描报告 localhost (127.0.0.1) 主机已启动(延迟 0.000011 秒)。未显示:993 个已关闭端口 港口国服务 21/tcp 打开 ftp 22/tcp 打开 ssh 80/tcp 打开 http 1935/tcp 打开 rtmp 3306/tcp 打开 mysql 5080/tcp 打开未知 9999/tcp 打开 abyss

Nmap 完成:在 0.18 秒内扫描了 1 个 IP 地址(1 个主机启动)

相关内容