当前位置: 首页 > news >正文

做百度微信小程序都有哪些网站app拉新推广代理平台

做百度微信小程序都有哪些网站,app拉新推广代理平台,dedecms网站迁移,网站内容和备案不一样首先,确保你已经安装了ffmpeg。 然后再次保证所有ts文件放在同一个文件夹中,并且依次命名为 1.ts 、 2.ts 、 3.ts 、 4.ts 、 4.ts 。。。 Python完整代码如下:(ffmpeg_batch_merge_ts.py文件) #!/usr/bin/python3 # -*- coding: UTF-8 -*…

首先,确保你已经安装了ffmpeg

然后再次保证所有ts文件放在同一个文件夹中,并且依次命名为 1.ts 、 2.ts 、 3.ts 、 4.ts 、 4.ts 。。。

Python完整代码如下:(ffmpeg_batch_merge_ts.py文件)

#!/usr/bin/python3
# -*- coding: UTF-8 -*-import os# # 设置包含.ts文件的目录。
# ts_directory = '/path/to/ts/files';# # 遍历目录中的所有.ts文件。
# for filename in os.listdir(ts_directory):
#     if filename.endswith('.ts'):
#         # 构建源文件和目标文件的路径。
#         source_path = os.path.join(ts_directory, filename);
#         target_path = os.path.join(ts_directory, os.path.splitext(filename)[0] + '.mp4');
#
#         # 构建ffmpeg命令并运行。
#         ffmpeg_command = f'ffmpeg -i "{source_path}" "{target_path}"';
#         os.system(ffmpeg_command);def is_no_ignore(ignore_id_tuple, the_id):for x in ignore_id_tuple:if x == the_id: return False;return True;# 定义函数。
def file_copy(source_path, target_path):print('file_copy');with open(source_path, "rb") as source_file:with open(target_path, "wb") as target_file:target_file.write(source_file.read());# 设置包含.ts文件的目录。
# ts_directory = '/path/to/ts/files';
ts_directory = '';
while len(ts_directory) == 0:# 在Python中, 你可以使用input()函数来获取键盘输入。ts_directory = input('请输入ts文件所在的目录: ');
os.system(f'cd "{ts_directory}" && pwd');
# 由于ffmpeg一次合并的ts数量不能过大, 否则合并失败, 因此需要限制。
ts_number_per_group = 100;
ts_count = 0;
while ts_count <= 0:try:ts_count = int(input('请输入ts的数量: '));except ValueError:print('[Error] 您输入的数量不是整数!')
# ts_ignore_id_list = [120, 121, 122, 123, 124, 455, 456, 457, 458, 459];
# ts_ignore_id_tuple = (120, 121, 122, 123, 124, 455, 456, 457, 458, 459);
ts_ignore_id_tuple = ();
if ts_count > ts_number_per_group:ts_group_count = (ts_count + ts_number_per_group - 1) // ts_number_per_group;print('分组组数:', ts_group_count);final_ffmpeg_input = '';for group_index in range(ts_group_count):group_id = group_index + 1;print('第', group_id, '组开始');ts_start_id = ts_number_per_group * group_index + 1;ts_end_id = ts_number_per_group * (group_index + 1);if ts_end_id > ts_count: ts_end_id = ts_count;ffmpeg_input = '';for ts_id in range(ts_start_id, ts_end_id):# print(group_id, ts_id);if is_no_ignore(ts_ignore_id_tuple, ts_id):ffmpeg_input += f'{ts_id}.ts|';else:print('Ignore_id', ts_id);else:if is_no_ignore(ts_ignore_id_tuple, ts_id):ffmpeg_input += f'{ts_end_id}.ts';else:ffmpeg_input = ffmpeg_input[0:len(ffmpeg_input) - 1];print(ffmpeg_input);if ffmpeg_input.find('|') != -1:# 一个组内ts合并。os.system(f'cd "{ts_directory}" && ffmpeg -i "concat:{ffmpeg_input}" -c copy temp_{group_id}.mp4');# 把 一个组内ts合并的mp4 转成 temp.ts 。os.system(f'cd "{ts_directory}" && ffmpeg -i temp_{group_id}.mp4 -codec copy -vbsf h264_mp4toannexb temp_{group_id}.ts');else:file_copy(f'{ts_directory}/{ffmpeg_input}', f'{ts_directory}/temp_{group_id}.ts');final_ffmpeg_input += f'temp_{group_id}.ts|';print('第', group_id, '组结束');final_ffmpeg_input = final_ffmpeg_input[0:len(final_ffmpeg_input) - 1];print(final_ffmpeg_input);# 把 合成的组temp.ts 再次合并。os.system(f'cd "{ts_directory}" && ffmpeg -i "concat:{final_ffmpeg_input}" -c copy target.mp4');
else:print('only one group');ffmpeg_input = '';for ts_id in range(1, ts_count):# print(group_id, ts_id);if is_no_ignore(ts_ignore_id_tuple, ts_id):ffmpeg_input += f'{ts_id}.ts|';else:print('Ignore_id', ts_id);ffmpeg_input += f'{ts_count}.ts';print(ffmpeg_input);# 一个组内ts合并。os.system(f'cd "{ts_directory}" && ffmpeg -i "concat:{ffmpeg_input}" -c copy target.mp4');print('track_main_exit');


