首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏JadePeng的技术博客

    Html 5 video/audio 格式转换 ogg

    try this if you have issues with A/V sync Subtitles options:       --subtitles file                 use subtitles from the given file (SubRip (.srt) format)       --subtitles-encoding encoding    set --subtitles-language language    set subtitles language (de, en_GB, etc)       --subtitles-category category    set subtitles category (default "subtitles")       --subtitles-ignore-non-utf8      subtitles.srt (same, with subtitles)   cat something.dv | ffmpeg2theora -f dv -o output.ogv -   Encode

    2.6K100发布于 2018-03-12
  • 来自专栏数据小魔方

    不经意间又发现了一个有趣又炫酷的包~

    theme="airbnb") + scale_fill_tech(theme="airbnb") + labs(title="Airbnb theme", subtitle="now with subtitles scale_fill_tech(theme="airbnb") + labs(title="Airbnb theme", subtitle="now with subtitles + scale_fill_tech(theme="etsy") + labs(title="Etsy theme", subtitle="now with subtitles + scale_fill_tech(theme="google") + labs(title="Google theme", subtitle="now with subtitles scale_fill_tech(theme="twitter") + labs(title="Twitter theme", subtitle="now with subtitles

    73960发布于 2018-04-11
  • 来自专栏算法修养

    CodeForces 670C Cinema(排序,离散化)

    the movies is characterized by two distinct numbers — the index of audio language and the index of subtitles pleased if he knows the audio language of the movie, will be almost satisfied if he knows the language of subtitles be not satisfied if he does not know neither one nor the other (note that the audio language and the subtitles fifth line contains m positive integers c1, c2, ..., cm (1 ≤ cj ≤ 109), where cj is the index of subtitles It is guaranteed that audio languages and subtitles language are different for each movie, that is bj

    75870发布于 2018-04-26
  • 来自专栏最新Python入门基础合集

    基于OpenAI Whisper AI模型自动生成视频字幕:全面解析与实战指南

    transcript.append((start_time, end_time, text)) return transcript # 生成SRT字幕文件 def generate_subtitles (transcript, output_path): subtitles = [] for i, (start_time, end_time, text) in enumerate(transcript (subtitle) # 创建SRT文件 with open(output_path, "wb") as f: f.write(srt.compose(subtitles audio_path) # 识别语音 transcript = recognize_speech(audio_path) # 生成字幕 generate_subtitles (transcript, output_srt_path) print(f"Subtitles generated and saved to {output_srt_path}")

    2.6K10编辑于 2024-12-28
  • 来自专栏Michael阿明学习之路

    使用edge-tts将文字转成语音

    --write-media hello.mp3 --write-subtitles hello.vtt 改变速度、音量、音调 $ edge-tts --rate=-50% --text "Hello, --write-media hello_with_rate_halved.mp3 --write-subtitles hello_with_rate_halved.vtt $ edge-tts --volume --write-media hello_with_volume_halved.mp3 --write-subtitles hello_with_volume_halved.vtt $ edge-tts --write-media hello_with_pitch_halved.mp3 --write-subtitles hello_with_pitch_halved.vtt 也可以使用代码,主要的 api

    3.3K00编辑于 2024-05-24
  • 来自专栏机器学习与统计学

    GPT-4又帮了我一个小忙

    以下是一个简单的Python脚本,它将执行这个任务: # 假设第一个文本储存在english_subtitles.srt中,第二个文本储存在translated_texts.json中 # 读取SRT 文件 with open('english_subtitles.srt', 'r', encoding='utf-8') as file: english_subtitles = file.readlines ('\n') / 2 # 初始化索引和结果列表 index = 0 result = [] # 遍历英文字幕列表 for line in english_subtitles: if '--> strip() + '\n') index += 1 result.append('\n') # 写入最终的翻译字幕文件 with open('translated_subtitles.srt ', 'w', encoding='utf-8') as file: file.writelines(result) print("翻译字幕已经成功保存为translated_subtitles.srt

    38810编辑于 2024-01-17
  • 来自专栏全栈程序员必看

    android vlc 字幕乱码,VLC播放器中文字幕乱码问题解决方法[通俗易懂]

    其中第二种方法是最方便,最一劳永逸的,因此我推荐大家使用第二种方法,具体步骤如下: 1,打开VLC的Preferences窗口(按苹果键+,),依次选择Video -> Subtitles/OSD -> renderer,右边的设置区第一项为Font,点击Browse按钮选择一项中文字体, 2,依次选择Preferences窗口左边菜单框的Input / Codecs -> Other codecs ->Subtitles ,将右边的设置区中Subtitles text encoding设置为GBK,同时取消UTF-8 subtitlesautodetection前面的勾 3,重启VLC,好了,享受你的无乱码电影吧。

    5.9K10编辑于 2022-09-15
  • 来自专栏QQ音乐技术团队的专栏

    ExoPlayer 自适应流切换分析

    /eng/prog_index.m3u8" #EXT-X-MEDIA:TYPE=SUBTITLES,GROUP-ID="subs",NAME="English (Forced)",DEFAULT=NO, AUTOSELECT=NO,FORCED=YES,LANGUAGE="en",URI="subtitles/eng_forced/prog_index.m3u8" #EXT-X-MEDIA:TYPE=SUBTITLES /fra/prog_index.m3u8" #EXT-X-MEDIA:TYPE=SUBTITLES,GROUP-ID="subs",NAME="Français (Forced)",DEFAULT=NO ,AUTOSELECT=NO,FORCED=YES,LANGUAGE="fr",URI="subtitles/fra_forced/prog_index.m3u8" #EXT-X-MEDIA:TYPE= AUTOSELECT=NO,FORCED=YES,LANGUAGE="es",URI="subtitles/spa_forced/prog_index.m3u8" #EXT-X-MEDIA:TYPE=SUBTITLES

    2.8K31编辑于 2023-10-23
  • 来自专栏学海无涯

    SwiftUI-跨平台

    2019.10.21", "2019.10.22","2019.10.23","2019.10.24","2019.10.25","2019.10.26","2019.10.27"] let subtitles ) .font(.system(.title)) Text(self.subtitles 2019.10.21", "2019.10.22","2019.10.23","2019.10.24","2019.10.25","2019.10.26","2019.10.27"] let subtitles ) .font(.system(.title)) Text(self.subtitles 2019.10.21", "2019.10.22","2019.10.23","2019.10.24","2019.10.25","2019.10.26","2019.10.27"] let subtitles

    2.2K20发布于 2020-03-20
  • 来自专栏网罗开发

    仿淘宝类电商秒杀分页控件(附源码)

    titles = @[@"8:00",@"10:00",@"12:00",@"14:00",@"16:00",@"18:00",@"20:00"]; NSArray *subTitles self.controllers = controllers; // 设置标题数组 self.titles = titles; // 设置副标题数组 self.subTitles = subTitles; // 设置初始下标 self.selectIndex = 1; } - (void)didReceiveMemoryWarning { [super { _subTitles = [subTitles copy]; self.gfSegmentedControl.subTitles = subTitles; } 6 结语 哈哈,这也算是自己第一次封装一个完整易用的组件,从中学习到了不少东西。

    1.8K20发布于 2021-04-28
  • 来自专栏Dance with GenAI

    零代码编程:用ChatGPT将TXT文本批量转Mp3语音文件

    --write-media hello.mp3 --write-subtitles hello.vtt Changing rate, volume and pitch,It is possible to --write-media hello_with_rate_halved.mp3 --write-subtitles hello_with_rate_halved.vtt $ edge-tts --volume --write-media hello_with_volume_halved.mp3 --write-subtitles hello_with_volume_halved.vtt $ edge-tts --write-media hello_with_pitch_halved.mp3 --write-subtitles hello_with_pitch_halved.vtt In addition,

    1.1K10编辑于 2024-06-24
  • 来自专栏程序员小助手

    短视频字幕提取合成超简单,掌握ffmpeg这个小技巧

    对音频文件流拷贝,并使用 subtitle 过滤器,基本用法如下: ffmpeg -i input.mkv -filter_complex "subtitles=input.mkv" -c:a copy output.mp4 输入流当然也可以任意指定,比如使用第三路视频流,第五路字幕流,第一路音频流,需要这样改写指令: ffmpeg -i input.mkv -filter_complex "[0:v:2]subtitles 只要像下面这么写: ffmpeg -i input.mp4 -filter_complex "subtitles=your-subtitles-file.srt" -c:a copy output.mp4

    4.2K20发布于 2020-06-04
  • 来自专栏音视频技术

    什么是HLS(HTTP Live Streaming)?

    #EXTM3U #EXT-X-MEDIA:URI="subtitle/lang_en/subtitle_index.m3u8",TYPE=SUBTITLES,GROUP-ID="subtitles", ="subtitles" media-4/index.m3u8 #EXT-X-STREAM-INF:BANDWIDTH=1494976,AVERAGE-BANDWIDTH=891779,RESOLUTION =1280x720,CODECS="avc1.640028,mp4a.40.2",SUBTITLES="subtitles" media-5/index.m3u8 #EXT-X-STREAM-INF :BANDWIDTH=3262928,AVERAGE-BANDWIDTH=1894009,RESOLUTION=1920x1080,CODECS="avc1.640028,mp4a.40.2",SUBTITLES ="subtitles" media-6/index.m3u8 #EXT-X-I-FRAME-STREAM-INF:BANDWIDTH=161304,RESOLUTION=854x480,CODECS

    5K31编辑于 2022-02-11
  • 来自专栏进步集

    【英语思考】How to think in English: Building Your English Brain

    smart use correct punctuation make it vivid Watching Movies passive feeling generally tempo subtitles pixar finding nemo cars monsters inc friends harry potter active choose a film you know well withot subtitles

    27220编辑于 2022-11-13
  • 来自专栏全栈程序员必看

    SRT字幕格式_手机srt文件怎么加入视频

    SRT特效设置 ffmpeg中srt相关用例 1 SRT基本格式 SRT字幕通常以srt作为后缀,作为外挂字幕,多数主流播放器都支持直接加载并显示SRT字幕,具体细节看参考SubRip (.SRT) subtitles srt文件,命令如下: ffmpeg -i a.ass b.srt ffmpeg -i c.vtt d.srt ffmpeg -i e.lyric f.srt 使用ffplay现在字幕需要使用subtitles /ffplay test.mp4 -vf subtitles=test.srt 对于FFmpeg中的srt demuxer的实现逻辑,基本上是参考SRT基本格式实现的,其中并未支持各种格式,具体代码请查看

    3.1K20编辑于 2022-09-20
  • 来自专栏媒矿工厂

    关于字幕你想知道的一切

    Q: closed captions 和 subtitles 的区别是什么? A: 术语 subtitles 和 captions,subtitles 通常会指 open captions,但这也和地域有关,在英国使用 subtitles 指的就是 closed captions

    2.9K20发布于 2021-08-25
  • 来自专栏刘悦的技术博客

    基于Python3(Autosub)以及Ffmpeg配合GoogleTranslation(谷歌翻译)为你的影片实现双语版字幕(逐字稿)

    concurrent API requests to make -o OUTPUT, --output OUTPUT Output path for subtitles (by default, subtitles are saved in the same directory and name as the source file -D DST_LANGUAGE, --dst-language DST_LANGUAGE Desired language for the subtitles my.srt:force_style='Fontsize=24,PrimaryColour=&H0000ff&'" -c:a copy output.mp4     这里使用force_style过滤器中的subtitles 效果是这样的:     关于字幕更多的设置方案请参照官方文档:http://ffmpeg.org/ffmpeg-all.html#subtitles-1     结语:双语字幕可以轻松的让影片的播放量得到稳定的增长

    1.2K20编辑于 2022-08-08
  • 来自专栏Mintimate's Blog

    在Linux/Mac/Windows上配置FFmpeg开源音频工具,轻松完成视频转码、音频混合等操作 - 雨月空间站

    e.g. ffmpeg -y -i 1.mkv -vf subtitles=1.ass out.mp4 另外,如果是MKV这样内嵌多音轨或多字幕的文件,我们可以使用map进行提取。 方法1:适用于subrip类型字幕 ffmpeg -i Hotel.Transylvania.4.Transformania.2022.中英字幕.mkv -filter_complex "[0:v:0]subtitles filter_complex "[0:v][0:s]overlay[v]" -map "[v]" -map 0:a:0 out.mp4 其中: 方法1中,-filter_complex "[0:v:0]subtitles ffmpeg -y -i 「视频全名」 -vf subtitles=「字幕文件名」 -vcodec h264 「导出的视频文件」.mp4 或者这个,crf最高,但是清晰度很高: ffmpeg -y - i filename.mkv -vf subtitles='filename.mkv' -disposition:s default+forced -c:v libx264 -c:a libmp3lame

    5K30编辑于 2023-03-10
  • 来自专栏FreeBuf

    看个视频也被黑?加载字幕文件触发播放器漏洞实现系统入侵

    入侵检测IPS签名定义 Popcorn Time Subtitles Remote Code Execution Kodi Open Subtitles Addon Remote Code Execution VLC ParseJSS Null Skip Subtitle Remote Code Execution Stremio Subtitles Remote Code Execution 攻击的传播实现方式

    1.2K80发布于 2018-02-26
  • 来自专栏AI科技评论

    太魔幻了!DALL·E 2 居然能用自创的语言来生成图像,AI模型的可解释性再一次暴露短板

    例如,给出文本提示:Two farmers talking about vegetables,with subtitles. Two people talking about vegetables, with subtitles.(两个人在谈论蔬菜,有字幕。) 输入文本“Two whales talking about food, with subtitles”(两只鲸鱼在谈论食物,有字幕),DALL·E-2 给出了如下的图片回执(左)~ 上面写着 “Wa ch 我不太相信我们在“farmers with subtitles”的图片中看到的文字和推断的单词含义之间有很强的相关性。 例如,"Two whales talking about food, with subtitles"(两只鲸鱼在谈论食物,有字幕)产生了一个带有文字 "Wa ch zod ahaakes rea" 的图像

    1.3K10编辑于 2022-06-02
领券