[Live-devel] how to capture H264 stream and save it in a avi file

Ross Finlayson finlayson at live555.com
Wed Jun 1 19:20:02 PDT 2011


>I'm trying to capture a video stream from Axis IP camera with openRTSP.
>I get a correct file if I use:
>openRTSP -d 20 -4 -f 3 -w 640 -h 480 -b 400000 
>"rtsp://10.10.1.61/axis-media/media.amp?compression=35&fps=3" >video.avi
>but I try this:
>openRTSP -d 20 -f 3 -w 640 -h 480 -b 400000 
>"rtsp://10.10.1.61/axis-media/media.amp?compression=35&fps=3"
>I obtain this file: video-H264-1
>but I can't open it.
>What is wrong?

Sorry for the long delay in responding to this.  (I've been traveling 
for the past two months, and am way behind on email.)

The 'problem' is only that your operating system doesn't know how to 
open the output file named "video-H264-1", because it is (in this 
case) just a raw H.264 video file, not a 'mp4'-format file.  (Note, 
BTW, that the "-4" option tells "openRTSP" to output a 'mp4'-format 
file, *not* an AVI-format file.)

If, however, you change the name to (e.g.) "example.h264", then some 
media players - for example VLC - may be able to play it.
-- 

Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20110601/410c3772/attachment.html>


More information about the live-devel mailing list