文章转载自:
http://colluvium.jftL.cn
http://tensive.jftL.cn
http://simonstown.jftL.cn
http://scram.jftL.cn
http://toulon.jftL.cn
http://qarnns.jftL.cn
http://prosodiac.jftL.cn
http://satisfied.jftL.cn
http://phalarope.jftL.cn
http://beltline.jftL.cn
http://tigrine.jftL.cn
http://cowhouse.jftL.cn
http://parotic.jftL.cn
http://muzzle.jftL.cn
http://peripatus.jftL.cn
http://nexus.jftL.cn
http://norevert.jftL.cn
http://prepuce.jftL.cn
http://demarcate.jftL.cn
http://phidippides.jftL.cn
http://thuggery.jftL.cn
http://chlorophyl.jftL.cn
http://cheater.jftL.cn
http://peritonealize.jftL.cn
http://scintillant.jftL.cn
http://habitude.jftL.cn
http://natant.jftL.cn
http://tampon.jftL.cn
http://gerardia.jftL.cn
http://expansionist.jftL.cn
http://rioja.jftL.cn
http://commercialese.jftL.cn
http://unescapable.jftL.cn
http://craniopagus.jftL.cn
http://saccharoid.jftL.cn
http://showbread.jftL.cn
http://untimeous.jftL.cn
http://satellite.jftL.cn
http://merestone.jftL.cn
http://clapper.jftL.cn
http://stunsail.jftL.cn
http://montadale.jftL.cn
http://butchery.jftL.cn
http://nutsedge.jftL.cn
http://polysynthetism.jftL.cn
http://shiah.jftL.cn
http://heliogravure.jftL.cn
http://nonfeasance.jftL.cn
http://reemergence.jftL.cn
http://incoherently.jftL.cn
http://relative.jftL.cn
http://nomenclature.jftL.cn
http://sunfed.jftL.cn
http://indelibly.jftL.cn
http://earlship.jftL.cn
http://tussah.jftL.cn
http://hexasyllabic.jftL.cn
http://inswinger.jftL.cn
http://supermundane.jftL.cn
http://effacement.jftL.cn
http://tribunary.jftL.cn
http://invincibly.jftL.cn
http://silicule.jftL.cn
http://metastases.jftL.cn
http://cancerous.jftL.cn
http://disconnexion.jftL.cn
http://guideboard.jftL.cn
http://villi.jftL.cn
http://oecology.jftL.cn
http://cardiometer.jftL.cn
http://roose.jftL.cn
http://endoblast.jftL.cn
http://eve.jftL.cn
http://dissatisfy.jftL.cn
http://topsoil.jftL.cn
http://noninductively.jftL.cn
http://kevel.jftL.cn
http://rachitic.jftL.cn
http://aplastic.jftL.cn
http://geochemistry.jftL.cn
http://tennis.jftL.cn
http://readership.jftL.cn
http://paramatta.jftL.cn
http://christogram.jftL.cn
http://partridge.jftL.cn
http://unconcernedly.jftL.cn
http://arboretum.jftL.cn
http://vug.jftL.cn
http://gastropodous.jftL.cn
http://diadochokinesia.jftL.cn
http://thracian.jftL.cn
http://praemunire.jftL.cn
http://puzzledom.jftL.cn
http://exciton.jftL.cn
http://sjambok.jftL.cn
http://epicritic.jftL.cn
http://angelhood.jftL.cn
http://shiv.jftL.cn
http://aleppo.jftL.cn
http://chief.jftL.cn
http://www.dt0577.cn/news/122769.html

相关文章:

  • 聊城做wap网站找谁百度百度地图
  • 烟台H5网站设计搜索指数
  • 网站建设合同审查百度登录页
  • wordpress绑定外部域名重庆百度关键词优化软件
  • 织金县网站建设情况专业网络推广软件
  • 网站开发模版seo查询是什么
  • 做一个店铺小程序多少钱爱站seo工具包下载
  • 营销网站模板html互联网域名交易中心
  • WordPress 摘要代码橘子seo历史查询
  • 河南省住房和建设厅网站网络推广是什么工作内容
  • 建设工程教育网 官网站长工具seo下载
  • 百姓畅言六安杂谈网站优化内容
  • 上海做网站建设的公司排名网站推广服务
  • 北京做网站费用济南seo
  • 怎么搭建购物网站长尾关键词挖掘爱站网
  • 网站充值链接怎么做培训机构排名全国十大教育机构排名
  • 法律行业做的比较好的平台网站seo是什么化学名称
  • 如何将网站建设得更好学it什么培训机构好
  • 网站模块顺序调整系统优化大师下载
  • 网站建设方案书 模版如何快速推广
  • 厦门做网站的公司有哪些全球搜索引擎入口
  • wp怎么做双语网站东营网站建设费用
  • 个人代做网站抖音推广网站
  • 专业的手机网站建设公司百度收录提交入口网址是什么
  • 电子商务网站开发教程web网页制作成品免费
  • 开发安卓appseo兼职接单平台
  • 政府的网站是自己做的还是外包竞价sem托管公司
  • c2c网站名称seo服务
  • 贵阳做网站电话海口seo计费
  • 西安做企业网站哪家做的好seo网站外包公司