LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   saving totem streaming video (https://www.linuxquestions.org/questions/linux-software-2/saving-totem-streaming-video-856705/)

cipocip 01-16-2011 05:47 PM

saving totem streaming video
 
Hello

I am trying to save the video located at:

rtsp://sg60.oar.net/OSC1/physics/Smith%20Seminar%20Room_5111/Smith%20Seminar%20Room_5111.ce

The only player that can play it is totem (I have tried vlc and mplayer without success), yet I would prefer to save it. Is there any way to do that without a screen capture program ?

Thank's.

Snark1994 01-17-2011 04:29 PM

Hm, you're right - the stream seems to be a strange type / broken / something else, as neither ffmpeg nor mplayer liked it (citing "unsupported RTSP server" and "Could not write header for output file #0 (incorrect codec parameters ?)" respectively)

However, openRTSP looks promising, and is designed specifically for RTSP streams, so maybe you'll have more mileage with that :)

cipocip 01-18-2011 12:04 AM

Thank's for the suggestion, but unfortunately openRTSP fails and prints the following (among other things):

Quote:

Received PLAY response: RTSP/1.0 404 Not Found
Server: STARBAK-rtspd/2.1.0 Linux/2.4.32 i686

Failed to start playing session: PLAY: cannot handle response: RTSP/1.0 404 Not Found

Received TEARDOWN response: RTSP/1.0 404 Not Found

almatic 01-18-2011 06:42 AM

it's just sound, right ?
if everything else fails you could just fire up audacity and record from the soundcard.

cipocip 01-18-2011 10:07 AM

No, it fails to record both video and sound.

almatic 01-18-2011 06:43 PM

I have tried it and audacity does record the sound perfectly.
I have also tried gstreamer for recording (totem uses gstreamer), but was unsuccessful. The stream can be played like this.

Code:

gst-launch-0.10 -v playbin uri=rtsp://sg60.oar.net/OSC1/physics/Smith%20Seminar%20Room_5111/Smith%20Seminar%20Room_5111.ce
I was also able to dump the data into a file with the following command.

Code:

gst-launch-0.10 rtspsrc location=rtsp://sg60.oar.net/OSC1/physics/Smith%20Seminar%20Room_5111/Smith%20Seminar%20Room_5111.ce ! filesink location=/tmp/test.out
However, I was unable to do anything useful with this output. It can not be played with anything I tried, nor can I make a valid video file out of it.
Maybe that gives you an idea if you wanna search further. I'm sure it can be done somehow, but gstreamer is pretty fiddly ...

Snark1994 01-19-2011 11:00 AM

I think you need to find an encoding element to add to the pipeline just before filesink (I've tried lame for mp3 encoding, but it didn't seem to work)

cipocip 01-20-2011 09:44 PM

I have found out that it plays with ffplay (but ffmpeg fails to save it), and I get the following info:

Code:

Duration: 01:30:09.11, start: 0.000000, bitrate: N/A
    Stream #0.0: Video: h263, yuv420p, 352x288 [PAR 12:11 DAR 4:3], 29.97 fps, 29.97 tbr, 90k tbn, 29.97 tbc
    Stream #0.1: Audio: pcm_mulaw, 8000 Hz, 1 channels, s16, 64 kb/s


Snark1994 01-21-2011 10:17 AM

Hm,yeah. It does give lots of errors (which is maybe why the others failed to play it?), but it plays... Have you tried using Audacity to record it playing through ffplay? Also, if almatic reports it working with Audacity, perhaps you should check if Audacity can record ANY sound from your soundcard - if it can't then maybe it hasn't been set up properly in order to do so :)

cipocip 01-21-2011 11:23 AM

Recording sound is not the problem here. It is the video.

Using a screen capture program, the video takes up a lot of disk space, is lower quality, and takes long to record. That's why I wished I knew how to dump the stream (in a readable format).

f10-next 06-15-2012 01:30 AM

I have the same problem
 
I downloaded an audio file .mp3 and want to save it from Totem as video .mp4 with the visual effects. How can I do this.
Tx

Snark1994 06-16-2012 05:47 AM

This thread's over a year old - it would have been better to start your own thread. What's the URL you're using?


All times are GMT -5. The time now is 02:12 PM.