Menu

#26 mpg problem

open
general (27)
5
2006-08-21
2006-08-21
Dinobox
No

Sorry for my bad english ! ^^

Select from AVI goes without problems ! *1A*
Avi Dateien kann man ohne probleme auslesen!
-->

<?php

$sample = new ffmpeg_movie("test.avi",false);
$width = $sample->getFrameWidth();
$height = $sample->getFrameHeight();
$frame = $sample->getFrameRate();
$vcode = $sample->getVideoCodec();
$acode = $sample->getAudioCodec();
$bitrate = $sample->getBitRate();
$pixel = $sample->getPixelFormat();
$hasAudio = $sample->hasAudio();
$duration = $sample->getDuration();
$AudioSampleRate = $sample->getAudioSampleRate();
$AudioBitRate = $sample->getAudioBitRate()/1000;

print("
Breite=$width<br>
Hoehe=$height<br>
FrameRate=$frame<br>
Vcode=$vcode<br>
ACode=$acode<br>
BitRate=$bitrate<br>
Pixel=$pixel<br>
hasAudio=$hasAudio<br>
duration=$duration<br>
AudioSampleRate=$AudioSampleRate<br>
AudioBitRate=$AudioBitRate
");

?>

Function goes

Breite=608
Hoehe=336
FrameRate=25
Vcode=mpeg4
ACode=mp3
BitRate=1118389
Pixel=yuv420p
hasAudio=1
duration=37.8400001526
AudioSampleRate=48000
AudioBitRate=128

###############

But if I liked a MPG file selections break off it
without errors, why?

Wenn ich die AVI gegen MPG tausche und lasse die MPG
auslesen bricht er ohne fehler oder sonstiges ab, aber
wieso da ffmpeg das in der console macht ?

Thank You
Gruß und Danke

Dinobox

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.