如何使用ffmpeg-php从.3gp和.mp4中读取信息? [英] How to read information from .3gp and .mp4 using ffmpeg-php?

查看:161
本文介绍了如何使用ffmpeg-php从.3gp和.mp4中读取信息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个ffmpeg-php的问题。我试图从视频文件获取一些信息,它的文件格式,如.avi,.mpg或.flv,但是当我尝试使用.3gp或.mp4文件格式:

  $ movie = new ffmpeg_movie('path / to / file / test.3gp'); 

我收到这样的错误:

  ffmpeg_movie :: __ construct()[]:ISO:文件类型主要品牌:3gp5 

  ffmpeg_movie :: __ construct()[]:ISO:文件类型主要品牌:mp42 

我使用这里找到的说明在WAMP上安装了ffmpeg-php:
如何在WampServer 2.0(Windows XP)中安装FFMpeg



我需要使用exec()将这些信息发送到ffmpeg。任何人都可以帮助我吗?

解决方案

您还可以使用纯粹的php方法使用 PHP媒体阅读器


I have a bit of a problem with ffmpeg-php. I'm trying to get some information from video files and it works pretty fine with file formats like .avi, .mpg or .flv but when I try to use .3gp or .mp4 in:

$movie = new ffmpeg_movie('path/to/file/test.3gp');

I get error like this :

ffmpeg_movie::__construct() []: ISO: File Type Major Brand: 3gp5 

or

ffmpeg_movie::__construct() []: ISO: File Type Major Brand: mp42 

I installed ffmpeg-php on WAMP using instructions found here: How to install FFMpeg in WampServer 2.0 (Windows XP)

I need those information to send them to ffmpeg using exec(). Anyone could help me with this?

解决方案

You could also use a pure php approach using PHP media reader

这篇关于如何使用ffmpeg-php从.3gp和.mp4中读取信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