Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I do not have zencoder or ffmpeg transcoding set up in every environment where site development is taking place.
For his purpose I have created a stub transcoder which can be used to emulate a working ffmpeg transcoder.
- It can create thumbnails for videos just like devel_generate.
- It is very strict in checking parameters to catch faults sooner.
- It can log extra debug information to watchdog.
- It has a configurable delay to emulate real transcoding and test timeouts.
When it comes to transcoding it will simply copy the original video to a new file. Of course these videos will probably not be usable but everything else should work just as if you had a real transcoder set up.
Comment | File | Size | Author |
---|---|---|---|
transcoderstub.patch | 72.25 KB | JvE | |
Comments
Comment #1
heshanlkComment #4
heshanlkSee #2867975: Fatal error: Class TranscoderAbstractionFactoryStub
Comment #5
heshanlkFatal error: Class TranscoderAbstractionFactoryStub contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (TranscoderFactoryInterface::isOffSite) in /home/dcm81/www/sites/default/modules/video/transcoders/TranscoderAbstractionFactoryStub.inc on line 2098