[FFmpeg-user] Re-Stream to RTSP

Dennis F dfratiani at hotmail.com
Thu May 29 19:56:05 CEST 2014


Hi,
I am trying to use FFmpeg to re-stream an RTP stream to RTSP.
 
It never starts streaming and I have to issue a Ctrl-C.
 
I'm not sure what's wrong but I consistently get this error:
Could not write header for output file #0 (incorrect codec parameters ?): Errorn umber -5 occurred
 
Here is my uncut console output:
.\ffmpeg -re -i rtp://239.255.1.1:59000 -f rtsp -rtsp_transport tcp -rtsp_flags listen -c copy -muxdelay 0.1 rtsp://172.16.1.56:554/live
ffmpeg version N-63548-g6b041cb Copyright (c) 2000-2014 the FFmpeg developers
  built on May 28 2014 22:08:59 with gcc 4.8.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfi
g --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetyp
e --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --
enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsox
r --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrw
benc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-
libxavs --enable-libxvid --enable-decklink --enable-zlib
  libavutil      52. 87.100 / 52. 87.100
  libavcodec     55. 65.100 / 55. 65.100
  libavformat    55. 42.100 / 55. 42.100
  libavdevice    55. 13.101 / 55. 13.101
  libavfilter     4.  5.100 /  4.  5.100
  libswscale      2.  6.100 /  2.  6.100
  libswresample   0. 19.100 /  0. 19.100
  libpostproc    52.  3.100 / 52.  3.100
[mpeg2video @ 0000000002cbe000] Invalid frame dimensions 0x0.
    Last message repeated 7 times
[rtp @ 0000000002b07680] Could not find codec parameters for stream 3 (Unknown: none ([134][0][0][0] / 0x0086)): unknown
 codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, rtp, from 'rtp://239.255.1.1:59000':
  Duration: N/A, start: 92916.649967, bitrate: 320 kb/s
  Program 10
    Stream #0:2: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv), 704x480 [SAR 10:11 DAR 4:3], max. 5000 k
b/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    Stream #0:1(eng): Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, stereo, fltp, 192 kb/s
    Stream #0:0(spa): Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, stereo, fltp, 128 kb/s
    Stream #0:3: Unknown: none ([134][0][0][0] / 0x0086)
Output #0, rtsp, to 'rtsp://172.16.1.56:554/live':
  Metadata:
    encoder         : Lavf55.42.100
    Stream #0:0: Video: mpeg2video ([2][0][0][0] / 0x0002), yuv420p, 704x480 [SAR 10:11 DAR 4:3], q=2-31, max. 5000 kb/s
, 29.97 fps, 90k tbn, 29.97 tbc
    Stream #0:1(spa): Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, stereo, 128 kb/s
Stream mapping:
  Stream #0:2 -> #0:0 (copy)
  Stream #0:0 -> #0:1 (copy)
Could not write header for output file #0 (incorrect codec parameters ?): Error number -5 occurred
Received signal 2: terminating.
 
Thanks,
D

 
 
 		 	   		  


More information about the ffmpeg-user mailing list