Page 1 of 1
m3u playlist works on Windows not Android
Posted: 07 Jan 2019 05:14
by drdr
This simple playlist works on Windows VLC, but not Android. If I enter the rtmp URL manually in Android VLC, it works fine.
#EXTM3U
#EXTINF:-1,test
rtmp://192.168.2.117/radio/test.m4a
I've tried 0 instead of -1. I've tried different spacing... to no avail.
The goal is to have VLC kick off a CGI script do a few things and then get VLC to load the listed stream. The playlist doesn't work as a standalone file, even without the CGI creating it.
If there is a better way to get VLC to load the stream from a CGI, please let me know...
Again, the whole CGI created playlist works fine in Windows..
Thanks
Re: m3u playlist works on Windows not Android
Posted: 07 Jan 2019 11:45
by realjobe
Use VLC's LUA HTTP web interface to tell VLC to do stuff, with cURL e.g..
1. Some actor invokes http calls to vlc to start doing stuff
2. material is ready to be pulled from vlc using static playlist file / direct MRL (http/rtmp/rtsp)..
Re: m3u playlist works on Windows not Android
Posted: 07 Jan 2019 18:07
by drdr
Thanks, but I don't seem to see a LUA HTTP interface for the Android client.
As playlists go, shouldn't that playlist work on both the Android and Windows clients (as opposed to just the Windows client)?
Re: m3u playlist works on Windows not Android
Posted: 07 Jan 2019 20:49
by realjobe
True, I guess a easy web-server in your LAN would solve this. I suggest e.g. raspberry pi 3b, it also can act as a easy OpenVPN server in order to gain easy access from your phone to your private LAN. No need to port forwarding but UDP 1194.
Apache & php7 is easy to install and creation of webUI with RestFull php services to Invoke VLC vlm is a breeze
Re: m3u playlist works on Windows not Android
Posted: 08 Jan 2019 00:09
by drdr
ok, so I'll look at
https://wiki.videolan.org/Documentation ... HowTo/VLM/
It won't accept my echoing a playlist back, even though it works on Windows?
Again, I can't even get the playlist to work when opening it as a file on Android.
Thanks
Re: m3u playlist works on Windows not Android
Posted: 08 Jan 2019 00:46
by realjobe
Just tell what do want to do, describe..
Re: m3u playlist works on Windows not Android
Posted: 08 Jan 2019 03:14
by drdr
I'm trying to transcode a live Internet feed to my local network, at a much lower bandwidth. I actually want to do this for a bunch of streams, one at a time.
I'm using ffmpeg to NGINX. Unfortunately,I can't get exec_pull to work, so I'm using exec_static as a work around. (No answer from NGINX forum.. Maybe I should try another media server.)
As such, the kludge I'm using is to have VLC run a CGI to replace the nginx conf file and restart ngninx and then send the m3u (either straight out or attachment. With proper Content-Type) to VLC. It works on VLC Windows and Tune-In Radio Android, but not VLC Android.
Starting NGINX manually and just pointing VLC Android to a static m3u isn't working either.
Typing on a phone....
Thanks
Re: m3u playlist works on Windows not Android
Posted: 08 Jan 2019 03:44
by realjobe
Video feed i guess? I have working solutions to hammer down http mpeg 2/4 2-10mbit into 64k-2mbit h264 ts mp3
Re: m3u playlist works on Windows not Android
Posted: 08 Jan 2019 04:15
by drdr
Audio, actually.
Re: m3u playlist works on Windows not Android
Posted: 08 Jan 2019 18:15
by drdr
After seeing this:
https://forum.videolan.org/viewtopic.php?f=35&t=147270
"For some reason, it thinks most .M3U or .PLS files are invalid and refuses to show them" (looking at it again, or doesn't seem to be the same issue.)
I installed 2.9.0 (just picked the latest 2.x version) and the playlist and even the CGI work just fine...
I then upgraded back to the latest version and it's still working.
On my other Android device, I uninstalled and reinstalled the latest version and it worked fine. I guess I probably just needed to clear the cache or something.
Thanks