爆款云主机2核4G限时秒杀,88元/年起!
查看详情

活动

天翼云最新优惠活动,涵盖免费试用,产品折扣等,助您降本增效!
热门活动
  • 618智算钜惠季 爆款云主机2核4G限时秒杀,88元/年起!
  • 免费体验DeepSeek,上天翼云息壤 NEW 新老用户均可免费体验2500万Tokens,限时两周
  • 云上钜惠 HOT 爆款云主机全场特惠,更有万元锦鲤券等你来领!
  • 算力套餐 HOT 让算力触手可及
  • 天翼云脑AOne NEW 连接、保护、办公,All-in-One!
  • 中小企业应用上云专场 产品组合下单即享折上9折起,助力企业快速上云
  • 息壤高校钜惠活动 NEW 天翼云息壤杯高校AI大赛,数款产品享受线上订购超值特惠
  • 天翼云电脑专场 HOT 移动办公新选择,爆款4核8G畅享1年3.5折起,快来抢购!
  • 天翼云奖励推广计划 加入成为云推官,推荐新用户注册下单得现金奖励
免费活动
  • 免费试用中心 HOT 多款云产品免费试用,快来开启云上之旅
  • 天翼云用户体验官 NEW 您的洞察,重塑科技边界

智算服务

打造统一的产品能力,实现算网调度、训练推理、技术架构、资源管理一体化智算服务
智算云(DeepSeek专区)
科研助手
  • 算力商城
  • 应用商城
  • 开发机
  • 并行计算
算力互联调度平台
  • 应用市场
  • 算力市场
  • 算力调度推荐
一站式智算服务平台
  • 模型广场
  • 体验中心
  • 服务接入
智算一体机
  • 智算一体机
大模型
  • DeepSeek-R1-昇腾版(671B)
  • DeepSeek-R1-英伟达版(671B)
  • DeepSeek-V3-昇腾版(671B)
  • DeepSeek-R1-Distill-Llama-70B
  • DeepSeek-R1-Distill-Qwen-32B
  • Qwen2-72B-Instruct
  • StableDiffusion-V2.1
  • TeleChat-12B

应用商城

天翼云精选行业优秀合作伙伴及千余款商品,提供一站式云上应用服务
进入甄选商城进入云市场创新解决方案
办公协同
  • WPS云文档
  • 安全邮箱
  • EMM手机管家
  • 智能商业平台
财务管理
  • 工资条
  • 税务风控云
企业应用
  • 翼信息化运维服务
  • 翼视频云归档解决方案
工业能源
  • 智慧工厂_生产流程管理解决方案
  • 智慧工地
建站工具
  • SSL证书
  • 新域名服务
网络工具
  • 翼云加速
灾备迁移
  • 云管家2.0
  • 翼备份
资源管理
  • 全栈混合云敏捷版(软件)
  • 全栈混合云敏捷版(一体机)
行业应用
  • 翼电子教室
  • 翼智慧显示一体化解决方案

合作伙伴

天翼云携手合作伙伴,共创云上生态,合作共赢
天翼云生态合作中心
  • 天翼云生态合作中心
天翼云渠道合作伙伴
  • 天翼云代理渠道合作伙伴
天翼云服务合作伙伴
  • 天翼云集成商交付能力认证
天翼云应用合作伙伴
  • 天翼云云市场合作伙伴
  • 天翼云甄选商城合作伙伴
天翼云技术合作伙伴
  • 天翼云OpenAPI中心
  • 天翼云EasyCoding平台
天翼云培训认证
  • 天翼云学堂
  • 天翼云市场商学院
天翼云合作计划
  • 云汇计划
天翼云东升计划
  • 适配中心
  • 东升计划
  • 适配互认证

开发者

开发者相关功能入口汇聚
技术社区
  • 专栏文章
  • 互动问答
  • 技术视频
资源与工具
  • OpenAPI中心
开放能力
  • EasyCoding敏捷开发平台
培训与认证
  • 天翼云学堂
  • 天翼云认证
魔乐社区
  • 魔乐社区

支持与服务

