basiclemmon98@lemmy.dbzer0.com to Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ@lemmy.dbzer0.comEnglish · 11 months agoAudio reencoder for Android?message-squaremessage-square13linkfedilinkarrow-up124arrow-down10file-text
arrow-up124arrow-down1message-squareAudio reencoder for Android?basiclemmon98@lemmy.dbzer0.com to Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ@lemmy.dbzer0.comEnglish · 11 months agomessage-square13linkfedilinkfile-text
I use Dab to rip wav files, but I want to reencode them to 320 kb/s MP3s on android. I can’t seem to find a good program to do that. Any suggestions? (I can already do it on desktop, I specifically need mobile)
minus-squareCevilia (they/she/…)@lemmy.blahaj.zonedeleted by creatorlinkfedilinkEnglisharrow-up5·11 months agoTermux will accept files “shared” to it, and pass the full filename to ~/bin/termux-file-editor So, if it’s the only thing you plan to use Termux for, you could make your ~/bin/termux-file-editor something like: #!/bin/bash ffmpeg -i "$1" -b:a 320k "$1.mp3" …and then never think about it again, just share files via Termux and it’ll re-encode them for you. :) or, if you don’t specifically need CBR and just want ffmpeg to output on its highest quality: #!/bin/bash ffmpeg -i "$1" -q:a 0 "$1.mp3" I’m not sure of the exact syntax, but hope this at least helps point you in the right direction :)
minus-squarebasiclemmon98@lemmy.dbzer0.comOPlinkfedilinkEnglisharrow-up3·11 months agoJust got this set up and it works like a charm! Thx so much for the help!
minus-squareCevilia (they/she/…)@lemmy.blahaj.zonedeleted by creatorlinkfedilinkEnglisharrow-up3·11 months agoYou’re welcome, the collaborative effort wins again :)
minus-squarefrongt@lemmy.ziplinkfedilinkEnglisharrow-up2·11 months agoAnd if you want to make it fancy, make that a wrapper script that checks the incoming file type. MP3s get transcoded, text files get opened, …
Termux will accept files “shared” to it, and pass the full filename to ~/bin/termux-file-editor
So, if it’s the only thing you plan to use Termux for, you could make your ~/bin/termux-file-editor something like:
#!/bin/bash ffmpeg -i "$1" -b:a 320k "$1.mp3"…and then never think about it again, just share files via Termux and it’ll re-encode them for you. :)
or, if you don’t specifically need CBR and just want ffmpeg to output on its highest quality:
#!/bin/bash ffmpeg -i "$1" -q:a 0 "$1.mp3"I’m not sure of the exact syntax, but hope this at least helps point you in the right direction :)
Just got this set up and it works like a charm! Thx so much for the help!
You’re welcome, the collaborative effort wins again :)
And if you want to make it fancy, make that a wrapper script that checks the incoming file type. MP3s get transcoded, text files get opened, …