Мне интересно, как я могу взять аудиовход и вывести его в виде webm
Это то, что я думал, будет работать, чтобы заставить его выйти, но столкнулся с проблемой.
ffmpeg -i http://stream.radiomedia.com.au:8003/stream -c copy -f rtp rtp://127.0.0.1/streamID:54321
возвращается
ffmpeg -i http://stream.radiomedia.com.au:8003/stream -c copy -f rtp rtp://127.0.0.1/streamID:54321 ffmpeg version 4.2.1-0york0~18.04 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 7 (Ubuntu 7.4.0-1ubuntu1~18.04.1)
configuration: --prefix=/usr --extra-version='0york0~18.04' --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-nonfree --enable-libfdk-aac --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
libavutil 56. 31.100 / 56. 31.100
libavcodec 58. 54.100 / 58. 54.100
libavformat 58. 29.100 / 58. 29.100
libavdevice 58. 8.100 / 58. 8.100
libavfilter 7. 57.100 / 7. 57.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 5.100 / 5. 5.100
libswresample 3. 5.100 / 3. 5.100
libpostproc 55. 5.100 / 55. 5.100
[mp3 @ 0x564cf51de940] invalid concatenated file detected - using bitrate for duration
Input #0, mp3, from 'http://stream.radiomedia.com.au:8003/stream':
Metadata:
track : 1
title : DNR1 Signal 1
comment : www.dvdvideosoft.com
date : 2019
icy-br : 128
icy-description : Radio Media PTY LTD
icy-genre : Indie
icy-name : DRN1
icy-pub : 0
icy-url : https://www.drn1.com.au
StreamTitle :
Duration: N/A, start: 0.025057, bitrate: 320 kb/s
Stream #0:0: Audio: mp3, 44100 Hz, stereo, fltp, 320 kb/s
Metadata:
encoder : LAME3.99r
Output #0, rtp, to 'rtp://127.0.0.1/streamID:54321':
Metadata:
track : 1
title : DNR1 Signal 1
comment : www.dvdvideosoft.com
date : 2019
icy-br : 128
icy-description : Radio Media PTY LTD
icy-genre : Indie
icy-name : DRN1
icy-pub : 0
icy-url : https://www.drn1.com.au
StreamTitle :
encoder : Lavf58.29.100
Stream #0:0: Audio: mp3, 44100 Hz, stereo, fltp, 320 kb/s
Metadata:
encoder : LAME3.99r
SDP:
v=0
o=- 0 0 IN IP4 127.0.0.1
s=DNR1 Signal 1
c=IN IP4 127.0.0.1
t=0 0
a=tool:libavformat 58.29.100
m=audio 0 RTP/AVP 14
b=AS:320
a=control:streamid=0
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
av_interleaved_write_frame(): Invalid argument Error writing trailer of rtp://127.0.0.1/streamID:54321: Invalid argument
size= 0kB time=-00:00:00.02 bitrate=N/A speed=N/A video:0kB audio:1kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Conversion failed!