Audio/video stream recording forums

Attention Visitor:
You may have to register or log in before you can post:
  • Click the register link to sign up.
  • Registered members please fill in the form below and click the "Log in" button.
To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Audio/video stream recording forums > Streaming media recording forum > rtmpdump
Register FAQ Members List Calendar Mark Forums Read

Reply Post New Thread
 
Thread Tools Display Modes
  #1  
Old 04-03-2012, 08:56 AM
mzcl-mn mzcl-mn is offline
Junior Member
 
Join Date: Apr 2012
Posts: 11
mzcl-mn is on a distinguished road
Exclamation

How to record flash video from rtp site? (The resulting flv file is unplayable)


Software used:
Replay Media Catcher (works)
rtmpdump / rtmpsrv v2.4 7340f6d~git on Ubuntu 11.10 x86_64 (doesn't produce a readable flv file)
Hello everybody. I have posted almost this same post on another forum here at stream-recorder so I am going to edit it so it won't be regarded as spamming and refer it back to this one. The previous location was:

http://stream-recorder.com/forum/rec...al-t11359.html

I think this forum here would be much more appropriate, but forgive me if I am wrong...

Here is the story:

I am trying to record a video program from 'rtp' video on demand site. As I am trying to migrate to linux I much rather prefer not to use windows. It is a little cumbersome to divide the pc's time with another OS when maybe all the tasks could be done with Linux.

Let us move on...

So, I begun trying rtmpdump to see if I had some success.

rtmpdump works well on live audio shows from the same rtp domain. (That is if I use the live option)

But... for videos (namely this 'planetamusica' program) it doesn't.

Version one of the command:

Code:
# rtmpdump -r "rtmp://h2a.rtp.pt/redirectvodrtp" -a "redirectvodrtp" -f "LNX 11,2,202,228" -W "http://www.rtp.pt/swfjs/player/player.swf" -p "http://www.rtp.pt/programas-rtp/index.php?p_id=28042&e_id&c_id=1&dif=tv" -y "nas2.share/videos/auto/planetamusica/planetamusica_1_20120331" -o planetamusica_1_20120331.flv

(This was version one of the command that was output from standard procedure with rtmpsrv).

But, unfortunately, even with it I would end up with a large file (an unreadable one, too).

So I discovered that the file in question is one that can only be downloaded with the live option set. So I added the -v option.

But when that live option is set, the redirection prevents it from being downloaded.

So, next phase, was to verbose the output. Doing this I got the redirection url. So, I replaced the original rtmp url by the one that is referred by the redirection, and erased the -a option and its value.

Also, after some reading of rtmpdump man's pages I realised that most of the other parameters might not be necessary after all, so I slimmed the command version to this one:

Code:
# rtmpdump -v -r "rtmp://62.41.78.105:1935/vodrtp"  -y  "nas2.share/videos/auto/planetamusica/planetamusica_1_20120331" -o planetamusica_1_20120331.flv
Still, the file that I got is not playable.

Can there be any solution to this issue?

Thanks in advance.
Reply With Quote
  #2  
Old 04-03-2012, 09:10 AM
chap chap is offline
Senior Member
 
Join Date: Feb 2011
Location: Ukraine
Posts: 1,165
chap is on a distinguished road
Default

Re: ? How to record flash video from rtp site? (The resulting flv file is unplayable)


use mplayer2,vlc2
Code:
mplayer2 "rtmp://62.41.78.105/vodrtp/nas2.share/videos/auto/planetamusica/planetamusica_1_20120331" -dumpstream -dumpfile t.flv
Code:
vlc "rtmp://62.41.78.105/vodrtp/nas2.share/videos/auto/planetamusica/planetamusica_1_20120331" --demux=dump --demuxdump-file=t.flv
Reply With Quote
  #3  
Old 04-03-2012, 09:55 AM
mzcl-mn mzcl-mn is offline
Junior Member
 
Join Date: Apr 2012
Posts: 11
mzcl-mn is on a distinguished road
Default

Re: ? How to record flash video from rtp site? (The resulting flv file is unplayable)


Quote:
Originally Posted by chap View Post
use mplayer2,vlc2
Code:
mplayer2 "rtmp://62.41.78.105/vodrtp/nas2.share/videos/auto/planetamusica/planetamusica_1_20120331" -dumpstream -dumpfile t.flv
Code:
vlc "rtmp://62.41.78.105/vodrtp/nas2.share/videos/auto/planetamusica/planetamusica_1_20120331" --demux=dump --demuxdump-file=t.flv
Dear chap,

Thanks a lot!

Worked like a charm!

Cheers!
Reply With Quote
  #4  
Old 04-03-2012, 01:30 PM
KSV KSV is offline
Senior Member
 
Join Date: Apr 2011
Posts: 853
KSV is on a distinguished road
Cool

Re: ? How to record flash video from rtp site? (The resulting flv file is unplayable)


it was a rarely occurring bug in rtmpdump. rtmpdump wasn't saving flv header into file making it unplayable. i have fixed it. check the following package. it also supports automatic redirection handling.

Code:
http://stream-recorder.com/forum/release-unofficial-rtmpdump-binaries-t11030.html
Reply With Quote
  #5  
Old 04-03-2012, 03:13 PM
chap chap is offline
Senior Member
 
Join Date: Feb 2011
Location: Ukraine
Posts: 1,165
chap is on a distinguished road
Default

Re: ? How to record flash video from rtp site? (The resulting flv file is unplayable)


Quote:
Originally Posted by KSV View Post
it was a rarely occurring bug in rtmpdump. rtmpdump wasn't saving flv header into file making it unplayable. i have fixed it. check the following package. it also supports automatic redirection handling.

Code:
http://stream-recorder.com/forum/release-unofficial-rtmpdump-binaries-t11030.html
ok,works fine
Reply With Quote
  #6  
Old 04-09-2012, 07:00 AM
mzcl-mn mzcl-mn is offline
Junior Member
 
Join Date: Apr 2012
Posts: 11
mzcl-mn is on a distinguished road
Question

Re: ? How to record flash video from rtp site? (The resulting flv file is unplayable)


Hello,

Thank you very much for all your suggestions.

Been trying to compile following KSV instructions.

Still, I have been unsuccessful.

I keep getting the "undefined reference to `sqrt' `atan' and `exp'" functions, even if I use the -lm option inserted either on the XLDFLAGS declaration on the bash, either on LDFLAGS declaration on the makefile.

Can you help me?

Thanks.
Reply With Quote
  #7  
Old 04-10-2012, 10:12 AM
KSV KSV is offline
Senior Member
 
Join Date: Apr 2011
Posts: 853
KSV is on a distinguished road
Cool

Re: ? How to record flash video from rtp site? (The resulting flv file is unplayable)


Quote:
Originally Posted by mzcl-mn View Post
I keep getting the "undefined reference to `sqrt' `atan' and `exp'" functions, even if I use the -lm option inserted either on the XLDFLAGS declaration on the bash, either on LDFLAGS declaration on the makefile.

Can you help me?
it means your compiler is not picking up the math library. try afresh with the the package and instructions specified in first post of following thread.

Code:
http://stream-recorder.com/forum/release-unofficial-rtmpdump-binaries-t11030.html
Reply With Quote
  #8  
Old 04-15-2012, 03:24 AM
mzcl-mn mzcl-mn is offline
Junior Member
 
Join Date: Apr 2012
Posts: 11
mzcl-mn is on a distinguished road
Angry

Re: ? How to record flash video from rtp site? (The resulting flv file is unplayable)


Hello KSV,

Thanks for all the assistance you've been giving out so far...

I did try the procedure you've pointed out on the first post.

I tried it first and then other procedures also on the thread. But with no avail.

I keep getting the 'undefined' references to those functions that are given by C's math library.

Still i do pass the -lm option on the XLDFLAGS command line argument, still there is something wrong as it doesn't seem to be picking up math library...

When you mean afresh do you mean uninstalling (purging) currently installed rtmpdump?

Thanks.
Reply With Quote
  #9  
Old 04-18-2012, 06:08 AM
mzcl-mn mzcl-mn is offline
Junior Member
 
Join Date: Apr 2012
Posts: 11
mzcl-mn is on a distinguished road
Red face

Re: ? How to record flash video from rtp site? (The resulting flv file is unplayable)


Hello KSV and chap,

I've mistakenly chosen to use the 'angry' icon at the previously post...

Maybe your lack of response is due to that.

And I am most definitely responsible for that, I didn't notice the unhappy icon which was the one that I had wanted to pick up in the first place. (and it was right beside it... )

So even if you choose not to answer my queries, I've most definitely earned that silence.

My apologies, and I sure know that you've helped me out so far, more than I did back.

Cheers guys, see you another time when this mishap might have been solved.

Bye.
Reply With Quote
Reply Post New Thread
Tags: , , , , , , , ,



Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 11:58 PM.


Powered by All-streaming-media.com; 2006-2011
vB forum hacked with Zoints add-ons