We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d99dfd3 commit 05c2b17Copy full SHA for 05c2b17
1 file changed
menu/ffmpeg.js
@@ -3,6 +3,7 @@ const isMp3 = (a) => /\.mp3$/.test(a);
3
export default {
4
'F - Convert flac to mp3': convertFlacToMp3,
5
'M - Convert mp4 to mp3': convertMp4ToMp3,
6
+ 'O - convert mov to mp3': convertMovToMp3,
7
};
8
9
export async function convertFlacToMp3({DOM, CloudCmd}) {
@@ -21,6 +22,14 @@ export async function convertMp4ToMp3({DOM, CloudCmd}) {
21
22
});
23
}
24
25
+export async function convertMovToMp3({DOM, CloudCmd}) {
26
+ const command = 'for f in *.MOV; do ffmpeg -i "$f" -filter_complex "[0:a]join=inputs=2:channel_layout=stereo" "${f%mp4}mp3"; done';
27
+ await convert(command, {
28
+ DOM,
29
+ CloudCmd,
30
+ });
31
+}
32
+
33
async function convert(command, {DOM, CloudCmd}) {
34
const {IO, Dialog, CurrentInfo} = DOM;
35
0 commit comments