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.

CommentFileSizeAuthor
transcoderstub.patch72.25 KBJvE
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

heshanlk’s picture

Component: Video Transcoding » General
Status: Needs review » Fixed

  • heshanlk committed c88766f on 7.x-2.x authored by JvE
    Issue #2292977 by JvE: Add a stub transcoder for development and testing...

  • heshanlk committed 0f5dd33 on 7.x-2.x
    Revert "Issue #2292977 by JvE: Add a stub transcoder for development and...
heshanlk’s picture

heshanlk’s picture

Fatal 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