Bleuzen / SpotRec

Spotify desktop client recorder for PulseAudio
MIT License
75 stars 17 forks source link

ffmpeg options #2

Closed luchmhor closed 5 years ago

luchmhor commented 6 years ago

Hi, first of all thanks for this gem.

Would it be possible to select output options of ffmpeg, or even simpler just a general selection of the output quality. e.g. for Audiobooks the quality could be mp3/96, not neccessary to have flac.

Cheers.

Bleuzen commented 6 years ago

Hi, sure it would be possible, but useless, because we have a problem right now.

SpotRec records some time longer at the end to be sure that nothing is missing at the end. (There is currently no better way to do that, because I can't get the exact start and ending of a song.) But sometimes within this time, the next song already starts. So the end of the song before also contains the first second or somewhat of the next song. That's why I recommend to post-process the audio files with Audacity (see the Hints in the Readme).

And since you have to use Audacity anyway to cut the audio to what you want, you can export it from there to any format you like.

So I chose a lossless format (flac) to not loose quality when reencoding, so that the user can decide later in other tools (for example Audacity) which format to export to.

By the way, if your player supports it, I recommend ogg vorbis, since this is the format which Spotify uses. When converting formats to another (ogg -> mp3) you always lose even more quality. So it would be smart to use ogg too.

Hope that helped, cheers ;)

judd1 commented 6 years ago

Hello and thanks for your references. If spotify uses Vorbis, but not all players use it, so Audacity is difficult to use, I do not understand it, I'm from the era of CD / DVD, but I'll keep trying. The songs are recorded perfectly with SpotRec but with K3b and tried to convert the tracks to burn them on a CD and when I finish recording, nothing is heard, but the way is good. Regards.-

2018-06-19 4:29 GMT-03:00 Elias notifications@github.com:

Hi, sure it would be possible, but useless, because we have a problem right now.

SpotRec records some time longer at the end to be sure that nothing is missing at the end. (There is currently no better way to do that, because I can't get the exact start and ending of a song.) But sometimes within this time, the next song already starts. So the end of the song before also contains the first second or somewhat of the next song. That's why I recommend to post-process the audio files with Audacity (see the Hints in the Readme).

And since you have to use Audacity anyway to cut the audio to what you want, you can export it from there to any format you like.

So I chose a lossless format (flac) to not loose quality when reencoding, so that the user can decide later in other tools (for example Audacity) which format to export to.

By the way, if your player supports it, I recommend ogg vorbis, since this is the format which Spotify uses. When converting formats to another (ogg -> mp3) you always lose even more quality. So it would be smart to use ogg too.

Hope that helped ;) Bye

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Bleuzen/SpotRec/issues/2#issuecomment-398302346, or mute the thread https://github.com/notifications/unsubscribe-auth/AIvsHLHtYyO9imLm_0ZuzVj6VKRkKnIDks5t-KhOgaJpZM4Us6Gg .

Bleuzen commented 6 years ago

Hello Audacity has nothing to do with vorbis directly. You can import the flac into Audacity and export it from there to mp3 or ogg vorbis for example, but also a lot more. Audacity is pretty easy to use. Just mark the area to remove and press Ctrl + X.

Hm, maybe K3b has a problem with it's flac decoder (if I understood you right).. try something else like ogg, it should work with K3b.

Bleuzen commented 5 years ago

Closed because there was no answer for some time. Feel free to reopen or open a PR if you have an idea to cut the audio files exactly.