- `-f` - force replace if file exists
# TODO:
-- [ ] add album name
- [ ] figure out why -av takes so long compared to -a and -v
\ No newline at end of file
def convert_add_metadata(input1, input2, output, yt, m1=1, m2=0):
+ artist, album, title = yt.vid_info['videoDetails']['keywords']
command = [
'ffmpeg',
'-i', input1,
'-map', f'{m2}',
'-c', 'copy',
f'-disposition:v:{m2}', 'attached_pic',
- '-metadata', f'title={yt.title}',
- '-metadata', f'artist={yt.author}',
+ '-metadata', f'title={title}',
+ '-metadata', f'artist={artist}',
'-metadata', f'comment={big_num_format(yt.views) + " views"}',
'-metadata', f'date={yt.publish_date}',
+ '-metadata', f'album={album}',
output + ".mp4",
'-y'
]