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

Customized rtmpdump binaries with patch file

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

nullacht 07-07-2013 04:45 AM

Re: Customized rtmpdump binaries with patch file


 
Attention: I moved this thread to the top of the forum.

This thread should be used to discuss everything about KSV's customized rtmpdump binaries and/or patch files!

If you don't know how to download a specific stream from a website, then you should definitely open a new thread!

Qotscha 07-09-2013 06:25 PM

Re: Customized rtmpdump binaries with patch file


 
With MPC-HC now supporting standard input, rtmpsrv-mpc.exe (like rtmpsrv-vlc but using C:\Program Files (x86)\MPC-HC\mpc-hc.exe instead of C:\Program Files (x86)\VideoLAN\VLC\vlc.exe) could be nice :)

RedPenguin 07-17-2013 02:15 AM

Re: Customized rtmpdump binaries with patch file


 
Lately I have been having issues with rtmpdump and Filmon.

I am attempting to record picktv or 372.(high/low).stream

I am using a batch file that goes to the site and gets the info.

http://tvpc.com/Channel.php?ChannelID=26492 you can go to play the channel to test.

But I have ran a debug and am getting this:

http://pastebin.com/Jb6ham8C

I have tried increasing the buffer and seem to be getting no where.

I have messed with a trial of Replay Media Catcher and it can record for 20+ min so I don't believe it's a server isuse.

EDIT: It appears that simply adding -f "WIN 11,7,700,224" appears to fix it somewhat for some reason on my Win 8 laptop but it fails on my Win XP PC and my buddy's Win 7. I can't seem to find what's causing the Win 8 PC to work.

KSV 07-17-2013 03:19 AM

Re: Customized rtmpdump binaries with patch file


 
Quote:

Originally Posted by RedPenguin (Post 62863)
I have tried increasing the buffer and seem to be getting no where.

I have messed with a trial of Replay Media Catcher and it can record for 20+ min so I don't believe it's a server issue.

try with --buffer 3000. i was able to record about 8 minutes of video without any problem. so i don't think it's a problem with rtmpdump.

Quote:

Originally Posted by Qotscha (Post 62798)
With MPC-HC now supporting standard input, rtmpsrv-mpc.exe (like rtmpsrv-vlc but using C:\Program Files (x86)\MPC-HC\mpc-hc.exe instead of C:\Program Files (x86)\VideoLAN\VLC\vlc.exe) could be nice :)

Actually you can define VLC environment variable to specify any player with whatever options you want and same will be used by rtmpsrv-vlc.

Windows:
Code:

set VLC="C:\Program Files (x86)\MPC-HC\mpc-hc.exe" -
rtmpsrv-vlc.exe


RedPenguin 07-17-2013 06:58 AM

Re: Customized rtmpdump binaries with patch file


 
Quote:

Originally Posted by KSV (Post 62864)
try with --buffer 3000. i was able to record about 8 minutes of video without any problem. so i don't think it's a problem with rtmpdump.

I put that in and for some reason every time it hits 121 secs, it disconnects and restarts.

EDIT: Maybe the ID system of their's is funky, cause I literally just left the script alone not touching anything and ran it again and now it works. Maybe I accidentally trigged some throttling from them or something, who knows.

gallina94 07-18-2013 08:37 AM

Re: Customized rtmpdump binaries with patch file


 
Quote:

Originally Posted by KSV (Post 61390)
Compiling with Patch for other systems:

assuming you have all tools (gcc, binutils etc.) and dependencies (OpenSSL, Zlib) installed correctly for your distribution.

1. clone the repository
Code:

git clone git://git.ffmpeg.org/rtmpdump
2. copy patch from package to rtmpdump directory and apply it
Code:

patch -p0 -i Patch.diff
3. then just compile and install normally
Code:

make
sudo make install prefix=/usr

Mac users should add SYS=darwin while compiling. you can also add XLDFLAGS="-s -static" to statically link and strip the resulting binary.

Hi, i was able to compile on UBUNTU 12.04 but as soon as i launche rtmpdump i get
Segmentation fault (core dumped)

any idea?

KSV 07-18-2013 10:34 AM

Re: Customized rtmpdump binaries with patch file


 
Quote:

Originally Posted by gallina94 (Post 62884)
Hi, i was able to compile on UBUNTU 12.04 but as soon as i launche rtmpdump i get
Segmentation fault (core dumped)

any idea?

Your rtmpdump is loading the wrong version of librtmp.so. try with ldd rtmpdump to determine the correct location of librtmp being loaded by rtmpdump and replace it with newly compiled version.

by default make install command installs the binaries in /usr/local path. you can change it by supplying the prefix switch.
Code:

sudo make install prefix=/usr
you can also compile static binary to avoid dependency on librtmp.

gallina94 07-18-2013 11:02 AM

Re: Customized rtmpdump binaries with patch file


 
Quote:

Originally Posted by KSV (Post 62887)
Your rtmpdump is loading the wrong version of librtmp.so. try with ldd rtmpdump to determine the correct location of librtmp being loaded by rtmpdump and replace it with newly compiled version.

by default make install command installs the binaries in /usr/local path. you can change it by supplying the prefix switch.
Code:

sudo make install prefix=/usr
you can also compile static binary to avoid dependency on librtmp.

You are the man!!!! Worked.
Thank you

RedPenguin 07-18-2013 02:27 PM

Re: Customized rtmpdump binaries with patch file


 
KSV, just to let you know, I was able to track down some fellow Filmon folks and they said even directly accessing the stream from their own website is experiencing similar behavior.

So that pretty much rules out rtmpdump in anyway.

It just one minute could let you record for 1hr, then other times disconnect you every few minutes.

Qotscha 07-20-2013 09:07 PM

Re: Customized rtmpdump binaries with patch file


 
Quote:

Originally Posted by KSV (Post 62864)
Actually you can define VLC environment variable to specify any player with whatever options you want and same will be used by rtmpsrv-vlc.

Windows:
Code:

set VLC="C:\Program Files (x86)\MPC-HC\mpc-hc.exe" -
rtmpsrv-vlc.exe


That's a convenient solution, thanks!


All times are GMT -6. The time now is 12:26 PM.