updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / tv3get / tv3get.sh
blobc8b3640eabecd62db60ebfcc619d8beeeac7044a
1 #!/bin/sh
3 NOM=`wget -o /dev/null -O - "http://www.tv3.cat/su/tvc/tvcConditionalAccess.jsp?ID="$1"&QUALITY=H&FORMAT=MP4" |
4 grep media\ videoname= |
5 sed 's/.*videoname="//;s/".*//' |
6 iconv -f iso-8859-15 - |
7 sed 's#[?:\/*"<> ]#_#g;s#&quot;#_#g'`
9 echo ${NOM}
11 wget -o /dev/null -O - "http://www.tv3.cat/su/tvc/tvcConditionalAccess.jsp?ID="$1"&QUALITY=H&FORMAT=MP4" |
12 grep rtmp |
13 iconv -f iso-8859-15 - |
14 sed "s/.*rtmp/rtmp/;s/?.*//" |
15 xargs rtmpdump -r |
16 ffmpeg -i - -vcodec copy -acodec copy TV3-${NOM}.mp4