playlistfromsong icon indicating copy to clipboard operation
playlistfromsong copied to clipboard

Select quality and file format in youtube-dl

Open xaionaro opened this issue 7 years ago • 7 comments

Hello, again :)

If I understand correctly playlistfromsong recodes music into mp3. Is there a way to prevent it (and use another format)? Or at least is there a way to select a bitrate? Or this is useless because source of the music already has mp3/192kbps-like quality?

I can see that some of sources uses OPUS. That is much better than mp3, IMHO.

Best regards, Dmitry.

xaionaro avatar Mar 06 '17 04:03 xaionaro

Ok, seems I just need to fix lines here:

https://github.com/schollz/playlistfromsong/blob/4786c9d120748d7bde06fb4e4353e709cbbe2f69/playlistfromsong/main.py#L71

Sorry for premature issue. This's enough for me. Should I close the issue? :)

xaionaro avatar Mar 06 '17 04:03 xaionaro

No, lets leave it up! I think this could be a good feature. Its easy to add an argument for doing this easier in the future.

schollz avatar Mar 06 '17 17:03 schollz

hi @xaionaro i create #10 so you can set the codec and quality you want. can you test it.

just open the config file playlistfromsong config -o and add following key

ffmpeg_codec: mp3
ffmpeg_quality: 192

change those mp3 and 192 into whatever codec and quality you want.

rachmadaniHaryono avatar Mar 07 '17 03:03 rachmadaniHaryono

@rachmadaniHaryono, thanks :). Is there a way to just disable the recoding?

xaionaro avatar Mar 07 '17 08:03 xaionaro

with program config, youtube-dl option can be put on it, and user can change it himself.

but i think that is too much.

opinion @schollz ?

rachmadaniHaryono avatar Mar 07 '17 09:03 rachmadaniHaryono

I'm not sure I understand, you want to disable the recoding to download OPUS directly @xaionaro ?

schollz avatar Mar 07 '17 14:03 schollz

@schollz I think @xaionaro mean decoding.

This can be done by removing postsprocessors key in YouTube-dl option,so YouTube dl can install the best audio (which can be opus) and don't decode it to mp3

rachmadaniHaryono avatar Mar 07 '17 14:03 rachmadaniHaryono