[SOLVED] vlc does not obey advanced settings (video chroma format) given in command line?

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
zimon
Blank Cone
Blank Cone
Posts: 18
Joined: 28 Sep 2011 19:03
VLC version: 3.0.0-git-rpmfusion
Operating System: Linux

[SOLVED] vlc does not obey advanced settings (video chroma format) given in command line?

Postby zimon » 01 Mar 2017 15:33

I manually set up vlc to work with a webcam (Ausdom HD 1080p USB2) from menu:
Media > Open_Capture_Device > Advanced_options
Shortly, just setting correct device /dev/video1 and video input chroma format to MJPG gets it working good when PLAYed.

Then I copy to clipboard active advanced options from:
Media > Open_Capture_Device > Show_more_options > Edit_options

I then try to start vlc in (Linux) command line by:

Code: Select all

vlc v4l2:///dev/video1 ":v4l2-standard= :v4l2-dev=/dev/video1 :v4l2-vbidev= :v4l2-chroma=MJPG :v4l2-input=0 :v4l2-audio-input=-1 :v4l2-width=1920 :v4l2-height=1080 :v4l2-aspect-ratio=16\:9 :v4l2-fps=30 :v4l2-radio-dev=/dev/radio0 :v4l2-tuner-frequency=-1 :v4l2-tuner-audio-mode=3 :no-v4l2-controls-reset :v4l2-brightness=-1 :v4l2-brightness-auto=-1 :v4l2-contrast=-1 :v4l2-saturation=-1 :v4l2-hue=-1 :v4l2-hue-auto=-1 :v4l2-white-balance-temperature=-1 :v4l2-auto-white-balance=-1 :v4l2-red-balance=-1 :v4l2-blue-balance=-1 :v4l2-gamma=-1 :v4l2-autogain=-1 :v4l2-gain=-1 :v4l2-sharpness=-1 :v4l2-chroma-gain=-1 :v4l2-chroma-gain-auto=-1 :v4l2-power-line-frequency=-1 :v4l2-backlight-compensation=-1 :v4l2-band-stop-filter=-1 :no-v4l2-hflip :no-v4l2-vflip :v4l2-rotate=-1 :v4l2-color-killer=-1 :v4l2-color-effect=-1 :v4l2-audio-volume=-1 :v4l2-audio-balance=-1 :no-v4l2-audio-mute :v4l2-audio-bass=-1 :v4l2-audio-treble=-1 :no-v4l2-audio-loudness :v4l2-set-ctrls= :live-caching=300"
But it does not obey those settings, but opens up the web camera using video input chorma format YUY2 and not the given MJPG.

Version:
VLC media player 2.2.4 Weatherwax (revision 2.2.3-37-g888b7e89)

Why vlc does not work as intended? Is this a known bug?
Last edited by zimon on 01 Mar 2017 19:05, edited 1 time in total.

Rémi Denis-Courmont
Developer
Developer
Posts: 15268
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: vlc does not obey advanced settings (video chroma format) given in command line?

Postby Rémi Denis-Courmont » 01 Mar 2017 18:22

You are not setting the v4l2-chroma parameter - quoting is wrong.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

zimon
Blank Cone
Blank Cone
Posts: 18
Joined: 28 Sep 2011 19:03
VLC version: 3.0.0-git-rpmfusion
Operating System: Linux

Re: vlc does not obey advanced settings (video chroma format) given in command line?

Postby zimon » 01 Mar 2017 19:03

I tried without the quotes before,
BUT... the problem before was that v24l:///dev/video1 parameter was after the options. When I moved it front (and removed the quotes), it worked as intended and choma-format was MJPG. In the original question I already had moved the stream parameter to the front but not tried without quotes.

thanks.

Should have read manual also. Was misinterpreting those :options. It makes sense now.

Code: Select all

$ man vlc ... :option An option that only applies to the stream directly before it and that overrides previous settings. ...


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 15 guests