diff options
Diffstat (limited to 'bin/istream.sh')
-rwxr-xr-x | bin/istream.sh | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/bin/istream.sh b/bin/istream.sh index 438e322..b54417a 100755 --- a/bin/istream.sh +++ b/bin/istream.sh @@ -12,6 +12,7 @@ SEGWIN=$7 # Amount of Segments to produce FFPATH=$8 SEGMENTERPATH=$9 SESSION=${10} +FFMPEGLOG=${11} if [ $# -eq 0 ] then @@ -19,6 +20,12 @@ echo "Format is : ./istream.sh source video_rate audio_rate audio_channels 480x3 exit 1 fi +# Log +if [ -z "$FFMPEGLOG" ] +then + FFMPEGLOG="/dev/null" +fi + ############################################################# # start dumping the TS via Streamdev into a pipe for ffmpeg # and store baseline 3.0 mpegts to outputfile @@ -29,8 +36,8 @@ cd ../ram/$SESSION 2> /dev/null rm stream*.ts -2> /dev/null $FFPATH -i "$STREAM" -deinterlace -f mpegts -acodec libmp3lame -ab $ARATE -ac $ACHANNELS -s $XY -vcodec libx264 -b $VRATE -flags +loop \ +$FFPATH -i "$STREAM" -deinterlace -f mpegts -acodec libmp3lame -ab $ARATE -ac $ACHANNELS -s $XY -vcodec libx264 -b $VRATE -flags +loop \ -cmp \+chroma -partitions +parti4x4+partp8x8+partb8x8 -subq 5 -trellis 1 -refs 1 -coder 0 -me_range 16 -keyint_min 25 \ -sc_threshold 40 -i_qfactor 0.71 -bt $VRATE -maxrate $VRATE -bufsize $VRATE -rc_eq 'blurCplx^(1-qComp)' -qcomp 0.6 \ - -qmin 10 -qmax 51 -qdiff 4 -level 30 -g 30 -async 2 -threads 4 - | \ + -qmin 10 -qmax 51 -qdiff 4 -level 30 -g 30 -async 2 -threads 4 - 2>$FFMPEGLOG | \ $SEGMENTERPATH - $SEGDUR stream stream.m3u8 $HTTP_PATH$SESSION/ $SEGWIN & |