On 19-Jul-12 12:25, Eugene Grosbein wrote:
19.07.2012 16:17, Владислав Продан пишет:
ffmpeg не поддерживает этот протокол
openrtsp расщепляет на два - аудио и видео
vlc не собирается, требует x11 (буду еще ковырять)

Подскажите, как решить сабж и/или посоветуйте рабочую rtsp прокси.
Сохранение файла: mplayer -dumpstream rstpt://hostname/file -dumpfile 
/path/to/file




>ffmpeg -i rtsp://guest:[email protected]/CH001.sdp  -f avi ~/1.avi
ffmpeg version 0.7.11, Copyright (c) 2000-2011 the FFmpeg developers
  built on Mar 30 2012 00:11:13 with gcc 4.2.1 20070719  [FreeBSD]
configuration: --prefix=/usr/local --mandir=/usr/local/man --enable-shared --enable-gpl --enable-postproc --enable-avfilter --enable-pthreads --enable-x11grab --enable-memalign-hack --enable-runtime-cpudetect --cc=cc --extra-cflags='-I/usr/local/include/vorbis -I/usr/local/include' --extra-ldflags='-L/usr/local/lib ' --extra-libs=-pthread --disable-debug --disable-sse --disable-mmx --enable-libaacplus --disable-indev=alsa --disable-outdev=alsa --disable-libopencore-amrnb --enable-libopencore-amrwb --disable-libcelt --enable-libdirac --enable-libfaac --enable-libfreetype --enable-frei0r --enable-libgsm --disable-libmp3lame --disable-libopencv --enable-libopenjpeg --disable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --disable-vaapi --disable-vdpau --disable-libvo-aacenc --disable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-nonfree --enable-version3
  libavutil    50. 43. 0 / 50. 43. 0
  libavcodec   52.123. 0 / 52.123. 0
  libavformat  52.111. 0 / 52.111. 0
  libavdevice  52.  5. 0 / 52.  5. 0
  libavfilter   1. 80. 0 /  1. 80. 0
  libswscale    0. 14. 1 /  0. 14. 1
  libpostproc  51.  2. 0 / 51.  2. 0
[rtsp @ 0x29c33010] max_analyze_duration 5000000 reached at 5066667
[rtsp @ 0x29c33010] Estimating duration from bitrate, this may be inaccurate

Seems stream 0 codec frame rate differs from container frame rate: 15.00 (15/1) -> 7.50 (15/2)
Input #0, rtsp, from 'rtsp://guest:[email protected]/CH001.sdp':
  Metadata:
    title           : streamed by the GeoVision Rtsp Server
    comment         : CH001.sdp
  Duration: N/A, start: 0.068033, bitrate: N/A
Stream #0.0: Video: h264 (Baseline), yuvj420p, 640x480, 7.50 fps, 7.50 tbr, 90k tbn, 15 tbc
    Stream #0.1: Audio: aac, mono, s16
File '/home/mike/1.avi' already exists. Overwrite ? [y/N] y
Incompatible pixel format 'yuvj420p' for codec 'mpeg4', auto-selecting format 'yuv420p' [buffer @ 0x29c06490] w:640 h:480 pixfmt:yuvj420p tb:1/1000000 sar:0/1 sws_param: [buffersink @ 0x29c064d0] auto-inserting filter 'auto-inserted scaler 0' between the filter 'src' and the filter 'out' [scale @ 0x29c06510] w:640 h:480 fmt:yuvj420p -> w:640 h:480 fmt:yuv420p flags:0x4 [NULL @ 0x29c24410] Requested sampling rate unsupported using closest supported (16000)
Output #0, avi, to '/home/mike/1.avi':
  Metadata:
    INAM            : streamed by the GeoVision Rtsp Server
    ICMT            : CH001.sdp
    ISFT            : Lavf52.111.0
Stream #0.0: Video: mpeg4, yuv420p, 640x480, q=2-31, 200 kb/s, 7.50 tbn, 7.50 tbc
    Stream #0.1: Audio: mp2, 16000 Hz, mono, s16, 64 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press [q] to stop, [?] for help
frame= 34 fps= 17 q=12.2 Lsize= 380kB time=00:00:00.00 bitrate= 0.0kbits/s dup=0 drop=31
video:369kB audio:0kB global headers:0kB muxing overhead 3.054151%
Received signal 2: terminating.

Это к тому, что работает rtsp.

--
WBR, Mike

Ответить