[FFmpeg-user] live555 + ffmpeg error

François Beaumer francois at blacknut.com
Tue Sep 27 15:37:29 EEST 2016


hello,

I use live555 with this command "./live555ProxyServer rtsp://
127.0.0.1:1935/rtplive/myStream", so the server is OK with this logs:

RTSP stream, proxying the stream "rtsp://127.0.0.1:1935/rtplive/myStream"
    Play this stream using the URL: rtsp://xxx.xxx.x.xxx:8554/proxyStream
(We use port 8000 for optional RTSP-over-HTTP tunneling.)

And then, when I try to use ffmpeg on Linux with the command "./ffmpeg -i
~/live/ffmpeg/output.mp4 -r 60 -vcodec h264 -vb 3000000 -g 60 -vprofile
main -pix_fmt yuv420p -acodec aac -ab 128000 -ar 48000 -ac 2 -f rtsp rtsp://
127.0.0.1:1935/rtplive/myStream.sdp"
I have this error:

[rtsp @ 0x3b48200] Using AVStream.codec to pass codec parameters to muxers
is deprecated, use AVStream.codecpar instead.
[tcp @ 0x3b9a9e0] Connection to tcp://127.0.0.1:1935?timeout=0 failed:
Connection refused
Output #0, rtsp, to 'rtsp://127.0.0.1:1935/rtplive/myStream.sdp':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2mp41
    encoder         : Lavf57.49.100
    Stream #0:0(und): Video: h264 (libx264), yuv420p, 1024x768 [SAR 1:1 DAR
4:3], q=-1--1, 3000 kb/s, 60 fps, 60 tbn, 60 tbc (default)
    Metadata:
      handler_name    : VideoHandler
      encoder         : Lavc57.57.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/3000000 buffer size: 0 vbv_delay: -1
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg4 (native) -> h264 (libx264))
Could not write header for output file #0 (incorrect codec parameters ?):
Connection refused
[libx264 @ 0x3b54320] final ratefactor: 25.74

I don't understand why. Thanks a lot in advance.


More information about the ffmpeg-user mailing list