Jump to content

Can you somehow drag urls to VLC & play them?

GIGABYTE B550I AORUS PRO AX (AM4 AMD/B550/Mini-Itx/Dual M.2/SATA 6Gb/s/USB 3.2 Gen 1/WiFi 6/2.5 GbE LAN/PCIe4.0/Realtek ALC1220-Vb/DisplayPort 1.4/2xHDMI 2.0B/RGB Fusion 2.0/DDR4/Gaming Motherboard) ,AMD Ryzen 7 5800X 8-core, 16-Thread Unlocked 4.7 GHz, TEAMGROUP T-Force Vulcan Z DDR4 32GB (2 x 16GB) 3200MHz (PC4 25600) Ram, EVGA GeForce RTX 3060 Ti XC Gaming, 08G-P5-3663-KL, 8GB GDDR6, Metal Backplate, LHR

Link to comment
https://linustechtips.com/topic/1609894-playing-web-videoes-in-vlc/
Share on other sites

Link to post
Share on other sites

Looks like you can't drag stuff out of a browser window and hand it to an icon
If it were possible, you could create a file named "PlayInVlc.bat" with the contents
`"C:\Program Files\VideoLAN\VLC\vlc.exe" %1` 
That would take whatever you drop on the icon and hand it to VLC. 

5950X/4090FE primary rig  |  1920X/1070Ti Unraid for dockers  |  200TB TrueNAS w/ 1:1 backup

Link to post
Share on other sites

58 minutes ago, OddOod said:

Looks like you can't drag stuff out of a browser window and hand it to an icon
If it were possible, you could create a file named "PlayInVlc.bat" with the contents
`"C:\Program Files\VideoLAN\VLC\vlc.exe" %1` 
That would take whatever you drop on the icon and hand it to VLC. 

Hmmm, woulf a script for linux work if it was changed to "/usr/bin/vlc"
 %1'? Nope, nothing happened,so  I drug a address to VLC & it errored out. I got this in term. Warning: Could not find '/home/nickj/Desktop/vlc.sh', starting '/bin/bash' instead.  Please check your profile. settings. Pasted right into the term. opens VLC.

 

GIGABYTE B550I AORUS PRO AX (AM4 AMD/B550/Mini-Itx/Dual M.2/SATA 6Gb/s/USB 3.2 Gen 1/WiFi 6/2.5 GbE LAN/PCIe4.0/Realtek ALC1220-Vb/DisplayPort 1.4/2xHDMI 2.0B/RGB Fusion 2.0/DDR4/Gaming Motherboard) ,AMD Ryzen 7 5800X 8-core, 16-Thread Unlocked 4.7 GHz, TEAMGROUP T-Force Vulcan Z DDR4 32GB (2 x 16GB) 3200MHz (PC4 25600) Ram, EVGA GeForce RTX 3060 Ti XC Gaming, 08G-P5-3663-KL, 8GB GDDR6, Metal Backplate, LHR

Link to post
Share on other sites

IF the URL was directly to a video file you could, but that's not how web players work... they actually usually make it difficult to find the actual file URL to avoid downloading.

F@H
Desktop: i9-13900K, ASUS Z790-E, 64GB DDR5-6000 CL36, RTX3080, 2TB MP600 Pro XT, 2TB SX8200Pro, 2x16TB Ironwolf RAID0, Corsair HX1200, Antec Vortex 360 AIO, Thermaltake Versa H25 TG, Samsung 4K curved 49" TV, 23" secondary, Mountain Everest Max

Mobile SFF rig: i9-9900K, Noctua NH-L9i, Asrock Z390 Phantom ITX-AC, 32GB, GTX1070, 2x1TB SX8200Pro RAID0, 2x5TB 2.5" HDD RAID0, Athena 500W Flex (Noctua fan), Custom 4.7l 3D printed case

 

Asus Zenbook UM325UA, Ryzen 7 5700u, 16GB, 1TB, OLED

 

