English 中文(简体)
网址:www.untu.org
原标题:php exec command to encode video to h.264 mp4 file using ffmpeg and x264 tool on ubuntu

我有一个专用服务器,配有刺.和X264工具。 我可以打上任何录像,而且确实是好的。 但现在我需要在iPads、ipes上安装密码录像。

I m using PHP to enconde videos, I m just looking for an exec command to do the above encoding. what I m using for the other videos is:

exec("ffmpeg -i movie.mov -sameq -acodec mp3 -ar 22050 -ab 32 -f flv -s 1280x720 movie.flv");

I just need something similar to that for encoding mp4 by the way, I can t use libx264. I can only use the x264 tool

Cheers

问题回答
exec("ffmpeg -i movie.mov -sameq -ar 22050 -ab 32k -s 1280x720 movie.mp4");

ffmpeg可以自行选择第4条,而无需校准。 该录像带将视像为h264,并配有音响。

用x264 编成原始H264文档,用ff子编码原始视听材料,然后用速成的MP4Box将这些材料合并成一种胚胎。





相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签