Projects
Multimedia
ffhevc
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 11
View file
ffhevc.changes
Changed
@@ -1,4 +1,16 @@ ------------------------------------------------------------------- +Mon Nov 08 10:10:00 UTC 2016 - neutrino8@opensuse.org + +- Update to version 2.9.6 + * Added support for encoding to TrueHD audio. Requires a very + recent ffmpeg version, preferably latest from git + * Some small improvements to the additional container output + * Moved the video_deinterlace_func() function inside the actual + deinterlace code + * Update to the README file + * Update to the man page + +------------------------------------------------------------------- Mon Nov 07 16:25:00 UTC 2016 - neutrino8@opensuse.org - Update to version 2.9.5
View file
ffhevc.spec
Changed
@@ -17,7 +17,7 @@ Name: ffhevc -Version: 2.9.5 +Version: 2.9.6 Release: 0 Summary: A small shell script for encoding to H.265/HEVC with ffmpeg License: GPL-2.0+
View file
ffhevc-2.9.5.tar.gz/ChangeLog -> ffhevc-2.9.6.tar.gz/ChangeLog
Changed
@@ -1,3 +1,12 @@ +2016-11-08 - ffhevc 2.9.6 + * Added support for encoding to TrueHD audio. Requires a very recent + ffmpeg version, preferably latest from git + * Some small improvements to the additional container output + * Moved the video_deinterlace_func() function inside the actual + deinterlace code + * Update to the README file + * Update to the man page + 2016-11-07 - ffhevc 2.9.5 * Cosmetics in the code for deinterlacing * Instead of skipping FPS conversion if the FPS can't be detected,
View file
ffhevc-2.9.5.tar.gz/README -> ffhevc-2.9.6.tar.gz/README
Changed
@@ -17,7 +17,7 @@ - it supports copying virtually an unlimited amount of subtitles. - it creates the final output directory if user provides a path in addition to the output name. - it supports virtually an unlimited amount of audio tracks. -- it supports encoding audio to AC-3, E-AC-3, DTS, MP3, Vorbis, Opus, FLAC, PCM or AAC or copying an audio track. +- it supports encoding audio to AC-3, E-AC-3, TrueHD, DTS, MP3, Vorbis, Opus, FLAC, PCM or AAC or copying an audio track. - it supports setting the nice value in the config file. - it supports a limited amount of user-provided metadata. - it optionally scales the video.
View file
ffhevc-2.9.5.tar.gz/ffhevc -> ffhevc-2.9.6.tar.gz/ffhevc
Changed
@@ -2,8 +2,8 @@ # # Small script to encode to H.265/HEVC video using FFmpeg and libx265. # Author: Grozdan "microchip" Nikolov <neutrino8@opensuse.org> -# Version: 2.9.5 -# Date: 2016-11-07 +# Version: 2.9.6 +# Date: 2016-11-08 # # ffhevc is free software ; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -23,7 +23,7 @@ brown() { echo -e "\e[0;33m$1\e[0;39;49m"; } error() { echo -e "\e[1;31m$1\e[0;39;49m"; } -version="2.9.5" +version="2.9.6" CFG="$HOME/.ffhevc" cfgversion="28" @@ -567,12 +567,12 @@ fi fi -# Used by mc deinterlace and FPS conversion +# Used by mc/bobbing deinterlace and FPS conversion video_fps_func() { GETFPS="$($FFPROBE -i "$input" -select_streams v:0 -show_entries stream=r_frame_rate 2>&1 | sed -n 's|^r_frame_rate=||p')" } -# Used by mc deinterlace and interlace-aware encoding +# Used by mc/bobbing deinterlace and interlace-aware encoding video_field_parity_func() { echo green "-> Detecting Field Parity..." @@ -598,24 +598,23 @@ } if [ "$VID_DEINTERLACE" = "y" ]; then - video_deinterlace_func() { - printf "Use Motion-Compensation Deinterlacing? [y/N]: " - read mcd - if [ "$mcd" = "y" -o "$mcd" = "Y" ]; then - video_field_parity_func - printf "Specify the Field Parity of the Input File [tff/bff - default is $defpar]: " - read par - test -z "$par" && fpar="$defpar" || fpar="$par" - fi - case "$1" in - ofps) test ! -z "$fpar" && deinterlace="yadif=1,mcdeint=mode=medium:parity=$fpar:qp=10,framestep=step=2," || deinterlace="yadif=0," ;; - bob) test ! -z "$fpar" && deinterlace="yadif=1,mcdeint=mode=medium:parity=$fpar:qp=10," || deinterlace="yadif=1," ;; - esac - } - printf "Deinterlace the Input File? [y/N]: " read deint if [ "$deint" = "y" -o "$deint" = "Y" ]; then + video_deinterlace_func() { + printf "Use Motion-Compensation Deinterlacing? [y/N]: " + read mcd + if [ "$mcd" = "y" -o "$mcd" = "Y" ]; then + video_field_parity_func + printf "Specify the Field Parity of the Input File [tff/bff - default is $defpar]: " + read par + test -z "$par" && fpar="$defpar" || fpar="$par" + fi + case "$1" in + ofps) test ! -z "$fpar" && deinterlace="yadif=1,mcdeint=mode=medium:parity=$fpar:qp=10,framestep=step=2," || deinterlace="yadif=0," ;; + bob) test ! -z "$fpar" && deinterlace="yadif=1,mcdeint=mode=medium:parity=$fpar:qp=10," || deinterlace="yadif=1," ;; + esac + } echo brown " Deinterlace Methods" brown " ~~~~~~~~~~~~~~~~~~~" @@ -683,7 +682,7 @@ fi if [ -z "$deinterlace" ]; then - printf "Enable Interlace-aware encoding? [y/N]: " + printf "Enable Interlace-aware Encoding? [y/N]: " read intaw if [ "$intaw" = "y" -o "$intaw" = "Y" ]; then video_field_parity_func @@ -1059,6 +1058,7 @@ echo " Opus ----> Channels Support: 8 (ffmpeg max)" echo " Vorbis --> Channels Support: 8 (ffmpeg max)" echo " MP3 -----> Channels Support: 2 (codec max)" + echo " TrueHD --> Channels Support: 6 (encoder max)" echo " FLAC ----> Channels Support: 8 (codec max)" echo " PCM -----> Channels Support: 8 (ffmpeg max)" echo " COPY ----> Channels Support: depends on audio codec" @@ -1092,6 +1092,14 @@ abropts[i]="32-6144" abrdef[i]="768" ;; + truehd) + strict="-strict -2" + acdc[i]="truehd" + ameta[i]="TrueHD" + abropts[i]="1000-18000" + abrdef[i]="5000" + skiptfs="1" + ;; dts) strict="-strict -2" acdc[i]="dca" @@ -1178,7 +1186,7 @@ case "$CON" in mp4) case "${acodec[i]}" in - pcm|opus|flac) + pcm|opus|flac|truehd) error "-> $(echo "${acodec[i]}" | tr '[:lower:]' '[:upper:]') is not supported by the MP4 container!" error "-> Check your config file, if needed, in '$CFG'" exit 1 @@ -1226,7 +1234,7 @@ esac case "${acodec[i]}" in - ac3|eac3|dts|aac|fdk*|mp3|vorbis|opus|"") + ac3|eac3|truehd|dts|aac|fdk*|mp3|vorbis|opus|"") printf "Track $i: Specify the Audio Bitrate in kbps [${abropts[i]} - default is ${abrdef[i]}]: " read abr[i] test -z "${abr[i]}" && abitrate[i]="${abrdef[i]}k" || abitrate[i]="${abr[i]}k" @@ -1236,7 +1244,7 @@ esac case "${acodec[i]}" in - ac3|eac3|dts|"") chanrange[i]="1-6"; defchan[i]="6" ;; + ac3|eac3|truehd|dts|"") chanrange[i]="1-6"; defchan[i]="6" ;; aac|opus|vorbis|flac|pcm) chanrange[i]="1-8"; defchan[i]="8" ;; mp3) chanrange[i]="1-2"; defchan[i]="2" ;; fdk*) @@ -1265,13 +1273,14 @@ ;; esac case "${acodec[i]}" in - ac3|eac3|"") + ac3|eac3|truehd|"") case "${ach[i]}" in [1-6]) true ;; *) case "${acodec[i]}" in ac3|"") error "-> AC-3 supports only 1-6 channels!" ;; eac3) error "-> E-AC-3 encoder in ffmpeg supports only 1-6 channels!" ;; + truehd) error "-> TrueHD encoder in ffmpeg supports only 1-6 channels!" ;; esac exit 1 ;; @@ -1424,7 +1433,7 @@ ;; esac ;; - vorbis|pcm) + vorbis|pcm|truehd) brown " Supported Sample Rates" brown " ~~~~~~~~~~~~~~~~~~~~~~" echo " 0 -> 8000 Hz 5 -> 24000 Hz 10 -> 88200 Hz" @@ -1480,7 +1489,7 @@ mp4) for a in $(eval echo "{1..$MAX_AUD_TRACKS}"); do case "${acodec[a]}" in - pcm|opus|flac) + pcm|opus|flac|truehd) error "-> Additional container $i does not support ${acodec[a]} audio!" error "-> See: $formats_url" exit 1 @@ -1503,6 +1512,11 @@ # Haven't found a reliable way to make it work with # FLAC and PCM audio so just skip this if one of # these audio codecs is chosen. Patch welcome + # In case of TrueHD, while we support setting the + # bitrate, that codec is variable in nature and + # the actual bitrate can wildly fluctuate, which + # will result in miscalculation for the target + # size by an unknown amount if [ -z "$skiptfs" ]; then echo printf "Set a Target File Size? [y/N]: " @@ -1619,12 +1633,13 @@ echo "" >> "$OUTFILE.sh" if [ ! -z "$extracon" ]; then for i in $extracon; do - echo "$FFMPEG -i \"$OUTPUT\" -map 0 -c copy \"${OUTPUT%.*}.$i\"" >> "$OUTFILE.sh" - echo "" >> "$OUTFILE.sh" + echo "echo" >> "$OUTFILE.sh" + echo "echo -e \"\e[1;32m-> Converting to $i...\e[0;39;49m\"" >> "$OUTFILE.sh" + echo "$FFMPEG -i \"$OUTPUT\" -map 0 -c copy \"${OUTPUT%.*}.$i\" >/dev/null 2>&1" >> "$OUTFILE.sh" + echo "test \"\$?\" = \"0\" && echo -e \"\e[1;32m-> Done\e[0;39;49m\" || echo -e \"\e[1;31m-> Failed!\e[0;39;49m\"" >> "$OUTFILE.sh" done + echo "echo" >> "$OUTFILE.sh" fi chmod +x "$OUTFILE.sh" source "$OUTFILE.sh" - -exit $?
View file
ffhevc-2.9.5.tar.gz/ffhevc.1 -> ffhevc-2.9.6.tar.gz/ffhevc.1
Changed
@@ -3,7 +3,7 @@ .de IPs .IP "\\$1" .. -.TH ffhevc 1 "Sep 05, 2016" +.TH ffhevc 1 "Nov 07, 2016" .SH NAME ffhevc @@ -14,8 +14,8 @@ .SH DESCRIPTION \fBffhevc\fR is a small, yet quite capable shell script for encoding to the H.265/HEVC video -format. It uses the FFmpeg encoder and the libx265 library. \fBffhevc\fR supports the basic -requirements for video encoding coupled with support for encoding multiple audio tracks +format. It uses the FFmpeg encoder and the libx265 library. \fBffhevc\fR supports mostly the +basic requirements for video encoding coupled with support for encoding multiple audio tracks and copying multiple subtitles. \fBffhevc\fR only supports as input video files so it is not possible to encode directly from a DVD/BD drive or an ISO image. .LP
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
.