vlc - chromecast multiple devices slow loading
Posted: 13 Nov 2024 19:40
Hello,
I'm really hoping someone can help me as I'm racking my brains.
I use this code in a batch file to stream Hikvision CCTV to multiple Chromecasts, and it works nearly perfectly. But for some reason, there is a 20-second delay from the title appearing on the TV to the stream loading.
Even if I do it manually inside VLC, there's still a 20-second delay.
It doesn’t matter if it’s one stream or three; it always takes 20 seconds.
If I directly stream a file in VLC to Chromecast, it’s a 1-2 second delay, which is perfect.
I tried network streaming something other than my RTSP CCTV, and it was also a 1-2 second delay.
If I play the RTSP directly in VLC, it has no lag and appears on the screen right away.
i'm thinking maybe next step is using another software like Nginx to convert RTSP to HTTP stream and put that in VLC see if its quicker.
I'm just wondering if anyone can help. Thank you.
Thank you
I'm really hoping someone can help me as I'm racking my brains.
I use this code in a batch file to stream Hikvision CCTV to multiple Chromecasts, and it works nearly perfectly. But for some reason, there is a 20-second delay from the title appearing on the TV to the stream loading.
Even if I do it manually inside VLC, there's still a 20-second delay.
It doesn’t matter if it’s one stream or three; it always takes 20 seconds.
If I directly stream a file in VLC to Chromecast, it’s a 1-2 second delay, which is perfect.
I tried network streaming something other than my RTSP CCTV, and it was also a 1-2 second delay.
If I play the RTSP directly in VLC, it has no lag and appears on the screen right away.
i'm thinking maybe next step is using another software like Nginx to convert RTSP to HTTP stream and put that in VLC see if its quicker.
I'm just wondering if anyone can help. Thank you.
Code: Select all
set VLC_PATH="C:\VideoLAN\VLC\vlc.exe"
set RTSP_URL=rtsp://Fan:fakey@192.168.0.184:4001/Streaming/Channels/402
%VLC_PATH% -vvv "%RTSP_URL%" --sout="#duplicate{dst=chromecast{ip=192.168.0.244,mux=mp4}}" --demux-filter=demux_chromecast --network-caching=100 --rtsp-caching=100 --file-caching=100 --config "C:\VideoLAN\VLC\vlcrc" --no-plugins-cache
Code: Select all
main debug: VLC media player - 3.0.21 Vetinari
main debug: Copyright © 1996-2024 the VideoLAN team
main debug: revision 3.0.21-1-0-g9c4768291e
main debug: configured with /builds/videolan/vlc/extras/package/win32/../../../configure '--enable-update-check' '--enable-lua' '--enable-faad' '--enable-flac' '--enable-theora' '--enable-avcodec' '--enable-merge-ffmpeg' '--enable-dca' '--enable-mpc' '--enable-libass' '--enable-schroedinger' '--enable-realrtsp' '--enable-live555' '--enable-shout' '--enable-goom' '--enable-sse' '--enable-mmx' '--enable-libcddb' '--enable-zvbi' '--disable-telx' '--enable-nls' '--host=x86_64-w64-mingw32' '--with-contrib=../contrib/x86_64-w64-mingw32' '--with-breakpad=https://win.crashes.videolan.org' '--enable-qt' '--enable-skins2' '--enable-dvdread' '--enable-caca' 'host_alias=x86_64-w64-mingw32' 'CFLAGS= -D_WIN32_WINNT=0x0502 -DWINVER=0x502 -D__MSVCRT_VERSION__=0x700 ' 'CXXFLAGS= -D_WIN32_WINNT=0x0502 -DWINVER=0x502 -D__MSVCRT_VERSION__=0x700 ' 'PKG_CONFIG=pkg-config' 'PKG_CONFIG_LIBDIR=/usr/x86_64-w64-mingw32/lib/pkgconfig:/usr/lib/x86_64-w64-mingw32/pkgconfig'
stream_out_chromecast debug: PING received from the Chromecast
stream_out_chromecast debug: PING received from the Chromecast
stream_out_chromecast debug: PING received from the Chromecast
stream_out_chromecast debug: PING received from the Chromecast
stream_out_chromecast debug: PING received from the Chromecast
stream_out_chromecast debug: PING received from the Chromecast
stream_out_chromecast debug: PING received from the Chromecast
stream_out_chromecast debug: PING received from the Chromecast
stream_out_chromecast debug: PING received from the Chromecast
stream_out_chromecast debug: PING received from the Chromecast
stream_out_chromecast debug: PING received from the Chromecast
stream_out_chromecast debug: PING received from the Chromecast
stream_out_chromecast debug: Player state: BUFFERING sessionId: 1
stream_out_chromecast debug: New mediaSessionId: 1
stream_out_chromecast debug: Player state: PLAYING sessionId: 1
stream_out_chromecast debug: Player state: PLAYING sessionId: 1