[format] add M4A

This commit is contained in:
jscampucci 2024-07-05 15:24:41 +02:00
parent c2ab736a54
commit 914ba0b9bb
1 changed files with 7 additions and 1 deletions

View File

@ -10,10 +10,12 @@ const colorMainBlue = Color(0xFF1f74ad);
enum Format {
mp3(
format: 'MP3',
ytCmd: 'bestaudio[ext=m4a]/bestaudio[ext=webm]',
ffmpegCmd: '-f mp3 -loglevel quiet -ab 192k -vn',
extension: 'mp3'),
mp3HD(
format: 'MP3 HD',
ytCmd: 'bestaudio[ext=m4a]/bestaudio[ext=webm]',
ffmpegCmd: '-f mp3 -loglevel quiet -ab 320k -vn',
extension: 'mp3'),
mp4(format: 'MP4'),
@ -35,7 +37,11 @@ enum Format {
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',
extension: 'flv'),
m4a(format: 'M4A'),
m4a(
format: 'M4A',
ytCmd: 'bestaudio[ext=m4a]',
extension: 'm4a',
),
;
final String ytCmd;