[format] add M4A

This commit is contained in:
jscampucci 2024-07-05 15:24:41 +02:00
parent 8f2739aa42
commit 677986e1e1
1 changed files with 7 additions and 1 deletions

View File

@ -10,10 +10,12 @@ const colorMainBlue = Color(0xFF1f74ad);
enum Format { enum Format {
mp3( mp3(
format: 'MP3', format: 'MP3',
ytCmd: 'bestaudio[ext=m4a]/bestaudio[ext=webm]',
ffmpegCmd: '-f mp3 -loglevel quiet -ab 192k -vn', ffmpegCmd: '-f mp3 -loglevel quiet -ab 192k -vn',
extension: 'mp3'), extension: 'mp3'),
mp3HD( mp3HD(
format: 'MP3 HD', format: 'MP3 HD',
ytCmd: 'bestaudio[ext=m4a]/bestaudio[ext=webm]',
ffmpegCmd: '-f mp3 -loglevel quiet -ab 320k -vn', ffmpegCmd: '-f mp3 -loglevel quiet -ab 320k -vn',
extension: 'mp3'), extension: 'mp3'),
mp4(format: 'MP4'), mp4(format: 'MP4'),
@ -35,7 +37,11 @@ enum Format {
ffmpegCmd: ffmpegCmd:
'-vcodec libx264 -preset slower -b 512k -bt 512k -threads 0 -s 640x360 -aspect 16:9 -acodec libmp3lame -ar 44100 -ab 32 -progress pipe:1', '-vcodec libx264 -preset slower -b 512k -bt 512k -threads 0 -s 640x360 -aspect 16:9 -acodec libmp3lame -ar 44100 -ab 32 -progress pipe:1',
extension: 'flv'), extension: 'flv'),
m4a(format: 'M4A'), m4a(
format: 'M4A',
ytCmd: 'bestaudio[ext=m4a]',
extension: 'm4a',
),
; ;
final String ytCmd; final String ytCmd;