Play specific file from archive using CLI

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
arden56
New Cone
New Cone
Posts: 1
Joined: 08 Feb 2020 04:08

Play specific file from archive using CLI

Postby arden56 » 08 Feb 2020 04:25

I'm trying to make VLC playing a file directly from an archive through cli, in this case: a zip file. Eventually I want to to this with tar files as well, but let's stick to zip for now.

Opening the zip file itself works.

Code: Select all

$ vlc videos.zip

But VLC is always starting the 1st video file from the archive. I want VLC to play a specific file. So I tried this ...

Code: Select all

$ vlc 'videos.zip!video2.mp4' $ vlc 'videos.zip!/video2.mp4' $ vlc 'zip://videos.zip!video2.mp4' $ vlc 'zip://videos.zip!/video2.mp4'

... but nothing is going to work :( I always get an error like this:

"Your input can't be opened
VLC is unable to open the MRL 'zip://video.zip!/video2.mp4'. Check the log for details."

The log shows this:

Code: Select all

main debug: processing request item: zip://videos.zip!/video2.mp4, node: Playlist, skip: 0 main debug: resyncing on zip://videos.zip!/video2.mp4 main debug: zip://videos.zip!/video2.mp4 is at 0 main debug: starting playback of new item main debug: resyncing on zip://videos.zip!/video2.mp4 main debug: zip://videos.zip!/video2.mp4 is at 0 main debug: creating new input thread main debug: Creating an input for 'zip://videos.zip!/video2.mp4' main debug: selected audio language[0] en main debug: selected sub language[0] en main debug: requesting art for new input thread main debug: using timeshift granularity of 50 MiB main debug: looking for meta fetcher module matching "any": 1 candidates main debug: using default timeshift path main debug: `zip://videos.zip!/video2.mp4' gives access `zip' demux `any' path `videos.zip!/video2.mp4' main debug: creating demux: access='zip' demux='any' location='videos.zip!/video2.mp4' file='(null)' main debug: looking for access_demux module matching "zip": 14 candidates main debug: no meta fetcher modules matched main debug: looking for art finder module matching "any": 2 candidates main debug: no access_demux modules matched main debug: creating access: zip://videos.zip!/video2.mp4 main debug: looking for access module matching "zip": 23 candidates main debug: no access modules matched main debug: dead input main debug: no art finder modules matched main debug: changing item without a request (current 0/1) main debug: nothing to play main debug: exiting

So... maybe my command is wrong? What do I need to do to make this work?

Alternative thought: When I open the zip file itself, VLC seems to handle it like a playlist. Is there maybe a way to select the playlist entry that VLC should play? If there is any option to control (enable/disable) auto play as well, that would be great, too.

Any ideas?

Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 43 guests