Projects
Multimedia
ffx264
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 67
View file
ffx264.changes
Changed
@@ -1,4 +1,15 @@ ------------------------------------------------------------------- +Wed Dec 27 11:37:00 UTC 2017 - neutrino8@opensuse.org + +- Update to version 3.5.6 + * Renamed array variable CHARS to VCHARS in the video_chars_func() + function + * Report pixel format in the video_chars_func() function + * Removed strange copy-paste word in the colrospace conversion code + * Use -v quiet instead of -v error log level for ffprobe + * Cosmetics + +------------------------------------------------------------------- Mon Dec 25 10:36:00 UTC 2017 - neutrino8@opensuse.org - Update to version 3.5.5
View file
ffx264.spec
Changed
@@ -17,7 +17,7 @@ Name: ffx264 -Version: 3.5.5 +Version: 3.5.6 Release: 0 Summary: A small shell script for encoding to H.264 with ffmpeg License: GPL-2.0+
View file
ffx264-3.5.5.tar.gz/ChangeLog -> ffx264-3.5.6.tar.gz/ChangeLog
Changed
@@ -1,3 +1,12 @@ +2017-12-27 - ffx264 3.5.6 + * Renamed array variable CHARS to VCHARS in the + video_chars_func() function + * Report pixel format in the video_chars_func() function + * Removed strange copy-paste word in the colrospace + conversion code + * Use -v quiet instead of -v error log level for ffprobe + * Cosmetics + 2017-12-25 - ffx264 3.5.5 * Initial support for HDR to SDR conversions. Requires FFmpeg to be compiled with the zimg library as it
View file
ffx264-3.5.5.tar.gz/ffx264 -> ffx264-3.5.6.tar.gz/ffx264
Changed
@@ -2,8 +2,8 @@ # # Small script to encode to H.264/AVC video using FFmpeg and libx264. # Author: Grozdan "microchip" Nikolov <neutrino8@opensuse.org> -# Version: 3.5.5 -# Date: 2017-11-25 +# Version: 3.5.6 +# Date: 2017-11-27 # # ffx264 is free software ; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -24,7 +24,7 @@ brown() { echo -e "\e0;33m$1\e0;39;49m"; } error() { echo -e "\e1;31m$1\e0;39;49m"; } -version="3.5.5" +version="3.5.6" CFG="$HOME/.ffx264" cfgversion="34" @@ -775,7 +775,7 @@ # Used by mc/bobbing deinterlace and FPS conversion video_fps_func() { - GETFPS="$($FFPROBE -i "$input" -v error -select_streams v:0 -show_entries stream=r_frame_rate -of default=noprint_wrappers=1:nokey=1 | tail -1)" + GETFPS="$($FFPROBE -i "$input" -v quiet -select_streams v:0 -show_entries stream=r_frame_rate -of default=noprint_wrappers=1:nokey=1 | tail -1)" } # Used by mc/bobbing deinterlace, IVTC and interlace-aware encoding @@ -783,7 +783,7 @@ echo green "-> Detecting Field Parity..." sleep 1 - FPAR="$($FFPROBE -i "$input" -v error -select_streams v:0 -show_entries stream=field_order -of default=noprint_wrappers=1:nokey=1 | tail -1)" + FPAR="$($FFPROBE -i "$input" -v quiet -select_streams v:0 -show_entries stream=field_order -of default=noprint_wrappers=1:nokey=1 | tail -1)" case "$FPAR" in t*|T*) fp="tff"; fparity="Top Field First (TFF)" ;; b*|B*) fp="bff"; fparity="Bottom Field First (BFF)" ;; @@ -916,7 +916,7 @@ echo green "-> Detecting Pixel Format..." sleep 1 - PIXFMT="$($FFPROBE -i "$input" -v error -select_streams v:0 -show_entries stream=pix_fmt -of default=noprint_wrappers=1:nokey=1 | tail -1)" + PIXFMT="$($FFPROBE -i "$input" -v quiet -select_streams v:0 -show_entries stream=pix_fmt -of default=noprint_wrappers=1:nokey=1 | tail -1)" green "-> Detected $(echo "$PIXFMT" | tr 'a-z' 'A-Z')" echo brown " Pixel Formats" @@ -953,22 +953,24 @@ } video_chars_func() { - for i in {1..4}; do + for i in {1..5}; do case "$i" in 1) chari="color_range" ;; 2) chari="color_space" ;; 3) chari="color_transfer" ;; 4) chari="color_primaries" ;; + 5) chari="pix_fmt" ;; esac - CHARSi="$($FFPROBE -i "$input" -v error -select_streams v:0 -show_entries stream=${chari} -of default=noprint_wrappers=1:nokey=1 | tail -1)" + VCHARSi="$($FFPROBE -i "$input" -v quiet -select_streams v:0 -show_entries stream=${chari} -of default=noprint_wrappers=1:nokey=1 | tail -1)" done to_upper() { echo "$1" | tr 'a-z' 'A-Z' } - green "-> Color Range: $(to_upper "${CHARS1}")" - green "-> Color Space: $(to_upper "${CHARS2}")" - green "-> Color Transfer: $(to_upper "${CHARS3}")" - green "-> Color Primaries: $(to_upper "${CHARS4}")" + green "-> Color Range: $(to_upper "${VCHARS1}")" + green "-> Color Space: $(to_upper "${VCHARS2}")" + green "-> Color Transfer: $(to_upper "${VCHARS3}")" + green "-> Color Primaries: $(to_upper "${VCHARS4}")" + green "-> Pixel Format: $(to_upper "${VCHARS5}")" } video_hdr_to_sdr_func() { @@ -995,8 +997,8 @@ echo " 6 -> Mobius" echo printf "Specify the Tone Mapping Algorithm default is 6: " - read tma - case "$tma" in + read tmaopt + case "$tmaopt" in 0) tm_algo="none" ;; 1) tm_algo="clip" ;; 2) tm_algo="linear" ;; @@ -1010,7 +1012,7 @@ ;; esac echo - green "-> Detecting characteristics..." + green "-> Detecting Video Characteristics..." sleep 1 video_chars_func echo @@ -1025,9 +1027,9 @@ read ctpopt case "$ctpopt" in 0|"") - test "${CHARS2}" = "unknown" && colmatrix="undef" || colmatrix="${CHARS2}" - test "${CHARS3}" = "unknown" && coltrans="undef" || coltrans="${CHARS3}" - test "${CHARS4}" = "unknown" && colprim="undef" || colprim="${CHARS4}" + test "${VCHARS2}" = "unknown" && colmatrix="undef" || colmatrix="${VCHARS2}" + test "${VCHARS3}" = "unknown" && coltrans="undef" || coltrans="${VCHARS3}" + test "${VCHARS4}" = "unknown" && colprim="undef" || colprim="${VCHARS4}" colorprim=":colormatrix=$colmatrix:colorprim=$colprim:transfer=$coltrans" ;; 1) zscale=",zscale=transfer=bt709:primaries=bt709:matrix=bt709"; colorprim=":colormatrix=bt709:colorprim=bt709:transfer=bt709" ;; @@ -1049,7 +1051,7 @@ read ctp if "$ctp" = "y" -o "$ctp" = "Y" ; then echo - green "-> Detecting characteristics..." + green "-> Detecting Video Characteristics..." sleep 1 video_chars_func echo @@ -1120,7 +1122,7 @@ printf "Specify the Colorspace Conversion option press 'Enter' to skip: " read csopt case "$csopt" in - 1)popay + 1) cspace="iall=bt470m:ispace=bt470m:itrc=bt470m:iprimaries=bt470m:irange=$irange:all=smpte170m:space=smpte170m:trc=smpte170m:primaries=smpte170m:range=$orange:dither=fsb" colorprim=":colormatrix=smpte170m:colorprim=smpte170m:transfer=smpte170m" ;; @@ -1256,8 +1258,8 @@ # calc for target file size video_length_func() { case "$1" in - file) VLENGTH="$($FFPROBE -i "$input" -v error -select_streams v:0 -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 | tail -1 | awk -F. '{print $1}')" ;; - batch) echo "VLENGTH=\"\$($FFPROBE -i \"\$i\" -v error -select_streams v:0 -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 | tail -1 | awk -F. '{print \$1}')\"" ;; + file) VLENGTH="$($FFPROBE -i "$input" -v quiet -select_streams v:0 -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 | tail -1 | awk -F. '{print $1}')" ;; + batch) echo "VLENGTH=\"\$($FFPROBE -i \"\$i\" -v quiet -select_streams v:0 -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 | tail -1 | awk -F. '{print \$1}')\"" ;; esac } @@ -1307,8 +1309,8 @@ echo green "-> Detecting video resolution..." sleep 1 - WIDTH="$($FFPROBE -i "$input" -v error -select_streams v:0 -show_entries stream=width -of default=noprint_wrappers=1:nokey=1 | tail -1)" - HEIGHT="$($FFPROBE -i "$input" -v error -select_streams v:0 -show_entries stream=height -of default=noprint_wrappers=1:nokey=1 | tail -1)" + WIDTH="$($FFPROBE -i "$input" -v quiet -select_streams v:0 -show_entries stream=width -of default=noprint_wrappers=1:nokey=1 | tail -1)" + HEIGHT="$($FFPROBE -i "$input" -v quiet -select_streams v:0 -show_entries stream=height -of default=noprint_wrappers=1:nokey=1 | tail -1)" if ! -z "$crop" ; then green "-> Original resolution: ${WIDTH}x${HEIGHT}" if -z "$batchmode" ; then @@ -1459,7 +1461,7 @@ read cprim if "$cprim" = "y" -o "$cprim" = "Y" ; then echo - green "-> Detecting characteristics..." + green "-> Detecting Video Characteristics..." sleep 1 video_chars_func echo @@ -2661,7 +2663,7 @@ green "-> Track $i: detecting audio sample rate..." sleep 1 aidi="$(($(echo "${atracki}" | awk -F: '{print $2}')-1))" - ASRi="$($FFPROBE -i "$input" -v error -select_streams a:${aidi} -show_entries stream=sample_rate -of default=noprint_wrappers=1:nokey=1 | tail -1)" + ASRi="$($FFPROBE -i "$input" -v quiet -select_streams a:${aidi} -show_entries stream=sample_rate -of default=noprint_wrappers=1:nokey=1 | tail -1)" if ! -z "${ASRi}" ; then green "-> Track $i: detected ${ASRi} Hz" else @@ -2911,7 +2913,7 @@ for i in $(eval echo "{1..$ATRACKS}"); do if "${acodeci}" = "copy" ; then aidi="$(($(echo "${atracki}" | awk -F: '{print $2}')-1))" - abtri="$($FFPROBE -i "$input" -v error -select_streams a:${aidi} -show_entries stream=bit_rate -of default=noprint_wrappers=1:nokey=1 | tail -1)" + abtri="$($FFPROBE -i "$input" -v quiet -select_streams a:${aidi} -show_entries stream=bit_rate -of default=noprint_wrappers=1:nokey=1 | tail -1)" case "${abtri}" in 1-9*) abitratei="$((${abtri}/1000))" ;; ""|*) abitratei="0" ;;
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.