From a70ac1016cdbb6f99b0e32d02706b81ea71a81b2 Mon Sep 17 00:00:00 2001 From: audioDever Date: Wed, 24 May 2023 15:05:31 +0800 Subject: [PATCH 1/2] Add ffmpeg flac encoder support Signed-off-by: audioDever --- BUILD.gn | 2 +- ohos_config.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/BUILD.gn b/BUILD.gn index d7909f3eb3..fea633b8aa 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -339,7 +339,7 @@ ohos_source_set("ffmpeg_dynamic") { "//third_party/ffmpeg/libavcodec/flacdec.c", "//third_party/ffmpeg/libavcodec/flacdsp.c", - # "//third_party/ffmpeg/libavcodec/flacenc.c", + "//third_party/ffmpeg/libavcodec/flacenc.c", # "//third_party/ffmpeg/libavcodec/flicvideo.c", # "//third_party/ffmpeg/libavcodec/flvdec.c", # "//third_party/ffmpeg/libavcodec/flvenc.c", diff --git a/ohos_config.sh b/ohos_config.sh index 89039f0c71..86ac6d5edd 100755 --- a/ohos_config.sh +++ b/ohos_config.sh @@ -51,7 +51,7 @@ FF_CONFIG_OPTIONS=" --enable-parser=mpegaudio,aac,aac_latm,av3a --enable-decoder=h263,h264,mpeg2video,mpeg4,vp8,vp9 --enable-decoder=mp3,mp3float,aac,aac_latm,ape,flac,vorbis,opus - --enable-encoder=aac,aac_latm,opus + --enable-encoder=aac,aac_latm,opus,flac --enable-encoder=mpeg4,h263 --enable-bsf=h264_mp4toannexb " -- Gitee From 4744eabb7ff0066d40e50336f84ecb05b26609e2 Mon Sep 17 00:00:00 2001 From: audioDever Date: Wed, 24 May 2023 15:58:22 +0800 Subject: [PATCH 2/2] adjust format Signed-off-by: audioDever --- BUILD.gn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BUILD.gn b/BUILD.gn index fea633b8aa..c436c48809 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -338,8 +338,8 @@ ohos_source_set("ffmpeg_dynamic") { "//third_party/ffmpeg/libavcodec/flacdata.c", "//third_party/ffmpeg/libavcodec/flacdec.c", "//third_party/ffmpeg/libavcodec/flacdsp.c", - "//third_party/ffmpeg/libavcodec/flacenc.c", + # "//third_party/ffmpeg/libavcodec/flicvideo.c", # "//third_party/ffmpeg/libavcodec/flvdec.c", # "//third_party/ffmpeg/libavcodec/flvenc.c", -- Gitee