Double transcode with gather
Posted: 17 Dec 2018 21:11
Hello, Im streaming .mp4 files to h264 and livehttp for browser with the following command:
with no audio codec everything works fine, but my provider wants exactly mpga as audio codec which breaks my html5 video player - videojs (best solution i could find) because they dont support mpga, only aac.
My question is, can i somehow transcode the livehttp with different audio codec and if so, how exactly ? OR someone can recommend other video html5 streaming player that can support this audio format (not paid one).
Actually, i will be glad if someone can recommend something on my command to improve the quality and he performance.
Thank you in advance!
Code: Select all
vlc mp4/*.mp4 --sout '#gather:transcode{vcodec=h264,acodec=mpga,vb=3250,ab=128,channels=2,samplerate=48000,venc=x264{aud,profile=high,level=60,keyint=15,bframes=0,ref=1,nocabac}}:duplicate{dst=std{access=livehttp{seglen=10,delsegs=true,numsegs=10,index=/var/www/html/live/mystream.m3u8,index-url=http://xxx.xx.xxx.xxx/live/mystream-########.ts},mux=ts{use-key-frames},dst=/var/www/html/live/mystream-########.ts},dst=std{access=http,mux=ts,dst=:8181/video.mp4}}' --sout-all --sout-keep --sout-livehttp-caching --loop --random --file-caching=5000 --live-caching=5000 --disc-caching=5000 --network-caching=5000
My question is, can i somehow transcode the livehttp with different audio codec and if so, how exactly ? OR someone can recommend other video html5 streaming player that can support this audio format (not paid one).
Actually, i will be glad if someone can recommend something on my command to improve the quality and he performance.
Thank you in advance!