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

How can I record these RTMP streams?

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

babaganoosh 05-16-2012 09:10 AM

How can I record these RTMP streams?


 
A friend's son graduated from college last week. They asked me to see about making a copy of the video from the service.

Here's the web page with the video:

http://www.emory.edu/commencement/webcast/index.html

Here's I think the flash code related to the video. I tried saving the mp4, but it's only 73KB, I change the rtmp to http and that doesn't let you get the file. Any advice?

<script src="http://realaudio.service.emory.edu/clients/jwplayer5.9/jwplayer.js" type="text/javascript" ></script>
<div id="mediaplayer" ></div>
<script type="text/javascript">
jwplayer('mediaplayer').setup({
'id': 'playerID',
'width': '520',
'height': '316',
'provider': 'rtmp',
'streamer': 'rtmp://realaudio.service.emory.edu/EVENTS/COMMENCE/',
'file': 'commence2012.mp4',
'modes': [
{type: 'flash', src: 'http://realaudio.service.emory.edu/clients/jwplayer5.4/player.swf'},
{type: 'html5',
config: {
'file': 'http://realaudio.service.emory.edu/m3ugen/iPhone-src/EVENTS/COMMENCE/commence2012.mp4',
'provider': 'video'}
}
]
});
</script>

Bahman 05-16-2012 09:26 AM

Re: How can I record these RTMP streams?


 
Download this package and extract it in a folder!! Then double click on command.bat! ;)

babaganoosh 05-16-2012 09:34 AM

Re: How can I record these RTMP streams?


 
THANK YOU! It's doing it now, but it looks like it'd be fine. Can I ask - would you then convert it into a more 'usable' / easier to play format? mp4?

Any recommended converter you like?

svnpenn 05-16-2012 09:46 AM

Re: How can I record these RTMP streams?


 
Code:

ffmpeg -i commence2012.flv -c copy commence2012.mp4

babaganoosh 05-16-2012 09:55 AM

Re: How can I record these RTMP streams?


 
Wow! You guys are great!

babaganoosh 05-16-2012 03:05 PM

Re: How can I record these RTMP streams?


 
Sorry, one more question.

Is there a way to tell what the quality of the flv file is so that when i convert it to mp4 (using ojosoft total video converter), I don't choose super high quality and it takes so much longer to convert but there's no improvement in quality since I started with an flv that is 'good' quality and could have just chose a good quality for the mp4?

Right? (using somewhat of an analogy) making a blue ray of an old vcr tape will not give you blue ray quality. You'll just have a much bigger file and the quality will be vcr quality? Or taking a picture of a document with 14MP camera gives the same legibility of the text as a 200dpi scan would, but you have a much larger file?

greenythebeast 05-16-2012 03:28 PM

Re: How can I record these RTMP streams?


 
Quote:

Originally Posted by babaganoosh (Post 46226)
Sorry, one more question.

Is there a way to tell what the quality of the flv file is so that when i convert it to mp4 (using ojosoft total video converter), I don't choose super high quality and it takes so much longer to convert but there's no improvement in quality since I started with an flv that is 'good' quality and could have just chose a good quality for the mp4?

Right? (using somewhat of an analogy) making a blue ray of an old vcr tape will not give you blue ray quality. You'll just have a much bigger file and the quality will be vcr quality? Or taking a picture of a document with 14MP camera gives the same legibility of the text as a 200dpi scan would, but you have a much larger file?

Why don't you just use ffmpeg like the previous poster suggested? ffmpeg remuxes as opposed to converting and should be quick and light on your CPU.

babaganoosh 05-16-2012 09:06 PM

Re: How can I record these RTMP streams?


 
Greeny - why? ignorance : )

I will use it!

Just did. Damn! Much faster! and a problem I had with ojo was that the original feed was widescreen and the ojo mp4 is 640 x 480.

ffmpeg kept the proportions.

I make problems for myself : (

1 question - the audio of the mp4 using ffmpeg is just a tiny hair off from the video. Looking at the flv, they are in sync. Anything I can do about that?

You guys are GREAT!!!

svnpenn 05-16-2012 11:44 PM

Re: How can I record these RTMP streams?


 
. .

greenythebeast 05-17-2012 02:08 AM

Re: How can I record these RTMP streams?


 
Quote:

Originally Posted by babaganoosh (Post 46239)
Greeny - why? ignorance : )

I will use it!

Just did. Damn! Much faster! and a problem I had with ojo was that the original feed was widescreen and the ojo mp4 is 640 x 480.

ffmpeg kept the proportions.

I make problems for myself : (

1 question - the audio of the mp4 using ffmpeg is just a tiny hair off from the video. Looking at the flv, they are in sync. Anything I can do about that?

You guys are GREAT!!!

Try this:
Code:

ffmpeg -i commence2012.flv -c copy -async 1 commence2012.mp4

babaganoosh 05-17-2012 05:55 AM

Re: How can I record these RTMP streams?


 
Thanks. I tried that but it's still the same - certainly not a big deal, just enough to say 'yeah, they're not in sync 100%'.

I looked at

http://ffmpeg.org/ffmpeg.html#Audio-Options

and was going to try the asyncts option, but that's not a switch, right? not sure how to use that.

greenythebeast 05-17-2012 07:16 AM

Re: How can I record these RTMP streams?


 
Quote:

Originally Posted by babaganoosh (Post 46268)
Thanks. I tried that but it's still the same - certainly not a big deal, just enough to say 'yeah, they're not in sync 100%'.

I looked at

http://ffmpeg.org/ffmpeg.html#Audio-Options

and was going to try the asyncts option, but that's not a switch, right? not sure how to use that.

Never used asyncts before, so I can't help you there. Maybe someone else around here knows how to use it?

Also, what's the resolution of the video you got?

babaganoosh 05-17-2012 07:39 AM

Re: How can I record these RTMP streams?


 
how would I see that (the resolution)? watching the mp4, I don't have an info page that I can see in quicktime.

greenythebeast 05-17-2012 07:45 AM

Re: How can I record these RTMP streams?


 
Quote:

Originally Posted by babaganoosh (Post 46271)
how would I see that (the resolution)? watching the mp4, I don't have an info page that I can see in quicktime.

Well, how big is the filesize?

babaganoosh 05-17-2012 10:26 AM

Re: How can I record these RTMP streams?


 
1.3 Gb

greenythebeast 05-17-2012 12:29 PM

Re: How can I record these RTMP streams?


 
Ah, alright. Well I found that there is a 720p copy of the video file on the server as well:
Code:

rtmpdump -r "rtmp://realaudio.service.emory.edu/EVENTS/COMMENCE/" -a "EVENTS/COMMENCE/" -f "WIN 11,2,202,235" -W "http://realaudio.service.emory.edu/clients/jwplayer5.4/player.swf" -p "http://www.emory.edu/commencement/webcast/index.html" -y "mp4:commence2012-2.mp4" -o mp4_commence2012-2.flv
So if you want a higher quality version you could download that. Maybe the sync issue would be fixed in that too.

compn 05-22-2012 05:21 AM

Re: How can I record these RTMP streams?


 
use ffmpeg -i yourfile
(do not specify an output file!)

will output helpful info:

Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 720x404 [SAR 404:405 DAR 16:9], 947 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc


All times are GMT -6. The time now is 09:51 PM.