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

Panagiotis Issaris takis.issaris
Wed Jul 18 00:52:35 CEST 2007


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?

 flvdec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

With friendly regards,
Takis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pi-20070718T005017-ffmpeg-flv.diff
Type: text/x-patch
Size: 537 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070718/13324718/attachment.bin>



More information about the ffmpeg-devel mailing list