Double transcode with gather

About encoding, codec settings, muxers and filter usage
peterhristov
New Cone
New Cone
Posts: 4
Joined: 17 Dec 2018 21:05

Double transcode with gather

Postby peterhristov » 17 Dec 2018 21:11

Hello, Im streaming .mp4 files to h264 and livehttp for browser with the following command:

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
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!

Rémi Denis-Courmont
Developer
Developer
Posts: 15267
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Double transcode with gather

Postby Rémi Denis-Courmont » 18 Dec 2018 19:01

Separate audio and video transcoding to different stanzas. I don't really see the problem?
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 17 guests