Commit Graph

156 Commits

Author SHA1 Message Date
Moritz Bunkus
17fd1fd53c MPEG TS: workaround for subtitle timestamps differing from audio/video timestamps widely
There are MPEG TS files where subtitle packets are multiplexed with
audio and video packets properly, meaning that packets that are supposed
to be shown/played together are also stored next to each other. However,
the timestamps in the PES streams have huge differences. For example,
the first timestamps for audio and video packets are around 00:11:08.418
whereas the timestamps for corresponding subtitle packets start at
09:19:25.912.

This workaround attempts to detect such situations. In that case
mkvmerge will discard subtitle timestamps and use the most recent audio
or video timestamp instead.

Implements #1841.
2017-01-06 20:06:22 +01:00
Moritz Bunkus
e1e14ed510 FileIdentifier: fix application of track defaults & caching
Before the defaults were applied before the result was stored in the
cache. The problem with that is that changing the defaults in the
preferences did not affect cached results. Adding a file the second time
was using cache data which had the old defaults applied.

Now the defaults are applied after the result has been stored in the
cache. Upon retrieval from the cache the current defaults are applied,
too.
2017-01-02 13:20:30 +01:00
Moritz Bunkus
5f096de087 MP4: determine track parameters from bitstream for MP2 audio, too
In this case the track contains MP3 data. However, the ESDS's object
type ID field is set to 0x6b in the headers indicating MP2. Additionally
the track's fields for channels & sampling frequency are set to 0.

Fixes #1844.
2017-01-01 11:55:25 +01:00
Moritz Bunkus
f40f77895f update NEWS.md 2016-12-31 19:09:11 +01:00
Moritz Bunkus
8eec6faf0c update NEWS.md 2016-12-30 15:04:47 +01:00
Moritz Bunkus
d426b2d15f convert date-ordered ChangeLog to more user-centric NEWS.md file 2016-12-29 17:03:57 +01:00