Page 1 of 1
cast from command line
Posted: 18 Jul 2019 13:14
by cyanna
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?
Re: cast from command line
Posted: 18 Jul 2019 13:20
by unidan
Hi, what are the logs ? (with -vv)
Re: cast from command line
Posted: 18 Jul 2019 13:21
by cyanna
sorry, how do i get those?
Re: cast from command line
Posted: 18 Jul 2019 13:30
by unidan
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.
Re: cast from command line
Posted: 18 Jul 2019 13:43
by cyanna
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?
Re: cast from command line
Posted: 18 Jul 2019 13:51
by unidan
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.
Re: cast from command line
Posted: 18 Jul 2019 14:11
by cyanna
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
Re: cast from command line
Posted: 15 Nov 2019 13:24
by Semola
Hi all,
is there a way to cast a file directly on a smartTV via command line (without using chromecast)?
Thanks
Semola