When I run OMXplayer from a shell script ( called by PHP) the video output is ok, but no audio what so ever. If I run the OMXplayer from the commandline everything is ok. Both video and Audio are fine. As sonn as I start the player from the shell script video is ok but no sound whatever i do. Everything from the internet has been tested. ( raspi-config output, redirect tohdmi local and both) I also put up all rights as the shell didn't play video either at the beginning. And yes the shell script has an accesible fifo . PHP can call the shell script and gives video as well, but still no audio. Also all updates and upgrades are installed on my Rasbian Pixel (PI 2B). What am I doing wrong. HELP By the way I didn't make the shell script myself but copied it from OMXplayer- web-controls-php-master
Asked
Active
Viewed 870 times
2
youtube-dl --list-formats "https://www.youtube.com/watch?v=x_PrT25o8Vs"which will list all available formats. Then you can read format number and, for example:youtube-dl -g -f 22/18/36/43 "https://www.youtube.com/watch?v=x_PrT25o8Vs". This will try to download format #22 first (hd720) if cannot do it, will try #18, then #36, then #43. You can also doyoutube-dl -g -f best/medium "https://www.youtube.com/watch?v=x_PrT25o8Vs"– aesede Mar 07 '18 at 17:42