Hello,
I have some video files containing numbers and characters . To tell the problem shortly, due to a limitation, I am unable create a playlist regularly changing on a daily basis with the command shuffle ....So I decided to rename filenames, just a replacement of first five numbers randomly.
myfiles:
The inner ${FN%%[[:alpha:]]*} removes all chars from the first alpha to string end, then ${FN#...} uses the result to remove the leading digits, no matter how many.
Just be careful removing all leading digits if you have songs in your library by 3 Dog Night, 9 Inch Nails, or other artists who have chosen names starting with a number.
Do we take it that the leading 5 digits only and NOT the whole filenames themselves determine the positional play.
if so what will happen if two or more end up with an identical 5 digit number from your random number generator?
If you have 9999 music files then this is a possibility...
What I understood from Rudic's post is that no matter what comes after alpha field. When it detects alphanumeric expressions, it will skip out the rest.
I am noob on nginx, as many other fields as an old guy
As far as I know, Nginx+rtmp reads those videos from directory but always with the same list order in hls mode. I could not have found a solution to shuffle playlist with nginx. With your help, I will rotate the list by changing pre-numbers so list will change.
Also nginx is better than ffmpeg's hls mode with low cpu and ram usage. That's why I prefer this way.