[libav-bugs] [Bug 778] New: Argument parsing error within '-filter' (respectively 'avconv')

bugzilla at aruru.libav.org bugzilla at aruru.libav.org
Wed Nov 12 11:58:31 CET 2014


https://bugzilla.libav.org/show_bug.cgi?id=778

            Bug ID: 778
           Summary: Argument parsing error within '-filter' (respectively
                    'avconv')
           Product: Libav
           Version: 11
          Hardware: IA64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: ---
         Component: general
          Assignee: bugzilla at libav.org
          Reporter: doak at gmx.de

I am using some 'frei0r' filter pipeline which throws an error wile parsing its
arguments and 'avconv' exits.
It works if I change IMHO independent 'avconv' arguments, therefore I guess the
error is in 'avconv' argument parsing code.

This does *not* work:
avconv -t 4 -ss 60 -i s95.mov -codec mpeg4 -f avi -an -filter:v
"frei0r=c0rners:0.33333|0.3340333|0.66666|0.323333|0.66666|0.66666|0.33333|0.660666,crop=234*4:175*4:15*4:2*4"
-s vga -b 2M -qmax 10 test.avi

Output:
--------------------
avconv version v11-10-gca8c62d, Copyright (c) 2000-2014 the Libav developers
  built on Nov 11 2014 20:41:05 with gcc 4.9.2 (GCC)
Guessed Channel Layout for  Input Stream #0.1 : stereo
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 's95.mov':
  Metadata:
    major_brand     : qt  
    minor_version   : 537331968
    compatible_brands: qt  CAEP
    creation_time   : 2013-09-02 23:09:29
  Duration: 00:03:54.77, start: 0.000000, bitrate: 20451 kb/s
    Stream #0.0(eng): Video: h264 (Constrained Baseline), yuvj420p, 1280x720,
18910 kb/s, 23.98 fps, 24k tbn (default)
    Metadata:
      creation_time   : 2013-09-02 23:09:29
    Stream #0.1(eng): Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s
(default)
    Metadata:
      creation_time   : 2013-09-02 23:09:29
File 'test.avi' already exists. Overwrite ? [y/N] y
[frei0r @ 0x79b5a0] Invalid value '�' for parameter 'Enable Stretch'.
[frei0r @ 0x79b5a0] Failed to configure input pad on Parsed filter 0 frei0r
Error opening filters!
--------------------

Any of this works:
  - Adding '-y': avconv -t 4 -ss 60 -i s95.mov -codec mpeg4 -f avi -an
-filter:v
"frei0r=c0rners:0.33333|0.3340333|0.66666|0.323333|0.66666|0.66666|0.33333|0.660666,crop=234*4:175*4:15*4:2*4"
-s vga -b 2M -qmax 10 -y test.avi
  - Adding '-v verbose': avconv -t 4 -ss 60 -i s95.mov -codec mpeg4 -f avi -an
-filter:v
"frei0r=c0rners:0.33333|0.3340333|0.66666|0.323333|0.66666|0.66666|0.33333|0.660666,crop=234*4:175*4:15*4:2*4"
-s vga -b 2M -qmax 10 -v verbose test.avi
  - Removing '-ss 60' or moving it after '-i s95.mov'.


Interestingly enough appending '|' at the end of the 'frei0r' pipeline works as
well:
'-filter:v
"frei0r=c0rners:0.33333|0.3340333|0.66666|0.323333|0.66666|0.66666|0.33333|0.660666|,crop=234*4:175*4:15*4:2*4"'


I tried the current master (v12_dev0-374-gebfa44c) as well. Using this version
it does *not* work with argument '-y' but without it.


Output of 'avconv -v 9 -loglevel 99 -i s95.mov'
--------------------
avconv version v11-10-gca8c62d, Copyright (c) 2000-2014 the Libav developers
  built on Nov 11 2014 20:41:05 with gcc 4.9.2 (GCC)
  configuration: --disable-debug --disable-static --enable-avresample
--enable-dxva2 --enable-gpl --enable-demuxer=ass --enable-muxer=ass
--enable-encoder=ass --enable-decoder=ass --enable-decoder=pcm_bluray
--enable-libfreetype --enable-libgsm --enable-libmp3lame
--enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopus
--enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libspeex
--enable-libtheora --enable-indev=4l2 --enable-libvorbis --enable-libvpx
--enable-libx264 --enable-libxvid --enable-pic --enable-runtime-cpudetect
--enable-shared --enable-filter=resample --enable-vdpau --enable-version3
--enable-x11grab --enable-frei0r
  libavutil     54.  3. 0 / 54.  3. 0
  libavcodec    56.  1. 0 / 56.  1. 0
  libavformat   56.  1. 0 / 56.  1. 0
  libavdevice   55.  0. 0 / 55.  0. 0
  libavfilter    5.  0. 0 /  5.  0. 0
  libavresample  2.  1. 0 /  2.  1. 0
  libswscale     3.  0. 0 /  3.  0. 0
Splitting the commandline.
Reading option '-v' ... matched as option 'v' (set libav* logging level) with
argument '9'.
Reading option '-loglevel' ... matched as option 'loglevel' (set libav* logging
level) with argument '99'.
Reading option '-i' ... matched as input file with argument 's95.mov'.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option v (set libav* logging level) with argument 9.
Successfully parsed a group of options.
Parsing a group of options: input file s95.mov.
Successfully parsed a group of options.
Opening an input file: s95.mov.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x23ae080] Probed with size=2048 and score=100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x23ae080] ISO: File Type Major Brand: qt  
[h264 @ 0x23ba1c0] AVC: Consumed only 119281 bytes instead of 119284
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x23ae080] All info found
Guessed Channel Layout for  Input Stream #0.1 : stereo
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 's95.mov':
  Metadata:
    major_brand     : qt  
    minor_version   : 537331968
    compatible_brands: qt  CAEP
    creation_time   : 2013-09-02 23:09:29
  Duration: 00:03:54.77, start: 0.000000, bitrate: 20451 kb/s
    Stream #0.0(eng), 20, 1/24000: Video: h264 (Constrained Baseline),
yuvj420p, 1280x720, 0/1, 18910 kb/s, 23.98 fps, 24k tbn (default)
    Metadata:
      creation_time   : 2013-09-02 23:09:29
    Stream #0.1(eng), 48, 1/48000: Audio: pcm_s16le, 48000 Hz, 2 channels, s16,
1536 kb/s (default)
    Metadata:
      creation_time   : 2013-09-02 23:09:29
Successfully opened the file.
At least one output file must be specified
--------------------

Please let me know if you need additional information.


Regards,
doak

-- 
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libav.org/pipermail/libav-bugs/attachments/20141112/d8c3388d/attachment-0001.html>


More information about the libav-bugs mailing list