[FFmpeg-trac] #3702(undetermined:new): Re-stream RTP to RTSP

FFmpeg trac at avcodec.org
Thu Jun 5 18:28:31 CEST 2014


#3702: Re-stream RTP to RTSP
-------------------------------------+-------------------------------------
             Reporter:  DJX          |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:               |                  Version:  git-
  undetermined                       |  master
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Summary of the bug:

 FFmpeg will not re-restream an RTP stream to RTSP.
 It hangs and must be terminated with Ctrl+C.
 After issuing a Ctrl+C, it displays the error: Could not write header for
 output file #0 (incorrect codec parameters ?): Error number -5 occurred

 How to reproduce:
 {{{
 ffmpeg -re -i rtp://239.255.1.1:59002 -f rtsp -c copy
 rtsp://localhost:554/live
 ffmpeg version N-63746-gfbaf73a Copyright (c) 2000-2014 the FFmpeg
 developers
   built on Jun  3 2014 22:10:20 with gcc 4.8.2 (GCC)
   configuration: --enable-gpl --enable-version3 --disable-w32threads
 --enable-av
 isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls
 --enab
 le-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-
 libope
 njpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-
 libsox
 r --enable-libspeex --enable-libtheora --enable-libtwolame --enable-
 libvidstab -
 -enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-
 libvpx
 --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265
 --enable-
 libxavs --enable-libxvid --enable-decklink --enable-zlib
   libavutil      52. 89.100 / 52. 89.100
   libavcodec     55. 66.100 / 55. 66.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 @ 0000000002abc300] Invalid frame dimensions 0x0.
     Last message repeated 4 times
 [rtp @ 0000000002b006e0] 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:59002':
   Duration: N/A, start: 24023.945356, 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 kb/s, 29.97 fps, 29.97 tbr, 90k
 tbn, 59.9
 4 tbc
     Stream #0:0(eng): Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz,
 stereo, fl
 tp, 192 kb/s
     Stream #0:1(spa): Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz,
 stereo, fl
 tp, 128 kb/s
     Stream #0:3: Unknown: none ([134][0][0][0] / 0x0086)
 Output #0, rtsp, to 'rtsp://localhost:554/live':
   Metadata:
     encoder         : Lavf55.42.100
     Stream #0:0: Video: mpeg2video ([2][0][0][0] / 0x0002), yuv420p,
 704x480 [SA
 R 10:11 DAR 4:3], q=2-31, max. 5000 kb/s, 29.97 fps, 90k tbn, 29.97 tbc
     Stream #0:1(eng): Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz,
 stereo, 19
 2 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.
 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/3702>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list