[FFmpeg-user] transcode from rtsp://xxxx to local file

kevin631012 kevin631012 at yahoo.com.tw
Sat Mar 26 05:15:51 CET 2011


Hi All
I am trying to record from rtsp:// format to local file .
it always stop at around 65 seconds .
how can I record rtsp stream continuously over and over ?
following is my log message .

ffmpeg  -loglevel debug -timestamp now  -i rtsp://192.168.101.135/live.sdp -vc mpeg12 out.avi
FFmpeg version SVN-r26402, Copyright (c) 2000-2011 the FFmpeg developers
  built on Mar 26 2011 09:02:40 with gcc 4.3.2 20081105 (Red Hat 4.3.2-7)
  configuration: --target-os=linux --disable-ffplay --disable-ffprobe --disable-ffserver --disable-avdevice --disable-yasm --disable-avfilter --disable-asm --disable-zlib --enable-memalign-hack
  libavutil     50.36. 0 / 50.36. 0
  libavcore      0.16. 1 /  0.16. 1
  libavcodec    52.108. 0 / 52.108. 0
  libavformat   52.93. 0 / 52.93. 0
  libswscale     0.12. 0 /  0.12. 0
[rtsp @ 0x8cc7cd0] Estimating duration from bitrate, this may be inaccurate
Input #0, rtsp, from 'rtsp://192.168.101.135/live.sdp':
  Metadata:
    title           : RTSP server
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0.0: Video: mpeg4, yuv420p, 640x480 [PAR 1:1 DAR 4:3], 1k tbr, 30k tbn, 1k tbc
    Stream #0.1: Audio: amrnb, 8000 Hz, 1 channels, flt
[NULL @ 0x8cd4f60] Requested sampling rate unsupported using closest supported (16000)
File 'out.avi' already exists. Overwrite ? [y/N] y
Output #0, avi, to 'out.avi':
  Metadata:
    INAM            : RTSP server
    ISFT            : Lavf52.93.0
    Stream #0.0: Video: mpeg4, yuv420p, 640x480 [PAR 1:1 DAR 4:3], q=2-31, 200 kb/s, 1k tbn, 1k tbc
    Stream #0.1: Audio: mp2, 16000 Hz, 1 channels, s16, 64 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press [q] to stop encoding
Warning, using s16 intermediate sample format for resampling
Multiple frames in a packet from stream 1
[mpeg4 @ 0x8ccc340] concealing 594 DC, 594 AC, 594 MV errorse= 168.1kbits/s dup=0 drop=1
frame=  356 fps=  6 q=31.0 Lsize=    2329kB time=64.08 bitrate= 297.7kbits/s dup=0 drop=1
video:295kB audio:501kB global headers:0kB muxing overhead 192.584096%
Thanks
Kevin 



      


More information about the ffmpeg-user mailing list