[FFmpeg-devel] $250 to fix FLV cutting bug

Michael Niedermayer michaelni
Wed Jul 18 01:59:25 CEST 2007


Hi

On Wed, Jul 18, 2007 at 12:52:35AM +0200, Panagiotis Issaris wrote:
> Hi Cyrus,
> 
> Cyrus A wrote:
> > Cyrus A wrote:
> >   
> >> Piero Bugoni wrote:
> >>   
> >>     
> >>>> I'm trying to cut a small portion out of a larger
> >>>> FLV file. I have an 
> >>>> FLV file that is 156 seconds long. The command...
> >>>>
> >>>> ffmpeg -ss 6 -t 100 -y -vcodec copy -acodec copy -i 
> >>>> /home/cyrus/Desktop/test.flv
> >>>> /home/cyrus/Desktop/cut.flv
> >>>>
> >>>> ...should create a file that is 94 seconds long
> >>>> (seeking 6 seconds, 
> >>>> duration for 100 seconds). Instead, it creates a
> >>>> file 150 seconds long. 
> >>>> That is, it seems to be seeking for 6 seconds, then
> >>>> giving me the rest 
> >>>> of the clip. Any ideas why that's happening?
> >>>>
> >>>>     
> >>>>       
> >>>>         
> >>> Maybe the -ss and -t options are exclusive of each
> >>> other.
> >>>
> >>> Have you tries the -vframes option? If you know the
> >>> number of frames you want, try specifying that, and
> >>> maybe it will give you just the frames you want.
> >>>
> >>> This probably belongs in ffmpeg.user.
> >>>
> >>> If I figure it out for you, I'll post it there.
> >>>
> >>> P.
> >>>   
> >>>     
> >>>       
> >> Thanks for taking a look. I don't think this belongs on ffmpeg-user. I 
> >> use the "-ss seek -t duration" combo extensively on other file formats 
> >> (mostly DivX 5.0 MPEG-4 AVI) and it works great (99% of the time). There 
> >> is obviously a bug here with FLVs.
> >>
> >> I'll let you know if I get any private responses and find a fix.
> >>
> >> Cyrus
> >>   
> >>     
> >
> > The donation is now $250 to fix the bug.
> >
> > Sorry to turn this list into elance.com. Look at it as further evidence 
> > of ffmpeg's commercial viability!
> >   
> 
> Can you try the attached patch?

the patch looks wrong, timestamps are in ms units not in anything else

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

it is not once nor twice but times without number that the same ideas make
their appearance in the world. -- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070718/e7c63f30/attachment.pgp>



More information about the ffmpeg-devel mailing list