Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   Video stream recording (http://stream-recorder.com/forum/forumdisplay.php?f=4)
-   -  

seeon.tv: Trying to record this stream

(http://stream-recorder.com/forum/showthread.php?t=9024)

primtim34 05-05-2011 02:31 PM

seeon.tv: Trying to record this stream


 
I thought I had the correct stream from this website
http://www.seeon.tv/view/11073/
as this:
rtmp://live0.seeon.tv/edge/nvcrd4lz4zs0w34

but it isn't working. I would love to setup a script where I can record this stream for 60 minutes when I execute the script. Any help on this would be greatly appreciated. Thanks.

Stream Recorder 05-05-2011 09:13 PM

Re: seeon.tv: Trying to record this stream


 
Have you tried to use RTMPexplorer (Windows)?

primtim34 05-05-2011 09:39 PM

Re: seeon.tv: Trying to record this stream


 
It has to be done in linux. Any help with that?

Stream Recorder 05-05-2011 10:07 PM

Re: seeon.tv: Trying to record this stream


 
then use rtmpsrv or rtmpsuck

bat999 05-05-2011 11:54 PM

Re: seeon.tv: Trying to record this stream


 
Hi
rtmpsrv gives a command that doesn't work with RTMPDump.:(
It gives this one:-
Code:

rtmpdump -r "rtmp://live00.seeon.tv/redirect" -a "redirect" -f "LNX 10,1,102,64" -W "http://www.seeon.tv/jwplayer/player.swf" -p "http://www.seeon.tv/view/11073/" -y "nvcrd4lz4zs0w34" -o nvcrd4lz4zs0w34.flv
And the result is:-
Quote:

ERROR: rtmp server sent error
ERROR: rtmp server requested close
Then I tried with Coojah6 with Windows.
It gives this one:-
Code:

rtmpdump -r "rtmp://live2.seeon.tv/edge/nvcrd4lz4zs0w34" -a "edge" -f "LNX 10,1,102,64" -W "http://www.seeon.tv/jwplayer/player.swf" -p "http://www.seeon.tv/view/11073/" -y "nvcrd4lz4zs0w34" -o nvcrd4lz4zs0w34.flv
And it works OK. :) :cool: :)

Quote:

on@ubuntu:~$ rtmpdump -r "rtmp://live2.seeon.tv/edge/nvcrd4lz4zs0w34" -a "edge" -f "LNX 10,1,102,64" -W "http://www.seeon.tv/jwplayer/player.swf" -p "http://www.seeon.tv/view/11073/" -y "nvcrd4lz4zs0w34" -o nvcrd4lz4zs0w34.flv
RTMPDump v2.3 r568
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
Starting download at: 0.000 kB
INFO: Metadata:
INFO: author
INFO: copyright
INFO: description
INFO: keywords
INFO: rating
INFO: title
INFO: presetname Custom
INFO: creationdate Wed Apr 13 18:22:26 2011
INFO: videodevice MagicCamera Capture(User Mode)
INFO: framerate 25.00
INFO: width 320.00
INFO: height 240.00
INFO: videocodecid avc1
INFO: videodatarate 400.00
INFO: avclevel 31.00
INFO: avcprofile 66.00
INFO: videokeyframe_frequency5.00
INFO: audiodevice Digital Audio Interface (WinTV
INFO: audiosamplerate 22050.00
INFO: audiochannels 2.00
INFO: audioinputvolume 75.00
INFO: audiocodecid .mp3
INFO: audiodatarate 56.00

KSV 05-06-2011 12:37 AM

Re: seeon.tv: Trying to record this stream


 
http://stream-recorder.com/forum/sho...39&postcount=2

bat999 05-06-2011 01:00 AM

Re: seeon.tv: Trying to record this stream


 
Quote:

Originally Posted by KSV (Post 28717)

Quote:

Originally Posted by KSV (Post 27339)
It's simple. when you use the rtmp parameters from html server sends a 302 redirect AMF packet which contains the new url.

Well, that's good to know.;)
I ran the dud command with -V parameter.
It showed a redirect url, like you said.
So I used it with the f,W,p,y and o parameters...
And it worked OK :) :)

