Bug#900027: vlc: VLC doesn't parse arguments properly

Cyr Bol cyrille.bollu2 at gmail.com
Sun May 27 20:56:18 BST 2018


It turned out I was adding an extraneous space after the backslash at line
4:

 /usr/bin/cvlc -vvv \
     screen:// :screen-fps=30 \
        --canvas-width=1280 --canvas-height=720 \
        --sout-transcode-vcodec=h264 \
             --sout-x264-profile=high --sout-x264-level=3.1 \
             --sout-x264-vbv-maxrate=5000 --sout-x264-vbv-bufsize=8000
--sout-x264-vbv-init=0.2 \
     --input-slave=pulse://alsa_output.pci-0000_00_03.0.hdmi-surround.monitor
--sout-transcode-acodec=aac \
    ...

That was a little bit stupid, sorry.

Please close the bug.

Cyrille


On Fri, May 25, 2018 at 9:12 AM, Cyr Bol <cyrille.bollu2 at gmail.com> wrote:

> well, that's strange...
>
> That's true that when I run these commands on the command line, and go
> back to the histroy afterwards, I can see it translated to something like:
>
>      screen:// :screen-fps=30         --canvas-width=1280
> --canvas-height=720 --sout-transcode-vcodec=h264
>  --sout-x264-profile=high --sout-x264-level=3.1
>  --sout-x264-vbv-maxrate=5000 --sout-x264-vbv-bufsize=8000
> --sout-x264-vbv-init=0.2      --input-slave=pulse://alsa_out
> put.pci-0000_00_03.0.hdmi-surround.monitor --sout-transcode-acodec=aac \
>
> So, I can see it interpreted by the shell indeed....
>
> Could it be that VLC has issues with all the spaces generate by the shell
> between the arguments?
>
> I will test that further when I'll have access to my machine.
>
> BR
>
> On Thu, May 24, 2018 at 10:17 PM, Sebastian Ramacher <sramacher at debian.org
> > wrote:
>
>> Control: tags -1 + moreinfo
>>
>> On 2018-05-24 22:05:56, Cyrille wrote:
>> > Package: src:vlc
>> > Version: 3.0.2-1+b1
>> > Severity: normal
>> >
>> > Dear Maintainer,
>> >
>> > VLC doesn't parse arguments properly.
>> >
>> > How to reproduce?
>> >
>> > Create a shell script with the following content:
>> >
>> > #!/bin/sh
>> >
>> > # start VLC
>> > /usr/bin/cvlc -vvv \
>> >     screen:// :screen-fps=30 \
>> >         --canvas-width=1280 --canvas-height=720
>> --sout-transcode-vcodec=h264 \
>> >             --sout-x264-profile=high --sout-x264-level=3.1 \
>> >             --sout-x264-vbv-maxrate=5000 --sout-x264-vbv-bufsize=8000
>> --sout-x264-vbv-init=0.2 \
>> >     --input-slave=pulse://alsa_output.pci-0000_00_03.0.hdmi-surround.monitor
>> --sout-transcode-acodec=aac \
>> >         --sout-transcode-ab=192 --sout-transcode-channels=2
>> --sout-transcode-samplerate=48000 \
>> >     --sout '#transcode{venc=x264{preset=ultrafast}}:rtp{sdp=rtsp://:9090/kodi.sdp}'
>> 2>&1
>> >
>> > launch it. You can now connect to your computer at the follwing URI and
>> watch your screen streamed in RTP.
>> >
>> > Now, modify this script as follow:
>> >
>> > #!/bin/sh
>> >
>> > # start VLC
>> > /usr/bin/cvlc -vvv \
>> >     screen:// :screen-fps=30 \
>> >         --canvas-width=1280 --canvas-height=720 \
>> >         --sout-transcode-vcodec=h264 \
>> >             --sout-x264-profile=high --sout-x264-level=3.1 \
>> >             --sout-x264-vbv-maxrate=5000 --sout-x264-vbv-bufsize=8000
>> --sout-x264-vbv-init=0.2 \
>> >     --input-slave=pulse://alsa_output.pci-0000_00_03.0.hdmi-surround.monitor
>> --sout-transcode-acodec=aac \
>> >         --sout-transcode-ab=192 --sout-transcode-channels=2
>> --sout-transcode-samplerate=48000 \
>> >     --sout '#transcode{venc=x264{preset=ultrafast}}:rtp{sdp=rtsp://:9090/kodi.sdp}'
>> 2>&1
>> >
>> > launch it, and watch VLC freak out...
>> >
>> > 100% reproductible here.
>>
>> You'll need to be a little bit more specific. The difference
>>
>> @@ -1,6 +1,7 @@
>>  /usr/bin/cvlc -vvv \
>>      screen:// :screen-fps=30 \
>> -        --canvas-width=1280 --canvas-height=720
>> --sout-transcode-vcodec=h264 \
>> +        --canvas-width=1280 --canvas-height=720 \
>> +        --sout-transcode-vcodec=h264 \
>>              --sout-x264-profile=high --sout-x264-level=3.1 \
>>              --sout-x264-vbv-maxrate=5000 --sout-x264-vbv-bufsize=8000
>> --sout-x264-vbv-init=0.2 \
>>      --input-slave=pulse://alsa_output.pci-0000_00_03.0.hdmi-surround.monitor
>> --sout-transcode-acodec=aac \
>>
>> isn't even visible to vlc, since that's interpreted by the shell.
>>
>> Cheers
>>
>> >
>> > Best regards,
>> >
>> > Cyrille
>> > -- System Information:
>> > Debian Release: buster/sid
>> >   APT prefers testing
>> >   APT policy: (500, 'testing')
>> > Architecture: amd64 (x86_64)
>> >
>> > Kernel: Linux 4.16.0-1-amd64 (SMP w/4 CPU cores)
>> > Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8),
>> LANGUAGE=fr_FR.utf8 (charmap=UTF-8)
>> > Shell: /bin/sh linked to /bin/dash
>> > Init: systemd (via /run/systemd/system)
>> > LSM: AppArmor: enabled
>> >
>> > Versions of packages vlc depends on:
>> > ii  vlc-bin                  3.0.2-1+b1
>> > ii  vlc-plugin-base          3.0.2-1+b1
>> > ii  vlc-plugin-qt            3.0.2-1+b1
>> > ii  vlc-plugin-video-output  3.0.2-1+b1
>> >
>> > Versions of packages vlc recommends:
>> > ii  vlc-l10n                   3.0.2-1
>> > ii  vlc-plugin-notify          3.0.2-1+b1
>> > ii  vlc-plugin-samba           3.0.2-1+b1
>> > ii  vlc-plugin-skins2          3.0.2-1+b1
>> > ii  vlc-plugin-video-splitter  3.0.2-1+b1
>> > ii  vlc-plugin-visualization   3.0.2-1+b1
>> >
>> > vlc suggests no packages.
>> >
>> > Versions of packages libvlc-bin depends on:
>> > ii  libc6    2.27-3
>> > ii  libvlc5  3.0.2-1+b1
>> >
>> > Versions of packages libvlc5 depends on:
>> > ii  libc6        2.27-3
>> > ii  libvlccore9  3.0.2-1+b1
>> >
>> > Versions of packages libvlc5 recommends:
>> > ii  libvlc-bin  3.0.2-1+b1
>> >
>> > Versions of packages vlc-bin depends on:
>> > ii  libc6       2.27-3
>> > ii  libvlc-bin  3.0.2-1+b1
>> > ii  libvlc5     3.0.2-1+b1
>> >
>> > Versions of packages vlc-plugin-access-extra depends on:
>> > ii  libc6                                2.27-3
>> > ii  libvlccore9 [vlc-plugin-abi-3-0-0f]  3.0.2-1+b1
>> > ii  libvncclient1                        0.9.11+dfsg-1
>> > ii  libxcb-composite0                    1.13-1
>> > ii  libxcb-shm0                          1.13-1
>> > ii  libxcb1                              1.13-1
>> >
>> > Versions of packages vlc-plugin-base depends on:
>> > ii  liba52-0.7.4                         0.7.4-19
>> > ii  libarchive13                         3.2.2-3.1
>> > ii  libaribb24-0                         1.0.3-2
>> > ii  libasound2                           1.1.3-5
>> > ii  libass9                              1:0.14.0-1
>> > ii  libavahi-client3                     0.7-4
>> > ii  libavahi-common3                     0.7-4
>> > ii  libavc1394-0                         0.5.4-4+b1
>> > ii  libavcodec57                         7:3.4.2-2+b1
>> > ii  libavformat57                        7:3.4.2-2+b1
>> > ii  libavutil55                          7:3.4.2-2+b1
>> > ii  libbasicusageenvironment1            2018.04.25-2
>> > ii  libbluray2                           1:1.0.2-3
>> > ii  libc6                                2.27-3
>> > ii  libcairo2                            1.15.10-3
>> > ii  libcddb2                             1.3.2-6
>> > ii  libchromaprint1                      1.4.3-2
>> > ii  libcrystalhd3                        1:0.0~git20110715.fdd2f19-13
>> > ii  libdbus-1-3                          1.12.8-2
>> > ii  libdc1394-22                         2.2.5-1
>> > ii  libdca0                              0.0.5-10
>> > ii  libdvbpsi10                          1.3.2-1
>> > ii  libdvdnav4                           6.0.0-1
>> > ii  libdvdread4                          6.0.0-1
>> > ii  libebml4v5                           1.3.6-2
>> > ii  libfaad2                             2.8.8-1
>> > ii  libflac8                             1.3.2-2
>> > ii  libfontconfig1                       2.13.0-5
>> > ii  libfreetype6                         2.8.1-2
>> > ii  libfribidi0                          0.19.7-2
>> > ii  libgcc1                              1:8.1.0-3
>> > ii  libgcrypt20                          1.8.2-2
>> > ii  libglib2.0-0                         2.56.1-2
>> > ii  libgnutls30                          3.5.18-1
>> > ii  libgpg-error0                        1.31-1
>> > ii  libgroupsock8                        2018.04.25-2
>> > ii  libharfbuzz0b                        1.7.6-1+b1
>> > ii  libjpeg62-turbo                      1:1.5.2-2+b1
>> > ii  libkate1                             0.4.1-8
>> > ii  liblirc-client0                      0.10.0-2+b1
>> > ii  liblivemedia62                       2018.04.25-2
>> > ii  liblua5.2-0                          5.2.4-1.1+b2
>> > ii  libmad0                              0.15.1b-9
>> > ii  libmatroska6v5                       1.4.9-1
>> > ii  libmicrodns0                         0.0.10-1
>> > ii  libmpcdec6                           2:0.1~r495-1+b2
>> > ii  libmpeg2-4                           0.5.1-8
>> > ii  libmpg123-0                          1.25.10-2
>> > ii  libmtp9                              1.1.13-1
>> > ii  libncursesw6                         6.1+20180210-3
>> > ii  libnfs11                             2.0.0-1~exp1
>> > ii  libogg0                              1.3.2-1+b1
>> > ii  libopenmpt-modplug1                  0.3.9-1
>> > ii  libopus0                             1.2.1-1
>> > ii  libpng16-16                          1.6.34-1
>> > ii  libpostproc54                        7:3.4.2-2+b1
>> > ii  libprotobuf-lite10                   3.0.0-9.1
>> > ii  libpulse0                            11.1-5
>> > ii  libraw1394-11                        2.1.2-1+b1
>> > ii  libresid-builder0c2a                 2.1.1-15
>> > ii  librsvg2-2                           2.40.20-2
>> > ii  libsamplerate0                       0.1.9-2
>> > ii  libsdl-image1.2                      1.2.12-8
>> > ii  libsdl1.2debian                      1.2.15+dfsg2-0.1
>> > ii  libsecret-1-0                        0.18.6-1
>> > ii  libshine3                            3.1.1-2
>> > ii  libshout3                            2.4.1-2
>> > ii  libsidplay2                          2.1.1-15
>> > ii  libsndio6.1                          1.1.0-3
>> > ii  libsoxr0                             0.1.2-3
>> > ii  libspeex1                            1.2~rc1.2-1+b2
>> > ii  libspeexdsp1                         1.2~rc1.2-1+b2
>> > ii  libssh2-1                            1.8.0-1
>> > ii  libstdc++6                           8.1.0-3
>> > ii  libswscale4                          7:3.4.2-2+b1
>> > ii  libsystemd0                          238-4
>> > ii  libtag1v5                            1.11.1+dfsg.1-0.2+b1
>> > ii  libtheora0                           1.1.1+dfsg.1-14+b1
>> > ii  libtinfo6                            6.1+20180210-3
>> > ii  libtwolame0                          0.3.13-3
>> > ii  libudev1                             238-4
>> > ii  libupnp6                             1:1.6.24-4
>> > ii  libusageenvironment3                 2018.04.25-2
>> > ii  libva-drm2                           2.1.0-3
>> > ii  libva2                               2.1.0-3
>> > ii  libvlccore9 [vlc-plugin-abi-3-0-0f]  3.0.2-1+b1
>> > ii  libvorbis0a                          1.3.6-1
>> > ii  libvorbisenc2                        1.3.6-1
>> > ii  libx264-152                          2:0.152.2854+gite9a5903-2
>> > ii  libx265-151                          2.7-2
>> > ii  libxcb-keysyms1                      0.4.0-1+b2
>> > ii  libxcb1                              1.13-1
>> > ii  libxml2                              2.9.4+dfsg1-6.1
>> > ii  libzvbi0                             0.2.35-13
>> > ii  vlc-data                             3.0.2-1
>> > ii  zlib1g                               1:1.2.11.dfsg-1
>> >
>> > Versions of packages vlc-plugin-base recommends:
>> > ii  xdg-utils  1.1.2-2
>> >
>> > Versions of packages vlc-plugin-base suggests:
>> > pn  libdvdcss2  <none>
>> >
>> > Versions of packages vlc-plugin-notify depends on:
>> > ii  libc6                                2.27-3
>> > ii  libgdk-pixbuf2.0-0                   2.36.11-2
>> > ii  libglib2.0-0                         2.56.1-2
>> > ii  libgtk-3-0                           3.22.29-3
>> > ii  libnotify4                           0.7.7-3
>> > ii  libvlccore9 [vlc-plugin-abi-3-0-0f]  3.0.2-1+b1
>> >
>> > Versions of packages vlc-plugin-qt depends on:
>> > ii  libc6                                2.27-3
>> > ii  libgcc1                              1:8.1.0-3
>> > ii  libqt5core5a                         5.10.1+dfsg-6+b1
>> > ii  libqt5gui5                           5.10.1+dfsg-6+b1
>> > ii  libqt5svg5                           5.10.1-2
>> > ii  libqt5widgets5                       5.10.1+dfsg-6+b1
>> > ii  libqt5x11extras5                     5.10.1-2
>> > ii  libstdc++6                           8.1.0-3
>> > ii  libvlccore9 [vlc-plugin-abi-3-0-0f]  3.0.2-1+b1
>> > ii  libwayland-client0                   1.15.0-1
>> > ii  libx11-6                             2:1.6.5-1
>> >
>> > Versions of packages vlc-plugin-qt recommends:
>> > ii  vlc-bin  3.0.2-1+b1
>> >
>> > Versions of packages vlc-plugin-skins2 depends on:
>> > ii  fonts-freefont-ttf                   20120503-7
>> > ii  libc6                                2.27-3
>> > ii  libfreetype6                         2.8.1-2
>> > ii  libfribidi0                          0.19.7-2
>> > ii  libgcc1                              1:8.1.0-3
>> > ii  libstdc++6                           8.1.0-3
>> > ii  libvlccore9 [vlc-plugin-abi-3-0-0f]  3.0.2-1+b1
>> > ii  libx11-6                             2:1.6.5-1
>> > ii  libxext6                             2:1.3.3-1+b2
>> > ii  libxinerama1                         2:1.1.3-1+b3
>> > ii  libxpm4                              1:3.5.12-1
>> > ii  vlc-plugin-qt                        3.0.2-1+b1
>> >
>> > Versions of packages vlc-plugin-skins2 recommends:
>> > ii  vlc-bin  3.0.2-1+b1
>> >
>> > Versions of packages vlc-plugin-video-output depends on:
>> > ii  libaa1                                  1.4p5-44+b2
>> > ii  libavcodec57                            7:3.4.2-2+b1
>> > ii  libavutil55                             7:3.4.2-2+b1
>> > ii  libc6                                   2.27-3
>> > ii  libcaca0                                0.99.beta19-2+b3
>> > ii  libegl1                                 1.0.0+git20180308-2
>> > ii  libgl1                                  1.0.0+git20180308-2
>> > ii  libgles2                                1.0.0+git20180308-2
>> > ii  libplacebo4                             0.4.0-2
>> > ii  libva-drm2                              2.1.0-3
>> > ii  libva-wayland2                          2.1.0-3
>> > ii  libva-x11-2                             2.1.0-3
>> > ii  libva2                                  2.1.0-3
>> > ii  libvlccore9 [vlc-plugin-abi-3-0-0f]     3.0.2-1+b1
>> > ii  libwayland-client0                      1.15.0-1
>> > ii  libwayland-egl1 [libwayland-egl1-mesa]  1.15.0-1
>> > ii  libwayland-egl1-mesa                    18.0.3-1
>> > ii  libx11-6                                2:1.6.5-1
>> > ii  libxcb-keysyms1                         0.4.0-1+b2
>> > ii  libxcb-shm0                             1.13-1
>> > ii  libxcb-xv0                              1.13-1
>> > ii  libxcb1                                 1.13-1
>> >
>> > Versions of packages vlc-plugin-video-splitter depends on:
>> > ii  libc6                                2.27-3
>> > ii  libvlccore9 [vlc-plugin-abi-3-0-0f]  3.0.2-1+b1
>> > ii  libxcb-randr0                        1.13-1
>> > ii  libxcb1                              1.13-1
>> >
>> > Versions of packages vlc-plugin-visualization depends on:
>> > ii  libc6                                2.27-3
>> > ii  libgl1                               1.0.0+git20180308-2
>> > ii  libvlccore9 [vlc-plugin-abi-3-0-0f]  3.0.2-1+b1
>> >
>> > -- no debconf information
>> >
>> > _______________________________________________
>> > pkg-multimedia-maintainers mailing list
>> > pkg-multimedia-maintainers at alioth-lists.debian.net
>> > https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg
>> -multimedia-maintainers
>>
>> --
>> Sebastian Ramacher
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-multimedia-maintainers/attachments/20180527/73460280/attachment-0001.html>


More information about the pkg-multimedia-maintainers mailing list