Mplayer streaming
![mplayer streaming mplayer streaming](https://linuxundich.de/wp-content/uploads/2013/01/ard_live_stream-800x580.png)
It's more for testing purpose then for daily usage. The swiss-army knife vlc can be used to simply receive one stream. (aka crash because of the broken pipe )Īs above but use aplay from alsa-utils instead of sox: rtpdump -F payload / | aplay -f cdr If you don't like to listen anymore, simply kill play with CTRL-C. -x : swap endianness (I am using a little-endian based system)Įdit! with sox v14.0.0 the following commandline worked: play -t raw -r 44100 -s -2 -c 2 -B /tmp/audiofifo.-s w : sample size "word" (16 bit aka 2 bytes).-r 44100 : sample rate (I'm playing MP3 music from CDs).-f s : signed ( signed 16 bit big-endian, remember?).play -c 2 -f s -r 44100 -s w -t raw -x -file=/tmp/audiofifo
![mplayer streaming mplayer streaming](https://sysads.co.uk/wp-content/uploads/2015/11/smplayer-mplayer.jpg)
Start sox (invoked as "play", make a symlink if you need to) with the stream parameters. Make a fifo for the RTP payload data (rtpdump doesn't support - aka stdout) mkfifo /tmp/audiofifoįire up rtpdump, dumping payload data to the fifo (note the addr slash port noation, instead of the usual addr colon port notation) rtpdump -F payload -o /tmp/audiofifo / &
#Mplayer streaming download#
Download and compile sox from (but THAT should really be in your distro.).Download and compile the rtptools from (direct link ), if it is not in your distro's packet management.Now for the really cool and low-resource way. Play it using rtpdump and sox (invoked as "play") Does somebody know a better site with detailed informations of the fourcc strings ? format - take a look here for explanation.-cache - use a buffersize of 2048 kbyte.This works for me good mplayer -cache 2048 -demuxer rawaudio -rawaudio format=0x20776172 rtp://: The multicast address (in my case 224.0.0.56)įrom the pulseaudio-discuss mailing list: mplayer -demuxer rawaudio -rawaudio channels=2:rate=44100:samplesize=2:format=0x10001 rtp://:įor me it did not really work, mplayer always played it back at 48000hz - although I specified it otherwise - and thus pitch was too high and lots of buffer-underruns (guess why ) Mplayer ignores in that case your rate parameter and uses the rate from formatstring(dvdpcm).On the target machine, enter the command tcpdump -n net 224.0.0.0/8 -c 10Įxamine the output, for example 12:18:20.404866 IP 10.54.3 > 224.0.4: UDP, length 1292Ĭongratulations, you now know three things:
#Mplayer streaming how to#
That's what a wiki is for, right? How to get the multicast address and port - the quick and dirty way - with tcpdump
![mplayer streaming mplayer streaming](https://www1.mplayerhq.hu/images/screenshots/mpeg2-ts-01.jpg)
#Mplayer streaming free#
Feel free to edit this page, correct typos, add new cool ideas and so on. It worked for me so I decided to post it in the wiki for other people who want to try this and skip the googling. I am not responsible if this fries any of your machines, deletes all your data, eats your breakfast etc. Sample format (according to this post, it is always s16be).Preparations: You must know the following stream parameters: Various methods on how to listen to the RTP Stream with other clients than native pulseaudio. How to listen to the pulseaudio RTP Stream Stream it with vlc as mp3 for low bandwidth.Play it using rtpdump and sox (invoked as "play").
![mplayer streaming mplayer streaming](https://wii.scenebeta.com/archivos/wii/resize/biblioarchivosdrupal/wii_pub/active/0/MPlayerwii5-343x287.png)
How to get the multicast address and port - the quick and dirty way - with tcpdump.How to listen to the pulseaudio RTP Stream.