Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to cut a portion from an mp4 video with avconv, but it doesn't seem to care about the -t param.

My command line is

avconv -t 10 -i GOPR0001.MP4 cut.MP4

This will process the whole video. At the same time ffmpeg works as expected with

ffmpeg -t 10 -i GOPR0001.MP4 cut.MP4

Creating a 10 sec video.

I'm using avconv version 0.8.6-4:0.8.6-0ubuntu0.12.04.1.

share|improve this question
up vote 7 down vote accepted

I can reproduce this issue (trying to use avconv to convert 20 seconds of internet radio stream into a wav file). So here's a fix which worked for me: simply permute the -t and -i options!

In your case, I'm suggesting trying

ffmpeg -i GOPR0001.MP4 -t 10 cut.MP4

I'm also suggesting that someone files a bug report.

EDIT: in fact it's not a bug -- it's a feature!

Apparently the bug was in ffmpeg ;-) The logic is apparently that -t is an output option, so should go after the input options. Go figure.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.