I like to listen to podcasts, and my favourite podcast app for Android is AntennaPod. I like the control it gives me, the fact that it deals reasonably with non-audio RSS feeds, the wide range of speed controls, and the searchability.
But I download a lot of podcasts. That means there’s a lot of stuff ready for me when I go on flights and things like that, but otherwise it’s, you know, waiting. Some podcast feeds think I want really high quality audio. Like 256 or 320 k/second. Nope, don’t need that.
Finally I figured out that it might be smart to recode some of the podcasts to free up space on my chronically overfilled phone. That’s what I did. Here’s how I did it. First, you have to be in developer mode and be able to connect over adb. Then:
adb shell "ls /storage/emulated/0/Android/data/de.danoeh.antennapod.debug/files/media/"
adb pull "/storage/emulated/0/Android/data/de.danoeh.antennapod.debug/files/media/your-podcast-directory-name"
cd your-podcast-directory-name
mkdir recoded
for i in *.mp3; do echo $i; lame -V6 "$i" "recoded/$i"; done
cd recoded
for i in *.mp3; do echo $i; adb push "$i" "/storage/emulated/0/Android/data/de.danoeh.antennapod.debug/files/media/your-podcast-directory-name/$i"; done(Replace your-podcast-directory-name with something that exists. Oh, and I’m running the debug version ‘cause I build it from source… you’ll probably just want de.danoeh.antennapod instad of de.danoeh.antennapod.debug.)
By doing this on my two fattest podcast directories, I was able to save 4+ G. Nice!
Reply by Email