[FFmpeg-user] Trimming an FLV file

Lou lou at fakeoutdoorsman.com
Fri May 6 23:08:46 CEST 2011


On Fri, 6 May 2011 16:30:19 +0200
Maarten Weber <maarten at webersg.nl> wrote:

> Hi all,
> 
> I'm new to this mailinglist and I've got an issue on my hands
> concerning the trim function of FFmpeg. I must note that I'm using
> the FFmpeg version which is built in with Xuggler.
> 
> The main problem is that I can use the -ss parameter to crop an FLV
> file from the beginning, but using the -t parameter gives no result.
> I get the same FLV size.
> 
> As I'm writing this I'm wondering if the -acodec copy and vcodec copy
> can have something to do with the -t not taking any effect. Though
> this shouldn't prevent the -t from working does?
> 
> So, I'm using ffmpeg as follows:
> 
> ffmpeg -i test.flv -acodec copy -vcodec copy -t 2 test_trimmed.flv
> 
> 
> Does anyone have an idea as to why the -t isn't working? Am I doing
> something wrong here?
> 
> Thanks in advance!
> 
> Maarten 

You should also provide the complete FFmpeg terminal output. This will
provide some useful info about your input and your FFmpeg version.

There was a bug (issue1712) present in FFmpeg where -t didn't work with
some flv and was fixed on Feb 4 2010.


More information about the ffmpeg-user mailing list