[Live-devel] Error in Outputting mp4 format file

Ross Finlayson finlayson at live555.com
Thu Nov 8 08:13:46 PST 2012


>   I have downloaded the tar.gz file and built the openrtsp application in my 32 bit linux machine. The build was successfull. Then I went to the testProgs directory and typed the following command to output the received data
> to stdout in .mp4 format
> ./openRTSP -4 -d 20 rtsp://184.72.239.149/vod/mp4:BigBuckBunny_115.mov

You didn't explain how you redirected 'stdout' to a file, but if you do it on the command line in the usual way - e.g., 
	./openRTSP -4 -d 20 rtsp://184.72.239.149/vod/mp4:BigBuckBunny_115.mov > outputFile.mp4
then things should work OK.  The basic issue here is that the file written to by "QuickTimeFileSink" has to be 'seekable', because ".mov"/".mp4" files contain header information near the start that can be filled in only when the stream ends.

Alternatively, if that doesn't work, you could modify your copy of "playCommon.cpp" to change the call to "QuickFileFileSink::createNew()" (on line 686) to use your output file name, instead of "stderr".

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/20121108/d5dc04d0/attachment.html>


More information about the live-devel mailing list