ffmpeg-php输出错误:ffmpeg-php安装成功后,输出错误ffmpeg_movie::__construct() []: ISO: File Type
源码:extension_loaded('ffmpeg');$ffmpegInstance=newffmpeg_movie('D:\PHP\PHPnow-1.5.6\ht...
源码:
extension_loaded('ffmpeg');
$ffmpegInstance = new ffmpeg_movie('D:\PHP\PHPnow-1.5.6\htdocs\edu118\videos\1111.mp4');echo "getDuration: " . $ffmpegInstance->getDuration()."<br>" .
"getFrameCount: " . $ffmpegInstance->getFrameCount()."<br>" .
"getFrameRate: " . $ffmpegInstance->getFrameRate()."<br>" .
"getFilename: " . $ffmpegInstance->getFilename()."<br>" .
"getComment: " . $ffmpegInstance->getComment()."<br>" .
"getTitle: " . $ffmpegInstance->getTitle()."<br>" .
"getAuthor: " . $ffmpegInstance->getAuthor()."<br>" .
"getCopyright: " . $ffmpegInstance->getCopyright()."<br>" .
"getArtist: " . $ffmpegInstance->getArtist()."<br>" .
"getGenre: " . $ffmpegInstance->getGenre()."<br>" .
"getTrackNumber: " . $ffmpegInstance->getTrackNumber()."<br>" .
"getYear: " . $ffmpegInstance->getYear()."<br>" .
"getFrameHeight: " . $ffmpegInstance->getFrameHeight()."<br>" .
"getFrameWidth: " . $ffmpegInstance->getFrameWidth()."<br>" .
"getPixelFormat: " . $ffmpegInstance->getPixelFormat()."<br>" .
"getBitRate: " . $ffmpegInstance->getBitRate()."<br>" .
"getVideoBitRate: " . $ffmpegInstance->getVideoBitRate()."<br>" .
"getAudioBitRate: " . $ffmpegInstance->getAudioBitRate()."<br>" .
"getAudioSampleRate: " . $ffmpegInstance->getAudioSampleRate()."<br>" .
"getVideoCodec: " . $ffmpegInstance->getVideoCodec()."<br>" .
"getAudioCodec: " . $ffmpegInstance->getAudioCodec()."<br>" .
"getAudioChannels: " . $ffmpegInstance->getAudioChannels()."<br>" .
"hasAudio: " . $ffmpegInstance->hasAudio();
输出:
Notice: ffmpeg_movie::__construct() []: ISO: File Type
Major Brand: isom in D:\PHP\PHPnow-1.5.6\htdocs\edu118\123.php on line
12
getDuration: 145.63555908203
getFrameCount:
3641
getFrameRate: 25
getFilename:
D:\PHP\PHPnow-1.5.6\htdocs\edu118\videos\1111.mp4
getComment:
getTitle:
getAuthor:
getCopyright:
getArtist:
getGenre:
getTrackNumber: 0
getYear: 0
getFrameHeight: 432
getFrameWidth:
576
getPixelFormat: yuv420p
getBitRate: 549357
getVideoBitRate:
getAudioBitRate:
getAudioSampleRate: 22050
getVideoCodec:
h264
getAudioCodec: mpeg4aac
getAudioChannels: 2
hasAudio: 1
这是什么原因啊 展开
extension_loaded('ffmpeg');
$ffmpegInstance = new ffmpeg_movie('D:\PHP\PHPnow-1.5.6\htdocs\edu118\videos\1111.mp4');echo "getDuration: " . $ffmpegInstance->getDuration()."<br>" .
"getFrameCount: " . $ffmpegInstance->getFrameCount()."<br>" .
"getFrameRate: " . $ffmpegInstance->getFrameRate()."<br>" .
"getFilename: " . $ffmpegInstance->getFilename()."<br>" .
"getComment: " . $ffmpegInstance->getComment()."<br>" .
"getTitle: " . $ffmpegInstance->getTitle()."<br>" .
"getAuthor: " . $ffmpegInstance->getAuthor()."<br>" .
"getCopyright: " . $ffmpegInstance->getCopyright()."<br>" .
"getArtist: " . $ffmpegInstance->getArtist()."<br>" .
"getGenre: " . $ffmpegInstance->getGenre()."<br>" .
"getTrackNumber: " . $ffmpegInstance->getTrackNumber()."<br>" .
"getYear: " . $ffmpegInstance->getYear()."<br>" .
"getFrameHeight: " . $ffmpegInstance->getFrameHeight()."<br>" .
"getFrameWidth: " . $ffmpegInstance->getFrameWidth()."<br>" .
"getPixelFormat: " . $ffmpegInstance->getPixelFormat()."<br>" .
"getBitRate: " . $ffmpegInstance->getBitRate()."<br>" .
"getVideoBitRate: " . $ffmpegInstance->getVideoBitRate()."<br>" .
"getAudioBitRate: " . $ffmpegInstance->getAudioBitRate()."<br>" .
"getAudioSampleRate: " . $ffmpegInstance->getAudioSampleRate()."<br>" .
"getVideoCodec: " . $ffmpegInstance->getVideoCodec()."<br>" .
"getAudioCodec: " . $ffmpegInstance->getAudioCodec()."<br>" .
"getAudioChannels: " . $ffmpegInstance->getAudioChannels()."<br>" .
"hasAudio: " . $ffmpegInstance->hasAudio();
输出:
Notice: ffmpeg_movie::__construct() []: ISO: File Type
Major Brand: isom in D:\PHP\PHPnow-1.5.6\htdocs\edu118\123.php on line
12
getDuration: 145.63555908203
getFrameCount:
3641
getFrameRate: 25
getFilename:
D:\PHP\PHPnow-1.5.6\htdocs\edu118\videos\1111.mp4
getComment:
getTitle:
getAuthor:
getCopyright:
getArtist:
getGenre:
getTrackNumber: 0
getYear: 0
getFrameHeight: 432
getFrameWidth:
576
getPixelFormat: yuv420p
getBitRate: 549357
getVideoBitRate:
getAudioBitRate:
getAudioSampleRate: 22050
getVideoCodec:
h264
getAudioCodec: mpeg4aac
getAudioChannels: 2
hasAudio: 1
这是什么原因啊 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询