<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div>Ross,<div><br></div><div><div><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div><blockquote type="cite" cite="" style="padding-top: 0px; padding-bottom: 0px; ">I'm trying to capture an MPEG4 RTP stream (sent by QTSS via QuickTime Broadcaster) to a file using openRTSP. The problem i'm seeing is that, when I try to open this file, the system (Mac OSX 10.5.4) tells me that it's not a movie file. My openRTSP command looks like this:</blockquote><blockquote type="cite" cite="" style="padding-top: 0px; padding-bottom: 0px; "><br></blockquote><blockquote type="cite" cite="" style="padding-top: 0px; padding-bottom: 0px; ">pugsleypoo:testProgs jmzorko$ ./openRTSP -4 -w 320 -h 240 -f 30<span class="Apple-converted-space"> </span><a href="rtsp://10.0.1.199:554/pugscam.sdp">rtsp://10.0.1.199:554/pugscam.sdp</a><span class="Apple-converted-space"> </span>> pugscam.mp4</blockquote><div><br></div><div>A couple of quick questions:</div><div>1/ Are you able to play the stream<span class="Apple-converted-space"> </span><a href="rtsp://10.0.1.199:554/pugscam.sdp">rtsp://10.0.1.199:554/pugscam.sdp</a><span class="Apple-converted-space"> </span>in a media player (QuickTime Player or VLC)?</div><div>2/ Are you making sure that "openRTSP" terminates properly? You can't just <control>-C it, otherwise the resulting output file will be incomplete. You have to terminate it with "kill -HUP", or else specify a specific duration in advance, using the "-d <duration>" option.</div><div><br></div><div>If both of these are true, then I don't know what the problem might be; you should ask a QuickTime mailing list why the file won't play.</div></div></span></blockquote><div><br></div><div><br></div><div>Thank you very much -- while I was able to play the QTSS stream with the QuickTime Player, the problem with the saved .mp4 file was just as you said (ctrl-c vs. sighup). This leads me to another question, though:</div><div><br></div><div>I would like to play the pugscam.mp4 file as openRTSP is writing to it. I know this sounds crazy, but i'm experimenting with an idea I have, and the first test of said idea would be to see if I can play an .mp4 file from a server as the server is generating it, and I was thinking of basing my server on the openRTSP code. This question may be off-topic now, but do you know what might cause an application to fail to open an .mp4 file as openRTSP is generating it i.e. is there some bit of info that is written to the header of an .mp4 file that is only known after the file is finished being created (though this would effectively mean you need to seek on stdout, which I didn't think was possible)?</div><div><br></div></div><div apple-content-edited="true"><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><div>Regards,</div><div><br style="font-size: 12px; "></div><div>John</div><div><br style="font-size: 12px; "></div><div>Falling You - exploring the beauty of voice and sound</div><div><a href="http://www.fallingyou.com">http://www.fallingyou.com</a></div><div><br style="font-size: 12px; "></div><div><br style="font-size: 12px; "></div><div><br style="font-size: 12px; "></div><div><br style="font-size: 12px; "></div><div><br style="font-size: 12px; "></div><div><br style="font-size: 12px; "></div><div><br style="font-size: 12px; "></div><div><br style="font-size: 12px; "></div><div><br style="font-size: 12px; "></div><br class="Apple-interchange-newline"></div></span> </div><br></div></body></html>