summaryrefslogtreecommitdiff
path: root/src/lib/ffmpeg_decoder.cc
AgeCommit message (Collapse)Author
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
2014-07-08Conversion of frame index to FFmpeg time must always use the original or ↵Carl Hetherington
detected FFmpeg video frame rate.
2014-07-04Add 'starting' option to subtitles_during().Carl Hetherington
2014-07-02Hopefully improve subtitle decoder seeking etc.Carl Hetherington
2014-07-01Typo fix.Carl Hetherington
2014-07-01Tidy up a bit.Carl Hetherington
2014-07-01Remove FFmpegDecoder minimal_run and care on seeking, as the ↵Carl Hetherington
VideoDecoder/AudioDecoder has to cope with stuff per-stream anyway.
2014-07-01while (1) -> while (true)Carl Hetherington
2014-06-27Fix confusion about subtitle codec pointers.Carl Hetherington