PDA

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


mzcl-mn
04-03-2012, 07:56 AM
Software used:
Replay Media Catcher (http://all-streaming-media.com/record-video-stream/Replay-Media-Catcher-HTTP-RTMP-FLV-MP3-ripper-recorder.htm) (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/record-flash-video-rtp-play-site-portugal-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:

# 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:

# 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.

chap
04-03-2012, 08:10 AM
use mplayer2,vlc2
mplayer2 "rtmp://62.41.78.105/vodrtp/nas2.share/videos/auto/planetamusica/planetamusica_1_20120331" -dumpstream -dumpfile t.flv
vlc "rtmp://62.41.78.105/vodrtp/nas2.share/videos/auto/planetamusica/planetamusica_1_20120331" --demux=dump --demuxdump-file=t.flv

mzcl-mn
04-03-2012, 08:55 AM
use mplayer2,vlc2
mplayer2 "rtmp://62.41.78.105/vodrtp/nas2.share/videos/auto/planetamusica/planetamusica_1_20120331" -dumpstream -dumpfile t.flv
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!

KSV
04-03-2012, 12:30 PM
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.

http://stream-recorder.com/forum/release-unofficial-rtmpdump-binaries-t11030.html

chap
04-03-2012, 02:13 PM
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.

http://stream-recorder.com/forum/release-unofficial-rtmpdump-binaries-t11030.html

ok,works fine:cool:

mzcl-mn
04-09-2012, 06:00 AM
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.

KSV
04-10-2012, 09:12 AM
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.

http://stream-recorder.com/forum/release-unofficial-rtmpdump-binaries-t11030.html

mzcl-mn
04-15-2012, 02:24 AM
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.

mzcl-mn
04-18-2012, 05:08 AM
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...:confused: )

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

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.