Forums » Tutorial and setups »
Loading UDP stream through a proxy wrapped with ffmpeg
Added by Rap Tor about 7 years ago
Sorry if this has been posted before, but I searched and could not find a solution
I am trying to load udp streams through a proxy into tvheadend using ffmpeg to wrap it as an mpeg ts by following some suggestions already on this forum. However it is not working, giving me a protocol not found. Here is the log (XXXX is hiding the sensitive information)
Oct 27 15:03:52 XXXX tvheadend6558: mpegts: pipe:///usr/bin/ffmpeg -loglevel fatal -i http://XXXX:XXXX/udp/239.195.32.4:1234 -c copy -flags +global_header -strict -2 -metadata service_provider=Service_Name -metadata service_name=Service_Name_Live_Stream -f mpegts pipe:1 - tuning on IPTV
Oct 27 15:03:52 XXXX tvheadend6558: subscription: 016A: "scan" subscribing to mux "pipe:///usr/bin/ffmpeg -loglevel fatal -i http://XXXX:XXXX/udp/239.195.32.4:1234 -c copy -flags +global_header -strict -2 -metadata service_provider=Service_Name -metadata service_name=Service_Name_Live_Stream -f mpegts pipe:1", weight: 6, adapter: "IPTV", network: "test", service: "Raw PID Subscription"
Oct 27 15:03:52 XXXX tvheadend6558: iptv: libav: Could not open input 'pipe:///usr/bin/ffmpeg -loglevel fatal -i http://XXXX:XXXX/udp/239.195.32.4:1234 -c copy -flags +global_header -strict -2 -metadata service_provider=Service_Name -metadata service_name=Service_Name_Live_Stream -f mpegts pipe:1': Protocol not found
Oct 27 15:04:07 XXXX tvheadend6558: mpegts: pipe:///usr/bin/ffmpeg -loglevel fatal -i http://XXXX:XXXX/udp/239.195.32.4:1234 -c copy -flags +global_header -strict -2 -metadata service_provider=Service_Name -metadata service_name=Service_Name_Live_Stream -f mpegts pipe:1 - scan no data, failed
Oct 27 15:04:07 XXXX tvheadend6558: subscription: 016A: "scan" unsubscribing
the path to ffmpeg is definitely correct, I checked it with whereis. However if I inspect the running processes, ffmpeg never starts up, so is it like it cannot access it?
I am using Tvheadend 4.3-589~g7d0e509 on Linux Mint 18.2
What am I doing wrong please?
Here is a debug log
2017-10-27 15:21:48.472 [ DEBUG]:mpegts: adding mux pipe:///usr/bin/ffmpeg -loglevel fatal -i http://XXXXX:XXXXX/udp/239.195.32.4:1234 -c copy -flags +global_header -strict -2 -metadata service_provider=Service_Name -metadata service_name=Service_Name_Live_Stream -f mpegts pipe:1 to scan queue weight 6 flags 4000
2017-10-27 15:21:48.473 [ DEBUG]:mpegts: pipe:///usr/bin/ffmpeg -loglevel fatal -i http://XXXXX:XXXXX/udp/239.195.32.4:1234 -c copy -flags +global_header -strict -2 -metadata service_provider=Service_Name -metadata service_name=Service_Name_Live_Stream -f mpegts pipe:1 - add raw service
2017-10-27 15:21:48.473 [ INFO]:mpegts: pipe:///usr/bin/ffmpeg -loglevel fatal -i http://XXXXX:XXXXX/udp/239.195.32.4:1234 -c copy -flags +global_header -strict -2 -metadata service_provider=Service_Name -metadata service_name=Service_Name_Live_Stream -f mpegts pipe:1 - tuning on IPTV
2017-10-27 15:21:48.473 [ DEBUG]:mpegts: pipe:///usr/bin/ffmpeg -loglevel fatal -i http://XXXXX:XXXXX/udp/239.195.32.4:1234 -c copy -flags +global_header -strict -2 -metadata service_provider=Service_Name -metadata service_name=Service_Name_Live_Stream -f mpegts pipe:1 in test - open PID 0000 (0) [20/0x7f3c3805a110]
2017-10-27 15:21:48.473 [ DEBUG]:mpegts: pipe:///usr/bin/ffmpeg -loglevel fatal -i http://XXXXX:XXXXX/udp/239.195.32.4:1234 -c copy -flags +global_header -strict -2 -metadata service_provider=Service_Name -metadata service_name=Service_Name_Live_Stream -f mpegts pipe:1 in test - open PID 0001 (1) [16/0x7f3c380c9210]
2017-10-27 15:21:48.473 [ DEBUG]:mpegts: pipe:///usr/bin/ffmpeg -loglevel fatal -i http://XXXXX:XXXXX/udp/239.195.32.4:1234 -c copy -flags +global_header -strict -2 -metadata service_provider=Service_Name -metadata service_name=Service_Name_Live_Stream -f mpegts pipe:1 in test - open PID 0010 (16) [16/0x7f3c380ca690]
2017-10-27 15:21:48.473 [ DEBUG]:mpegts: pipe:///usr/bin/ffmpeg -loglevel fatal -i http://XXXXX:XXXXX/udp/239.195.32.4:1234 -c copy -flags +global_header -strict -2 -metadata service_provider=Service_Name -metadata service_name=Service_Name_Live_Stream -f mpegts pipe:1 in test - open PID 0011 (17) [20/0x7f3c380cbb10]
2017-10-27 15:21:48.473 [ DEBUG]:mpegts: pipe:///usr/bin/ffmpeg -loglevel fatal -i http://XXXXX:XXXXX/udp/239.195.32.4:1234 -c copy -flags +global_header -strict -2 -metadata service_provider=Service_Name -metadata service_name=Service_Name_Live_Stream -f mpegts pipe:1 in test - open PID 0011 (17) [16/0x7f3c380ccf90]
2017-10-27 15:21:48.473 [ DEBUG]:mpegts: pipe:///usr/bin/ffmpeg -loglevel fatal -i http://XXXXX:XXXXX/udp/239.195.32.4:1234 -c copy -flags +global_header -strict -2 -metadata service_provider=Service_Name -metadata service_name=Service_Name_Live_Stream -f mpegts pipe:1 - started
2017-10-27 15:21:48.473 [ DEBUG]:mpegts: pipe:///usr/bin/ffmpeg -loglevel fatal -i http://XXXXX:XXXXX/udp/239.195.32.4:1234 -c copy -flags +global_header -strict -2 -metadata service_provider=Service_Name -metadata service_name=Service_Name_Live_Stream -f mpegts pipe:1 in test - open PID tables subscription [0042/0x7f3c380024e0]
2017-10-27 15:21:48.473 [ INFO]:subscription: 0170: "scan" subscribing to mux "pipe:///usr/bin/ffmpeg -loglevel fatal -i http://XXXXX:XXXXX/udp/239.195.32.4:1234 -c copy -flags +global_header -strict -2 -metadata service_provider=Service_Name -metadata service_name=Service_Name_Live_Stream -f mpegts pipe:1", weight: 6, adapter: "IPTV", network: "test", service: "Raw PID Subscription"
2017-10-27 15:21:48.473 [ ERROR]:iptv: libav: Could not open input 'pipe:///usr/bin/ffmpeg -loglevel fatal -i http://XXXXX:XXXXX/udp/239.195.32.4:1234 -c copy -flags +global_header -strict -2 -metadata service_provider=Service_Name -metadata service_name=Service_Name_Live_Stream -f mpegts pipe:1': Protocol not found
2017-10-27 15:22:03.473 [ DEBUG]:mpegts: pipe:///usr/bin/ffmpeg -loglevel fatal -i http://XXXXX:XXXXX/udp/239.195.32.4:1234 -c copy -flags +global_header -strict -2 -metadata service_provider=Service_Name -metadata service_name=Service_Name_Live_Stream -f mpegts pipe:1 in test - close PID 0011 (17) [20/0x7f3c380cbb10]
2017-10-27 15:22:03.473 [ DEBUG]:mpegts: pipe:///usr/bin/ffmpeg -loglevel fatal -i http://XXXXX:XXXXX/udp/239.195.32.4:1234 -c copy -flags +global_header -strict -2 -metadata service_provider=Service_Name -metadata service_name=Service_Name_Live_Stream -f mpegts pipe:1 in test - close PID 0010 (16) [16/0x7f3c380ca690]
2017-10-27 15:22:03.473 [ DEBUG]:mpegts: pipe:///usr/bin/ffmpeg -loglevel fatal -i http://XXXXX:XXXXX/udp/239.195.32.4:1234 -c copy -flags +global_header -strict -2 -metadata service_provider=Service_Name -metadata service_name=Service_Name_Live_Stream -f mpegts pipe:1 in test - close PID 0001 (1) [16/0x7f3c380c9210]
2017-10-27 15:22:03.473 [ DEBUG]:mpegts: pipe:///usr/bin/ffmpeg -loglevel fatal -i http://XXXXX:XXXXX/udp/239.195.32.4:1234 -c copy -flags +global_header -strict -2 -metadata service_provider=Service_Name -metadata service_name=Service_Name_Live_Stream -f mpegts pipe:1 in test - close PID 0000 (0) [20/0x7f3c3805a110]
2017-10-27 15:22:03.473 [ INFO]:mpegts: pipe:///usr/bin/ffmpeg -loglevel fatal -i http://XXXXX:XXXXX/udp/239.195.32.4:1234 -c copy -flags +global_header -strict -2 -metadata service_provider=Service_Name -metadata service_name=Service_Name_Live_Stream -f mpegts pipe:1 - scan no data, failed
2017-10-27 15:22:03.473 [ INFO]:subscription: 0170: "scan" unsubscribing
2017-10-27 15:22:03.473 [ DEBUG]:mpegts: pipe:///usr/bin/ffmpeg -loglevel fatal -i http://XXXXX:XXXXX/udp/239.195.32.4:1234 -c copy -flags +global_header -strict -2 -metadata service_provider=Service_Name -metadata service_name=Service_Name_Live_Stream -f mpegts pipe:1 in test - close PID tables subscription [0042/0x7f3c380024e0]
2017-10-27 15:22:03.473 [ DEBUG]:mpegts: pipe:///usr/bin/ffmpeg -loglevel fatal -i http://XXXXX:XXXXX/udp/239.195.32.4:1234 -c copy -flags +global_header -strict -2 -metadata service_provider=Service_Name -metadata service_name=Service_Name_Live_Stream -f mpegts pipe:1 - stopping mux
2017-10-27 15:22:03.473 [ DEBUG]:mpegts: pipe:///usr/bin/ffmpeg -loglevel fatal -i http://XXXXX:XXXXX/udp/239.195.32.4:1234 -c copy -flags +global_header -strict -2 -metadata service_provider=Service_Name -metadata service_name=Service_Name_Live_Stream -f mpegts pipe:1 - close PID 0011 (17) [16/0x7f3c380ccf90]
2017-10-27 15:22:03.473 [ DEBUG]:mpegts: removing mux pipe:///usr/bin/ffmpeg -loglevel fatal -i http://XXXXX:XXXXX/udp/239.195.32.4:1234 -c copy -flags +global_header -strict -2 -metadata service_provider=Service_Name -metadata service_name=Service_Name_Live_Stream -f mpegts pipe:1 from scan queue
Replies (5)
RE: Loading UDP stream through a proxy wrapped with ffmpeg - Added by saen acro about 7 years ago
Why not use direct M3U as from UDPXY using IPTV Automatic network?
IGMP (multicast) and UDP are different things
RE: Loading UDP stream through a proxy wrapped with ffmpeg - Added by Rap Tor about 7 years ago
That is how I originally started, I have an m3u files with a list of streams. However when I loaded it, no services were found.
so I started creating individual muxes and inserted the stream url (http://XXXX:XXXX/udp/239.195.32.4:1234), and on scan it does not find a service. I assume this is because it is not mpeg-ts wrapped.
so I ended up with ffmpeg method which I found on this forum, but that is not working either.
any ideas?
btw I cannot use the udp addresses (udp://) directly as it is a remote proxy.
RE: Loading UDP stream through a proxy wrapped with ffmpeg - Added by Rap Tor about 7 years ago
OMG thanks for replying, I solved it, and guess how??
By checking your post history I saw you were helping this guy using Mumudvb, and he mentioned that he needed to disable A/V Library. I tried it and it worked!! I can now use these streams.
thanks!!
RE: Loading UDP stream through a proxy wrapped with ffmpeg - Added by saen acro about 7 years ago
That's why need to read careful
RE: Loading UDP stream through a proxy wrapped with ffmpeg - Added by Rap Tor about 7 years ago
Yeah but who would have thought. One setting changed from nothing working to everything working. This setting is on by default!