summaryrefslogtreecommitdiff
path: root/src/lib/player.cc
AgeCommit message (Collapse)Author
2017-08-30Fix incorrect reel lengths in some cases; account for emitted data being ↵Carl Hetherington
rejected by the player, and for initial audio not to be at time 0.
2017-08-14Basics of forced reduction of JPEG2000 decode resolution.Carl Hetherington
2017-08-14Remove Film dependency from Empty.Carl Hetherington
2017-07-28Do repeat in the player rather than trying to do it in VideoDecoder.Carl Hetherington
Trying to repeat in VideoDecoder is the wrong side of the distinction between content and DCP time; the repeat is for the DCP and VideoDecoder should be emitting in terms of the source.
2017-07-27Fix heavy fingers in previous commit.Carl Hetherington
2017-07-27Fix SNAFU with silence/black.Carl Hetherington
2017-07-12Don't emit black to fill up to a frame that we're not going to emit.Carl Hetherington
2017-07-12Add some tests; fix failure to make DCP when there is a bit of audio right ↵Carl Hetherington
at the end of the film (with no corresponding video).
2017-07-11Remove unused Player::_ignore_audio. Ignore positionCarl Hetherington
of things that we are ignoring; this fixes strange behaviour (delays) when analysing audio as it used to keep pass()ing decoders to get data that would never come.
2017-07-11Fix missing subtitle when it is at the same time as some video in different ↵Carl Hetherington
content.
2017-06-29Fixes for silence in projects, various cleanups.Carl Hetherington
2017-06-23Add a OV/VF test; tidy up a bit.Carl Hetherington
2017-06-23Remove debug code.Carl Hetherington
2017-06-23Attempts to simplify black-filling logic in Player.Carl Hetherington
2017-06-18Add a note to be fixed in #1073.Carl Hetherington
2017-06-18Small optimisation.Carl Hetherington
2017-06-18Remove spurious fills of audio data.Carl Hetherington
With a 29.97 source I had problems because the earliest decoder position was one DCPTime quantum ahead of the last audio time; this looks like it was due to the content-to-DCP time conversion using 1.001 as the ratio for 30/29.97 rather than 1.001001; I haven't investigated why. This all needs more careful consideration...
2017-06-01Stop old frames appearing in the preview after seeks.Carl Hetherington
2017-06-01Re-add missing audio mapping in butler for preview.Carl Hetherington
2017-05-30Remove call to fill_audio which goes wrong with multi-audio-stream content.Carl Hetherington
This call just doesn't take multi-stream into account. Removing it does not trip any tests so I think it may be superfluous...
2017-05-21Remove debug.Carl Hetherington
2017-05-21Do resampling in AudioDecoder rather than Player.Carl Hetherington
This fixes the problem where the decoder's position would not take into account that all samples pushed into the resampler do not always immediately come out. This would result in Player thinking that there would be gaps when there are not.
2017-05-19Fix infinite loop with referenced audio.Carl Hetherington
2017-05-18Fix audio fill in the presence of audio delay.Carl Hetherington
2017-05-18Fix order of pass/fill; only round up at the end of the playlist, not on ↵Carl Hetherington
every fill.
2017-05-18Player should fill towards the next video frame.Carl Hetherington
2017-05-17Merge branch 'master' of ssh://git.carlh.net/home/carl/git/dcpomaticCarl Hetherington
2017-05-17Speculative corresponding audio fix to 732c9008999e4eeff01a72b84d2bc99dc77bd602.Carl Hetherington
2017-05-17Respect _no_video and _no_audio when filling.Carl Hetherington
2017-05-17Speculative fix when solves problems when FFmpeg content has sound but ↵Carl Hetherington
missing video at its end. May cause other problems.
2017-05-17Put audio-gap padding in the right place (after the forthcoming audio has ↵Carl Hetherington
been checked and processed).
2017-05-16Fix _last_video_time with 3D.Carl Hetherington
2017-05-16Fix black fill where there is no earliest content.Carl Hetherington
2017-05-16Re-merge _last_{video,audio}_time and _last_seek_time; fix _last_video to ↵Carl Hetherington
work correctly with different pieces.
2017-05-16Fix failure to fill FFmpeg gaps at the start of films.Carl Hetherington
2017-05-16Fix slightly short video reels in some cases.Carl Hetherington
2017-05-16Fix missing pad of gaps caused by delays in audio content at the start of a ↵Carl Hetherington
Film. Rename pull_from -> pull_to.
2017-05-15Fix missing subtitle in some cases.Carl Hetherington
With this timeline: -------> t SUB1 SUB2 X We might seek to X, then pass(). Before this change, SUB1 would have been emitted by the call to the subtitle decoder, then we'd have emitted some black for X. This would lose SUB2. Now we keep pass()ing and don't emit X until it's the earliest thing (in the same way that the main decision of what to pass() works).
2017-05-13Fill audio in the Player.Carl Hetherington
2017-05-08Correctly stop when we have no decoders and we haven't filled.Carl Hetherington
2017-05-08Fix assertion failure if rounding reduces remaining frames to 0.Carl Hetherington
2017-05-08Fix up black-filling logic.Carl Hetherington
2017-05-08Player is not finished if it's still filling in blank space.Carl Hetherington
2017-05-08Small refactoring.Carl Hetherington
2017-05-08More comment updates.Carl Hetherington
2017-05-08Fix comment.Carl Hetherington
2017-05-08Some comments and cleanup.Carl Hetherington
2017-05-08Pull ActiveSubtitles code out to a class.Carl Hetherington
2017-05-08Fix fill of timeline periods where there is no video.Carl Hetherington
2017-05-07Remove unused code.Carl Hetherington