我需要从一个位置到另一个位置剪切音频文件中的部分。当我尝试这个命令时
ffmpeg -ss 132 -t 139 -i original.mp3 new.mp3
Run Code Online (Sandbox Code Playgroud)
它从第二个 132 开始,并将接下来的 139 秒添加到新文件中。
我需要的是从 132 秒到 139 秒。
当我尝试
ffmpeg -ss 132 -to 139 -i original.mp3 new.mp3
Run Code Online (Sandbox Code Playgroud)
它给了我一个错误:
Unrecognized option 'to'
Failed to set value '139' for option 'to'
Run Code Online (Sandbox Code Playgroud)
(我不想告诉需要多少秒,只是从/到)。
-- 我有 ffmpeg 版本 0.8.20-6:0.8.20-0+deb7u1(建于 2017 年 1 月 19 日 11:13:36,gcc 4.7.2)。当我尝试更新它(apt-get install ffmpeg)时,它告诉我“ffmpeg 已经是最新版本”。
我有一个方括号之间的数字列表,我需要在确切的数字之前和之后添加单词(即保持相同的数字).我使用notepad ++替换,但如果你有其他程序的解决方案,请告知.
例:
text [121] othertext
moretext [16] othertextmore
andtext [5940] othertextplus
Run Code Online (Sandbox Code Playgroud)
结果:
text xxxxxxxxx [121] xxxxxxxxx othertext
moretext xxxxxxxxx [16] xxxxxxxxx othertextmore
andtext xxxxxxxxx [5940] xxxxxxxxx othertextplus
Run Code Online (Sandbox Code Playgroud)
这些数字当然是\d+但我想告诉它在看时保持相同的数字.
我有以下链接的页面:
href="FileName-One-Example.html"
Run Code Online (Sandbox Code Playgroud)
我需要使用Notepad ++的正则表达式命令来更改href="nad结尾"与小写之间的任何内容,并将其中的所有内容保留在页面之前和之后.
结果是:
href="filename-one-example.html"
Run Code Online (Sandbox Code Playgroud) 在Firefox中查看阿拉伯语页面时,所有数字仍然是拉丁语。例如,与IE中的IE不同,在阿拉伯语页面中阿拉伯语数字(hindi)很好,其他页面拉丁语则很好。
我通过about:config(bidi.numeral)在网上发现了一个调整,但是它将所有语言的所有页面都更改为一种数字!
我正在寻找一种可以使我根据页面查看数字的修补程序。
我进行了以下修复,每次都无需确认即可在 Chrome 中打开所需的应用程序。它们运行良好,直到版本 84.0.4147.89 (Official Build) (64-bit) 的更新。
修复 1:
In C:\Users\<username>\AppData\Local\Google\Chrome\User Data\Default\Preferences
"protocol_handler":{"excluded_schemes":{"neededApp":false}}
Run Code Online (Sandbox Code Playgroud)
修复 2:
In Regedit: HKEY_CURRENT_USER\Software\Policies\Google\Chrome
Create DWORD ExternalProtocolDialogShowAlwaysOpenCheckbox =1
Run Code Online (Sandbox Code Playgroud)
知道新版本发生了什么变化或如何解决该问题吗?并非所有应用程序都会发生这种情况。
我有多个html文件,其中一些有一些空行,我需要一个正则表达式删除所有空白行,只留下一个空白行..所以它删除任何多于一个空白行,并留下那些只是一个或没有(没有人喜欢在其中加入文字).
我还需要它来考虑不完全空白的行,因为有些行可能有空格或制表符(没有显示的字符),所以我需要它考虑这些行与正则表达式被删除只要它更多比一行..
我正在使用以下脚本从文本中删除变音符号,我想知道是否有一种方法可以在 html 或 PHP 中为变音符号着色,而不是删除它们(示例是阿拉伯语,但这同样适用于希伯来语、法语、甚至英语..等)。
\nJavaScript 代码:
\n$(document).ready(function(){\n\n var bodyText = $(\'#page_content\').html();\n \n function replaceChars()\n {\n newBodyText = bodyText.replace(/\xd9\x8e/gi,\'\');\n newBodytext = newBodyText.replace(/\xd9\x8b/gi,\'\');\n newBodyText = newBodyText.replace(/\xd9\x8f/gi,\'\');\n newBodyText = newBodyText.replace(/\xd9\x8c/gi,\'\');\n newBodyText = newBodyText.replace(/`/gi,\'\');\n newBodyText = newBodyText.replace(/\xd9\x90/gi,\'\');\n newBodyText = newBodyText.replace(/\xd9\x8d/gi,\'\');\n newBodyText = newBodyText.replace(/\xd8\x8c/gi,\'\');\n newBodyText = newBodyText.replace(/\xd9\x92/gi,\'\');\n newBodyText = newBodyText.replace(/\xd9\x91/gi,\'\');\n }\n \n \n $(\'.testMe\').toggle(function() {\n \n replaceChars();\n \n $(\'#page_content\').html(newBodyText);\n $(\'#actionDiacritics\').html(\'Show\');\n }, function() {\n $(\'#page_content\').html(bodyText);\n $(\'#actionDiacritics\').html(\'Hide\');\n });\n\n});\n \nRun Code Online (Sandbox Code Playgroud)\n运行演示:http://jsfiddle.net/8jAL8/29/
\n输入:\xd9\x84\xd8\xa7\xd9\x8e\xd8\xaa\xd9\x8e\xd8\xaa\xd9\x8e\xd8\xb9\xd9\x8e\xd8\xac\xd9\x91\xd9\x8e \xd8\xa8\xd9\x8f\xd9\x88\xd8\xa7\xd9\x8c \xd9\x85\xd9\x90\xd9\x86\xd9\x92 \xd9\x87\xd8\xb0\xd9\x8e\xd8 \xa7:
\n\n所需输出的示例:
\n\n在 …
我有一堆带有不同文件名的html文件,我需要添加一个选项来使用键盘箭头键进行导航(上一个和下一个文件).
文件名不是动态的.例如:filename.html,anotherfile.html,thirdone.html等.
所以我需要.js文件中的导航内容,以及我应该链接html文件中的上一个,下一个按钮的内容?
notepad++ ×3
regex ×3
replace ×3
javascript ×2
numbers ×2
audio ×1
character ×1
cut ×1
diacritics ×1
expression ×1
ffmpeg ×1
firefox ×1
handler ×1
html ×1
jquery ×1
localization ×1
lowercase ×1
mp3 ×1
php ×1