Author Topic: ffmpeg Static Build  (Read 8075 times)

Offline jonnyboy

  • Epic Indexer
  • *****
  • Posts: 1046
  • Helpful: +93/-1
  • Lazzy Trucker
    • nZEDb
ffmpeg Static Build
« on: 2013-09-29, 02:16:03 AM »
Here is a little bash script to get the current static build for ffmpeg. PHP is easier, and this is not pretty, but I needed it in another script.
Run as root:
Code: [Select]
# Use static build of ffmpeg
try=`date +"%Y%m%d"`
for i in {1..30} ; do
wget http://johnvansickle.com/ffmpeg/builds/ffmpeg-git-$try-64bit-static.tar.bz2
if [ $? -gt 0 ]; then
try=`date -d "- $i day" +"%Y%m%d"`
                $((i ++ ))
else
break
fi
done
filename=$(basename "`find . -name *.bz2`")
tar xfv $filename
extension="${filename##*.}"
filename="${filename%.*}"
extension="${filename##*.}"
filename="${filename%.*}"
mv $filename/ffmpeg-10bit /usr/bin/ffmpeg
mv $filename/ffprobe /usr/bin/
rm -r $filename
rm $(basename "`find . -name *.bz2`")

I am testing the 10bit version, it may not work for nZEDb. If you use it, consider donating to the author.
« Last Edit: 2013-09-29, 02:42:59 AM by jonnyboy »

Offline dildo_baggins

  • Prolific Indexer
  • ****
  • Posts: 112
  • Helpful: +7/-0
Re: ffmpeg Static Build
« Reply #1 on: 2014-10-08, 04:44:37 PM »
is this script being updated?   kinda useful but getting an invalid date when executing

Offline NZBmets

  • Prolific Indexer
  • ****
  • Posts: 260
  • Helpful: +11/-0
Re: ffmpeg Static Build
« Reply #2 on: 2014-10-10, 09:28:15 AM »
is this script being updated?   kinda useful but getting an invalid date when executing

Have a look here: http://ffmpeg.gusari.org/static/64bit/
There is a file named 'ffmpeg.static.64bit.latest.tar.gz' which is always the latest build

Offline dildo_baggins

  • Prolific Indexer
  • ****
  • Posts: 112
  • Helpful: +7/-0
Re: ffmpeg Static Build
« Reply #3 on: 2014-10-14, 07:57:07 PM »
but this script did all the heavy lifting ;)  thanks though

Offline sinistra

  • Decent Indexer
  • ***
  • Posts: 83
  • Helpful: +2/-0
Re: ffmpeg Static Build
« Reply #4 on: 2015-01-30, 01:39:14 PM »
I have updated the script so it works again, filenames and some other things changed.

Code: [Select]
# Use static build of ffmpeg
wget http://johnvansickle.com/ffmpeg/builds/ffmpeg-git-64bit-static.tar.xz
filename=$(basename "`find . -name *.xz`")
tar xfv $filename
extension="${filename##*.}"
filename="${filename%.*}"
extension="${filename##*.}"
filename="${filename%.*}"
try=`date +"%Y%m%d"`
for i in {1..31} ; do
mv ffmpeg-git-$try-64bit-static/ffmpeg-10bit /usr/bin/ffmpeg
mv ffmpeg-git-$try-64bit-static/ffprobe /usr/bin/
rm -rf ffmpeg-git-$try-64bit-static

if [ $? -gt 0 ]; then
try=`date -d "- $i day" +"%Y%m%d"`
                $((i ++ ))
else
break
fi
done
rm ffmpeg-git-64bit-static.tar.xz

Offline dildo_baggins

  • Prolific Indexer
  • ****
  • Posts: 112
  • Helpful: +7/-0
Re: ffmpeg Static Build
« Reply #5 on: 2015-02-27, 07:29:39 PM »
thank you @sinistra!