From e559832628502186e1e6f3264d980e782d1900aa Mon Sep 17 00:00:00 2001 From: MJB <mjb@it-innovation.soton.ac.uk> Date: Fri, 9 Feb 2018 12:26:05 +0000 Subject: [PATCH] updates to errors in ffmpeg --- test/services/ffmpeg/install-ffmpeg.sh | 4 +++- test/services/ffmpeg/transcode.sh | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/test/services/ffmpeg/install-ffmpeg.sh b/test/services/ffmpeg/install-ffmpeg.sh index b6e755f..058f4bc 100644 --- a/test/services/ffmpeg/install-ffmpeg.sh +++ b/test/services/ffmpeg/install-ffmpeg.sh @@ -6,7 +6,9 @@ apt-get -y install zip python wget http://zebulon.bok.net/Bento4/binaries/Bento4-SDK-1-5-1-621.x86_64-unknown-linux.zip unzip Bento4-SDK-1-5-1-621.x86_64-unknown-linux.zip +mv Bento4-SDK-1-5-1-621.x86_64-unknown-linux /opt/ + sudo add-apt-repository ppa:jonathonf/ffmpeg-3 -sudo apt-get update && sudo apt install ffmpeg libav-tools x264 x265 +sudo apt-get update && sudo apt -y install ffmpeg libav-tools x264 x265 ffmpeg -version diff --git a/test/services/ffmpeg/transcode.sh b/test/services/ffmpeg/transcode.sh index 48d3d9e..929952e 100644 --- a/test/services/ffmpeg/transcode.sh +++ b/test/services/ffmpeg/transcode.sh @@ -20,10 +20,10 @@ rm -rf output ffmpeg -y -i $INPUT -profile:v baseline -level 3.0 -c:a aac -ac 2 -ab 128k -c:v libx264 -x264opts 'keyint=24:min-keyint=24:no-scenecut' -b:v 400k -maxrate 400k -bufsize 1000k -vf "scale=-1:360" -strict experimental $OUTPUT_iFRAMES # fragment MP4 -/home/ubuntu/Bento4-SDK-1-5-1-621.x86_64-unknown-linux/bin/mp4fragment --timescale 1000 $OUTPUT_iFRAMES $OUTPUT_FRAGMENTED +/opt/Bento4-SDK-1-5-1-621.x86_64-unknown-linux/bin/mp4fragment --timescale 1000 $OUTPUT_iFRAMES $OUTPUT_FRAGMENTED # Option 1 with Bento4 -/home/ubuntu/Bento4-SDK-1-5-1-621.x86_64-unknown-linux/bin/mp4dash --mpd-name=stream.mpd --use-segment-list --use-compat-namespace $OUTPUT_FRAGMENTED +/opt/Bento4-SDK-1-5-1-621.x86_64-unknown-linux/bin/mp4dash --mpd-name=stream.mpd --use-segment-list --use-compat-namespace $OUTPUT_FRAGMENTED # not sure what this is for mv output/audio/en/mp4a/* output/audio/en -- GitLab