[format] add M4A
This commit is contained in:
parent
c2ab736a54
commit
914ba0b9bb
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue