簡體   English   中英

ffmpeg 單個 output 容器,帶 4 個音頻通道到 AWS IVS

[英]ffmpeg single output container with 4 audio channel to AWS IVS

嘗試在單個容器中向AWS IVS發送 1 個視頻和 4 個不同的音頻。 我應該使用哪個容器或混合器? FLV 不支持多音頻,matroska 不支持 rtmp 我猜是鏈接 3GP 和 mp4 容器沒有給我錯誤,但 IVS 上都沒有顯示視頻

為了簡單的嘗試,我正在使用這個命令。

ffmpeg -re -stream_loop -1 -i sample.mkv -r 30 -c:v libx264 -pix_fmt yuv420p -profile:v main -preset veryfast -x264opts "nal-hrd=cbr:no-scenecut" -minrate 3000 -maxrate 3000 -g 
60 -c:a aac -ac 2 -ar 44100 -vb 400k -maxrate 400k -minrate 400k -bufsize 800k -movflags frag_keyframe+empty_moov -f mp4 rtmps:someurls

上面的命令不包括多音頻 output 所以只是嘗試發送除了 flv 格式

Amazon IVS 只能支持 mono 通道或立體聲軌道。 以下是推薦的音頻配置設置:

Codec: AAC (LC)

Bitrate: anything up to 320 Kbps

Sample rate: 44.1 Khz or 48 Khz (it is best to match your production audio flow)

Channels: Maximum 2 - Stereo (1: mono or 2: stereo audio channel support)

參考:- https://docs.aws.amazon.com/ivs/latest/userguide/streaming-config.html

如果您的要求是支持多音頻通道,AWS Elemental MediaLive 可以支持此工作流程。 但是您需要使用 Transport Stream 容器格式(帶有 FEC 或 Zixi 的 RTP)而不是 RTMP。 我建議您看一下以下參考實現。

https://aws.amazon.com/solutions/implementations/live-streaming-on-aws/

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM