by permitivity » Sat Aug 31, 2013 5:30 am
When I run "aplay -l", it tells me it's "device 0".
So, randomly pasting ffmpeg commands I see on google, I finally run into something that seems to be doing something!!!
$this->bbcode_second_pass_quote('', 'f')fmpeg -re -f alsa -i plughw:0 -ar 8000 -f mulaw -f rtp
rtp://224.168.2.105:1234But, when I try play the stream on a windows PC using VLC, I get this error message about this stream: "SDP required:
A description in SDP format is required to receive the RTP stream."
This is the output. You can see at the bottom it's doing something! I don't really understand how this command is different than the other ones I've tried.
$this->bbcode_second_pass_code('', '
[root@alarm media]# ffmpeg -re -f alsa -i plughw:0 -ar 8000 -f mulaw -f rtp rtp://224.168.2.105:1234
ffmpeg version 2.0.1 Copyright (c) 2000-2013 the FFmpeg developers
built on Aug 11 2013 09:58:44 with gcc 4.7.2 (GCC)
configuration: --prefix=/usr --disable-debug --disable-static --enable-avresample --enable-dxva2 --enable-fontconfig --enable-gpl --enable-libass --enable-libbluray --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libv4l2 --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-pic --enable-postproc --enable-runtime-cpudetect --enable-shared --enable-swresample --enable-vdpau --enable-version3 --enable-x11grab
libavutil 52. 38.100 / 52. 38.100
libavcodec 55. 18.102 / 55. 18.102
libavformat 55. 12.100 / 55. 12.100
libavdevice 55. 3.100 / 55. 3.100
libavfilter 3. 79.101 / 3. 79.101
libavresample 1. 1. 0 / 1. 1. 0
libswscale 2. 3.100 / 2. 3.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 3.100 / 52. 3.100
Guessed Channel Layout for Input Stream #0.0 : stereo
Input #0, alsa, from 'plughw:0':
Duration: N/A, start: 1377926710.333970, bitrate: 1536 kb/s
Stream #0:0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
[rtp @ 0x5b540] Cannot respect max delay: frame size = 0
Output #0, rtp, to 'rtp://224.168.2.105:1234':
Metadata:
encoder : Lavf55.12.100
Stream #0:0: Audio: pcm_mulaw, 8000 Hz, stereo, s16, 128 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (pcm_s16le -> pcm_mulaw)
SDP:
v=0
o=- 0 0 IN IP4 127.0.0.1
s=No Name
c=IN IP4 224.168.2.105
t=0 0
a=tool:libavformat 55.12.100
m=audio 1234 RTP/AVP 97
b=AS:128
a=rtpmap:97 PCMU/8000/2
Press [q] to stop, [?] for help
[alsa @ 0x4fd10] ALSA buffer xrun.
size= 173kB time=00:00:10.14 bitrate= 139.3kbits/s
')