Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 1d82ba5923
Fetching contributors…

Cannot retrieve contributors at this time

executable file 76 lines (66 sloc) 1.042 kb
#!/bin/bash
# Fix for live streams
answers ()
{
# rtmp.c
for aa in \
y y y y y y y y y y \
y y y y y y y y y y \
y y y y y y y y y y \
y y y y n n n n n y \
n n y
do
echo $aa
done
# rtmp.h
for aa in \
y y y
do
echo $aa
done
# rtmp_sys.h
for aa in \
n y n n
do
echo $aa
done
# rtmpdump.c
for aa in \
n y n n n y
do
echo $aa
done
}
git reset --hard origin~1
git apply -p0 ../Patch.diff
git add -p \
librtmp/rtmp.c \
librtmp/rtmp.h \
librtmp/rtmp_sys.h \
rtmpdump.c \
< <(answers)
git commit -m foo
git reset --hard
make rtmpdump \
SYS=mingw \
CRYPTO=POLARSSL \
CROSS_COMPILE=i686-w64-mingw32- \
SHARED= \
XLDFLAGS=-static || exit
grepkill ()
{
# search stderr, then kill
while [ -d /proc/$! ]
do
if grep -q "$1" $2
then
kill -13 %%
> $2
echo
fi
sleep 1
done
}
./rtmpdump -a live/kiss -o a.flv -r rtmp://fms53.mediadirect.ro/live/kiss \
-\# 2> >(tee kk) &
grepkill '#####################' kk
Jump to Line
Something went wrong with that request. Please try again.