cast from command line

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
cyanna
New Cone
New Cone
Posts: 6
Joined: 18 Jul 2019 10:48

cast from command line

Postby cyanna » 18 Jul 2019 13:14

works ok from GUI: playback > renderer > choose google speaker

I have the following bat file:

"C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" "M:\Music\Peggy Lee\All Aglow Again!\Fever_All Aglow Again!_Peggy Lee.mp3" --sout="#chromecast" --sout-chromecast-ip="192.168.1.71" --demux-filter=demux_chromecast

this opens the VLC windows with the music file but doesn't play it

Windows 7 @64, VLC 3.0.7 Vetinari

Ideas?

unidan
Developer
Developer
Posts: 1493
Joined: 25 Mar 2018 01:00

Re: cast from command line

Postby unidan » 18 Jul 2019 13:20

Hi, what are the logs ? (with -vv)

cyanna
New Cone
New Cone
Posts: 6
Joined: 18 Jul 2019 10:48

Re: cast from command line

Postby cyanna » 18 Jul 2019 13:21

sorry, how do i get those?

unidan
Developer
Developer
Posts: 1493
Joined: 25 Mar 2018 01:00

Re: cast from command line

Postby unidan » 18 Jul 2019 13:30

To help you, we need messages, to completely understand what your problems is.

From windows command line or linux or macos terminal, launch vlc with options -vv and --logfile=file

  • Windows example: vlc.exe -vv --logfile=c:\vlclog.txt
  • Linux example: vlc -vv --logfile=vlclog.txt, or vlc -vv 2>&1 > logfile.txt
Then paste the full resulting log here between [​code]and[​/code] (or use Pastebin.com if it's too long)

Also don't forget to name your Operating System and provide the VLC media player version.

cyanna
New Cone
New Cone
Posts: 6
Joined: 18 Jul 2019 10:48

Re: cast from command line

Postby cyanna » 18 Jul 2019 13:43

clearly i'm doing something wrong
bat file modified to

"C:\Program Files (x86)\VideoLAN\VLC\vlc.exe -vv --logfile=C:\Users\Administrator\Desktop" "M:\Music\Peggy Lee\All Aglow Again!\Fever_All Aglow Again!_Peggy Lee.mp3" --sout="#chromecast" --sout-chromecast-ip="192.168.1.71" --demux-filter=demux_chromecast

flashes a cmd window and nothing else. doesn't launch VLC, doesn't create the log file. Would you mind posting detailed instructions?

unidan
Developer
Developer
Posts: 1493
Joined: 25 Mar 2018 01:00

Re: cast from command line

Postby unidan » 18 Jul 2019 13:51

Why don't you type this in a command window directly ?

maybe you need --file-logging too, I don't know if this automatic message is up-to-date or not.

Code: Select all

File logger (file) --file-logging, --no-file-logging Log to file (default disabled) Log all VLC messages to a text file. --logfile <string> Log filename Specify the log filename. --logmode {text,html} Log format Specify the logging format. --log-verbose {-1 (Default), 0 (Info), 1 (Error), 2 (Warning), 3 (Debug)} Verbosity Select the logging verbosity or default to use the same verbosity given by --verbose.

cyanna
New Cone
New Cone
Posts: 6
Joined: 18 Jul 2019 10:48

Re: cast from command line

Postby cyanna » 18 Jul 2019 14:11

because the problem I have is how casting works, or actually doesn't, when launched from the bat file. casting works ok from the GUI. So I don't think just opening the GUI is not going to be helpful. But here it goes:
from command line run as administrator:

"C:\Program Files (x86)\VideoLAN\VLC\vlc.exe -vv --logfile=C:\Users\Administrator\Desktop\vlclog.txt" filename/syntax incorrect error message
"C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" -vv --logfile=C:\Users\Administrator\Desktop\vlclog.txt launches vlc but no log file created

Semola
New Cone
New Cone
Posts: 2
Joined: 15 Nov 2019 13:21

Re: cast from command line

Postby Semola » 15 Nov 2019 13:24

Hi all,

is there a way to cast a file directly on a smartTV via command line (without using chromecast)?

Thanks

Semola


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 41 guests