There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

[solved] sharing audio over network with obs studio

i want to share audio over network so that i can use my tv as a wireless speaker. so i chose obs studio to make a stream out of my system audio coz i had it installed already. i went to settings -> output (advanced) -> recording (custom) and set ffmpeg output to output to url and set the url to udp://192.168.43.87:8081 and set container format to mp3 just to get started. so to test things out i ran mpv udp://192.168.43.87:8081 on the same machine and it plays audio. but when i tried accessing it from my android phone with mpv client, it doesnt play the audio, it just shows black screen for while and return to main menu of mpv app. thanks in advance.


edit

iptables:


<span style="color:#323232;">Chain INPUT (policy ACCEPT)
</span><span style="color:#323232;">target     prot opt source               destination         
</span><span style="color:#323232;">ACCEPT     tcp  --  anywhere             anywhere            
</span><span style="color:#323232;">ACCEPT     udp  --  anywhere             anywhere            
</span><span style="color:#323232;">
</span><span style="color:#323232;">Chain FORWARD (policy ACCEPT)
</span><span style="color:#323232;">target     prot opt source               destination         
</span><span style="color:#323232;">
</span><span style="color:#323232;">Chain OUTPUT (policy ACCEPT)
</span><span style="color:#323232;">target     prot opt source               destination         
</span>

solution

I set the sender’s IP address as output URL in obs studio, thats the issue. To fix this, set the receiver’s IP address as output URL. Yeah you can’t broadcast with this ig.

undrwater ,

Can you grab logcat from Android when attempting to stream?

neatchee ,

First obvious question: do you have a firewall enabled?

From a terminal, type “iptables -L” and if there are any rules there (rather than just category headers) you will probably need to allow inbound traffic through the firewall

t0mri OP ,

thanks for help. i tried adding firewall rules to allow all udp connections (added my iptables output in the op), but no luck :(

neatchee ,

Yeah your iptables is already set to up ACCEPT by default meaning no blocking.

My next step would be to determine whether the traffic is reaching the target machine. Look into how you can monitor inbound traffic and verify whether the server even sees the inbound connection attempt

t0mri OP ,

yeah thats the first thing i wanted to check. im not a network expert but i think my phone tried connecting to my machine. on the log, SRC=192.168.43.60 is my mobile phones address, but I cannot confirm it was a success or not.

ive created a pastebin here just in case.

neatchee ,

There is no traffic on Port 8081 in those logs

t0mri OP ,

Yeah thats syncthings doing (¶ _ ¶)

neatchee ,

I mean to say that the connection attempt is failing because the traffic is never reaching the server.

Certainly_No_Brit ,

Do you have a firewall on 192.168.43.87 that may be blocking external connections?

t0mri OP ,

no. i added a rule to allow all udp connection but still no luck

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines