<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:wfw="http://wellformedweb.org/CommentAPI/">
<channel>
<title>解说文案 - 自动剪辑</title>
<link>https://xwean.com/tag/%E8%87%AA%E5%8A%A8%E5%89%AA%E8%BE%91/</link>
<atom:link href="https://xwean.com/feed/tag/%E8%87%AA%E5%8A%A8%E5%89%AA%E8%BE%91/" rel="self" type="application/rss+xml" />
<language>zh-CN</language>
<description></description>
<lastBuildDate>Tue, 31 Jan 2023 13:20:00 +0800</lastBuildDate>
<pubDate>Tue, 31 Jan 2023 13:20:00 +0800</pubDate>
<item>
<title>自动字幕剪辑 开源 DialogueExtractor-master  </title>
<link>https://xwean.com/1050.html</link>
<guid>https://xwean.com/1050.html</guid>
<pubDate>Tue, 31 Jan 2023 13:20:00 +0800</pubDate>
<dc:creator>hhs</dc:creator>
<description><![CDATA[DialogueExtractor-master可以根据字幕进行剪辑的软件在GitHub上是一个开源项目但是，经过了8小时的疯狂折腾，最终还是以失败告终==也问了作者大大==，里面有些小bug ...]]></description>
<content:encoded xml:lang="zh-CN"><![CDATA[
<h3>DialogueExtractor-master</h3><p>可以根据字幕进行剪辑的软件</p><p>在GitHub上是一个开源项目</p><p><strong>但是</strong>，经过了8小时的疯狂折腾，最终还是以失败告终</p><p>==也问了作者大大==，里面有些小bug （也可能是我操作失误）</p><p>下面把心得和遇到的问题和大家分享一下</p><p>如果有大佬知道问题所在，还请留言回复</p><p>需要的软件已经准备好了，没有网络环境的可以从网盘下载</p><p>首先，鸣谢B站up主 colorsky</p><p>视频的链接</p><p>【【自制/开源】解放你的双手！DE - 基于字幕的辅助剪辑工具：自动剪辑 | 剧本生成 | 人声提取 | 对话搜索】 <a href="https://www.bilibili.com/video/BV1Ba41187cP/?share_source=copy_web&vd_source=b967cf944e8ae9a09441e3ce91d539dc">https://www.bilibili.com/video/BV1Ba41187cP/?share_source=copy_web&vd_source=b967cf944e8ae9a09441e3ce91d539dc</a></p><p>首先，需要在GitHub上下载源码</p><p><a href="https://github.com/COLOR-SKY/DialogueExtractor">https://github.com/COLOR-SKY/DialogueExtractor</a></p><p><img src="http://pic2.xwean.com/typora1/2023/202301311220242.png" alt="image-20230131122022175" title="image-20230131122022175"></p><p>打开后直接下载源码</p><p><img src="http://pic2.xwean.com/typora1/2023/202301311220766.png" alt="image-20230131122051738" title="image-20230131122051738"></p><p>下载好了直接解压就行</p><p><img src="http://pic2.xwean.com/typora1/2023/202301311221499.png" alt="image-20230131122146467" title="image-20230131122146467"></p><p><img src="http://pic2.xwean.com/typora1/2023/202301311222930.png" alt="image-20230131122208907" title="image-20230131122208907"></p><p>然后在下载 Miniconda</p><p>我尝试了一下使用Anaconda 。。。失败了</p><p>这里可以参考一下</p><p>【AI 通过文字自动剪辑视频(视频搜索)】</p><p><a href="https://www.bilibili.com/video/BV1MG4y1n7th/?share_source=copy_web&vd_source=b967cf944e8ae9a09441e3ce91d539dc">https://www.bilibili.com/video/BV1MG4y1n7th/?share_source=copy_web&vd_source=b967cf944e8ae9a09441e3ce91d539dc</a></p><p><em>回头再试一次</em></p><p>下载Miniconda</p><p><img src="http://pic2.xwean.com/typora1/2023/202301311227121.png" alt="image-20230131122731088" title="image-20230131122731088"></p><p><img src="http://pic2.xwean.com/typora1/2023/202301311227738.png" alt="image-20230131122758643" title="image-20230131122758643"></p><p>下载回来是这个样子的</p><p><img src="http://pic2.xwean.com/typora1/2023/202301311228880.png" alt="image-20230131122824862" title="image-20230131122824862"></p><p>安转，作者给的建议是 全英文状态</p><p>这是观众给出的知识点</p><p><img src="http://pic2.xwean.com/typora1/2023/202301311229776.png" alt="image-20230131122908745" title="image-20230131122908745"></p><p><img src="http://pic2.xwean.com/typora1/2023/202301311229793.png" alt="image-20230131122942768" title="image-20230131122942768"></p><p>安转中。。。</p><p>然后下载ffmpeg</p><p><img src="http://pic2.xwean.com/typora1/2023/202301311230832.png" alt="image-20230131123041805" title="image-20230131123041805"></p><p><img src="http://pic2.xwean.com/typora1/2023/202301311231482.png" alt="image-20230131123101432" title="image-20230131123101432"></p><p><img src="http://pic2.xwean.com/typora1/2023/202301311231854.png" alt="image-20230131123118812" title="image-20230131123118812"></p><p><img src="http://pic2.xwean.com/typora1/2023/202301311231143.png" alt="image-20230131123138088" title="image-20230131123138088"></p><p>再 准备 python</p><p><img src="http://pic2.xwean.com/typora1/2023/202301311232396.png" alt="image-20230131123221366" title="image-20230131123221366"></p><p>作者说 支持3.7版本，所以咱们下载3.7版本就行</p><p><img src="http://pic2.xwean.com/typora1/2023/202301311233549.png" alt="image-20230131123305502" title="image-20230131123305502"></p><p><img src="http://pic2.xwean.com/typora1/2023/202301311233066.png" alt="image-20230131123352034" title="image-20230131123352034"></p><p><img src="http://pic2.xwean.com/typora1/2023/202301311234828.png" alt="image-20230131123407806" title="image-20230131123407806"></p><p>下载完了直接安转</p><hr><p>现在所有东西都准备好了</p><p>进行正常演示，里面会有错误以及纠正，慢慢看完</p><p><img src="http://pic2.xwean.com/typora1/2023/202301311237079.png" alt="image-20230131123736031" title="image-20230131123736031"></p><p>改个名 太长了</p><p><img src="http://pic2.xwean.com/typora1/2023/202301311238721.png" alt="image-20230131123757758" title="image-20230131123757758"></p><p>在这里输入cmd</p><p><img src="http://pic2.xwean.com/typora1/2023/202301311238273.png" alt="image-20230131123849247" title="image-20230131123849247"></p><p><img src="http://pic2.xwean.com/typora1/2023/202301311239227.png" alt="image-20230131123905201" title="image-20230131123905201"></p><p>创建虚拟环境</p><p>知识储备：<br>1.1、检验当前conda的版本<br>conda -V<br>1.2、查看已有的虚拟环境<br>conda env list<br>1.3、创建虚拟环境<br>conda create -n env_name python=x.x<br>1.4、删除虚拟环境<br>conda remove -n env_name --all<br>1.5、激活虚拟环境<br>conda activate env_name<br>1.6、关闭虚拟环境<br>conda deactivate</p><p>用到的是这个</p><p><code>conda create -n 环境名称 python=指定python版本</code></p><p><code>conda create -n Dex python=3.7</code></p><p><img src="http://pic2.xwean.com/typora1/2023/202301311243319.png" alt="image-20230131124354287" title="image-20230131124354287"></p><p>创建中</p><p>如果提示 conda不是命令，说明没有设置环境变量</p><p><strong>这样搞</strong></p><p>右键我的电脑 →属性</p><p><img src="http://pic2.xwean.com/typora1/2023/202301311247528.png" alt="image-20230131124714504" title="image-20230131124714504"></p><p><img src="http://pic2.xwean.com/typora1/2023/202301311247605.png" alt="image-20230131124727580" title="image-20230131124727580"></p><p><img src="http://pic2.xwean.com/typora1/2023/202301311247203.png" alt="image-20230131124743179" title="image-20230131124743179"></p><p><img src="http://pic2.xwean.com/typora1/2023/202301311247189.png" alt="image-20230131124753165" title="image-20230131124753165"></p><p>这里填写miniconda的目录</p><p><code>C:\Users\Administrator\Desktop\auto\1</code></p><p><img src="http://pic2.xwean.com/typora1/2023/202301311248065.png" alt="image-20230131124848031" title="image-20230131124848031"></p><p><code>C:\Users\Administrator\Desktop\auto\1\Scripts</code></p><p>两个都要填写进去</p><p>还要把<code>C:\Users\Administrator\Desktop\auto\ffmpeg\bin</code>填写进去</p><p>就是ffmpeg的bin文件夹目录</p><p>最后确定保存即可</p><p>都做完了，就能正常操作</p><p><img src="http://pic2.xwean.com/typora1/2023/202301311251051.png" alt="image-20230131125117019" title="image-20230131125117019"></p><p>这里面就会出现一个问题，我是搞了1多小时才明白</p><p>国内的网络环境....</p><p><img src="http://pic2.xwean.com/typora1/2023/202301311252194.png" alt="image-20230131125210164" title="image-20230131125210164"></p><p><strong>所以！</strong>这时候一定要用正常的网络环境</p><p><img src="http://pic2.xwean.com/typora1/2023/202301311253888.png" alt="image-20230131125310858" title="image-20230131125310858"></p><p>这下就搞定了</p><p><img src="http://pic2.xwean.com/typora1/2023/202301311253931.png" alt="image-20230131125326902" title="image-20230131125326902"></p><p><strong>环境创建完成</strong></p><p>然后激活刚才的环境</p><p><code>知识储备：</code><br><code>1.1、检验当前conda的版本</code><br><code>conda -V</code><br><code>1.2、查看已有的虚拟环境</code><br><code>conda env list</code><br><code>1.3、创建虚拟环境</code><br><code>conda create -n env_name python=x.x</code><br><code>1.4、删除虚拟环境</code><br><code>conda remove -n env_name --all</code><br><code>1.5、激活虚拟环境</code><br><code>conda activate env_name</code><br><code>1.6、关闭虚拟环境</code><br><code>conda deactivate</code></p><p><strong><code>conda activate Dex</code></strong></p><p><img src="http://pic2.xwean.com/typora1/2023/202301311255371.png" alt="image-20230131125523335" title="image-20230131125523335"></p><p>这样就激活了！</p><p>但是这里面会有一些问题</p><p>第一次激活不会成功</p><p>输入 <code>conda init</code>  有的是输入 <code>conda init cme.exe</code></p><p>感觉都一样~</p><p>输入完毕后关掉在打开，输入激活指令就可以激活</p><p>！！！</p><p>下面这一步又消耗了好几个小时，问题还是存在于网络环境中</p><p>看过程</p><p>！！！</p><p><img src="http://pic2.xwean.com/typora1/2023/202301311300610.png" alt="image-20230131130009576" title="image-20230131130009576"></p><p><code>pip install -r &quot;C:\Users\Administrator\Desktop\auto\DialogueExtractor-master\DialogueExtractor_ch\requirements.txt&quot;</code></p><p>其中的<code>C:\Users\Administrator\Desktop\auto\DialogueExtractor-master\DialogueExtractor_ch\requirements.txt</code></p><p>文件，就是</p><p><img src="http://pic2.xwean.com/typora1/2023/202301311301262.png" alt="image-20230131130053056" title="image-20230131130053056"></p><p>特别要注意的就是 必须要在英文状态下 加上引号<code>“”</code>，在中间输入位置，也可以直接拖放，然后用引号引死</p><p><strong>做完这些按下回车，你就会发现问题出来了~！</strong></p><p><img src="http://pic2.xwean.com/typora1/2023/202301311304971.png" alt="image-20230131130416940" title="image-20230131130416940"></p><p>网络环境的问题，根本就无法访问</p><p>我之前在虚拟机上安装过（主要是公网IP4）</p><p>也不好用，那有的人说，我直接开代理就完事了呗</p><p><img src="http://pic2.xwean.com/typora1/2023/202301311305946.png" alt="image-20230131130550908" title="image-20230131130550908"></p><p><img src="http://pic2.xwean.com/typora1/2023/202301311306755.png" alt="image-20230131130558128" title="image-20230131130558128"></p><p>那就天真了</p><p><img src="http://pic2.xwean.com/typora1/2023/202301311306859.png" alt="image-20230131130643798" title="image-20230131130643798"></p><p>一手红红送给大家</p><p>不过虚拟机上第一次好像成功了，依托于固定的公网IP</p><p>也可能失败了</p><p>所以到这里，怎么尝试都是失败的</p><p>于是问了我一个朋友</p><p>这样做</p><p><code>-i https://pypi.tuna.tsinghua.edu.cn/simple/</code></p><p>在刚才那一串输入上面这这个。换一个源</p><p><code>pip install -r &quot;C:\Users\Administrator\Desktop\auto\DialogueExtractor-master\DialogueExtractor_ch\requirements.txt&quot; -i https://pypi.tuna.tsinghua.edu.cn/simple/</code></p><p>-r 是安转指定文件</p><p>-i 是路径</p><p>这时候咱们再来，开代理！</p><p><img src="http://pic2.xwean.com/typora1/2023/202301311311851.png" alt="image-20230131131130815" title="image-20230131131130815"></p><p><strong>轻轻松松就成功了！</strong></p><p>第一次安装会有等待的过程</p><p>下面</p><p>输入<code>python &quot;C:\Users\Administrator\Desktop\auto\DialogueExtractor-master\DialogueExtractor_ch\DialogueExtractor.py&quot; </code></p><p>其中 C:\Users\Administrator\Desktop\auto\DialogueExtractor-master\DialogueExtractor_ch\DialogueExtractor.py</p><p>文件，就是这个</p><p><img src="http://pic2.xwean.com/typora1/2023/202301311313722.png" alt="image-20230131131351690" title="image-20230131131351690"></p><p>记得加引号！英文状态下的引号</p><p>然后你就会发现</p><p><img src="http://pic2.xwean.com/typora1/2023/202301311314533.png" alt="image-20230131131427504" title="image-20230131131427504"></p><p>成功了！</p><p>如果没有弹出来这个框，说明有个文件干扰了你</p><p><img src="http://pic2.xwean.com/typora1/2023/202301311315985.png" alt="image-20230131131532951" title="image-20230131131532951"></p><p>改个名再试一次就好了</p><p>以上就是全部配置</p><p><strong>但是</strong>！这里面有个bug</p><p>就是导入路径正确选择之后，发现集数那里面一直是空的</p><p>这个问过作者大大，应该是bug</p><p>不过在评论区也有说成功了的</p><p>所以，，，不知道是为啥了</p><p>到这里我也卡住了，成功的回来留个言，说下怎么调试好的</p><p>还要一点需要注意，字幕文件要和视频名字一样！</p><p>所需要的环境 打包下载百度网盘</p><p>链接：<a href="https://pan.baidu.com/s/1pB2zoPK1Y778et_kZbJYtg?pwd=gd0o">https://pan.baidu.com/s/1pB2zoPK1Y778et_kZbJYtg?pwd=gd0o</a> <br>提取码：gd0o</p>
]]></content:encoded>
<slash:comments>0</slash:comments>
<comments>https://xwean.com/1050.html#comments</comments>
<wfw:commentRss>https://xwean.com/feed/tag/%E8%87%AA%E5%8A%A8%E5%89%AA%E8%BE%91/</wfw:commentRss>
</item>
</channel>
</rss>