[Live-devel] R: how to capture H264 stream and save it in a avifile

Autuori Gianluigi Autuori.Gianluigi.Wintime at ansaldobreda.it
Fri Jun 17 03:26:19 PDT 2011


Hi James, 
I can't use -i option with -4 option...
could you make me an example of use with openRTSP
 
Thanks
Gianluigi

  _____  

Da: live-devel-bounces at ns.live555.com [mailto:live-devel-bounces at ns.live555.com] Per conto di James Dougherty
Inviato: venerdì 13 maggio 2011 0.46
A: LIVE555 Streaming Media - development & use
Oggetto: Re: [Live-devel] how to capture H264 stream and save it in a avifile


Hi Gianluigi,
 
Please provide the -i option and review the options on the main site, below:
http://www.live555.com/openRTSP/#quicktime
 
Those options all work for me, and very well!
 
Here is another recipe I use for additional cross-validation.

If you have L16 media, put a riff header on it:

sox -B -t raw -s -b 16 -c 2 -r 48k audio-L16-2 audio-L16-2.wav

For MP4 (openRTSP -4 option):

mp4box -fps 30 -add video-H264-1.264 -add audio-L16-2.wav -new myfile.mp4

For AVI (openRTSP -i option)
ffmpeg -r 30 -i video-H264-1 -i audio-L16-2.wav -vcodec copy -acodec copy myfile.avi

I use the openRTSP options, but at times, I have used the above to verify I didn't break something :-)
 
YMMV
 
best regards
-james
 

 
On Wed, May 11, 2011 at 6:53 AM, Autuori Gianluigi <Autuori.Gianluigi.Wintime at ansaldobreda.it> wrote:


	Hello,
	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?
	I read this post:
	http://lists.live555.com/pipermail/live-devel/2007-January/005886.html
	is it the same problem?
	 
	thanks
	Gianluigi

	
  _____  

	Questo messaggio e-mail e ogni documento ad esso eventualmente allegato puo' avere carattere riservato ed essere tutelato da segreto. Esso,comunque, e'
	ad esclusivo utilizzo del destinatario in indirizzo. Qualora non foste il destinatario del messaggio vi preghiamo di volerci avvertire immediatamente per e-mail o telefono e di cancellare il presente messaggio e ogni eventuale allegato dal vostro sistema. E' vietata la duplicazione o l'utilizzo per qualunque fine del messaggio e di ogni allegato, nonche' la loro divulgazione, distribuzione o inoltro a terzi senza l'espressa autorizzazione del mittente. In ragione del mezzo di trasmissione utilizzato, il mittente non assume alcuna responsabilita' sulla segretezza/riservatezza delle informazioni contenute nel messaggio e nei relativi allegati. 

	

	This e-mail and any file transmitted with it may contain material that is confidential, privileged and/or attorney work product for the sole use of the intended recipient. If you are not the intended recipient of this e-mail, please do not read it, notify us immediately by e-mail or by telephone and then delete this message and any file attached from your system. You should not copy or use it for any purpose, disclose the contents of the same to any other person or forward it without express permission.
	Considering the means of transmission, we do not undertake any liability with respect to the secrecy and confidentiality of the information contained in this e-mail and its attachments.


	_______________________________________________
	live-devel mailing list
	live-devel at lists.live555.com
	http://lists.live555.com/mailman/listinfo/live-devel
	
	

	


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20110617/98c81d04/attachment.html>


More information about the live-devel mailing list