summaryrefslogtreecommitdiff
path: root/src/lib/ffmpeg_decoder.cc
AgeCommit message (Collapse)Author
2016-02-29Fix error on loading pre-configurable-FFmpeg-subtitle-colour projects on ↵Carl Hetherington
later versions of DoM.
2016-02-26Allow changes to colours of FFmpeg subtitles (#795).Carl Hetherington
2016-02-15Fix overlapping SSA subs.Carl Hetherington
2016-02-15Support SSA subtitles embedded within FFmpeg files.Carl Hetherington
2016-02-09Small cleanup.Carl Hetherington
2016-02-09Fix crash when a frame being deinterleaved has fewer audio channelsCarl Hetherington
than its stream; I'm not sure why this happens but the file that triggered this commit was stereo AC3 and the crash happened when (embedded) subtitles were enabled and the file seek was seeked randomly. There were frame-sync errors from FFmpeg around the crash.
2016-02-01Subtitle "to" times used to be stored against their "from" times.Carl Hetherington
Sadly an example shows that from times are not unique. This patch uses a hash of stuff from the first AVSubtitle as the key.
2015-11-18Split FilterGraph into that and VideoFilterGraph.Carl Hetherington
2015-10-26Speculative fix for image corruption following ↵Carl Hetherington
2e62b2c0de47fc8e5bcb5466b2876f9b23d2ae84
2015-10-26Reinstate subtitle speed-up patch 526fd6de4c80a7ac9614a1cb0209efff7b171cd5 ↵Carl Hetherington
but only for preview.
2015-10-23Revert "Avoid decoding other packets when looking for subs."Carl Hetherington
This reverts commit 9e025d3f85f9d6d855b3d5e6c90bca0eac3a3d49. It causes corruption in prophet_clip.xml for reasons that are not yet known.
2015-10-16Avoid decoding other packets when looking for subs.Carl Hetherington
The "accumulation" of, for example, video data when we are looking for audio data is an *optimisation* to reduce the number of seeks. It should not be necessary for correctness (the output should be right even if we never kept anything except what we were looking for). Doing this accumulation is not always an optimisation; sometimes not doing it is better. Avoiding it when going back for subtitles is one of these cases.
2015-10-15Use AV_ prefixes on some FFmpeg bits.Carl Hetherington
2015-10-09Logging improvements to allow prettier displays in the server GUI.Carl Hetherington
2015-10-06Speculative support for multi-part subtitles (#709).Carl Hetherington
2015-09-29Make sure we round properly when deciding how many audio frames to discard.Carl Hetherington
2015-09-28Discard audio that comes out of FFmpeg files before time 0.Carl Hetherington
2015-09-26Fix problems with subtitles when there is a non-zero PTS offsetCarl Hetherington
in FFmpegDecoder. This offset was not being taken into account for subtitles prior to this commit.
2015-09-14Tidy up LOG_ macros.Carl Hetherington
2015-09-09Use SRC_LINEAR for speed when analysing audio (#685).Carl Hetherington
2015-08-25Purge rint() and use llrint and friends.Carl Hetherington
2015-08-18Include tidying.Carl Hetherington
2015-06-21No-op: remove all trailing whitespace.Carl Hetherington
2015-06-14Don't seek before 0 in FFmpegDecoder; fixes errors on seek close to 0.Carl Hetherington
2015-06-14Fix failure on 1-frame-back seek (#604).Carl Hetherington
I don't know why this works, but it's what 1.x has been using; I can't find any documentation on what AVSEEK_FLAG_BACKWARD is supposed to mean.
2015-06-12Remove PassReason stuff.Carl Hetherington
This feels wrong: it means that it is possible for FFmpegDecoder to discard packets. I can't see how this is ok in all cases: maybe we were lucky that it worked at all.
2015-06-12Small optimisation.Carl Hetherington
2015-06-02Handle multiple audio streams in a single piece of contentCarl Hetherington
in a similar way to the V1 patch.
2015-05-13Token effort toward non-bitmap subtitles from FFmpegDecoder.Carl Hetherington
2015-05-13Don't bother decoding video frames when we're seeking around trying to find ↵Carl Hetherington
subtitles.
2015-05-13Look up unknown subtitle end times from the data prepared by the examiner.Carl Hetherington
2015-05-12Assorted image subtitle fixes.Carl Hetherington
2015-01-30Remove the code, on seeking, to seek to the requested timestampCarl Hetherington
in the audio stream if it is lower than that for the video stream. The FFmpeg docs don't support it, AFAICS, as they suggest that the the seek should be in the timebase of the specified stream. It also causes problems with the "preview" test when seeking inaccurately in the viewer.
2015-01-19Fix audio analysis; make sure we don't decode video and let it pile up unwanted.Carl Hetherington
2015-01-09Forward-port 99% crash fix from 1.x.Carl Hetherington
2015-01-04Ignore AVERROR_INVALIDDATA from av_read_frame() as it can apparently mean ↵Carl Hetherington
that there is still data to be processed.
2014-12-20Hand-apply d849d411cff28ef5453085791d0b4d7cd73bd070 from master; replace all ↵Carl Hetherington
assert()s with thrown exceptions.
2014-12-15Fix previous.Carl Hetherington
2014-12-15Hand-apply 75be314ee89fb2f4e783b4079f7fabf69e79d636 from master; fix hidden ↵Carl Hetherington
content appearing (#418).
2014-11-07Remove log from ImageProxy hierarchy.Carl Hetherington
2014-11-03Fix mix-merge of previous.Carl Hetherington
2014-11-03Forward-port avcodec_decode_audio4 error handling patch from v1.Carl Hetherington
2014-08-23Merge master.Carl Hetherington
2014-08-19Use SafeStringStream instead of std::stringstream to try to fix random ↵Carl Hetherington
crashes on OS X.
2014-08-11Merge master.Carl Hetherington
2014-08-09Properly remove JSON server; remove some unused usings; remove some ↵Carl Hetherington
unnecessary uses of stringstream.
2014-07-22Somewhat speculative move to allow -ve seeks, which seem to be necessary for ↵Carl Hetherington
some files to seek correctly to 0.
2014-07-22Another comment.Carl Hetherington
2014-07-22Add a comment.Carl Hetherington
2014-07-09Split up image_proxy.{cc,h}Carl Hetherington