Open ihabZhaika opened 2 years ago
Update: need to add the audio option and use the audio output name without the quotation in it
@mpromonet How is it possible to hear the audio of specific stream if I have used file:// to stream it ? since in the audio devices there is the general audio of the PC which is streaming
Hi,
Only few audio codec are supported, opus or pcm. To try it you could add an audio url.
"hd_near_5mbs" :
{
"audio" : "file:///home/tester/Downloads/videos/mortal_shell_game_1080p_60fps.mkv",
"video" : "file:///home/tester/Downloads/videos/mortal_shell_game_1080p_60fps.mkv"
}
Best Regards, Michel.
Hi,
Only few audio codec are supported, opus or pcm. To try it you could add an audio url.
"hd_near_5mbs" : { "audio" : "file:///home/tester/Downloads/videos/mortal_shell_game_1080p_60fps.mkv", "video" : "file:///home/tester/Downloads/videos/mortal_shell_game_1080p_60fps.mkv" }
Best Regards, Michel.
Ok, Tried to separate them as shown in the JSON below, also tried to use the name of the file in the audio, did not work either
"nfs":{
"video":"file:///home/tester/Downloads/videos/NFS_NO_AUDIO.mkv",
"audio":"file:///home/tester/Downloads/videos/nfs_sound.opus"
}
The files are contained in this google drive if you want to give it a try, What else I can try ? and do you have a video that I can try it that do contain sound that will work with the streamer ?
@ihabZhaika @mpromonet Hi, how to add audio device to stream, Thanks! i can see video only when running demo
@adwpc In my case to I were not able to watch multi streams where each one has it's sound track not even a single stream, tried to use different sound codecs as above but did not reach to a working solution, I do not know if I did something wrong buy if @mpromonet have some video with working audio so we can try it would be great
ffmpeg -re -stream_loop -1 -i /home/videos/1080p_cam3.mp4 -c:v libx264 -c:a opus -strict -2 -f rtsp rtsp://127.0.0.1/live3
docker run --network host --name webrtc-streamer -it mpromonet/webrtc-streamer -v -H 8000 -n test -u rtsp://127.0.0.1/live3 -U rtsp://127.0.0.1/live3
it works
Hey, I am feeding .mkv video with audio and I have a webcam with audio[there is microphone input], but in the streamer I get the player with the sound muted, when I checked the /api/getMediaList I get the following:
When checking /api/getAudioDeviceList i get:
I have tried to add &%audio="Remapped Monitor of Virtual-Speaker" [encoded to url of course] but still the mute button is active and cannot be unmutd
In the streamer I have the following but it seems that it can recognize the audio :
when I open the web page, I have the player muted[no option to unmute]![image](https://user-images.githubusercontent.com/17564219/139657891-768aa39a-9a6c-4264-aa8c-b13157e07fba.png)
For the "obs" webcam, I get the following
So am I missing something ?