summaryrefslogtreecommitdiff
path: root/test/client_server_test.cc
AgeCommit message (Collapse)Author
2024-05-29Remove default Interop/SMPTE setting.Carl Hetherington
2024-05-22Rename new_test_film2 -> new_test_film.Carl Hetherington
2024-05-20Cleanup another test.Carl Hetherington
2024-04-29Fix failures in real_encode_with_server.Carl Hetherington
This test suddenly started failing because the server is never found, so never encodes any frames. It's a mystery why this started failing, and even more of a mystery why there seem to be two distinct reasons. Some failures were apparently due to firewalld blocking UDP broadcast; disabling the firewall would make the test pass again. Other failures were apparently caused by an old EncodeServerFinder hanging around, presumably finding servers before a new one had the chance.
2024-01-28Rearrange encoder threading.Carl Hetherington
Soon we'll add a new encoder type, and the existing structure was already creaking a bit at the seams while handling local and remote encodes. Here we split out an encoder thread and introduce the concept of a "sync" thread (which blocks while the encoding is happening). Later we'll have another type which submits the encode request to a GPU and receives the reply back later.
2024-01-28Change how video timing is done.Carl Hetherington
This commit changes the approach with video timing. Previously, we would (more-or-less) try to use every video frame from the content in the output, hoping that they come at a constant frame rate. This is not always the case, however. Here we preserve the PTS of video frames, and then when one arrives we output whatever DCP video frames we can (at the regular DCP frame rate). Hopefully this will solve a range of sync problems, but it could also introduce new ones.
2023-09-10Cleanup: use some stack allocation and shared_ptr.Carl Hetherington
2021-09-27Replace aligned bool with enum Alignment.Carl Hetherington
2021-04-29C++11 tidying.Carl Hetherington
2021-01-31More enum class additions.Carl Hetherington
2021-01-27Use enum class for VideoRange.Carl Hetherington
2021-01-07std::shared_ptrCarl Hetherington
2020-11-20Some tidying up of test Doxygen.Carl Hetherington
2020-11-02Replace dcp::Data with dcp::ArrayDataCarl Hetherington
2020-05-20More logging and make it go to the right place.Carl Hetherington
2020-04-14Ignore and report failures to decode frames during playback (#1593).Carl Hetherington
2019-10-21Rename dcpomatic_sleep -> dcpomatic_sleep_seconds.Carl Hetherington
2019-05-24Basic ability to set video range (JPEG/MPEG) at least for YUV content. May ↵Carl Hetherington
not work for RGB. See #1509.
2018-11-21Tidy and fix logging.Carl Hetherington
2018-09-06Try to prevent encode server test crashing in valgrind.Carl Hetherington
2018-07-23Tidy up after mass rename.Carl Hetherington
2018-07-20Untested; allow viewing of subtitles or closed captions in the preview.Carl Hetherington
2018-04-13Note and indicate servers with bad link version (#982).Carl Hetherington
2018-02-24Speed some operations by re-using the last PlayerVideo but withCarl Hetherington
updated metadata (where possible). Helps with #1194.
2018-02-02Fix incorrect pixel format on subtitles when they are sent to encoding servers.Carl Hetherington
2017-10-16Fix client_server_tests on Docker.Carl Hetherington
2017-07-28Fix required test.Carl Hetherington
2017-05-30Fix another hang in tests.Carl Hetherington
2017-05-29Fix hang in client_server tests.Carl Hetherington
2017-05-27Fix leaked threads in client-server test.Carl Hetherington
2017-04-19Various Doxygen fixes.Carl Hetherington
2017-04-19Attempt to tidy up internal APIs slightly.Carl Hetherington
2016-06-29Fix handling of incorrectly-recognised JPEG2000 files.Carl Hetherington
Previously we asked libdcp whether an imported J2K file was RGB or XYZ. The answer it gives is sometimes wrong, for reasons that are not clear (either the files are not marked correctly, or openjpeg is not parsing whatever metadata correctly). However it seems that, in general, we use the user's specified colour conversion to decide what to do with an image, rather than asking the image what should be done to it. Hence it makes more sense to assume that if a user specifies no colour conversion for a J2K file then the file is XYZ. With preview, the colour conversion from XYZ back to RGB is done by FFmpeg, so we have to set the pixel format correctly on the Image that comes back from J2KImageProxy. Now we get that pixel format from the configured colourspace conversion rather than from openjpeg's guess as to the file's colourspace. It's a bit ugly that the only thing we ask the file about is whether or not it is in YUV (which governs whether or not FFmpeg applies the user's configured YUV-to-RGB conversion). Everything else is decided by the configured conversion. I think there's still some uglyness in here that I can't put my finger on.
2016-06-21Revert "Use make_shared<>."Carl Hetherington
Support for this seems to vary wildly across DoM's build targets. Stuff that builds on 16.04 won't build on 14.04, for example. Seems to not be worth the hassle now. This reverts commit 5a5324ed3a381a86dfe0a6e3932c1d58fdcd596f.
2016-06-21Use make_shared<>.Carl Hetherington
2016-05-25No-op; fix GPL address and use the explicit-program-name version.Carl Hetherington
2015-12-11Split EncodeServer into that and Server.Carl Hetherington
2015-12-11Rename Server -> EncodeServer, ServerFinder -> EncodeServerFinder, ↵Carl Hetherington
ServerDescription -> EncodeServerDescription.
2015-12-06Increase timeout on client-server-test.Carl Hetherington
2015-12-04Use libdcp's compress_j2k; move Data into libdcp.Carl Hetherington
2015-10-15Use AV_ prefixes on some FFmpeg bits.Carl Hetherington
2015-09-01Add basic test for client/server with a J2K image.Carl Hetherington
2015-08-26Split log.{cc,h}.Carl Hetherington
2015-08-26Move ServerDescription into its own header.Carl Hetherington
2015-08-25Add video waveform viewer.Carl Hetherington
2015-07-16float -> double in a few places.Carl Hetherington
2015-06-25Make player decide whether subtitles should be burnt based onCarl Hetherington
content settings rather than using the film's settings. Remove film property of burn-subtitles.
2015-06-21No-op: remove all trailing whitespace.Carl Hetherington
2015-06-10Tidy up J2KImageProxy a bit.Carl Hetherington
2015-06-10Rename EncodedData -> Data and trim it a bit.Carl Hetherington