All uploaded videos on our Drupal 7 site need to be in a standard web format: MP4-H.264/AAC to assure play back by all user devices.

ffmpeg is working correctly. Video upload field stores all uploaded files into sites/default/files/videos/originals.

ffmpeg saves converted files into sites/default/files/videos/converted/nnnn which is a directory containing the converted file, and nnnn is a number unique for each file.

On the web page, the original uploaded file is displayed. How can I switch to the converted ("transcoded") file?

Video module supports Rules integration. Is that a good solution?

Production and QA sites are hosted on AWS.

  • Rules has 2 events for transcoding: video_success, and video_failed. Apr 5, 2016 at 21:58

1 Answer 1


Solved this by modifying the custom module. Test if file has been converted, by looking in sites/default/files/videos/converted/nnnn, where nnnn is the File ID of the original file. If not then display the original video file. If conversion completed successfully, then display the converted file from sites/default/files/videos/converted/nnnn. There is only one file in the nnnn directory.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.