Skip to content

Instantly share code, notes, and snippets.

@swirhen
Created July 30, 2012 15:12
Show Gist options
  • Save swirhen/3207667 to your computer and use it in GitHub Desktop.
Save swirhen/3207667 to your computer and use it in GitHub Desktop.
ほげー
filename="/data/share/movie/98 PSP用/agqr/"`date +"%Y%m%d_%H%M"`"_$1.flv"
efilename=`date +"%Y%m%d_%H%M"`"_$1.flv"
echo $filename
until [ -s "$filename" ]
do
rtmpdump --rtmp "rtmpe://fms1.uniqueradio.jp/" --playpath "aandg1" --app "?rtmp://fms-base1.mitene.ad.jp/agqr/" --live -o "$filename" --stop $2
done
cd "/data/share/movie/98 PSP用/agqr"
if [ $3 = v ]; then
/data/share/movie/sh/169mp4_agqr.sh "$efilename"
else
/usr/bin/wine ffmpeg.exe -i "$efilename" -acodec libmp3lame -ab 64k -ac 2 -ar 48000 "$efilename.mp3"
fi
mv $efilename "/data/share/movie/98 PSP用/agqr/flv"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment