RTMPDump Windows Builds

Steam recording with RTMPDump or FFmpeg.
User avatar
Zeranoe
Site Admin
Posts: 640
Joined: Sat May 07, 2011 7:12 pm
Contact:

RTMPDump Windows Builds

Post by Zeranoe » Thu Feb 28, 2013 5:57 am

RTMPDump Windows Builds

Here are Win32 and Win64 static builds for RTMPDump
The source code for the builds can be download here: rtmpdump-20140302-git-79459a2.tar.xz

Both builds are licenesed under the GPL 2 and gpl-2.0.txt can be found within the archives.

UPDATED: 2014-04-08

svnpenn
Posts: 263
Joined: Tue Nov 01, 2011 12:19 am

Re: RTMPDump Windows Builds

Post by svnpenn » Thu Feb 28, 2013 3:15 pm

I would be interested in your build script.

User avatar
Zeranoe
Site Admin
Posts: 640
Joined: Sat May 07, 2011 7:12 pm
Contact:

Re: RTMPDump Windows Builds

Post by Zeranoe » Thu Feb 28, 2013 6:57 pm

You'll need to slightly modify it to fit your own computer.

Code: Select all

#!/bin/bash

working_dir="$(pwd)"
pkg_dir='/home/kyle/software/ffmpeg/pkgs'

pkg='rtmpdump'

gnutls_ver='3.1.9'
nettle_ver='2.6'
gmp_ver='5.1.1'
zlib_ver='1.2.7'

yes_no_sel () {
unset usr_input
question="$1"
shift
while [[ "$usr_input" != [YyNn] ]]; do
  echo -n "$question"
  read usr_input
  if [[ "$usr_input" != [YyNn] ]]; then
    echo 'Your selection was not vaild, please try again.'
  fi
done
case "$usr_input" in
  [Yy] ) return 0 ;;
  [Nn] ) return 1 ;;
esac
}

mkdir -p './source'

cd "./source" || exit 1
if [[ -d "./$pkg-git" ]]; then
  cd "./$pkg-git" || exit 1
  read -rn 7 git_pre_hash < './.git/refs/heads/master'
  git pull
  read -rn 7 git_hash < './.git/refs/heads/master'
  read -r git_date < <(git log --date=iso --pretty=fuller | grep -o [0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9] | head -n 2 | tail -n 1)
  if [[ "$git_pre_hash" = "$git_hash" ]]; then
    if ! yes_no_sel "$pkg is the latest version, rebuild? "; then
      exit 1
    fi
  fi
else
  git clone git://git.ffmpeg.org/rtmpdump $pkg-git
  cd "./$pkg-git"
  read -rn 7 git_hash < './.git/refs/heads/master'
  read -r git_date < <(git log --date=iso --pretty=fuller | grep -o [0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9] | head -n 2 | tail -n 1)
fi
ver="${git_date//-/}-git-$git_hash"

cd ..
rm -frv "./$pkg-$ver" "./$pkg-$ver.tar.xz"
cp -r "./$pkg-git" "./$pkg-$ver"
rm -frv "./$pkg-$ver/.git"*
tar -vcJf "$pkg-$ver.tar.xz" "$pkg-$ver/" || exit 1
rm -frv "./$pkg-$ver"
cd "./$pkg-git" || exit 1

clean_build () {
if [[ "$(ls -A .)" ]]; then
  cd ..
  rm -frv './build' || return 1
  mkdir './build' || return 1
  cd './build' || return 1
else
  echo "build is already empty."
  return 0
fi
}

compile_command () {
make_type="$1"
shift

local prefix="$working_dir/$pkg-$ver-$arch"

rm -frv "$prefix"
pwd
CROSS_COMPILE=$cross- make XLDFLAGS="-L$pkg_dir/gnutls/gnutls-$gnutls_ver-$arch/lib -L$pkg_dir/nettle/nettle-$nettle_ver-$arch/lib -L$pkg_dir/gmp/gmp-$gmp_ver-$arch/lib -L$pkg_dir/zlib/zlib-$zlib_ver-$arch/lib" XCFLAGS="-I$pkg_dir/gnutls/gnutls-$gnutls_ver-$arch/include -I$pkg_dir/nettle/nettle-$nettle_ver-$arch/include -I$pkg_dir/gmp/gmp-$gmp_ver-$arch/include -I$pkg_dir/zlib/zlib-$zlib_ver-$arch/include" prefix="$prefix" SYS=mingw CRYPTO=GNUTLS SHARED= XLIBS='-lcrypt32' $make_type
}

