BSF: Indicates binary steam fiter
A: Indicates audio
Find the SRS corresponding configuration file, add Aparams in the configuration file, add Aac_adtstoasc inside the aparams.
A configuration example is as follows:
Listen 1935;
Max_connections 1000;
PID Objs/edge.pid;
Srs_log_file./objs/edge.log;
#vhost __defaultvhost__ {
# mode remote;
# # Origin 127.0.0.1:19350;
# Origin 103.242.147.227:1935;
#}
Vhost __defaultvhost__ {
# mode remote;
# Origin 58.218.152.98:1935;
Ingest Livestream {
Enabled on;
Input {
# file:ingest file specifies by URL.
# stream:ingest stream Specifeis by URL.
# Device:not Support yet.
# Default:file
Type stream;
# The URL of File/stream.
URL http://live.hkstv.hk.lxdns.com/live/hks/playlist.m3u8;
}
# The FFmpeg
Ffmpeg/tmp/ffmpeg;
# The Transcode engine, @see all.transcode.srs.com
# @remark, the output is specified following.
Engine {
Enabled on;
VCODEC copy;
ACODEC copy;
Aparams
{
Profile:a Aac_low;
Bsf:a AAC_ADTSTOASC;
}
Output rtmp://127.0.0.1:1935/live/livestream;
}
}
HLS {
Enabled on;
Hls_fragment 10;
Hls_window 60;
Hls_path./objs/nginx/html;
Hls_m3u8_file [app]/[stream].m3u8;
Hls_ts_file [App]/[stream]-[seq].ts;
}
}
Http_server {
Enabled on;
Listen 8088;
Dir./objs/nginx/html;
}
SRS specifies that this file can be ffmpeg with parameters-bsf:a Aac_adtstoasc transcoding
This article is from the "single Season rice" blog, please be sure to keep this source http://linzb.blog.51cto.com/5192423/1763074
FFmpeg ways to add-bsf:a aac_adtstoasc parameters