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:

Chain INPUT (policy ACCEPT)
target     prot opt source               destination         
ACCEPT     tcp  --  anywhere             anywhere            
ACCEPT     udp  --  anywhere             anywhere            

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         

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.

1 point

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

permalink
report
reply
1 point

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

permalink
report
parent
reply

Linux

!linux@lemmy.ml

Create post

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

Community stats

  • 2K

    Monthly active users

  • 2.9K

    Posts

  • 16K

    Comments