Page 1 of 1

Stream Capture

Posted: 25 Jun 2007 23:52
by Just4Fun20
I'm just looking for a short answer to serve as a sanity check and also to push me in the right direction. I've just spent the last several hours trying to capture a video stream. Ultimately I'd like to make it into an MPEG-2 so that I can put it on a regularly playable DVD. It's a medical file and many people have been unable to view it.

I followed the URL's and ended up with an RTSP:// extension. The file requires Quicktime to be installed, so that must be the video format. I tried a half dozen "capture" programs but was most impressed with VLC. I've made the most progress using this program. I can easily view the streaming video using VLC. Using the Wizard I can even tell it to capture to a file and it does capture a file. However, regardless of leaving it alone or transcode options or the encapsulation options I can not get a viewable capture. The audio plays but no video, even with the VNC client. GSPOT detects the encapsulation and audio properly but nothing on the video codec.

The implication is that I can't capture Quicktime / RTSP streaming video. Has anyone succeeded with this? For starters I'd be happy to save and then replay with VNC. I don't see a lot in the way of additional codec's or modules that need to be added. Perhaps there's a combination of output transcoding and/or encapsulation that would work.

Thank you for any suggestions.

Re: Stream Capture

Posted: 27 Jun 2007 08:41
by DJ
From h.264 or MP4v to MPEG 2 you will need the fps=<framerate> option. Use the original framerate.

Re: RTSP / QT Stream Capture Problems

Posted: 27 Jun 2007 17:26
by Just4Fun20
Thank you for the suggestion. I've tried a dozen different combinations, still without success. I was unable to determine the "original" framerate so I assumed 29.97. I did this by adding the following to the "Stream Output MRL" "Target" line.
:sout=#transcode{vcodec=mp4v,vb=1024,scale=1}:duplicate{dst=std{access=file,mux=ps,fps-29.97,dst="C:\downloads\test.mov"}}
Whenever I "transcode" it creates a file, generally the audio will play but the video will not and GSPOT can't seem to identify the Video Codec (although it can detect the encapsulation).

I tried "Dump Raw Input". This causes an interesting problem. Normally I'm opening a "network stream" and then selecting the RTSP line. I plug in an address (RTSP://.../myfile.mov) and it plays the movie. When it transcodes the movie doesn't play, but I assume that is normal, since it is rendering to a file, not the display. When I select "Dump Raw Input" (on the Stream output screen, Output-File line) I get an error in the message screen basically saying it can't find the RTSP://.../myfile.cue file (note that this is a .cue file), then it fails with an error saying it couldn't find the .mov file. Here is the log file. I replaced the file (I used a find/replace on the path to be sure it was identical in each instance) path to make it more readable. Normally it's several hundred hexadecimal characters:
main debug: adding playlist item `rtsp://.../myfile0.mov' ( rtsp://.../myfile0.mov )
main debug: creating new input thread
main debug: waiting for thread completion
main debug: thread 4416 (input) created at priority 1 (input/input.c:265)
main debug: `rtsp://.../myfile0.mov' gives access `rtsp' demux `' path `.../myfile0.mov'
main debug: enforced demux ` dump'
main debug: creating access 'rtsp' path='.../myfile0.mov'
main debug: looking for access2 module: 5 candidates
main debug: net: connecting to a58.qt1vod.kamai.net port 554
main debug: connection in progress
access_realrtsp debug: rtsp connected
access_realrtsp warning: only real/helix rtsp servers supported for now
vcd debug: trying .cue file: .../myfile0.cue
vcd debug: could not find .cue file
access_file warning: .../myfile0.mov: No such file or directory
cdda debug: trying .cue file: .../myfile0.cue
cdda debug: could not find .cue file
cdda warning: could not open .../myfile0.mov
main warning: no access2 module matching "rtsp" could be loaded
main error: no suitable access module for `rtsp://.../myfile0.mov'
main debug: thread times: real 0m1.406250s, kernel 0m0.015625s, user 0m0.000000s
main debug: thread 4416 joined (input/input.c:412)
main: nothing to play
Thanks in advance for any help or advice (including, don't waste your time, it can't be done)