[FFmpeg-user] Capture RTP-Stream into file

night4awk cccppp at t-online.de
Thu Sep 13 11:00:42 CEST 2012


Hello,

i'm new at ffmpeg and want to capture a RTP-Stream without quality loss into
a file.

I'm using the following string:
ffmpeg -i rtp://@239.35.10.4:10000 -map 0:0 -map 0:2 -vcodec copy -acodec
copy -t 10 -y test.mkv
FFmpeg version 0.5, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  configuration: --prefix=/opt/cross-project/x86/sys-root/usr
--disable-static --enable-shared
  libavutil     49.15. 0 / 49.15. 0
  libavcodec    52.20. 0 / 52.20. 0
  libavformat   52.31. 0 / 52.31. 0
  libavdevice   52. 1. 0 / 52. 1. 0
  built on Sep 16 2011 01:01:55, gcc: 4.1.3 20070929 (prerelease) (Ubuntu
4.1.2-16ubuntu2)
[h264 @ 0x8063b20]number of reference frames exceeds max (probably corrupt
input), discarding one
    Last message repeated 207 times
[h264 @ 0x8063b20]left block unavailable for requested intra mode at 0 1
[h264 @ 0x8063b20]error while decoding MB 0 1, bytestream (64984)
[h264 @ 0x8063b20]concealing 1620 DC, 1620 AC, 1620 MV errors

Seems stream 0 codec frame rate differs from container frame rate: 50.00
(50/1) -> 25.00 (25/1)
Input #0, mpegts, from 'rtp://@239.35.10.4:10000':
  Duration: N/A, start: 90600.393311, bitrate: 640 kb/s
  Program 28106 
    Stream #0.0[0x100]: Video: h264, yuv420p, 720x576 [PAR 16:11 DAR 20:11],
25 tbr, 90k tbn, 50 tbc
    Stream #0.1[0x101](deu): Audio: mp2, 48000 Hz, stereo, s16, 192 kb/s
    Stream #0.2[0x102](AC3): Audio: 0x0000, 48000 Hz, stereo, s16, 448 kb/s
Output #0, matroska, to 'test.mkv':
    Stream #0.0: Video: 0x0000, yuv420p, 720x576 [PAR 16:11 DAR 20:11],
q=2-31, 90k tbn, 25 tbc
    Stream #0.1(AC3): Audio: ac3, 48000 Hz, stereo, s16, 448 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.2 -> #0.1
Press [q] to stop encoding
frame=  252 fps= 36 q=-1.0 Lsize=    3566kB time=10.00 bitrate=2920.5kbits/s    
video:3017kB audio:545kB global headers:0kB muxing overhead 0.124688%

When I'm playing the output file in VLC, there are a lot of pixel errors and
interrupts.

Are there any more options i need to add to the string or is the
mkv-container not suitable for this action?
I also tried to output the stream into a .mp4-file (same behavior). When I
put it into a .ts-file VLC-playing freezes at the first frame.

TIA



--
View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Capture-RTP-Stream-into-file-tp4653415.html
Sent from the FFmpeg-users mailing list archive at Nabble.com.


More information about the ffmpeg-user mailing list