build_pkg () {
cross="$1-w64-mingw32"
case "$1" in
  'i686' ) arch='win32' ;;
  'x86_64' ) arch='win64' ;;
esac
shift

compile_command clean
compile_command || exit 1
compile_command install || exit 1
}

build_pkg 'i686' || exit 1
build_pkg 'x86_64' || exit 1

svnpenn
Posts: 263
Joined: Tue Nov 01, 2011 12:19 am

Re: RTMPDump Windows Builds

Post by svnpenn » Thu Feb 28, 2013 7:08 pm

Why do you prefer GnuTls over PolarSSL?

User avatar
Zeranoe
Site Admin
Posts: 640
Joined: Sat May 07, 2011 7:12 pm
Contact:

Re: RTMPDump Windows Builds

Post by Zeranoe » Fri Mar 01, 2013 3:11 am

FFmpeg supports GnuTLS as an external library, so it was convenient. Also, polarssl failed to compile several times for me.

svnpenn
Posts: 263
Joined: Tue Nov 01, 2011 12:19 am

Re: RTMPDump Windows Builds

Post by svnpenn » Fri Mar 01, 2013 4:44 am

Here is my script if you are interested

github.com/svnpenn/a/blob/master/scripts/install-rtmpdump.sh

User avatar
Zeranoe
Site Admin
Posts: 640
Joined: Sat May 07, 2011 7:12 pm
Contact:

Re: RTMPDump Windows Builds

Post by Zeranoe » Fri Mar 01, 2013 8:17 am

Have you tried using my MingGW-w64 Build Script for your cross toolchain?

svnpenn
Posts: 263
Joined: Tue Nov 01, 2011 12:19 am

Re: RTMPDump Windows Builds

Post by svnpenn » Fri Mar 01, 2013 9:18 am

Zeranoe wrote:Have you tried using my MingGW-w64 Build Script for your cross toolchain?
Why would I want to build MinGW-w64, when its already built?

cygwin.com/packages/mingw64-i686-gcc-core

User avatar
Zeranoe
Site Admin
Posts: 640
Joined: Sat May 07, 2011 7:12 pm
Contact:

Re: RTMPDump Windows Builds

Post by Zeranoe » Fri Mar 01, 2013 3:14 pm

Those builds are rather old, and there is a lot to benefit from keeping a updated cross toolchain.

svnpenn
Posts: 263
Joined: Tue Nov 01, 2011 12:19 am

Re: RTMPDump Windows Builds

Post by svnpenn » Mon Mar 25, 2013 4:10 pm

Hey bro, your builds do not work with Hulu URLs, notice

32

Code: Select all

$ rtmpdump-20121209-git-3a1e20c-win32/rtmpdump -W http://download.hulu.com/huludeskto
p.swf -r rtmpe://hulu-863.fcod.llnwd.net/a2461/o23 -a 'a2461/o23?as=adobe-hmac-sha256
&av=1&te=connect&mp=863/50005863&et=1364227912&fmta-token=d5f73583ea259c172ab12cf8ce3
7bc36181f2074dba31db9f41c8276423b8592&hgt=OZU7Pvs7j27-nhteNno7wtM8_5tBYzoMh1Z58EIu4RZ
_UEylAeebpDB0Kr38Y64MGPQsa-ygkdaJNyUhN7zRxqneB7Cix-MHXlUTl4r-3VX1SFTdPvMjayPlhKKjgMEn
WOwbyVunCyntnUUXivFZMkHlwB5U6LvH62z97-BfknJRU4nx3NUvNbh6oCJ_Mp2bK4y3MNGws2yNcKaZodXRC
WmtJ6imdoc3Tpd1CQSQCiYasvj_ELBUgnDkB5gdkosH4tRV_Div9PZ4r2CVxNSLBuaZoNXaRzDB-LQYTLhBVe
k=&hgt_ver=331370278' -y mp4:863/50005863/agave50005863_738559_H264_1000.mp4 -o 'Rick
 Steves'\'' Europe 1x13 The Best of Sicily.flv'
