<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 57: Duration might be wrong</title><link href="https://sourceforge.net/p/ffmpeg-php/bugs/57/" rel="alternate"/><link href="https://sourceforge.net/p/ffmpeg-php/bugs/57/feed.atom" rel="self"/><id>https://sourceforge.net/p/ffmpeg-php/bugs/57/</id><updated>2013-02-04T00:11:46Z</updated><subtitle>Recent changes to 57: Duration might be wrong</subtitle><entry><title>Duration might be wrong</title><link href="https://sourceforge.net/p/ffmpeg-php/bugs/57/" rel="alternate"/><published>2013-02-04T00:11:46Z</published><updated>2013-02-04T00:11:46Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net29fae3058561cad33e36136e056d79291b49a828</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;FFmpeg returns a duration parameter for quicktime movies with in- and out-points which is not the actual clip duration but a virtual duration of something like the full length original video. Short: the duration parameter might be incorrect for some movies. As soon as ffmpeg writes something like:&lt;/p&gt;
&lt;p&gt;"Duration: 00:00:19.04, start: -2.-266800, bitrate: 2747 kb/s"&lt;/p&gt;
&lt;p&gt;getDuration will be wrong...&lt;/p&gt;
&lt;p&gt;As a workaround, I used mediainfo or mplayer to check for the clipduration. Maybe it's possible to calculate the duration based on the framerate and the frame count?&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>