Projects
Multimedia
ffx264
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 3
View file
ffx264.changes
Changed
@@ -1,4 +1,11 @@ ------------------------------------------------------------------- +Tue Nov 01 00:35:00 UTC 2016 - neutrino8@gmail.com + +- Update to version 3.0.5 + * Added support for bobbing (deinterlace at double FPS) + * Cosmetics: add menu header to the Color Primaries option + +------------------------------------------------------------------- Tue Oct 18 20:27:00 UTC 2016 - neutrino8@gmail.com - Add changes file
View file
ffx264.spec
Changed
@@ -17,7 +17,7 @@ Name: ffx264 -Version: 3.0.4 +Version: 3.0.5 Release: 0 Summary: A small shell script for encoding to H.264 with ffmpeg License: GPL-2.0+
View file
ffx264-3.0.4.tar.gz/ChangeLog -> ffx264-3.0.5.tar.gz/ChangeLog
Changed
@@ -1,3 +1,7 @@ +2016-11-01 - ffx264 3.0.5 + * Added support for bobbing (deinterlace at double FPS) + * Cosmetics: add menu header to the Color Primaries option + 2016-10-11 - ffx264 3.0.4 * Fix video rotation for 180°. Don't use transpose=0 and transpose=3 as they cancel each others out
View file
ffx264-3.0.4.tar.gz/ffx264 -> ffx264-3.0.5.tar.gz/ffx264
Changed
@@ -1,16 +1,16 @@ #!/usr/bin/env bash # # Small script to encode to H.264/AVC video using FFmpeg and libx264. -# Author: Grozdan "microchip" Nikolov -# Version: 3.0.4 -# Date: 2016-10-11 +# Author: Grozdan "microchip" Nikolov <neutrino8@gmail.com> +# Version: 3.0.5 +# Date: 2016-11-01 # License: GNU GPLv2+ green() { echo -e "\e[1;32m$1\e[0;39;49m"; } brown() { echo -e "\e[0;33m$1\e[0;39;49m"; } error() { echo -e "\e[1;31m$1\e[0;39;49m"; } -version="3.0.4" +version="3.0.5" CFG="$HOME/.ffx264" cfgversion="21" @@ -446,7 +446,34 @@ printf "Deinterlace the Input File? [y/N]: " read deint if [ "$deint" = "y" -o "$deint" = "Y" ]; then - yadif="yadif," + echo + brown " Deinterlace Methods" + brown " ~~~~~~~~~~~~~~~~~~~" + echo " 0 -> Deinterlace at original FPS" + echo " 1 -> Bobbing (deinterlace at double FPS)" + echo + printf "Specify the Deinterlace Method [default is 0]: " + read dmethod + case "$dmethod" in + 0|"") yadif="yadif," ;; + 1) + FPSOUT="$(dirname "${OUTPUT%.*}")/.ff_fps$$" + $FFPROBE -i "$input" -select_streams v:0 -show_entries stream=r_frame_rate > "$FPSOUT" 2>&1 + FPS1="$(cat "$FPSOUT" | sed -n 's|r_frame_rate=||p' | awk -F/ '{print $1}')" + FPS2="$(cat "$FPSOUT" | sed -n 's|r_frame_rate=||p' | awk -F/ '{print $2}')" + rm -f "$FPSOUT" + echo + green "-> Detected $FPS1/$FPS2 FPS" + green "-> Setting output FPS to: $(($FPS1*2))/$FPS2" + echo + fps="-r $(($FPS1*2))/$FPS2" + yadif="yadif=1," + ;; + *) + error "-> Invalid option!" + exit 1 + ;; + esac fi fi @@ -513,6 +540,8 @@ read cprim if [ "$cprim" = "y" -o "$cprim" = "Y" ]; then echo + brown " Color Primaries" + brown " ~~~~~~~~~~~~~~~" echo " 0 -> smpte170m (NTSC DVD)" echo " 1 -> bt470bg (PAL DVD)" echo " 2 -> bt709 (HD/Full HD)" @@ -1073,7 +1102,7 @@ case "$1" in 1p|crf) test "$mode" = "1p" && pmode="bitrate=$vbitrate" || pmode="crf=$CRF" - OPTS1="-map 0:0 -disposition:v:0 default $NOSUBS $MDATA $CHPS $METATITLE $METAGENRE $METAYEAR $METACOMMENT $vfilters $sws" + OPTS1="-map 0:0 -disposition:v:0 default $fps $NOSUBS $MDATA $CHPS $METATITLE $METAGENRE $METAYEAR $METACOMMENT $vfilters $sws" OPTS2="${audparams[*]} ${auddis[*]} ${subcopy[*]} ${subdis[*]} $strict $movflags $METACOVER \"$OUTPUT\"" ;; 2p) @@ -1081,7 +1110,7 @@ passtwo="stats=\"$OUTFILE.log\":pass=2:bitrate=$vbitrate" OPTS1="-map 0:0" OPTS2="-an -f null -y /dev/null" - OPTS3="-map 0:0 -disposition:v:0 default $NOSUBS $MDATA $CHPS $METATITLE $METAGENRE $METAYEAR $METACOMMENT $vfilters $sws" + OPTS3="-map 0:0 -disposition:v:0 default $fps $NOSUBS $MDATA $CHPS $METATITLE $METAGENRE $METAYEAR $METACOMMENT $vfilters $sws" OPTS4="${audparams[*]} ${auddis[*]} ${subcopy[*]} ${subdis[*]} $strict $movflags $METACOVER \"$OUTPUT\"" ;; esac
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
.