Projects
Multimedia
h264enc
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 389
View file
h264enc.spec
Changed
@@ -1,7 +1,7 @@ # norootforbuild Name: h264enc -Version: 10.4.3 +Version: 10.4.4 Release: 1 License: GPL-2.0+ @@ -58,6 +58,9 @@ %changelog +* Thu Sep 10 2015 Grozdan Nikolov <neutrino8@gmail.com> 10.4.4 + * Portability improvements. It should now work on other UNIXes + * Tue Sep 08 2015 Grozdan Nikolov <neutrino8@gmail.com> 10.4.3 * Removed the $ from the index of array variables * Be more portable and use eval instead of seq in loops as seq is
View file
h264enc-10.4.3.tar.gz/doc/ChangeLog -> h264enc-10.4.4.tar.gz/doc/ChangeLog
Changed
@@ -1,3 +1,6 @@ +2015-09-10 - h264enc 10.4.4 + * Portability improvements. It should now work on other UNIXes + 2015-09-08 - h264enc 10.4.3 * Removed the $ from the index of array variables * Be more portable and use eval instead of seq in loops as seq is
View file
h264enc-10.4.3.tar.gz/h264enc -> h264enc-10.4.4.tar.gz/h264enc
Changed
@@ -1,5 +1,5 @@ #!/usr/bin/env bash -# $Id: h264enc, v 10.4.3, 2015/09/08, gn Exp $ +# $Id: h264enc, v 10.4.4, 2015/09/10, 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.3 +version=10.4.4 configversion=35 green() { echo -e "\e[1;32m$1\e[0;39;49m"; } @@ -1221,8 +1221,8 @@ } trap 'interrupt_iso_func' SIGHUP SIGTSTP SIGINT SIGQUIT SIGKILL SIGABRT SIGFPE SIGSEGV SIGTERM SIGPIPE SIGIO check_space_func() { - HDSPACE="$(df -m "$(dirname "$OUTPUT")" | tail -n 1 | awk '{print $4}')" - if [ $HDSPACE -le 9216 ]; then + HDSPACE="$(df -k "$(dirname "$OUTPUT")" | tail -n 1 | awk '{print $4}')" + if [ $HDSPACE -le 9437184 ]; then echo error "-> You are running out of disk space in '$(dirname "$OUTPUT")'" error "-> Space left over: $HDSPACE MiB ($(echo "scale=3; $HDSPACE/1024" | $BC -l | sed 's|^\.|0\.|') GiB)" @@ -3370,9 +3370,9 @@ } check_diskspace_func() { - HDOUT="$(df -m "$(dirname "$OUTPUT")" | tail -n 1 | awk '{print $4}')" - HDCONF="$(df -m "$TEMPDIR" | tail -n 1 | awk '{print $4}')" - if [ $HDOUT -le 4096 -o $HDCONF -le 4096 ]; then + HDOUT="$(df -k "$(dirname "$OUTPUT")" | tail -n 1 | awk '{print $4}')" + HDCONF="$(df -k "$TEMPDIR" | tail -n 1 | awk '{print $4}')" + if [ $HDOUT -le 4194304 -o $HDCONF -le 4194304 ]; then echo echo "Note that you are running out of disk space in" echo "the destination output directory and/or in the" @@ -3386,8 +3386,8 @@ echo "process if you intend to do some of the above" echo "tasks!" echo - error "Space left over in '$(dirname "$OUTPUT")': $HDOUT MiB" - error "Space left over in '$TEMPDIR': $HDCONF MiB" + error "Space left over in '$(dirname "$OUTPUT")': $HDOUT KiB" + error "Space left over in '$TEMPDIR': $HDCONF KiB" echo printf "#### Press 'Enter' to continue, CTRL+C to exit ####" read conenc @@ -9100,7 +9100,7 @@ ;; esac source "${AUDIOENC[i]}" >/dev/null 2>&1 - if [ -e "${audfile[i]}" -a "$(stat -c %s "${audfile[i]}")" -ge "20480" ]; then + if [ $(find "${audfile[$i]}" -type f -size +20480c 2>/dev/null | wc -l) -gt 0 ]; then green "-> Track $i: Done" else error "-> Track $i: Failed" @@ -9200,13 +9200,13 @@ rm -rf "$TEMPDIR" 2>/dev/null # Report final file size -MB_AVI="$(echo "scale=3; $(stat -c %s "$OUTPUT" 2>/dev/null)/1048576" | $BC -l | sed 's|^\.|0\.|')" +MB_AVI="$(echo "scale=3; $(wc -c < "$OUTPUT")/1048576" | $BC -l | sed 's|^\.|0\.|')" GB_AVI="$(echo "scale=3; $MB_AVI/1024" | $BC -l | sed 's|^\.|0\.|')" echo green "-> AVI file size: $MB_AVI MiB or $GB_AVI GiB ($OUTPUT)" if [ "$avi_to_mkv" = "yes" ]; then if [ -e "$MKVOUT" ]; then - MB_MKV="$(echo "scale=3; $(stat -c %s "$MKVOUT" 2>/dev/null)/1048576" | $BC -l | sed 's|^\.|0\.|')" + MB_MKV="$(echo "scale=3; $(wc -c < "$MKVOUT" 2>/dev/null)/1048576" | $BC -l | sed 's|^\.|0\.|')" GB_MKV="$(echo "scale=3; $MB_MKV/1024" | $BC -l | sed 's|^\.|0\.|')" green "-> MKV file size: $MB_MKV MiB or $GB_MKV GiB ($MKVOUT)" fi @@ -9222,7 +9222,7 @@ green "-> AVCHD disc structure created in: $TSOUT" ;; *) - MB_TS="$(echo "scale=3; $(stat -c %s "$TSOUT" 2>/dev/null)/1048576" | $BC -l | sed 's|^\.|0\.|')" + MB_TS="$(echo "scale=3; $(wc -c < "$TSOUT" 2>/dev/null)/1048576" | $BC -l | sed 's|^\.|0\.|')" GB_TS="$(echo "scale=3; $MB_TS/1024" | $BC -l | sed 's|^\.|0\.|')" green "-> TS file size: $MB_TS MiB or $GB_TS GiB ($TSOUT)" ;; @@ -9232,7 +9232,7 @@ if [ "$avi_to_mp4" = "yes" ]; then if [ -e "$MP4OUT" ]; then - MB_MP4="$(echo "scale=3; $(stat -c %s "$MP4OUT" 2>/dev/null)/1048576" | $BC -l | sed 's|^\.|0\.|')" + MB_MP4="$(echo "scale=3; $(wc -c < "$MP4OUT" 2>/dev/null)/1048576" | $BC -l | sed 's|^\.|0\.|')" GB_MP4="$(echo "scale=3; $MB_MP4/1024" | $BC -l | sed 's|^\.|0\.|')" green "-> MP4 file size: $MB_MP4 MiB or $GB_MP4 GiB ($MP4OUT)" fi @@ -9240,7 +9240,7 @@ if [ "$avi_to_ogm" = "yes" ]; then if [ -e "$OGMOUT" ]; then - MB_OGM="$(echo "scale=3; $(stat -c %s "$OGMOUT" 2>/dev/null)/1048576" | $BC -l | sed 's|^\.|0\.|')" + MB_OGM="$(echo "scale=3; $(wc -c < "$OGMOUT" 2>/dev/null)/1048576" | $BC -l | sed 's|^\.|0\.|')" GB_OGM="$(echo "scale=3; $MB_OGM/1024" | $BC -l | sed 's|^\.|0\.|')" green "-> OGM file size: $MB_OGM MiB or $GB_OGM GiB ($OGMOUT)" fi
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
.