diff --git a/lib/constants.dart b/lib/constants.dart index 542cad3..053ca64 100644 --- a/lib/constants.dart +++ b/lib/constants.dart @@ -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;