Wrong command line arguments for avconv

Bug #1402399 reported by Ustilago
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Linux Stopmotion
New
Undecided
Unassigned

Bug Description

Hi,

The arguments for avconv invocation to export to a file are wrong :

avconv -r 12 -b 1800 -i "$IMAGEPATH/%06d.jpg" "$VIDEOFILE"

Results in :

avconv version 11-6:11-2, Copyright (c) 2000-2014 the Libav developers
  built on Oct 19 2014 20:25:25 with gcc 4.9.1 (Debian 4.9.1-18)
Input #0, image2, from '/tmp/lsmcLLZlD/%06d.jpg':
  Duration: 00:00:01.24, start: 0.000000, bitrate: N/A
, 25 fps, 25 tbn
Codec AVOption b (set bitrate (in bits/s)) specified for input file #0 (/tmp/lsmcLLZlD/%06d.jpg) is not a decoding option.

I'm not sure how to configure it correctly, this works in a shell :

avconv -r 10 -i /tmp/lsmwEWsoL/%06d.jpg -r 10 -vcodec libx264 -crf 20 -g 15 test.mp4

But adding this to Video Export preference menu :

avconv -r 10 -i "$IMAGEPATH/%06d.jpg" -r 10 -vcodec libx264 -crf 20 -g 15 "$VIDEOFILE"

Doesn't work, I'm not asked an output filename even if yes is checked for "do you want to be asked for an output file everytime you choose to export ?", and it ended with this error :

avconv version 11-6:11-2, Copyright (c) 2000-2014 the Libav developers
  built on Oct 19 2014 20:25:25 with gcc 4.9.1 (Debian 4.9.1-18)
Trailing options were found on the commandline.
Input #0, image2, from '/tmp/lsm4NJ1MH/%06d.jpg':
  Duration: 00:00:01.24, start: 0.000000, bitrate: N/A
    Stream #0.0: Video: mjpeg, yuvj420p, 1920x1080, 25 fps, 25 tbn
At least one output file must be specified

Regards,

Sébastien

Revision history for this message
Anaïs (bebone) wrote :

Hi Sébastien,

I have the same bug as you. Your command line works for me
avconv -r 10 -i "$IMAGEPATH/%06d.jpg" -r 10 -vcodec libx264 -crf 20 -g 15 "$VIDEOFILE"

Even if yes is checked

"At least one output file must be specified" It seems like you have forgotten to put "$VIDEOFILE" at the end of the command line.

Thank you !
Anaïs

Revision history for this message
Don (donnw1) wrote :

I had the same problem too.

I solved it by adding .avi or .mp4 to the "$VIDEOFILE" parameter..... "$VIDEOFILE.mp4"

Revision history for this message
Tim Band (tim-band) wrote :

Stopmotion does not know how avconv likes to work; it might help if it could give a nice error message.
This error occurs when the user gives a filename that does not have an extension. avconv complains about this.

Stopmotion could complain about this too: "Please supply a filename with an extension", but is this always necessary? And what the user wants is to have the extension supplied, which is something Stopmotion at the moment does not know how to do.

How should we solve this? One quite nice method would be to allow users to enter valid extensions for each exporter (and to have extensions provided for the default exporters, of course). If an extension is provided it can be checked against the list and a nice error given if it does not match. If an extension is not provided the first one in the list can be substituted.

How would everyone feel about this approach?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.