Direct playlist position select

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
jpka
New Cone
New Cone
Posts: 2
Joined: 28 Apr 2024 11:21

Direct playlist position select

Postby jpka » 28 Apr 2024 12:33

Hello.
Long story short, i need to select/play items in playlist directly.
Not as prev/next control. But by direct position as it have on screen list, not in program memory (which have different indexes, esp. if playlist cleared/reloaded, i see it via telnet).
Ideally by hotkey.
Bookmarks currently implemented are works far different from what i need (by name, not index, and are playlist-dependent).
My goal is use IR remote handset digits (works as 0...9 numpad) to select directly n-th playlist item exactly as they displayed, regardless of clear/reload/search-filter.
I will write normal (not sandbox) feat. req. post if you think my question is adequate and this feature was not abandoned earlier, which info i can't find.
I am able to recompile, but current, both arch- and vlc-, gits are not compiles.
I need it for vlc 3.0 branch, please. I use recent archlinux and vlc 3.0.20-8.
I very love VLC for prof. fine-tuning set. This is only player i see which makes near-HD picture from SD television by combination two its videofilters (most noticeable at 2D cartoons). Thank you for your work!
Thanks.

jpka
New Cone
New Cone
Posts: 2
Joined: 28 Apr 2024 11:21

Re: Direct playlist position select

Postby jpka » 23 May 2024 11:16

Hello.
I have currently use this bash one-liner to add bookmarks from current playlist file.

Code: Select all

# parse playlist, adds bookmarks to vlc config file. \ WARNING overwrites your vlc config! function VLC() { killall -s 9 vlc ; i=1; \ cp .config/vlc/vlcrc.my .config/vlc/vlcrc ; \ while read p && [[ $i -lt 11 ]]; do \ if [[ ${p:0:1} = "h" ]] ; then echo "bookmark"$i"="$p >> \ .config/vlc/vlcrc ; \ i=$((i+1)) ; fi ; done <$1 ; vlc $1 & }
Used as usual in replace of regular vlc playlist.m3u, like VLC playlist.m3u, together with vlc's hotkeys for activate bookmarks, i am now able to direct control of different playlists with IR remote. Playlist active entries should start with 'h', like 'http:'.
Function is also compatible with eval() which required for IR handsets parser bash script.
But:
  • I found that it is impossible without brute forcing to restarting vlc currently, because, unlike of playlist reload, it can't re-read config at runtime. So your big screen will flash (and cat hiss).
  • It is tested for linux only (and vlc 3.0), can't say if it will work for Mac or other OS.
  • It can't be config saved anymore (it will be overwritten).


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 23 guests