Hadar
Hadar

Reputation: 11

Gstreamer gst-launch udpsrc in ubuntu 16.04 doesn't work

I'm trying to save multicast h264 ts to file using this command in gstreamer in ubuntu 16.04:

"gst-launch-1.0 udpsrc multicast-iface=eno1 uri=udp://224.1.1.1:3001 ! queue ! filesink location=test.mp4"

This command works in gstreamer on windows but when I try the same command in linux it doesn't work- test.mp4 file is created but nothing is written in it.

I also tried to play uri=udp://224.1.1.1:3001 in vlc and it can't play it either in ubuntu. In windows it works.

Any help will be appreciated!

Thanks

Upvotes: 0

Views: 1250

Answers (2)

Naman
Naman

Reputation: 54

If you have mentioned anaconda path in bashrc, comment it, and relaunch the terminal. Worked for me.

Upvotes: 1

Prabhakar Lad
Prabhakar Lad

Reputation: 1438

Seems like firewall is blocking. You need to enable the port, probably if you look using wireshark you might see the packets.

To disable firewall refer to [1], doing this will enable the port and you should be able to get the udp packets.

[1] https://help.ubuntu.com/community/UFW

Upvotes: 0

Related Questions