Projects
Multimedia
h264enc
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 391
View file
h264enc.spec
Changed
@@ -1,7 +1,7 @@ # norootforbuild Name: h264enc -Version: 10.4.4 +Version: 10.4.5 Release: 1 License: GPL-2.0+ @@ -58,6 +58,9 @@ %changelog +* Mon Sep 14 2015 Grozdan Nikolov <neutrino8@gmail.com> 10.4.5 + * Fixed a small issue in the detection of aspect ratio when forcing it + * Thu Sep 10 2015 Grozdan Nikolov <neutrino8@gmail.com> 10.4.4 * Portability improvements. It should now work on other UNIXes
View file
h264enc-10.4.4.tar.gz/doc/ChangeLog -> h264enc-10.4.5.tar.gz/doc/ChangeLog
Changed
@@ -1,3 +1,6 @@ +2015-09-14 - h264enc 10.4.5 + * Fixed a small issue in the detection of aspect ratio when forcing it + 2015-09-10 - h264enc 10.4.4 * Portability improvements. It should now work on other UNIXes
View file
h264enc-10.4.4.tar.gz/h264enc -> h264enc-10.4.5.tar.gz/h264enc
Changed
@@ -1,5 +1,5 @@ #!/usr/bin/env bash -# $Id: h264enc, v 10.4.4, 2015/09/10, gn Exp $ +# $Id: h264enc, v 10.4.5, 2015/09/14, gn Exp $ # # Encode BDs/DVDs/VCDs/video files to the H.264/AVC/MPEG-4 Part 10 # video format using MEncoder from MPlayer @@ -23,7 +23,7 @@ shopt -u expand_aliases export PATH=$PATH:/usr/local/bin -version=10.4.4 +version=10.4.5 configversion=35 green() { echo -e "\e[1;32m$1\e[0;39;49m"; } @@ -4429,6 +4429,7 @@ VWIDTH="$(echo "$GETRES" | awk -Fx '{print $1}')" VHEIGHT="$(echo "$GETRES" | awk -Fx '{print $2}')" RATIO="$(grep '^ID_VIDEO_ASPECT' "$TEMPDIR/resolution" | tail -n 1 | awk -F= '{print $2}')" + DEFRATIO="$RATIO" PIXELS="$(($(echo "$GETRES" | sed 's|x|*|')))" green "-> Detected Aspect Ratio (AR): $RATIO:1" ;; @@ -4436,6 +4437,7 @@ VWIDTH="$(echo $cropfilter | sed 's|crop=||' | awk -F: '{print $1}')" VHEIGHT="$(echo $cropfilter | sed 's|crop=||' | awk -F: '{print $2}')" RATIO="$VWIDTH/$VHEIGHT" + DEFRATIO="$(echo "scale=4; $RATIO" | $BC -l | sed 's|^\.|0\.|')" PIXELS="$(($(echo "$GETRES" | sed 's|x|*|')))" green "-> Detected Aspect Ratio (AR): $(echo "scale=4; $RATIO" | $BC -l | sed 's|^\.|0\.|'):1" ;; @@ -4443,6 +4445,7 @@ VWIDTH="$(echo $scale | sed "s|${ilpack}scale=||" | awk -F: '{print $1}')" VHEIGHT="$(echo $scale | sed "s|${ilpack}scale=||" | awk -F: '{print $2}')" RATIO="$VWIDTH/$VHEIGHT" + DEFRATIO="$(echo "scale=4; $RATIO" | $BC -l | sed 's|^\.|0\.|')" PIXELS="$(($(echo $scale | sed "s|${ilpack}scale=||; s|:|*|")))" green "-> Aspect Ratio (AR): $(echo "scale=4; $RATIO" | $BC -l | sed 's|^\.|0\.|'):1" ;; @@ -4727,9 +4730,9 @@ if [ "$aratio" = "y" ]; then echo green "-> Detecting video aspect ratio..." - if [ ! -z "$RATIO" ]; then - green "-> Detected: $RATIO" - V_ASPECT="$RATIO" + if [ ! -z "$DEFRATIO" ]; then + green "-> Detected: $DEFRATIO" + V_ASPECT="$DEFRATIO" else error "-> Could not detect the video aspect!" V_ASPECT="16:9"
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
.