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

2018-05-27 Thread Cyr Bol
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-_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  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-_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  > 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-_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-_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-_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-qt3.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  

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

2018-05-25 Thread Cyr Bol
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_
output.pci-_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 
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-_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-_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-_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-qt3.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  libc62.27-3
> > ii  libvlc5  3.0.2-1+b1
> >
> > Versions of packages libvlc5 depends on:
> > ii  libc62.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  libc62.27-3
> > ii  libvlccore9 

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

2018-05-24 Thread Sebastian Ramacher
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-_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-_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-_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-qt3.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  libc62.27-3
> ii  libvlc5  3.0.2-1+b1
> 
> Versions of packages libvlc5 depends on:
> ii  libc62.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  libc62.27-3
> ii  libvlccore9 [vlc-plugin-abi-3-0-0f]  3.0.2-1+b1
> ii  libvncclient10.9.11+dfsg-1
> ii  libxcb-composite01.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  libavformat577:3.4.2-2+b1
> ii  libavutil55  7:3.4.2-2+b1
> ii  libbasicusageenvironment12018.04.25-2
> ii  libbluray2   1:1.0.2-3
> ii  libc62.27-3
> ii  

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

2018-05-24 Thread Cyrille
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-_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-_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.

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-qt3.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  libc62.27-3
ii  libvlc5  3.0.2-1+b1

Versions of packages libvlc5 depends on:
ii  libc62.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  libc62.27-3
ii  libvlccore9 [vlc-plugin-abi-3-0-0f]  3.0.2-1+b1
ii  libvncclient10.9.11+dfsg-1
ii  libxcb-composite01.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  libavformat577:3.4.2-2+b1
ii  libavutil55  7:3.4.2-2+b1
ii  libbasicusageenvironment12018.04.25-2
ii  libbluray2   1:1.0.2-3
ii  libc62.27-3
ii  libcairo21.15.10-3
ii  libcddb2 1.3.2-6
ii  libchromaprint1  1.4.3-2
ii  libcrystalhd31: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