douxinghuai3150 2017-10-03 17:08 采纳率: 0%
浏览 1952

使用FFMPEG将图像转换为mp4的最简单方法

I will try to explain my situation : I know that FFMPEG is the best tool to work with PHP to have transcode operations. I'm in a Windows environnement and I have PHP 7.

What I need is : with a php file, to take all pictures in the folder (1.png; 2.png) etc and then process with FFMPEG to create a MP4 video

I know there is a lot of documentation on the Web about PHP, FFMPEG, PHP-FFMPEG but I don't know the easiest way to implement what I want. I also know that PHP needs FFMPEG binaries to work (which is logical). But I'm lost in the procedure and the way to do it.

Is it possible with the exec function ?

exec("PATH IN THE PROJECT OF EXE -f image2 -i /home/phedra/imgs/image/img%03d.png -r 12 -s 610x489 /home/phedra/imgs/video/out.avi", $out);

Do I absolutely need PHP-FFMPEG ?

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 lammps拉伸应力应变曲线分析
    • ¥15 C++ 头文件/宏冲突问题解决
    • ¥15 用comsol模拟大气湍流通过底部加热(温度不同)的腔体
    • ¥50 安卓adb backup备份子用户应用数据失败
    • ¥20 有人能用聚类分析帮我分析一下文本内容嘛
    • ¥15 请问Lammps做复合材料拉伸模拟,应力应变曲线问题
    • ¥30 python代码,帮调试,帮帮忙吧
    • ¥15 #MATLAB仿真#车辆换道路径规划
    • ¥15 java 操作 elasticsearch 8.1 实现 索引的重建
    • ¥15 数据可视化Python