This patch adds support for ffmpeg-php. Also available here.

Comments

hypertext200’s picture

Status: Patch (to be ported) » Needs review

Awesome, this is what I was working with for the next release of the video module, I've half done and it is awesome to see you have complete it before me. I will discontinue all other transcoders as this one will be the best one. I was wondering is there any transcoding feature?. I couldn't see any of function in API docs.

Changing to need review as we need to test and and it seems ready to go.

silvio’s picture

I think that ffmpeg-php doesn't have any transcoding methods as it's mostly intended to retrieve basic video information and extract frames for thumbnails. I also feel a lack of docs relating to error handling.

I'm testing with a debian squeeze package, which might not work with every video codec, so additional testing would be important.

silvio’s picture

StatusFileSize
new1.75 KB

I added some error handling to this transcoder.

yooperjb’s picture

Category: feature » support

I installed the ffmpeg-php transcoder and selected it in the video configuration. When trying to upload video I get this error:

An AJAX HTTP request terminated abnormally.
Debugging information follows.
Path: /file/ajax/field_video/und/0/form-RL4G1gLbgxgNrzYyWfbv0pCiDvSDBDzIDml2_XeGfe0
StatusText: n/a
ResponseText:
Fatal error: Class 'ffmpeg_movie' not found in /home/content/05/6666005/html/sites/all/modules/video/transcoders/video_ffmpeg_php.inc on line 96
ReadyState: undefined

Any suggestions? I've been having a struggle with the video module trying to get it to work correctly.

kezeo’s picture

please how install this patch thank you in advance

yooperjb’s picture

@kezeo

Simply select the link above to the patch. Cut and paste the code into a new file and save it as:
video_ffmpeg_php.inc (pascal source file).

Then place the file into your transcoder directory:
/sites/all/modules/video/transcoders

You will then see a choice for the video_ffmpeg_php in your transcoder options under your video configuration.

kezeo’s picture

thank you for your great help

kezeo’s picture

Sorry but doesn't i tried but when i go to transcoder i have a blank page with code
regards

yooperjb’s picture

@kezeo

Make sure you grab all of the code, not just the difference. It can be grabbed from here. Save that as your file and place in the transcoder folder. Should be all you need, however, it may still have issues as it did for me.

silvio’s picture

@yooperjb: You probably don't have ffmpeg-php installed on your system. This reminds me that a proper check is needed in the transcoder to inform the admins if the extension is not installed. I'll try to do that soon.

silvio’s picture

The attached patch (also available here) adds a check on whether ffmpeg extension is available for the video_ffmpeg_php transcoder. This is an incremental patch related to my latest change in my git repo. I can also provide an unified patch including all video_ffmpeg_php transcoder.

hypertext200’s picture

Status: Needs review » Closed (duplicate)

#1216206: 7.x-2.x of video module developments development of 7.x-2.x has been started and ffmpeg-php added as optional. @silvio please see if you can wrap up some patch there to handle if any issues. Marking this as duplicate effort.