fun cmd commands

本文详细介绍了计算机科学领域的核心技术,包括但不限于前端开发、后端开发、移动开发、游戏开发、大数据开发、开发工具等细分领域。从核心概念到具体实践,为读者提供了一个全面的技术指南。

①cmd下输入(:并回车。下面的看着办吧。

②cmd下输入   telnet towel.blinkenlights.nl    并回车,你会看到什么呢?

③ tsshutdn-------60秒倒计时关机命令(没试。)

④ ononce -p ----15秒关机(没试。)

⑤narrator-------屏幕“讲述人”(还挺好用。。)

⑥iexpress-------木马捆绑工具,系统自带(这个相信大家都知道了。)

请解决implementation 'com.github.AnJoiner:FFmpegCommand:1.2.2-lite' fun getFFmpegCmd(inputFilePath: String, outputFilePath: String, watermarkFilePath: String): Array<String?>{ var height = videoHeight - DisplayHelper.dip2px(this, 50f) var width = videoWidth - DisplayHelper.dip2px(this, 100f) var strCommand = "ffmpeg -y -i ${inputFilePath} -i ${watermarkFilePath} -filter_complex [0:v]scale=iw:ih[outv0];[1:0]scale=0.0:0.0[outv1];[outv0][outv1]overlay=${width}:${height} -preset superfast ${outputFilePath}" val commands: Array<String?> = strCommand.split(" ".toRegex()).toTypedArray() return commands } fun addBitmapToVideo(inputFilePath: String, outputFilePath: String, watermarkFilePath: String) { LogUtil.d("inputFilePath=${inputFilePath},\noutputFilePath=${outputFilePath}") val addWaterMark = getFFmpegCmd(inputFilePath, watermarkFilePath, outputFilePath) try { CoroutineScope(Dispatchers.IO).launch { FFmpegCommand.runCmd(addWaterMark, object : IFFmpegCallBack { override fun onCancel() { } override fun onComplete() { finishVideo(VIDEO_COMPLETE) } override fun onError(errorCode: Int, errorMsg: String?) { LogUtil.w("水印视频错误_onError=${errorCode},${errorMsg}") finishVideo(VIDEO_ERROR) } override fun onProgress(progress: Int, pts: Long) { finishVideo(VIDEO_PROGRESS, progress) } override fun onStart() { } }) } } catch (e: Throwable) { // FFmpeg 不支持当前设备 LogUtil.w("Exception-e=${e.message}") } } backtrace: #00 pc 0x00000000000dba18 /apex/com.android.runtime/lib64/bionic/libc.so (strspn+12) #01 pc 0x0000000000339dec /data/app/~~EKJofAZ4BmKzTXggwqbGhw==/com.zsyj.facefancy-LE00NsHFRSow2FsnifHViQ==/lib/arm64/libffmpeg-org.so (avfilter_graph_parse2+80)
07-14
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值