networking - ffmpeg , 2 network cards and multicast stream -
my knowledge of networks poor!!, newbie!! ;-)
i have small server streaming ffmpeg installed on nginx 2 network interfaces
p2p1 used wan provides http/ssh....
p4p1 used receive multicast data intranet.
192.168.0.1 public network gateway.
192.168.1.1 private network gateway (commented not have internet exit network)
239.0.0.*/24 multicast address.
linux distribution 3.13.0-32-generic #57-ubuntu smp tue jul 15 03:51:08 utc 2014 x86_64 x86_64 x86_64 gnu/linux distributor id : ubuntu description: ubuntu 14.04.2 lts release : 14.04 codename : trusty
my network interfaces config
auto lo iface lo inet loopback # net1 auto p2p1 iface p2p1 inet static address 192.168.0.100 netmask 255.255.255.0 gateway 192.168.0.1 # net2 auto p4p1 iface p4p1 inet static address 192.168.1.100 netmask 255.255.255.0 ### gateway 192.168.1.1
now route table
root@srv:# route tabla de rutas ip del nĂșcleo destino pasarela genmask indic mĂ©tric ref uso interfaz default 192.168.0.1 0.0.0.0 ug 0 0 0 p2p1 192.168.0.0 * 255.255.255.0 u 0 0 0 p2p1 192.168.1.0 * 255.255.255.0 u 0 0 0 p4p1
i'm using udpxy on port 4022 converting iptv multicast unicast http
udpxy -p 4022
i execute
/usr/bin/ffmpeg -i "http://127.0.0.1:4022/rtp/239.0.0.76:8208" -map 0:0 -map 0:1 -c:v libx264 -vf scale=-1:720 -r 25 -profile:v high -level:v 4.0 -crf 18 -preset veryfast -maxrate 2000k -bufsize 2200k -c:a aac -ab 128k -strict -2 -ac 2 -f flv rtmp://127.0.0.1:11111/rtmp/channel1; ffmpeg version 2.7 copyright (c) 2000-2015 ffmpeg developers built gcc 4.8 (ubuntu 4.8.2-19ubuntu1) configuration: --extra-libs=-ldl --prefix=/opt/ffmpeg --enable-avresample --disable-debug --enable-nonfree --enable-gpl --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --disable-decoder=amrnb --disable-decoder=amrwb --enable-libpulse --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-libvorbis --enable-libmp3lame --enable-libopus --enable-libvpx --enable-libspeex --enable-libass --enable-avisynth --enable-libsoxr --enable-libxvid --enable-libvo-aacenc --enable-libvidstab libavutil 54. 27.100 / 54. 27.100 libavcodec 56. 41.100 / 56. 41.100 libavformat 56. 36.100 / 56. 36.100 libavdevice 56. 4.100 / 56. 4.100 libavfilter 5. 16.101 / 5. 16.101 libavresample 2. 1. 0 / 2. 1. 0 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 2.100 / 1. 2.100 libpostproc 53. 3.100 / 53. 3.100 http://127.0.0.1:4022/rtp/239.0.0.76:8208: invalid data found when processing input
as can solve problem?? in advance
210.0.0.0/24 not multicast addresses.
the ipv4 multicast range 224.0.0.0/4. see https://en.wikipedia.org/?title=multicast_address
it's quite possible that's reason you're having issues.
edit:
also note error message:
http://127.0.0.1:4022/rtp/239.0.0.76:8208: invalid data found when processing input
i suppose means there's problem getting data udpxy, try running verbose (udpxy -v -p 4022) , see says.
Comments
Post a Comment