Wrong command line arguments for avconv

Bug #1402399 reported by Ustilago on 2014-12-14
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Linux Stopmotion
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

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

Don (donnw1) wrote :

I had the same problem too.

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

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

Other bug subscribers