GPD Win 2

Link to post
Share on other sites

19 minutes ago, Kilrah said:

IF the URL was directly to a video file you could, but that's not how web players work... they actually usually make it difficult to find the actual file URL to avoid downloading.

Good point, any idea why the linux scrip doesn't work, when I right click & say run in konsole. The odd thing is pasting the same comand opens vlc?

GIGABYTE B550I AORUS PRO AX (AM4 AMD/B550/Mini-Itx/Dual M.2/SATA 6Gb/s/USB 3.2 Gen 1/WiFi 6/2.5 GbE LAN/PCIe4.0/Realtek ALC1220-Vb/DisplayPort 1.4/2xHDMI 2.0B/RGB Fusion 2.0/DDR4/Gaming Motherboard) ,AMD Ryzen 7 5800X 8-core, 16-Thread Unlocked 4.7 GHz, TEAMGROUP T-Force Vulcan Z DDR4 32GB (2 x 16GB) 3200MHz (PC4 25600) Ram, EVGA GeForce RTX 3060 Ti XC Gaming, 08G-P5-3663-KL, 8GB GDDR6, Metal Backplate, LHR

Link to post
Share on other sites

%1 is how you access parameters on Windows batch scripts, bash on linux is different, read up on that. 

F@H
Desktop: i9-13900K, ASUS Z790-E, 64GB DDR5-6000 CL36, RTX3080, 2TB MP600 Pro XT, 2TB SX8200Pro, 2x16TB Ironwolf RAID0, Corsair HX1200, Antec Vortex 360 AIO, Thermaltake Versa H25 TG, Samsung 4K curved 49" TV, 23" secondary, Mountain Everest Max

Mobile SFF rig: i9-9900K, Noctua NH-L9i, Asrock Z390 Phantom ITX-AC, 32GB, GTX1070, 2x1TB SX8200Pro RAID0, 2x5TB 2.5" HDD RAID0, Athena 500W Flex (Noctua fan), Custom 4.7l 3D printed case

 

Asus Zenbook UM325UA, Ryzen 7 5700u, 16GB, 1TB, OLED

 

GPD Win 2

Link to post
Share on other sites

2 hours ago, Kilrah said:

%1 is how you access parameters on Windows batch scripts, bash on linux is different, read up on that. 

Ok, so I don't need it?

GIGABYTE B550I AORUS PRO AX (AM4 AMD/B550/Mini-Itx/Dual M.2/SATA 6Gb/s/USB 3.2 Gen 1/WiFi 6/2.5 GbE LAN/PCIe4.0/Realtek ALC1220-Vb/DisplayPort 1.4/2xHDMI 2.0B/RGB Fusion 2.0/DDR4/Gaming Motherboard) ,AMD Ryzen 7 5800X 8-core, 16-Thread Unlocked 4.7 GHz, TEAMGROUP T-Force Vulcan Z DDR4 32GB (2 x 16GB) 3200MHz (PC4 25600) Ram, EVGA GeForce RTX 3060 Ti XC Gaming, 08G-P5-3663-KL, 8GB GDDR6, Metal Backplate, LHR

Link to post
Share on other sites

On 4/24/2025 at 12:12 PM, Edward78 said:

Hmmm, woulf a script for linux work if it was changed to "/usr/bin/vlc"
 %1'? 

That's not the notation for arguments in a bash script. You'd need $1

5950X/4090FE primary rig  |  1920X/1070Ti Unraid for dockers  |  200TB TrueNAS w/ 1:1 backup

Link to post
Share on other sites

Also, do ensure you have VLC set up properly to play from whatever source you're using. I know it won't out of the box do vimeo or YT, you need additional configuring/plugins which are going to constantly change as those services play whackamole

5950X/4090FE primary rig  |  1920X/1070Ti Unraid for dockers  |  200TB TrueNAS w/ 1:1 backup

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×