It seems there are a few redirect links.
Sometimes it's rtmp://live1.seeon.tv/edge/nvcrd4lz4zs0w34, sometimes live2, live3 and live4.

primtim34 05-06-2011 07:07 AM

Re: seeon.tv: Trying to record this stream


 
Wow you guys are awesome. So what would I do if I wanted to record the stream for 1 hour instead of indefinitely?

KSV 05-06-2011 07:44 AM

Re: seeon.tv: Trying to record this stream


 
Quote:

Originally Posted by primtim34 (Post 28737)
Wow you guys are awesome. So what would I do if I wanted to record the stream for 1 hour instead of indefinitely?

just use the --stop switch. to record 1 minute clip use
Code:

rtmpdump.exe -r "rtmp://live1.seeon.tv/edge/nvcrd4lz4zs0w34" -p "http://www.seeon.tv/view/11073" -W "http://www.seeon.tv/jwplayer/player.swf" --stop 60 --live -o Test.flv
Code:

RTMPDump v2.3 r568 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
Starting Live Stream
For duration: 60.000 sec

INFO: Metadata:
INFO:  author
INFO:  copyright
INFO:  description
INFO:  keywords
INFO:  rating
INFO:  title
INFO:  presetname            Custom
INFO:  creationdate          Wed Apr 13 18:22:26 2011
INFO:  videodevice          MagicCamera Capture(User Mode)
INFO:  framerate            25.00
INFO:  width                320.00
INFO:  height                240.00
INFO:  videocodecid          avc1
INFO:  videodatarate        400.00
INFO:  avclevel              31.00
INFO:  avcprofile            66.00
INFO:  videokeyframe_frequency5.00
INFO:  audiodevice          Digital Audio Interface (WinTV
INFO:  audiosamplerate      22050.00
INFO:  audiochannels        2.00
INFO:  audioinputvolume      75.00
INFO:  audiocodecid          .mp3
INFO:  audiodatarate        56.00
2666.693 kB / 60.00 sec
Download complete

stop time is in seconds. for an hour long recording use 3600.

primtim34 05-06-2011 04:19 PM

Re: seeon.tv: Trying to record this stream


 
Is there any way to have the filename dynamically changed based on date it was recorded etc? I want to use this record the stream everyday but I don't want it to overwrite itself.

KSV 05-07-2011 12:45 AM

Re: seeon.tv: Trying to record this stream


 
This is very simple in any scripting language. if you are using simple batch file then use:
Code:

for /f "tokens=1-6 delims=/:." %%a in ("%date%.%time%") do set FileName="MyShow - %%a-%%b-%%c - %%d-%%e-%%f.flv"
rtmpdump.exe -r "rtmp://live1.seeon.tv/edge/nvcrd4lz4zs0w34" -p "http://www.seeon.tv/view/11073" -W "http://www.seeon.tv/jwplayer/player.swf" --stop 3600 --live -o %FileName%


Stream Recorder 05-07-2011 05:28 AM

Re: seeon.tv: Trying to record this stream


 
Quote:

Originally Posted by KSV (Post 28754)
Code:

for /f "tokens=1-6 delims=/:." %%a in ("%date%.%time%") do set FileName="MyShow - %%a-%%b-%%c - %%d-%%e-%%f.flv"

Could you please explain how it works? Specifically:
1. Where do the variables %%b, %%c, %%d, %%e, %%f come from?
2. What is "tokens=1-6 delims=/:."?

chap 05-07-2011 06:02 AM

Re: seeon.tv: Trying to record this stream


 
Quote:

Originally Posted by KSV (Post 28754)
This is very simple in any scripting language. if you are using simple batch file then use:
Code:

for /f "tokens=1-6 delims=/:." %%a in ("%date%.%time%") do set FileName="MyShow - %%a-%%b-%%c - %%d-%%e-%%f.flv"
rtmpdump.exe -r "rtmp://live1.seeon.tv/edge/nvcrd4lz4zs0w34" -p "http://www.seeon.tv/view/11073" -W "http://www.seeon.tv/jwplayer/player.swf" --stop 3600 --live -o %FileName%


It works. You know a lot.:cool: Respect!
Code:

C:\Documents and Settings\Администратор\Мои документы\rtmpdump-2.3>for /F "token
s=1-6 delims=/:." %a in ("07.05.2011.14:54:23,64") do set FileName="MyShow - %a-
%b-%c - %d-%e-%f.flv"

C:\Documents and Settings\Администратор\Мои документы\rtmpdump-2.3>set FileName=
"MyShow - 07-05-2011 - 14-54-23,64.flv"

C:\Documents and Settings\Администратор\Мои документы\rtmpdump-2.3>rtmpdump.exe
-r "rtmp://live1.seeon.tv/edge/nvcrd4lz4zs0w34" -p "http://www.seeon.tv/view/110
73" -W "http://www.seeon.tv/jwplayer/player.swf" --stop 3600 --live -o "MyShow -
 07-05-2011 - 14-54-23,64.flv"
RTMPDump v2.3 r568 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
Starting Live Stream
For duration: 3600.000 sec
INFO: Metadata:
INFO:  author
INFO:  copyright
INFO:  description
INFO:  keywords
INFO:  rating
INFO:  title
INFO:  presetname            Custom
INFO:  creationdate          Wed Apr 13 18:22:26 2011
INFO:  videodevice          MagicCamera Capture(User Mode)
INFO:  framerate            25.00
INFO:  width                320.00
INFO:  height                240.00
INFO:  videocodecid          avc1
INFO:  videodatarate        400.00
INFO:  avclevel              31.00
INFO:  avcprofile            66.00
INFO:  videokeyframe_frequency5.00
INFO:  audiodevice          Digital Audio Interface (WinTV
INFO:  audiosamplerate      22050.00
INFO:  audiochannels        2.00
INFO:  audioinputvolume      75.00
INFO:  audiocodecid          .mp3
INFO:  audiodatarate        56.00
2049.631 kB / 36.43 sec


KSV 05-07-2011 07:07 AM

Re: seeon.tv: Trying to record this stream


 
Quote:

Originally Posted by Stream Recorder (Post 28763)
Could you please explain how it works? Specifically:
1. Where do the variables %%b, %%c, %%d, %%e, %%f come from?
2. What is "tokens=1-6 delims=/:."?

token 1-6 specifies that we want to divide the input string ("%date%.%time%") in maximum 6 parts starting from %a. delims specifies the delimiters that will be used to break the string.

PS: when using outside the batch file use single % eg: %a instead of %%a

primtim34 05-07-2011 08:09 AM

Re: seeon.tv: Trying to record this stream


 
Any chance I could get you to write that same script but for a linux machine instead of a windows one? Thanks. :D

KSV 05-07-2011 08:11 AM

Re: seeon.tv: Trying to record this stream


 
Quote:

Originally Posted by bat999 (Post 28719)
It seems there are a few redirect links.
Sometimes it's rtmp://live1.seeon.tv/edge/nvcrd4lz4zs0w34, sometimes live2, live3 and live4.

it's just their load balancing trick. stream is available on all servers anyway.

KSV 05-07-2011 08:53 AM

Re: seeon.tv: Trying to record this stream


 
Quote:

Originally Posted by primtim34 (Post 28770)
Any chance I could get you to write that same script but for a linux machine instead of a windows one? Thanks. :D

The following script should do the trick
Code:

#! /bin/bash
FileName=`date +"MyShow - %0d-%0m-%0y - %0k-%0M-%0S.flv"`
rtmpdump.exe -r rtmp://live1.seeon.tv/edge/nvcrd4lz4zs0w34 -p http://www.seeon.tv/view/11073 -W http://www.seeon.tv/jwplayer/player.swf --stop 3600 --live -o \"$FileName\"



All times are GMT -6. The time now is 02:11 AM.