PHPexec calls ffmpeg to automatically transcode the video.

Source: Internet
Author: User
PHPexec calls ffmpeg to automatically transcode videos without executing PHPCMS field development for a customer. the actually uploaded video transcoding function is tested on the local machine and passed in the UAT environment. After the customer uploads the file to the production environment, the transcoding will not be executed. The UAT environment is the same as the production environment, and both are WIN2003 + IIS6.

Example-I test. wmv test.mp4'commands can be executed without authorization. you can delete ffmpeg.exe and the path of the video file. both the relative and absolute paths have been tested.

GOOGLE and Baidu have found a bunch of materials, but there is still no solution. Is there any great help to analyze the possible reasons?


Reply to discussion (solution)

I found my own problems and asked for my character.

It is really hard to say what the problem is. you have already ruled out all the errors to be eliminated. Is it normal to execute this transcoding command separately? Or you can use this function to another win2003 system and try again.

Ffmpeg.exe requires anonymous user execution permission

Both ffmpeg.exe and video files must use absolute paths.
You can verify this by using the cmd file in the same directory as the php file.

Ffmpeg.exe requires anonymous user execution permission

Both ffmpeg.exe and video files must use absolute paths.
You can verify this by using the cmd file in the same directory as the php file.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.