FFmpeg ways to add-bsf:a aac_adtstoasc parameters

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.