【发布时间】:2021-01-08 08:27:38
【问题描述】:
我正在尝试使用以下命令中继互联网广播流:
ffmpeg -re -i 'http://internetradiourl'-vn -acodec copy -f tee -map 0:a "[f=mp3]icecast://source:pass@icecast:8000/a|[f=mp3]icecast://source:pass@icecast:8000/b"
输出流包含所有元数据:
Output #0, tee, to '[f=mp3]icecast://source:pass@icecast:8000/a|[f=mp3]icecast://source:pass@icecast:8000/b':
Metadata:
audiocodec : MP3
audiodevice : IN 1+2 (Digigram LoLa280)
audiodeviceid : e08a462b-2944-4abf-894a-5d5e8649452d
type : event
encoderMachineName: ERADIO
hasAudio : true
hasCuePoints : true
hasKeyframes : true
hasVideo : false
source : MediaProxy 4.4.13.6
name : ad
ad_type : endbreak
cue_id : b6c7ff39-2103-4442-bdc8-35f8ba2bb97d
cue_time_duration: 44.365
cue_time_start : 1610035039552
cue_title : PSA - Danny - Parking (Jun 2020)
encoder : Lavf58.45.100
Stream #0:0: Audio: mp3, 44100 Hz, stereo, fltp, 98304 kb/s
Stream mapping:
Stream #0:1 -> #0:0 (copy)
但是如果客户端连接到 icecast 服务器,元数据就会丢失:
ffprobe https://icecasturl/a
Input #0, mp3, from 'https://icecasturl/a':
Metadata:
icy-pub : 0
icy-metadata : 1
StreamTitle :
Duration: N/A, start: 0.000000, bitrate: 96 kb/s
Stream #0:0: Audio: mp3, 44100 Hz, stereo, fltp, 96 kb/s
如何配置 icecast 以便转发源流的所有元数据?
【问题讨论】:
-
因为 ffmpeg 需要将 带外 元数据发送到 icecast。 ffmpeg 可能不支持。为什么你认为你需要 ffmpeg?
-
只是碰巧我正在使用ffmpeg来执行此操作,所以没有特别的原因。除了使用 ffmpeg 之外,我怎样才能实现我想要做的事情?