RTMPDump v2.4
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
Segmentation fault
64

Code: Select all

$ rtmpdump-20121209-git-3a1e20c-win64/rtmpdump -W http://download.hulu.com/huludeskto
p.swf -r rtmpe://hulu-863.fcod.llnwd.net/a2461/o23 -a 'a2461/o23?as=adobe-hmac-sha256
&av=1&te=connect&mp=863/50005863&et=1364227912&fmta-token=d5f73583ea259c172ab12cf8ce3
7bc36181f2074dba31db9f41c8276423b8592&hgt=OZU7Pvs7j27-nhteNno7wtM8_5tBYzoMh1Z58EIu4RZ
_UEylAeebpDB0Kr38Y64MGPQsa-ygkdaJNyUhN7zRxqneB7Cix-MHXlUTl4r-3VX1SFTdPvMjayPlhKKjgMEn
WOwbyVunCyntnUUXivFZMkHlwB5U6LvH62z97-BfknJRU4nx3NUvNbh6oCJ_Mp2bK4y3MNGws2yNcKaZodXRC
WmtJ6imdoc3Tpd1CQSQCiYasvj_ELBUgnDkB5gdkosH4tRV_Div9PZ4r2CVxNSLBuaZoNXaRzDB-LQYTLhBVe
k=&hgt_ver=331370278' -y mp4:863/50005863/agave50005863_738559_H264_1000.mp4 -o 'Rick
 Steves'\'' Europe 1x13 The Best of Sicily.flv'
RTMPDump v2.4
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
Segmentation fault
mine

Code: Select all

$ rtmpdump -W http://download.hulu.com/huludesktop.swf -r rtmpe://hulu-863.fcod.llnwd
.net/a2461/o23 -a 'a2461/o23?as=adobe-hmac-sha256&av=1&te=connect&mp=863/50005863&et=
1364227912&fmta-token=d5f73583ea259c172ab12cf8ce37bc36181f2074dba31db9f41c8276423b859
2&hgt=OZU7Pvs7j27-nhteNno7wtM8_5tBYzoMh1Z58EIu4RZ_UEylAeebpDB0Kr38Y64MGPQsa-ygkdaJNyU
hN7zRxqneB7Cix-MHXlUTl4r-3VX1SFTdPvMjayPlhKKjgMEnWOwbyVunCyntnUUXivFZMkHlwB5U6LvH62z9
7-BfknJRU4nx3NUvNbh6oCJ_Mp2bK4y3MNGws2yNcKaZodXRCWmtJ6imdoc3Tpd1CQSQCiYasvj_ELBUgnDkB
5gdkosH4tRV_Div9PZ4r2CVxNSLBuaZoNXaRzDB-LQYTLhBVek=&hgt_ver=331370278' -y mp4:863/500
05863/agave50005863_738559_H264_1000.mp4 -o 'Rick Steves'\'' Europe 1x13 The Best of
Sicily.flv'
RTMPDump v2.4-81-g2872601
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
WARNING: HandShake: Type mismatch: client sent 6, server answered 9
INFO: Connected...
Starting download at: 0.000 kB
INFO: Metadata:
INFO:   duration              1567.63
INFO:   moovPosition          36.00
INFO:   width                 640.00
INFO:   height                480.00
INFO:   videocodecid          avc1
INFO:   audiocodecid          mp4a
INFO:   avcprofile            100.00
INFO:   avclevel              30.00
INFO:   aacaot                2.00
INFO:   videoframerate        29.97
INFO:   audiosamplerate       22050.00
INFO:   audiochannels         2.00
INFO: tags:
INFO:   ©too                 Hulu v1.3
INFO: trackinfo:
INFO:   length                47027981.00
INFO:   timescale             30000.00
INFO:   language              und
INFO: sampledescription:
INFO:   sampletype            avc1
INFO:   length                69132288.00
INFO:   timescale             44100.00
INFO:   language              und
INFO: sampledescription:
INFO:   sampletype            mp4a
1764.173 kB / 18.22 sec (1.1%)

Post Reply