Johan Andersson
c97ec9030e
subtitle.remux: remove copyts
...
copyts made that videos started at 10s and made subtitles be wrong.
2018-07-12 00:53:55 +02:00
Johan Andersson
d61e5793e6
use which from stdlib instead our own version
2018-07-05 01:26:43 +02:00
Johan Andersson
7aba2589ec
_checktracks: support for language in the stream
2018-06-24 21:55:18 +02:00
Johan Andersson
a5f1ee4c25
postprocess: set the right output filename when using remux
2018-05-13 13:18:36 +02:00
Johan Andersson
9ce61f499d
postprocess: generate correct filename
2018-05-13 13:09:27 +02:00
Johan Andersson
5474da2251
postprocess: use config
2018-05-13 13:09:27 +02:00
Johan Andersson
d4dc9693df
postprocess: use output in streams instead of options
2018-05-13 13:07:37 +02:00
Johan Andersson
ca49366002
Options to config
2018-05-13 13:06:45 +02:00
Johan Andersson
28dcc90d7e
flake8 fixes
2018-05-13 12:10:19 +02:00
Johan Andersson
a051418dab
utils: move functions out of init to its own files.
2018-05-13 12:10:19 +02:00
Johan Andersson
2283d3e593
postprocess: fix indentation
2018-05-13 12:08:11 +02:00
Johan Andersson
022eda0c56
postprocess: rewrite some subfixes checks
2018-05-13 12:08:11 +02:00
Johan Andersson
b8c1163852
remove a bunch of is_py. time for py3.
2018-05-13 12:08:11 +02:00
iwconfig
bdf33167d3
check subtitle length before random.sample()
...
Pass random.sample() the total number of sentences in the subtitle if less than 8.
i.e. max 8 sentences.
fixes #659
2018-05-06 20:02:07 +02:00
Olof Johansson
b18a166898
postprocess: Give up on failure, not success when muxing
...
This, I suspect, accidental inversion of the error case led to files not
being cleaned up properly.
Fixes #856 , reported by @pulsatorius
2018-03-09 22:36:30 +01:00
Johan Andersson
3818ee1ee9
postprocess.merge: when we merge .ts to .mp4 we need to have bsf:a
...
fixes : #825
2018-03-06 21:49:43 +01:00
Johan Andersson
24213562ad
postprocess: try to detect the bad audio track and skip it
...
this will only work for files with one audio track.
i have never seen file with several
fixes #814
2018-03-04 11:41:22 +01:00
Johan Andersson
7b6ceb4737
Flake8 fixes
2018-01-30 20:17:33 +01:00
iwconfig
0b2b528a6d
Prevent zero length field name in format
...
Added numbers to format() to prevent 'ValueError: zero length field name in format'
2017-03-26 14:48:15 +02:00
iwconfig
e5e7fd0293
Changed all '%s', to '{}'.format()
...
This also fixes a bug on line 105: format() got '%s' instead of '{}'.
2017-03-26 14:48:15 +02:00
Johan Andersson
456e008597
pylint fixes
2017-02-15 23:15:50 +01:00
Johan Andersson
da66ffcf2e
format string fixes
...
fixes #558
2017-02-12 09:01:40 +01:00
Johan Andersson
ea3041cf08
postprocess: we need to open the file as enc=utf8 on windows py3
...
fixes #521
2017-01-15 12:29:40 +01:00
Johan Andersson
0f99956d62
postprocess: don’t crash on åäö in filename
...
fixes #517
2017-01-02 21:09:35 +01:00
Johan Andersson
80992f8664
postprocess: return und if we cant get the right language
2016-12-05 19:36:00 +01:00
Johan Andersson
0cb152edef
postprocess.sublanguage.parse: in py3 map return an iterator but we want a list
...
fixes #444
2016-09-07 17:31:14 +02:00
iwconfig
91cc1a18a2
Fixed minor bug with manual mappings options for ffmpeg
...
also a tiny cleanup
2016-07-11 23:05:03 +00:00
iwconfig
3c1d45a37c
Fixed issue with --force-subtitle.
...
--force-subtitle and -S did not respect each other but now it is
working as it should. If --force-subtitle is used with -S it downloads
only the subtitles, and if --force-subtitle is used alone it overwrites
the existing subtitles and continues with the audio/video stream.
2016-06-30 23:57:27 +00:00
iwconfig
4e63c15ef9
Added -M, --merge-subtitle to merge subtitle(s).
...
The option gets the correct ISO639-3 language code using my own simple
language detection api, and merges with correct metadata using ffmpeg.
If ffmpeg is not installed an error message is raised since avconv
doesn't seem keep up with ffmpeg.
I also did a little cleanup in postprocess().
2016-06-30 23:57:27 +00:00
iwconfig
4f6c4821d7
remux only if file is not mp4
2016-06-02 01:47:25 +02:00
Johan Andersson
003c494e0b
postprocess: ext includes dot before fileextention
...
this fixes : #380
2016-04-27 18:53:47 +02:00
Olof Johansson
5393dc1929
Fix various pylint warnings
...
None of these were any real problems, but easier to spot real issues if pylint
is a bit quieter. Apart from the pylint overrides being sprinkled over the code
base, this commit also fixes occurences of the following issues:
- logging-not-lazy
- logging-format-interpolation
- unused-import
- unused-variable
2016-04-03 19:06:45 +02:00
Johan Andersson
c125540498
postprocess: this should be None and not False
2016-03-30 18:18:43 +02:00
Johan Andersson
c31cdfeeec
postprocess: add copyts
2016-03-28 19:17:06 +02:00
Johan Andersson
e523141a04
support for dash streams
2016-03-26 21:38:31 +01:00
Johan Andersson
22614e1aa6
postprocess: dont hardcode avconv
2016-03-22 23:31:32 +01:00
Johan Andersson
60a54d7c0a
postprocess: do check for ffmpeg and avconv
2016-03-22 23:00:50 +01:00
Johan Andersson
4218dd5a5b
postprocess: basic remux files to .mp4 with ffmpeg/avconv
...
fixes #121
fixes #36
2016-03-22 22:36:39 +01:00