LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-16-2011, 05:47 PM   #1
cipocip
LQ Newbie
 
Registered: Jan 2011
Location: USA
Distribution: Ubuntu 10.10
Posts: 5

Rep: Reputation: 0
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.
 
Old 01-17-2011, 04:29 PM   #2
Snark1994
Senior Member
 
Registered: Sep 2010
Location: Wales, UK
Distribution: Arch
Posts: 1,630
Blog Entries: 3

Rep: Reputation: 345Reputation: 345Reputation: 345Reputation: 345
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
 
1 members found this post helpful.
Old 01-18-2011, 12:04 AM   #3
cipocip
LQ Newbie
 
Registered: Jan 2011
Location: USA
Distribution: Ubuntu 10.10
Posts: 5

Original Poster
Rep: Reputation: 0
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
 
Old 01-18-2011, 06:42 AM   #4
almatic
Member
 
Registered: Mar 2007
Distribution: Debian
Posts: 547

Rep: Reputation: 67
it's just sound, right ?
if everything else fails you could just fire up audacity and record from the soundcard.
 
Old 01-18-2011, 10:07 AM   #5
cipocip
LQ Newbie
 
Registered: Jan 2011
Location: USA
Distribution: Ubuntu 10.10
Posts: 5

Original Poster
Rep: Reputation: 0
No, it fails to record both video and sound.
 
Old 01-18-2011, 06:43 PM   #6
almatic
Member
 
Registered: Mar 2007
Distribution: Debian
Posts: 547

Rep: Reputation: 67
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 ...
 
1 members found this post helpful.
Old 01-19-2011, 11:00 AM   #7
Snark1994
Senior Member
 
Registered: Sep 2010
Location: Wales, UK
Distribution: Arch
Posts: 1,630
Blog Entries: 3

Rep: Reputation: 345Reputation: 345Reputation: 345Reputation: 345
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)
 
Old 01-20-2011, 09:44 PM   #8
cipocip
LQ Newbie
 
Registered: Jan 2011
Location: USA
Distribution: Ubuntu 10.10
Posts: 5

Original Poster
Rep: Reputation: 0
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
 
Old 01-21-2011, 10:17 AM   #9
Snark1994
Senior Member
 
Registered: Sep 2010
Location: Wales, UK
Distribution: Arch
Posts: 1,630
Blog Entries: 3

Rep: Reputation: 345Reputation: 345Reputation: 345Reputation: 345
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
 
Old 01-21-2011, 11:23 AM   #10
cipocip
LQ Newbie
 
Registered: Jan 2011
Location: USA
Distribution: Ubuntu 10.10
Posts: 5

Original Poster
Rep: Reputation: 0
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).
 
Old 06-15-2012, 01:30 AM   #11
f10-next
Member
 
Registered: May 2009
Posts: 33
Blog Entries: 1

Rep: Reputation: Disabled
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
 
Old 06-16-2012, 05:47 AM   #12
Snark1994
Senior Member
 
Registered: Sep 2010
Location: Wales, UK
Distribution: Arch
Posts: 1,630
Blog Entries: 3

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
saving streaming audio apolinsky Debian 2 01-28-2010 11:02 PM
Darwin streaming server Video streaming local only ahmed_as8 Linux - Networking 2 05-28-2009 02:52 PM
saving a streaming flash movie linuxhippy Slackware 35 10-20-2007 04:22 PM
totem streaming media pasalacqua128 Linux - Software 0 06-11-2004 01:54 PM
Saving Streaming Video Program yamaduc Linux - Software 1 06-19-2003 04:18 AM


All times are GMT -5. The time now is 07:30 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration