Hi,
I am new to this forum, and rather new to VLC as well.
As I wanted to watch youtube videos at their best possible quality and at the same time play their sound on my HiFi setup (with rather heavy sound treatment through FIRs, which involves some audio delay adjustment, thus the VLC choice), I discovered that the youtube videos streamed in VLC are not always in their best video/audio resolution. Resulting in a poor video quality in VLC.
After having spent quite some time looking for solutions, I was very happy to discover that it is possible to find and use the best video quality file without sound and to run the best corresponding audio file at the same time, syncronized through VLC, with an excellent result.
As it is quite unefficient and boring to retrieve these file infos and then paste them into VLC for each youtube video, I wondered if LUA would allow to automate at least partly these tasks. Going quickly through LUA Reference manual and other LUA sources did not help so much... for example : are the required VLC fields accessible through LUA ? The goal would be to automate 3 tasks : supply the video stream URL to VLC, check the "more options" and "syncronize with other media" checkboxes and supply the audio stream URL in the "additional media" field. Or maybe this is achievable through command line ?
Of course this would first require to parse the youtube web page line with the file infos (in the webpage code, look at the script in the "player" div, around line 35...), There is already an online app doing that partly (shows a table with all the available files, but anyway it still needs to extract file infos from a webpage)
Any idea for that ?