Projects
Multimedia
ffx264
Sign Up
Log In
Username
Password
We truncated the diff of some files because they were too big. If you want to see the full diff for every file,
click here
.
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 127
View file
ffx264.changes
Changed
@@ -1,4 +1,16 @@ ------------------------------------------------------------------- +Fri Oct 25 05:31:00 UTC 2019 - neutrino8@opensuse.org + +- Update to version 3.9.7 + * Detect audio bit depth and add it to the audio metadata + * Added detection for DTS Express and DTS-HD HR for audio copy + * Use -show_entries instead of -show_streams for detecting + audio properties with ffprobe. Removes piping to grep and awk + * Support setting the FLAC bit depth for encoding + * Minor restructuring and variables renaming in the audio code + * Updated the man page + +------------------------------------------------------------------- Wed Oct 23 03:15:00 UTC 2019 - neutrino8@opensuse.org - Update to version 3.9.6
View file
ffx264.spec
Changed
@@ -17,7 +17,7 @@ Name: ffx264 -Version: 3.9.6 +Version: 3.9.7 Release: 0 Summary: A small shell script for encoding to H.264/AVC with FFmpeg License: GPL-2.0+ @@ -51,7 +51,7 @@ %files %defattr(-,root,root) %{_bindir}/%{name} -%{_mandir}/man1/%{name}.1%{ext_man} +%{_mandir}/man1/%{name}.1.gz %doc AUTHORS ChangeLog LICENSE README *.txt %changelog
View file
ffx264-3.9.6.tar.gz/ChangeLog -> ffx264-3.9.7.tar.gz/ChangeLog
Changed
@@ -1,3 +1,12 @@ +2019-10-25 - ffx264 3.9.7 + * Detect audio bit depth and add it to the audio metadata + * Added detection for DTS Express and DTS-HD HR for audio copy + * Use -show_entries instead of -show_streams for detecting + audio properties with ffprobe. Removes piping to grep and awk + * Support setting the FLAC bit depth for encoding + * Minor restructuring and variables renaming in the audio code + * Updated the man page + 2019-10-23 - ffx264 3.9.6 * Added support for setting the VBV maxrate and buffer size * Set default audio codec based on output container format
View file
ffx264-3.9.6.tar.gz/ffx264 -> ffx264-3.9.7.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.9.6 -# Date: 2019-10-23 +# Version: 3.9.7 +# Date: 2019-10-25 # # 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 "\e[0;33m$1\e[0;39;49m"; } error() { echo -e "\e[1;31m$1\e[0;39;49m"; } -version="3.9.6" +version="3.9.7" CFG="$HOME/.ffx264" cfgversion="40" @@ -2422,32 +2422,32 @@ case "${acodec[i]}" in ac3) acdc[i]="ac3" - ameta[i]="AC-3" + acdcmeta[i]="AC-3" abropts[i]="192/384/448/640" abrdef[i]="640" ;; eac3) acdc[i]="eac3" - ameta[i]="E-AC-3" + acdcmeta[i]="E-AC-3" abropts[i]="32-6144" abrdef[i]="960" ;; truehd) acdc[i]="truehd" - ameta[i]="TrueHD" + acdcmeta[i]="TrueHD" abropts[i]="1000-18000" abrdef[i]="5000" skiptfs="1" ;; dts) acdc[i]="dca" - ameta[i]="DTS" + acdcmeta[i]="DTS" abropts[i]="754/1509" abrdef[i]="1509" ;; aac) acdc[i]="aac" - ameta[i]="LC-AAC" + acdcmeta[i]="LC-AAC" abropts[i]="32-512" abrdef[i]="448" ;; @@ -2458,56 +2458,56 @@ ;; mp3) acdc[i]="libmp3lame" - ameta[i]="MP3" + acdcmeta[i]="MP3" abropts[i]="32-320" abrdef[i]="320" ;; libopus) acdc[i]="libopus" - ameta[i]="Opus" + acdcmeta[i]="Opus" abropts[i]="6-512" abrdef[i]="320" ;; opus) acdc[i]="opus" - ameta[i]="Opus" + acdcmeta[i]="Opus" abropts[i]="6-512" abrdef[i]="192" ;; vorbis) acdc[i]="libvorbis" - ameta[i]="Vorbis" + acdcmeta[i]="Vorbis" abropts[i]="6-500" abrdef[i]="320" ;; wmav1) acdc[i]="wmav1" - ameta[i]="WMAv1" + acdcmeta[i]="WMAv1" abropts[i]="64-320" abrdef[i]="192" ;; wmav2) acdc[i]="wmav1" - ameta[i]="WMAv2" + acdcmeta[i]="WMAv2" abropts[i]="64-320" abrdef[i]="192" ;; flac) acdc[i]="flac" - ameta[i]="FLAC" + acdcmeta[i]="FLAC" abropts[i]="0-12" abrdef[i]="5" skiptfs="1" ;; alac) acdc[i]="alac" - ameta[i]="ALAC" + acdcmeta[i]="ALAC" abropts[i]="0-12" abrdef[i]="5" skiptfs="1" ;; pcm) - ameta[i]="PCM" + acdcmeta[i]="PCM" skiptfs="1" ;; copy) @@ -2583,15 +2583,23 @@ done if [ "${acodec[i]}" != "copy" ]; then + aid[i]="$(($(echo "${atrack[i]}" | awk -F: '{print $2}')-1))" + test "${aid[i]}" = "-1" && aid[i]="0" + GETAUDBD[i]="$($FFPROBE -i "$input" -v quiet -select_streams a:${aid[i]} -show_entries stream=bits_per_raw_sample -of default=noprint_wrappers=1:nokey=1 | tail -1)" + if [ ! -z "${GETAUDBD[i]}" ]; then + case "${GETAUDBD[i]}" in + [1-9]*) abdmeta[i]=", ${GETAUDBD[i]} bits src" ;; + esac + fi case "${acodec[i]}" in fdk*) printf "Track $i: Which AAC Profile to Use? [LC/HE/HEv2/LD - default is LC]: " read aprof[i] case "${aprof[i]}" in - lc|LC|"") ameta[i]="LC-AAC"; aacprof[i]="aac_low" ;; - he|HE) ameta[i]="HE-AACv1"; aacprof[i]="aac_he" ;; - hev2|HEv2|HEV2) ameta[i]="HE-AACv2"; aacprof[i]="aac_he_v2" ;; - ld|LD) ameta[i]="LD-AAC"; aacprof[i]="aac_ld" ;; + lc|LC|"") acdcmeta[i]="LC-AAC"; aacprof[i]="aac_low" ;; + he|HE) acdcmeta[i]="HE-AACv1"; aacprof[i]="aac_he" ;; + hev2|HEv2|HEV2) acdcmeta[i]="HE-AACv2"; aacprof[i]="aac_he_v2" ;; + ld|LD) acdcmeta[i]="LD-AAC"; aacprof[i]="aac_ld" ;; *) error "- Invalid AAC profile!" exit 1 @@ -2605,15 +2613,30 @@ read abr[i] test -z "${abr[i]}" && acomplevel[i]="${abrdef[i]}" || acomplevel[i]="${abr[i]}" audcomplevel[i]="-compression_level:a:${audindex[i]} ${acomplevel[i]}" - abtrmeta[i]="@ CL ${acomplevel[i]}" + case "${acodec[i]}" in + flac) + printf "Track $i: Which FLAC Bit Depth to use? [16/24 - default is 24]: " + read fbd[i] + case "${fbd[i]}" in + 16) flacbd[i]="s16"; abdmeta[i]=", 16 bits" ;; + 24|"") flacbd[i]="s32"; abdmeta[i]=", 24 bits" ;; + *) + error "-> Unsupported FLAC Bit Depth!" + exit 1 + ;; + esac + audbd[i]="-sample_fmt ${flacbd[i]}" + ;; + esac + abtrmeta[i]=" @ CL ${acomplevel[i]}" ;; pcm) printf "Track $i: Which PCM Bit Depth to use? [16/24/32 - default is 24]: " read pcmbd[i] case "${pcmbd[i]}" in - 16) acdc[i]="pcm_s16le"; abtrmeta[i]="(16 bit)" ;; - 24|"") acdc[i]="pcm_s24le"; abtrmeta[i]="(24 bit)" ;; - 32) acdc[i]="pcm_s32le"; abtrmeta[i]="(32 bit)" ;; + 16) acdc[i]="pcm_s16le"; abdmeta[i]=", 16 bits" ;; + 24|"") acdc[i]="pcm_s24le"; abdmeta[i]=", 24 bits" ;; + 32) acdc[i]="pcm_s32le"; abdmeta[i]=", 32 bits" ;; *) error "-> Unsupported PCM Bit Depth!" exit 1 @@ -2628,7 +2651,7 @@ read abr[i] test -z "${abr[i]}" && abitrate[i]="${abrdef[i]}k" || abitrate[i]="${abr[i]}k" audbtr[i]="-b:a:${audindex[i]} ${abitrate[i]}" - abtrmeta[i]="@ $(echo "${abitrate[i]}" | sed 's|k||') kbps" + abtrmeta[i]=" @ $(echo "${abitrate[i]}" | sed 's|k||') kbps" ;; esac @@ -2738,18 +2761,18 @@ printf "Track $i: Specify the Audio Channel Layout [default is 10]: " read achanlayout[i] case "${achanlayout[i]}" in
View file
ffx264-3.9.6.tar.gz/ffx264.1 -> ffx264-3.9.7.tar.gz/ffx264.1
Changed
@@ -3,7 +3,7 @@ .de IPs .IP "\\$1" .. -.TH ffx264 1 "Oct 20, 2019" +.TH ffx264 1 "Oct 24, 2019" .SH NAME ffx264 @@ -13,15 +13,14 @@ .br .SH DESCRIPTION -\fBffx264\fR is a small, yet quite capable shell script for encoding to the H.264/AVC video -format. It uses the FFmpeg encoder and the libx264 library. \fBffx264\fR supports mostly the -basic requirements for video encoding coupled with support for encoding multiple audio tracks +\fBffx264\fR is a small yet quite capable shell script for encoding to the H.264/AVC video +format. It uses the FFmpeg encoder and the libx264 library. \fBffx264\fR supports a wide range +of options for video encoding coupled with support for encoding multiple audio tracks and copying multiple subtitles. \fBffx264\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 The script uses a configuration file stored in $HOME/.ffx264 where the user can set things up. -\fBffx264\fR is interactive in nature but due to supporting mostly the basics, the user -can pass through it in under a minute. +\fBffx264\fR is interactive in nature but the user can pass through it in under a few minutes. .SH REQUIREMENTS - FFmpeg with libx264 support
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
.