为您提供全方位支持与服务,全流程技术保障,助您轻松上云,安全无忧
文档与工具
  • 文档中心
  • 新手上云
  • 自助服务
  • OpenAPI中心
定价
  • 价格计算器
  • 定价策略
基础服务
  • 售前咨询
  • 在线支持
  • 在线支持
  • 工单服务
  • 建议与反馈
  • 用户体验官
  • 服务保障
  • 客户公告
  • 会员中心
增值服务
  • 红心服务
  • 首保服务
  • 客户支持计划
  • 专家技术服务
  • 备案管家

了解天翼云

天翼云秉承央企使命,致力于成为数字经济主力军,投身科技强国伟大事业,为用户提供安全、普惠云服务
品牌介绍
  • 关于天翼云
  • 智算云
  • 天翼云4.0
  • 新闻资讯
  • 天翼云APP
基础设施
  • 全球基础设施
  • 信任中心
最佳实践
  • 精选案例
  • 超级探访
  • 云杂志
  • 分析师和白皮书
  • 天翼云·创新直播间
市场活动
  • 2025智能云生态大会
  • 2024智算云生态大会
  • 2023云生态大会
  • 2022云生态大会
  • 天翼云中国行
天翼云
  • 活动
  • 智算服务
  • 产品
  • 解决方案
  • 应用商城
  • 合作伙伴
  • 开发者
  • 支持与服务
  • 了解天翼云
      • 文档
      • 控制中心
      • 备案
      • 管理中心

      ffmpeg的filter_audio.c的功能是生成一个正弦波音频,然后通过简单的滤镜链,最后输出数据的MD5校验和。请用go语言改写。

      首页 知识中心 软件开发 文章详情页

      ffmpeg的filter_audio.c的功能是生成一个正弦波音频,然后通过简单的滤镜链,最后输出数据的MD5校验和。请用go语言改写。

      2024-05-15 10:05:21 阅读次数:51

      ffmpeg,golang

      ffmpeg的filter_audio.c的功能是生成一个正弦波音频,然后通过简单的滤镜链,最后输出数据的MD5校验和。请用go语言改写。

      代码见github/moonfdd/ffmpeg-go库。

      以下是通过 Go 语言重新实现 ffmpeg 的 filter_audio.c 功能的步骤:
      1. 导入必要的依赖包和定义常量和变量。

      2. 初始化 FFmpeg 库文件路径。

      3. 创建一个音频滤镜图,并将 abuffer、volume 和 aformat 滤镜连接起来。其中,abuffer 滤镜用于获取输入音频采样,volume 滤镜用于调节音频音量,aformat 滤镜用于设置输出音频格式。

      4. 创建输出音频流的 AVCodecContext 上下文,并设置相关属性。

      5. 使用 avcodec_find_encoder_by_name 函数查找 PCM S16LE 编码器,然后创建编码器的 AVCodec 上下文。

      6. 打开编码器并写入头部信息。

      7. 循环读取音频帧,将其发送到音频滤镜图进行处理。

      8. 从滤镜图中获取输出音频帧,并将其编码为 PCM S16LE 格式。

      9. 计算输出音频帧的 MD5 校验和,并将其打印到标准输出上。

      10. 释放资源,结束程序运行。

      以上就是使用 Go 语言对 filter_audio.c 文件进行重新实现的步骤。

      命令如下:
      go run ./examples/internalexamples/filter_audio/main.go 1
      
      go代码如下:
      package main
      
      import (
      	"fmt"
      	"math"
      	"os"
      	"strconv"
      	"unsafe"
      
      	"/moonfdd/ffmpeg-go/ffcommon"
      	"/moonfdd/ffmpeg-go/libavfilter"
      	"/moonfdd/ffmpeg-go/libavutil"
      )
      
      func main0() (ret ffcommon.FInt) {
      	var md5 *libavutil.AVMD5
      	var graph *libavfilter.AVFilterGraph
      	var src, sink *libavfilter.AVFilterContext
      	var frame *libavutil.AVFrame
      	var errstr [1024]ffcommon.FUint8T
      	var duration ffcommon.FFloat
      	var err, nb_frames, i ffcommon.FInt
      
      	if len(os.Args) < 2 {
      		fmt.Printf("Usage: %s <duration>\n", os.Args[0])
      		return 1
      	}
      
      	f, err2 := strconv.ParseFloat(os.Args[1], 32)
      	if err2 != nil {
      		// handle error
      		return 1
      	}
      	duration = float32(f)
      	nb_frames = int32(float64(duration) * INPUT_SAMPLERATE / FRAME_SIZE)
      	if nb_frames <= 0 {
      		fmt.Printf("Invalid duration: %s\n", os.Args[1])
      		return 1
      	}
      
      	/* Allocate the frame we will be using to store the data. */
      	frame = libavutil.AvFrameAlloc()
      	if frame == nil {
      		fmt.Printf("Error allocating the frame\n")
      		return 1
      	}
      
      	md5 = libavutil.AvMd5Alloc()
      	if md5 == nil {
      		fmt.Printf("Error allocating the MD5 context\n")
      		return 1
      	}
      
      	/* Set up the filtergraph. */
      	err = init_filter_graph(&graph, &src, &sink)
      	if err < 0 {
      		fmt.Printf("Unable to init filter graph:")
      		goto fail
      	}
      
      	/* the main filtering loop */
      	for i = 0; i < nb_frames; i++ {
      		// /* get an input frame to be filtered */
      		err = get_input(frame, i)
      		if err < 0 {
      			fmt.Printf("Error generating input frame:")
      			goto fail
      		}
      
      		/* Send the frame to the input of the filtergraph. */
      		err = src.AvBuffersrcAddFrame(frame)
      		if err < 0 {
      			frame.AvFrameUnref()
      			fmt.Printf("Error submitting the frame to the filtergraph:")
      			goto fail
      		}
      
      		/* Get all the filtered output that is available. */
      		err = sink.AvBuffersinkGetFrame(frame)
      		for err >= 0 {
      			/* now do something with our filtered frame */
      			err = process_output(md5, frame)
      			if err < 0 {
      				fmt.Printf("Error processing the filtered frame:")
      				goto fail
      			}
      			frame.AvFrameUnref()
      			err = sink.AvBuffersinkGetFrame(frame)
      		}
      
      		if err == -libavutil.EAGAIN {
      			/* Need to feed more frames in. */
      			continue
      		} else if err == libavutil.AVERROR_EOF {
      			/* Nothing more to do, finish. */
      			break
      		} else if err < 0 {
      			/* An error occurred. */
      			fmt.Printf("Error filtering the data:")
      			goto fail
      		}
      	}
      
      	libavfilter.AvfilterGraphFree(&graph)
      	libavutil.AvFrameFree(&frame)
      	libavutil.AvFreep(uintptr(unsafe.Pointer(&md5)))
      
      	return 0
      
      fail:
      	libavutil.AvStrerror(err, (*byte)(unsafe.Pointer(&errstr)), uint64(len(errstr)))
      	fmt.Printf("%s\n", errstr)
      	return 1
      }
      
      const INPUT_SAMPLERATE = 48000
      const INPUT_FORMAT = libavutil.AV_SAMPLE_FMT_FLTP
      const INPUT_CHANNEL_LAYOUT = libavutil.AV_CH_LAYOUT_5POINT0
      
      const VOLUME_VAL = 0.90
      
      func init_filter_graph(graph **libavfilter.AVFilterGraph, src **libavfilter.AVFilterContext,
      	sink **libavfilter.AVFilterContext) ffcommon.FInt {
      	var filter_graph *libavfilter.AVFilterGraph
      	var abuffer_ctx *libavfilter.AVFilterContext
      	var abuffer *libavfilter.AVFilter
      	var volume_ctx *libavfilter.AVFilterContext
      	var volume *libavfilter.AVFilter
      	var aformat_ctx *libavfilter.AVFilterContext
      	var aformat *libavfilter.AVFilter
      	var abuffersink_ctx *libavfilter.AVFilterContext
      	var abuffersink *libavfilter.AVFilter
      
      	var options_dict *libavutil.AVDictionary
      	var options_str string
      	var ch_layout [64]ffcommon.FUint8T
      
      	var err ffcommon.FInt
      
      	/* Create a new filtergraph, which will contain all the filters. */
      	filter_graph = libavfilter.AvfilterGraphAlloc()
      	if filter_graph == nil {
      		fmt.Printf("Unable to create filter graph.\n")
      		return libavutil.ENOMEM
      	}
      
      	/* Create the abuffer filter;
      	 * it will be used for feeding the data into the graph. */
      	abuffer = libavfilter.AvfilterGetByName("abuffer")
      	if abuffer == nil {
      		fmt.Printf("Could not find the abuffer filter.\n")
      		return libavutil.AVERROR_FILTER_NOT_FOUND
      	}
      
      	abuffer_ctx = filter_graph.AvfilterGraphAllocFilter(abuffer, "src")
      	if abuffer_ctx == nil {
      		fmt.Printf("Could not allocate the abuffer instance.\n")
      		return -libavutil.ENOMEM
      	}
      
      	/* Set the filter options through the AVOptions API. */
      	libavutil.AvGetChannelLayoutString((*byte)(unsafe.Pointer(&ch_layout)), int32(len(ch_layout)), 0, INPUT_CHANNEL_LAYOUT)
      	libavutil.AvOptSet(uintptr(unsafe.Pointer(abuffer_ctx)), "channel_layout", ffcommon.StringFromPtr(uintptr(unsafe.Pointer(&ch_layout))), libavutil.AV_OPT_SEARCH_CHILDREN)
      	libavutil.AvOptSet(uintptr(unsafe.Pointer(abuffer_ctx)), "sample_fmt", libavutil.AvGetSampleFmtName(INPUT_FORMAT), libavutil.AV_OPT_SEARCH_CHILDREN)
      	libavutil.AvOptSetQ(uintptr(unsafe.Pointer(abuffer_ctx)), "time_base", libavutil.AVRational{1, INPUT_SAMPLERATE}, libavutil.AV_OPT_SEARCH_CHILDREN)
      	libavutil.AvOptSetInt(uintptr(unsafe.Pointer(abuffer_ctx)), "sample_rate", INPUT_SAMPLERATE, libavutil.AV_OPT_SEARCH_CHILDREN)
      
      	/* Now initialize the filter; we pass NULL options, since we have already
      	 * set all the options above. */
      	err = abuffer_ctx.AvfilterInitStr("")
      	if err < 0 {
      		fmt.Printf("Could not initialize the abuffer filter.\n")
      		return err
      	}
      
      	/* Create volume filter. */
      	volume = libavfilter.AvfilterGetByName("volume")
      	if volume == nil {
      		fmt.Printf("Could not find the volume filter.\n")
      		return libavutil.AVERROR_FILTER_NOT_FOUND
      	}
      
      	volume_ctx = filter_graph.AvfilterGraphAllocFilter(volume, "volume")
      	if volume_ctx == nil {
      		fmt.Printf("Could not allocate the volume instance.\n")
      		return -libavutil.ENOMEM
      	}
      
      	/* A different way of passing the options is as key/value pairs in a
      	 * dictionary. */
      	libavutil.AvDictSet(&options_dict, "volume", fmt.Sprint(VOLUME_VAL), 0)
      	err = volume_ctx.AvfilterInitDict(&options_dict)
      	libavutil.AvDictFree(&options_dict)
      	if err < 0 {
      		fmt.Printf("Could not initialize the volume filter.\n")
      		return err
      	}
      
      	/* Create the aformat filter;
      	 * it ensures that the output is of the format we want. */
      	aformat = libavfilter.AvfilterGetByName("aformat")
      	if aformat == nil {
      		fmt.Printf("Could not find the aformat filter.\n")
      		return libavutil.AVERROR_FILTER_NOT_FOUND
      	}
      
      	aformat_ctx = filter_graph.AvfilterGraphAllocFilter(aformat, "aformat")
      	if aformat_ctx == nil {
      		fmt.Printf("Could not allocate the aformat instance.\n")
      		return -libavutil.ENOMEM
      	}
      
      	/* A third way of passing the options is in a string of the form
      	 * key1=value1:key2=value2.... */
      	// snprintf(options_str, sizeof(options_str),
      	//          "sample_fmts=%s:sample_rates=%d:channel_layouts=0x%"PRIx64,
      	//          av_get_sample_fmt_name(AV_SAMPLE_FMT_S16), 44100,
      	//          (uint64_t)AV_CH_LAYOUT_STEREO);
      	options_str = fmt.Sprintf("sample_fmts=%s:sample_rates=%d:channel_layouts=0x%x",
      		libavutil.AvGetSampleFmtName(libavutil.AV_SAMPLE_FMT_S16), 44100,
      		libavutil.AV_CH_LAYOUT_STEREO)
      	fmt.Println(options_str)
      	err = aformat_ctx.AvfilterInitStr(options_str)
      	if err < 0 {
      		libavutil.AvLog(uintptr(0), libavutil.AV_LOG_ERROR, "Could not initialize the aformat filter.\n")
      		return err
      	}
      
      	/* Finally create the abuffersink filter;
      	 * it will be used to get the filtered data out of the graph. */
      	abuffersink = libavfilter.AvfilterGetByName("abuffersink")
      	if abuffersink == nil {
      		fmt.Printf("Could not find the abuffersink filter.\n")
      		return libavutil.AVERROR_FILTER_NOT_FOUND
      	}
      
      	abuffersink_ctx = filter_graph.AvfilterGraphAllocFilter(abuffersink, "sink")
      	if abuffersink_ctx == nil {
      		fmt.Printf("Could not allocate the abuffersink instance.\n")
      		return -libavutil.ENOMEM
      	}
      
      	/* This filter takes no options. */
      	err = abuffersink_ctx.AvfilterInitStr("")
      	if err < 0 {
      		fmt.Printf("Could not initialize the abuffersink instance.\n")
      		return err
      	}
      
      	/* Connect the filters;
      	 * in this simple case the filters just form a linear chain. */
      	err = abuffer_ctx.AvfilterLink(0, volume_ctx, 0)
      	if err >= 0 {
      		err = volume_ctx.AvfilterLink(0, aformat_ctx, 0)
      	}
      	if err >= 0 {
      		err = aformat_ctx.AvfilterLink(0, abuffersink_ctx, 0)
      	}
      	if err < 0 {
      		fmt.Printf("Error connecting filters\n")
      		return err
      	}
      
      	/* Configure the graph. */
      	err = filter_graph.AvfilterGraphConfig(uintptr(0))
      	if err < 0 {
      		libavutil.AvLog(uintptr(0), libavutil.AV_LOG_ERROR, "Error configuring the filter graph\n")
      		return err
      	}
      
      	*graph = filter_graph
      	*src = abuffer_ctx
      	*sink = abuffersink_ctx
      
      	return 0
      }
      
      /* Do something useful with the filtered data: this simple
       * example just prints the MD5 checksum of each plane to stdout. */
      func process_output(md5 *libavutil.AVMD5, frame *libavutil.AVFrame) ffcommon.FInt {
      	planar := libavutil.AvSampleFmtIsPlanar(libavutil.AVSampleFormat(frame.Format))
      	channels := libavutil.AvGetChannelLayoutNbChannels(frame.ChannelLayout)
      	planes := channels
      	if planar == 0 {
      		planes = 1
      	}
      	bps := libavutil.AvGetBytesPerSample(libavutil.AVSampleFormat(frame.Format))
      	plane_size := bps * frame.NbSamples
      	if planar == 0 {
      		plane_size = plane_size * channels
      	}
      	var i, j ffcommon.FInt
      
      	for i = 0; i < planes; i++ {
      		var checksum [16]ffcommon.FUint8T
      
      		md5.AvMd5Init()
      		ptr := *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(frame.ExtendedData)) + uintptr(i*8)))
      		libavutil.AvMd5Sum((*byte)(unsafe.Pointer(&checksum)), (*byte)(unsafe.Pointer(ptr)), plane_size)
      
      		fmt.Printf("plane %d: 0x", i)
      		for j = 0; j < int32(len(checksum)); j++ {
      			fmt.Printf("%02X", checksum[j])
      		}
      		fmt.Printf("\n")
      	}
      	fmt.Printf("\n")
      
      	return 0
      }
      
      const FRAME_SIZE = 1024
      
      /* Construct a frame of audio data to be filtered;
       * this simple example just synthesizes a sine wave. */
      func get_input(frame *libavutil.AVFrame, frame_num ffcommon.FInt) ffcommon.FInt {
      	var err, i, j ffcommon.FInt
      
      	// #define FRAME_SIZE 1024
      
      	/* Set up the frame properties and allocate the buffer for the data. */
      	frame.SampleRate = INPUT_SAMPLERATE
      	frame.Format = INPUT_FORMAT
      	frame.ChannelLayout = INPUT_CHANNEL_LAYOUT
      	frame.NbSamples = FRAME_SIZE
      	frame.Pts = int64(frame_num) * FRAME_SIZE
      
      	err = frame.AvFrameGetBuffer(0)
      	if err < 0 {
      		return err
      	}
      
      	/* Fill the data for each channel. */
      	for i = 0; i < 5; i++ {
      		// float *data = (float*)frame->extended_data[i];
      		ptr := *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(frame.ExtendedData)) + uintptr(i*8)))
      		data := (*ffcommon.FFloat)(unsafe.Pointer(ptr))
      
      		for j = 0; j < frame.NbSamples; j++ {
      			*(*ffcommon.FFloat)(unsafe.Pointer(uintptr(unsafe.Pointer(data)) + uintptr(4*j))) = float32(math.Sin(2 * libavutil.M_PI * (float64(frame_num + j)) * float64((i+1)/FRAME_SIZE)))
      		}
      	}
      
      	return 0
      }
      
      func main() {
      	// go run ./examples/internalexamples/filter_audio/main.go 1
      	os.Setenv("Path", os.Getenv("Path")+";./lib")
      	ffcommon.SetAvutilPath("./lib/avutil-56.dll")
      	ffcommon.SetAvcodecPath("./lib/avcodec-58.dll")
      	ffcommon.SetAvdevicePath("./lib/avdevice-58.dll")
      	ffcommon.SetAvfilterPath("./lib/avfilter-7.dll")
      	ffcommon.SetAvformatPath("./lib/avformat-58.dll")
      	ffcommon.SetAvpostprocPath("./lib/postproc-55.dll")
      	ffcommon.SetAvswresamplePath("./lib/swresample-3.dll")
      	ffcommon.SetAvswscalePath("./lib/swscale-5.dll")
      
      	genDir := "./out"
      	_, err := os.Stat(genDir)
      	if err != nil {
      		if os.IsNotExist(err) {
      			os.Mkdir(genDir, 0777) //  Everyone can read write and execute
      		}
      	}
      
      	main0()
      }
      
      
      运行结果如下:

      2023-04-15:ffmpeg的filter_audio.c的功能是生成一个正弦波音频,然后通过简单的滤镜链,最后输出数据的MD5校验和。请用go语言改写。

      版权声明:本文内容来自第三方投稿或授权转载,原文地址:https://blog.51cto.com/moonfdd/6266757,作者:福大大架构师每日一题,版权归原作者所有。本网站转在其作品的目的在于传递更多信息,不拥有版权,亦不承担相应法律责任。如因作品内容、版权等问题需要同本网站联系,请发邮件至ctyunbbs@chinatelecom.cn沟通。

      上一篇:linux系统strings工具使用

      下一篇:Java 中 StringBuffer 线程安全的小介绍

      相关文章

      2025-04-01 10:29:12

      Pow(x, n)。实现 pow(x, n) ,即计算 x 的 n 次幂函数(即,x**n)。

      遍历n的二进制位。 时间复杂度:O(logn)。

      2025-04-01 10:29:12
      golang , java , 时间复杂度 , 空间复杂度
      2025-04-01 10:29:12

      golang与 C++数据结构类型对应关系是怎样的?

      uintptr和unsafe.Pointer相当于c++的void*,也就是任意指针。

      2025-04-01 10:29:12
      c++ , golang , 函数指针 , 数据结构
      2025-04-01 10:29:01

      给定一个矩阵matrix,值有正、负、0,蛇可以空降到最左列的任何一个位置

      给定一个矩阵matrix,值有正、负、0,蛇可以空降到最左列的任何一个位置

      2025-04-01 10:29:01
      golang , i++ , java代码 , 算法
      2025-04-01 10:29:01

      golang如何写一个插件?

      golang如何写一个插件?

      2025-04-01 10:29:01
      go , Go , golang , 加载
      2025-04-01 10:29:01

      青蛙过河。 一只青蛙想要过河。 假定河流被等分为若干个单元格,并且在每一个单元格内都有可能放有一块石子(也有可能没有)。

      青蛙过河。 一只青蛙想要过河。 假定河流被等分为若干个单元格,并且在每一个单元格内都有可能放有一块石子(也有可能没有)。 青蛙可以跳上石子,但是不可以跳入水中。

      2025-04-01 10:29:01
      golang , java代码 , 升序 , 算法
      2025-03-24 08:53:15

      如何用代码免费格式转换视频/音频(0基础手把手教学)

      如何用代码免费格式转换视频/音频(0基础手把手教学)

      2025-03-24 08:53:15
      ffmpeg , 打开 , 格式 , 示例 , 转换
      2025-01-17 09:16:08

      音视频八股文(5)--SDL音视频渲染实战。会使用就行,不需要深究。

      音视频八股文(5)--SDL音视频渲染实战。会使用就行,不需要深究。

      2025-01-17 09:16:08
      ffmpeg , 多线程 , 数据 , 音视频
      2025-01-17 09:15:58

      K 个关闭的灯泡。 N 个灯泡排成一行,编号从 1 到 N 。最初,所有灯泡都关闭。每天只打开一个灯泡,直到 N 天后所有灯泡都打开。

      K 个关闭的灯泡。 N 个灯泡排成一行,编号从 1 到 N 。最初,所有灯泡都关闭。每天只打开一个灯泡,直到 N 天后所有灯泡都打开。

      2025-01-17 09:15:58
      docker , golang , java , kubernetes , 数组
      2025-01-17 09:15:58

      一场电影开始和结束时间可以用一个小数组来表示[“07:30“,“12:00“],已知有2000场电影开始和结束都在同一天,这一天从00:00开始到23:59结束,一定要选3场完全不冲突的电影来观看,返回最大的观影时间。

      一场电影开始和结束时间可以用一个小数组来表示[“07:30”,“12:00”],已知有2000场电影开始和结束都在同一天,这一天从00:00开始到23:59结束,一定要选3场完全不冲突的电影来观看,返回最大的观影时间。

      2025-01-17 09:15:58
      golang , 开发语言 , 数组 , 空间复杂度 , 算法
      2025-01-17 09:15:58

      音视频八股文(6)-- ffmpeg大体介绍和内存模型

      音视频八股文(6)-- ffmpeg大体介绍和内存模型

      2025-01-17 09:15:58
      ffmpeg , 数据 , 音视频
      查看更多
      推荐标签

      作者介绍

      天翼云小翼
      天翼云用户

      文章

      33561

      阅读量

      5235014

      查看更多

      最新文章

      golang与 C++数据结构类型对应关系是怎样的?

      2025-04-01 10:29:12

      给定一个矩阵matrix,值有正、负、0,蛇可以空降到最左列的任何一个位置

      2025-04-01 10:29:01

      青蛙过河。 一只青蛙想要过河。 假定河流被等分为若干个单元格,并且在每一个单元格内都有可能放有一块石子(也有可能没有)。

      2025-04-01 10:29:01

      如何用代码免费格式转换视频/音频(0基础手把手教学)

      2025-03-24 08:53:15

      音视频八股文(5)--SDL音视频渲染实战。会使用就行,不需要深究。

      2025-01-17 09:16:08

      一场电影开始和结束时间可以用一个小数组来表示[“07:30“,“12:00“],已知有2000场电影开始和结束都在同一天,这一天从00:00开始到23:59结束,一定要选3场完全不冲突的电影来观看,返回最大的观影时间。

      2025-01-17 09:15:58

      查看更多

      热门文章

      kubectl源码分析之explain

      2023-02-16 08:23:43

      kubectl源码分析之kustomize

      2023-02-16 08:59:22

      Golang:使用标准库crypto/aes实现AES加密和解密

      2023-03-16 07:45:55

      Golang:4.3、Golang 并发编程-WaitGroup实现同步

      2023-03-01 09:32:31

      machine golang 并发工具包使用

      2024-07-01 01:33:26

      Golang:4.4、Golang 并发编程-runtime包

      2023-02-20 06:06:28

      查看更多

      热门标签

      java Java python 编程开发 代码 开发语言 算法 线程 Python html 数组 C++ 元素 javascript c++
      查看更多

      相关产品

      弹性云主机

      随时自助获取、弹性伸缩的云服务器资源

      天翼云电脑(公众版)

      便捷、安全、高效的云电脑服务

      对象存储

      高品质、低成本的云上存储服务

      云硬盘

      为云上计算资源提供持久性块存储

      查看更多

      随机文章

      以下go语言代码输出什么?

      加一。给定一个由 整数 组成的 非空 数组所表示的非负整数,在该数的基础上加一。最高位数字存放在数组的首位, 数组中每个元素只存储单个数字。

      golang错误:The process cannot access the file because it is being used by another process

      avio_list_dir.c 是 FFmpeg 库自带的一个示例程序,它提供了列出目录中所有文件和子目录的功能,请用go语言改写。

      单词缩写。 给定一个由n个不重复非空字符串组成的数组,你需要按照以下规则为每个单词生成最小的缩写。 初始缩写由起始字母+省略字母的数量+结尾字母组成。

      手写代码:怎么用数组实现不超过固定大小的队列?

      • 7*24小时售后
      • 无忧退款
      • 免费备案
      • 专家服务
      售前咨询热线
      400-810-9889转1
      关注天翼云
      • 旗舰店
      • 天翼云APP
      • 天翼云微信公众号
      服务与支持
      • 备案中心
      • 售前咨询
      • 智能客服
      • 自助服务
      • 工单管理
      • 客户公告
      • 涉诈举报
      账户管理
      • 管理中心
      • 订单管理
      • 余额管理
      • 发票管理
      • 充值汇款
      • 续费管理
      快速入口
      • 天翼云旗舰店
      • 文档中心
      • 最新活动
      • 免费试用
      • 信任中心
      • 天翼云学堂
      云网生态
      • 甄选商城
      • 渠道合作
      • 云市场合作
      了解天翼云
      • 关于天翼云
      • 天翼云APP
      • 服务案例
      • 新闻资讯
      • 联系我们
      热门产品
      • 云电脑
      • 弹性云主机
      • 云电脑政企版
      • 天翼云手机
      • 云数据库
      • 对象存储
      • 云硬盘
      • Web应用防火墙
      • 服务器安全卫士
      • CDN加速
      热门推荐
      • 云服务备份
      • 边缘安全加速平台
      • 全站加速
      • 安全加速
      • 云服务器
      • 云主机
      • 智能边缘云
      • 应用编排服务
      • 微服务引擎
      • 共享流量包
      更多推荐
      • web应用防火墙
      • 密钥管理
      • 等保咨询
      • 安全专区
      • 应用运维管理
      • 云日志服务
      • 文档数据库服务
      • 云搜索服务
      • 数据湖探索
      • 数据仓库服务
      友情链接
      • 中国电信集团
      • 189邮箱
      • 天翼企业云盘
      • 天翼云盘
      ©2025 天翼云科技有限公司版权所有 增值电信业务经营许可证A2.B1.B2-20090001
      公司地址:北京市东城区青龙胡同甲1号、3号2幢2层205-32室
      • 用户协议
      • 隐私政策
      • 个人信息保护
      • 法律声明
      备案 京公网安备11010802043424号 京ICP备 2021034386号