Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. # Dune HD onlinetv2 plugin
  4.  
  5. cd ../../path;chmod +x ./bin/* ./lib*
  6.  
  7. echo -e "Content-type: video/mpeg\n\n"
  8.  
  9. export LD_LIBRARY_PATH=./lib:$LD_LIBRARY_PATH
  10.  
  11. URL=`echo "$QUERY_STRING" | sed "s/%20/ /g" | grep m3u9 | sed "s/m3u9/m3u8/g"`
  12.  
  13. URL="./bin/ffmpeg -user_agent 'smartlabs' $URL -vcodec copy -acodec copy -bsf dump_extra -y -f mpegts pipe:1"
  14.  
  15. eval $URL
  16.  
  17. exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement