Changes of Revision 312

h264enc.spec Added
x
 
1
@@ -0,0 +1,1230 @@
2
+# norootforbuild
3
+
4
+Name:      h264enc
5
+Version:   10.1.2
6
+Release:   1
7
+
8
+License:   GPL-2.0+
9
+Group:     Productivity/Multimedia/Video/Editors and Convertors
10
+Summary:   An advanced CLI shell script for MEncoder
11
+URL:       http://h264enc.sourceforge.net/
12
+
13
+Source0:        %{name}-%{version}.tar.gz
14
+
15
+BuildRoot:      %{_tmppath}/%{name}-%{version}-build
16
+BuildArch: noarch
17
+
18
+Requires:       findutils gpac bc gawk lsdvd nano ogmtools vorbis-tools opus-tools flac aften dcaenc mailx faac MPlayer mkvtoolnix pv
19
+
20
+
21
+%description
22
+h264enc is an advanced and powerful interactive menu-driven shell script written
23
+for the GNU/Linux operating system which can help you to encode a DVD, a video file,
24
+a directory with video files or a (S)VCD to the H.264/MPEG-4 Part 10/AVC video format
25
+using the MEncoder encoder from the MPlayer project and the libx264 library. It supports
26
+muxing the final encode from AVI to MKV, from AVI to OGM, from AVI to TS and from
27
+AVI to the MP4 container.
28
+
29
+
30
+%prep
31
+%setup -q -n %{name}-%{version}
32
+
33
+%build
34
+
35
+%install
36
+%__mkdir -p %{buildroot}/%{_docdir}/%{name}/matrices
37
+
38
+# binary
39
+%__install -D -m 755 %{name} %{buildroot}/%{_bindir}/%{name}
40
+
41
+# man
42
+gzip -9 man/%{name}.1
43
+%__install -D -m 644 man/%{name}.1.gz %{buildroot}/%{_mandir}/man1/%{name}.1.gz
44
+
45
+# doc
46
+%__install -m 644 doc/* %{buildroot}/%{_docdir}/%{name}
47
+%__install -m 644 matrices/* %{buildroot}/%{_docdir}/%{name}/matrices
48
+
49
+
50
+%clean
51
+rm -rf "%{buildroot}"
52
+
53
+
54
+%files
55
+%defattr(-,root,root)
56
+%{_bindir}/%{name}
57
+%{_mandir}/man1/%{name}.1.gz
58
+%{_docdir}/%{name}
59
+
60
+
61
+%changelog
62
+* Fri Jun 20 2014 Grozdan Nikolov <neutrino8@gmail.com> 10.1.2
63
+   * Fix a possible problem when detecting audio tracks when input is file
64
+     or blu-ray. We only grep for the generic word 'audio' which could result
65
+     in also printing lines that are not audio tracks but somehow carry the
66
+     'audio' word in their tags. Fix it by using 'awk' before 'grep' to
67
+     only print the fourth column where lavf reports what type of track it is
68
+   * Set default DTS bitrate to 755 kbps. Also check if we don't exceed the
69
+     highest legal bitrate of 1509 kbps
70
+   * Due to a bug in the dcaenc encoder, floating-point WAV files get
71
+     wrongly interpreted as 32-bit integer ones. Work around this by adding
72
+     the format=s16le filter
73
+   * The 1536 kbps bitrate reported by MPlayer on some DTS files is technically
74
+     1509 kbps, if we have to be accurate. Account for this by substracting
75
+     27 kbps from the reported bitrate. Do the same for the reported 768 kbps
76
+     bitrate which is actually 755 kbps
77
+   * Report the kHz in addition to the Hz when displaying audio info for
78
+     found tracks
79
+   * When remuxing to MKV/MP4/OGM, instead of checking if a file is created
80
+     to make a decision if it was successful or not, use return codes from
81
+     the remuxing applications. Should be more reliable in telling the user
82
+     if it really succeeded or not. Unfortunately tsMuxeR doesn't return
83
+     anything so there's no other way than checking if there's an 
84
+     output file.
85
+   * Lowered the scale factor in the calcbits() function from 3 to 2.
86
+     Also use | instead of @ as delimiter
87
+   * Tune a bit the subq values of the ani & anihq presets. Also turn on
88
+     trellis on all decisions (trellis=2) for the anihq preset
89
+     
90
+* Thu Jun 19 2014 Grozdan Nikolov <neutrino8@gmail.com> 10.1.1
91
+   * Added support for the internal lavc AC-3 audio encoder. Now one
92
+     can choose between the lavc encoder (default) and the aften encoder.
93
+     The lavc encoder is set to default as aften has seen very little
94
+     development in the past years and is not as good as the lavc one
95
+     which is actively developed by the ffmpeg devs
96
+   * Fine-tune the volume filter by setting it to 4 after some tests
97
+   * Delete the file stored in the $AUDINFO variable
98
+   * When storing the MKV global tags while operating in batch mode,
99
+     test the variable $DIRTAGS for not being empty
100
+   * Cosmetics: add a few echo's at specific places to separate the
101
+     cmd lines in the batch file for better readability. Also add
102
+     a comment block for the start of the MKV, MP4, TS and/or OGM muxing
103
+   * Bugfix in the MKV/MP4 tags: do not add channel info when using MP3.
104
+     If we add channel info, it could result in "MP3 5.1" being added
105
+     to the audio tags, which is obviously wrong as MP3 only supports
106
+     stereo and mono channels
107
+   * Opus supports sampling rates from 8 kHz to 48 kHz. Support this
108
+     in the resampling code
109
+     
110
+* Wed Jun 18 2014 Grozdan Nikolov <neutrino8@gmail.com> 10.1.0
111
+   * When scanning for audio tracks when input is file or blu-ray,
112
+     rename DCA (as reported by lavf) to DTS to not confuse the user.
113
+     Also rename AC3 to AC-3 for consistency
114
+   * In case audio encoder is fdkaac, add to the MKV tags the audio
115
+     format used (eg, Signed 16-bit little endian)
116
+   * When dumping chapters from files, use the file extension .chaps
117
+     for MKV. Also test to see if there's already a chapters file with
118
+     the same name and rename it to <filename>.chaps.old
119
+   * aac-enc name in the MKV tags is not very descriptive, so add
120
+     (fdkaac) to it
121
+   * Cosmetics
122
+   
123
+* Tue Jun 17 2014 Grozdan Nikolov <neutrino8@gmail.com> 10.0.9
124
+   * Bugfix: only call audio filters on subsequent tracks when running MPlayer
125
+     to decode since for the first track we already pass these filters to
126
+     MEncoder, thus if we also use them when running MPlayer we'll get a
127
+     double effect
128
+   * Add a ^ (caret) at the beginning of grep when trying to get the [lavf]
129
+     text to make sure we only grep the correct instances
130
+   * Set default CRF/QP value to 19 and for bitrate based encodes to 2000 kbps
131
+   * For the volume audio filter, set the default value to 3 as 5 is a bit high
132
+   
133
+* Mon Jun 16 2014 Grozdan Nikolov <neutrino8@gmail.com> 10.0.8
134
+   * New method to detect and display audio info when input is file or blu-ray.
135
+     In comparison to the previous basic method, the new one will display
136
+     for each found audio track the codec, channels, language, bitrate and
137
+     sample rate info. It does take slightly longer to detect in case there
138
+     are many audio tracks, but it is more descriptive and accurate
139
+     
140
+* Sun Jun 15 2014 Grozdan Nikolov <neutrino8@gmail.com> 10.0.7
141
+   * Use an if instead of a case when dumping chapters from files
142
+   * Also export chapter extraction commands to the batch file
143
+   * Display mkvextract availability when using the sanity check option (-sc)
144
+   * Add the path and name to the comment block of the batch file. Makes
145
+     it easy to focus on the comment block to know for which file the
146
+     commands are instead of needing to inspect the code itself to find
147
+     out
148
+     
149
+* Wed Jun 11 2014 Grozdan Nikolov <neutrino8@gmail.com> 10.0.6
150
+   * Added support for dumping chapters info from MKV/MP4 input files
151
+     This updates the config file version to 30 as mkvextract is needed
152
+   * Made the audiofmt variable an array variable
153
+   * Moved asking for sample encoding before asking to inspect or save the
154
+     options to a file
155
+     
156
+* Sat May 24 2014 Grozdan Nikolov <neutrino8@gmail.com> 10.0.5
157
+   * Fixed the detect_fps_func() function for detecting the NTSC type
158
+   * Lowered the spugauss (variance param for gauss subtitle scaling)
159
+     from 0.7 to 0.4 as 0.7 does too much blurring in my opinion
160
+     
161
+* Thu May 22 2014 Grozdan Nikolov <neutrino8@gmail.com> 10.0.4
162
+   * Bugfix: $demuxer var was missing in the AUDCH array var which resulted
163
+     in incorrect channel info being added to the tags when copying audio.
164
+     DVD input was not affected by this bug, but file/dir/bd input was as
165
+     they all use the $demuxer var
166
+     
167
+* Sat Apr 26 2014 Grozdan Nikolov <neutrino8@gmail.com> 10.0.3
168
+   * Removed unused $AUDFIFO variable
169
+   * Small bugfix: audio language for metadata tagging wasn't added to the global
170
+     tags for MKV when input is Blu-ray due to missing 'bd' param in the case
171
+     statement
172
+     
173
+* Wed Apr 23 2014 Grozdan Nikolov <neutrino8@gmail.com> 10.0.2
174
+   * Bugfix: in case user chooses audio copy, the metadata info for tagging
175
+     always defaulted to "Stereo". Fix this by running MPlayer to detect
176
+     the proper amount of channels
177
+     
178
+* Tue Apr 22 2014 Grozdan Nikolov <neutrino8@gmail.com> 10.0.1
179
+   * Bugfix: wrong var used, $chanuse instead of $chandec, for setting
180
+     the decode channels
181
+   * Only call the video_subtitles_scale_func() function if the user
182
+     actually provides an external sub for hardcoding
183
+     
184
+* Thu Apr 17 2014 Grozdan Nikolov <neutrino8@gmail.com> 10.0.0
185
+   * Allow the video_subtitles_align_func() function for mks matroska
186
+     subtitles
187
+   * Display the warning message in red for when something goes wrong
188
+     when importing/hardcoding subs. Do the same for when checking
189
+     support for a sub format for MKV/MP4/OGM
190
+   * Added support for subtitles for Blu-ray encodings. Note that only
191
+     hardcoding of external sub or importing of external subs into the
192
+     MKV/MP4/OGM containers is supported
193
+   * Removed some duplication by placing the code for hardcoding an
194
+     external sub or importing external subs into its own
195
+     video_subtitles_option_func() function
196
+   * Increased the rc_lookahead value for the ehq, uhq and ihq presets
197
+     to 80, 90 and 100, respectively
198
+   * When copying audio and using some of the portable device presets,
199
+     also add the -mc 0 -msglevel demuxer=-1 options to MEncoder
200
+   * More code optimizations and minor fixes
201