Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
ac85f631
Commit
ac85f631
authored
Jun 23, 2014
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
output example: set output channel layout
parent
294daf71
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
output.c
doc/examples/output.c
+2
-0
No files found.
doc/examples/output.c
View file @
ac85f631
...
@@ -34,6 +34,7 @@
...
@@ -34,6 +34,7 @@
#include <string.h>
#include <string.h>
#include <math.h>
#include <math.h>
#include "libavutil/channel_layout.h"
#include "libavutil/mathematics.h"
#include "libavutil/mathematics.h"
#include "libavformat/avformat.h"
#include "libavformat/avformat.h"
#include "libswscale/swscale.h"
#include "libswscale/swscale.h"
...
@@ -90,6 +91,7 @@ static AVStream *add_audio_stream(AVFormatContext *oc, enum AVCodecID codec_id)
...
@@ -90,6 +91,7 @@ static AVStream *add_audio_stream(AVFormatContext *oc, enum AVCodecID codec_id)
c
->
bit_rate
=
64000
;
c
->
bit_rate
=
64000
;
c
->
sample_rate
=
44100
;
c
->
sample_rate
=
44100
;
c
->
channels
=
2
;
c
->
channels
=
2
;
c
->
channel_layout
=
AV_CH_LAYOUT_STEREO
;
// some formats want stream headers to be separate
// some formats want stream headers to be separate
if
(
oc
->
oformat
->
flags
&
AVFMT_GLOBALHEADER
)
if
(
oc
->
oformat
->
flags
&
AVFMT_GLOBALHEADER
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment