These forums are archived

See this post for further info

get_iplayer forums

Forum archived. Posting disabled.

Saving radio as mp3 in gip 2.95

user-9

Hi guys,
Im running get_iplayer 2.95 on my Raspberry Pi Zero running the latest version of Raspbian, all updates and upgrades done. I've amended the /var/lib/get_iplayer/options file to the 295 settings, as well as /home/.get_iplayer/options.
When I run get_iplayer --pvr to get radio shows (I only download radio)  I get the msg for deprecated settings in particular the aactomp3 -1 setting. I tried remming this out and GIP always saves to m4a, the only way to get it to save as mp3 is to leave the aac2mp3 line active, now it says the deprecated settings will be removed in a later version. If this happens, how will I save as mp3?

Steve

user-30

Hi Steve,

Converting to mp3 functionality will be removed in future releases as you have worked out.

When this functionality is removed converting to mp3 would need to be done by another third party programme. Just use the third party programme to convert the file get_iplayer downloads.

I don't use this function so I'll let someone else jump in with specific suggestions but there are various free programmes you can use for this such and a quick search for "free mp3 converter" should turn up something suitable.

user-2

A perusal of the FAQ or the examples page would have lead you to one possible solution. But as SP said, there are numerous alternatives.

user-9

As I only ever use mp3 (and Linux) , I dont suppose I'll be updating again unless 2.95 stops downloading.

Steve

user-1026

I'm on Windows and have used Foobar2000 for almost all my transcoding needs over many years.

However, for aac and m4a repackaging / transcoding I use MP4Box and ffmpeg (get the ffmpeg builds here).

I've created scripts that I run to do all my converting. This is the command I use to transcode m4a to mp3:

ffmpeg -i input.m4a -acodec libmp3lame -q:a 0 output.mp3

ffmpeg provide detailed info on this LAME (mp3) encoder here.

There is also the issue of you transcoding from one lossy format (m4a) to another lossy format (mp3) which will degrade the audio quality. Maybe this is not an issue for you?

Perhaps the most obvious question is why not use the m4a files? Is it because a media player you use does not support m4a files?

user-1026

(01-08-2016, 07:28 AM)Perhaps the most obvious question is why not use the m4a files? Is it because a media player you use does not support m4a files?

Indeed, it's only lack of support on for "m4a" on my Sansa Clip player that has made it necessary. Not a hardship with your helpful ffmpeg script that I no longer have to go work out for myself... :)You should be able to use Rockbox on your Sansa Clip that will support a lot more formats including M4A files ;)

I have used Rockbox for over 10 years on my iRiver H120 DAP and it's great.

user-2

I don't know if this is still true, but at one point seeking didn't work properly on the Sansa Clip w/Rockbox unless you either re-muxed the M4A files with mp4box -ipod (http://forums.rockbox.org/index.php?topic=48020), or re-muxed them with ffmpeg using the -movflags rtphint option.

user-1026

(02-08-2016, 10:35 AM)I don't know if this is still true, but at one point seeking didn't work properly on the Sansa Clip w/Rockbox unless you either re-muxed the M4A files with mp4box -ipod (http://forums.rockbox.org/index.php?topic=48020), or re-muxed them with ffmpeg using the -movflags rtphint option.

good call on the seeking issue with m4a files relating to the moov atom. I generally use MP4Box for the final m4a file. As a test I used ffmpeg including the -movflags rtphint option and the resulting m4a file was considerably larger than the Mp4Box created file. I'm guessing that is due to extra seeking info being added? If so, I'd recommend people use MP4Box wherever possible.

user-1369

Hi

I use Windows 7 x64 for running Get_Player V 2.95 and record various radio shows for subsequent listening to on my car's mp3 player. My 'options' file has a line to automatically convert MP4 /AAC to MP3.

This still works but I now see it is being flagged as 'Deprecated' and so I assume due to be removed in future. Is there a better way to convert d/ls to MP3 that can be set automatically as a 'bulk option' in the config?

TiA

David

user-2

See the FAQ list

user-1369

Thanks for the prompt reply.. I had checked the faqs and yes, I'm using the:

--aactomp3

command and it is this which is flagged as to be deprecated... I was looking for how/what to do to replace this.. what am I missing pls?

Many thanks

David

user-1026

Whilst this is not an automatic process, I've created a number of scripts that I run to convert/extract/transcode/re-mux etc the .ts, .m4a, .mp4, .aac, .mp3 files.

Here's the m4a2mp3.cmd script I use:
Code:
:: Name:     m4a2mp3.cmd
:: Purpose:  Configures ffmpeg to transcode an audio m4a file to an mp3 using the LAME encoder
:: Author:   jaybeee @ themixingbowl.org
:: Revision: Aug 2016 - v0.1

@ECHO OFF

SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION

:: variables begin with v

:: set name of this script without file extension
SET vMe=%~n0

:: set name of the parent directory where this script resides
SET vParent=%~dp0

:: set location of ffmpeg ** CHANGE ME **
SET vffmpeg="C:\PATH\TO\ffmpeg\ffmpeg.exe"

:: call ffmpeg to transcode all m4a files in current directory and save in mp3 directory 
:: -q:a = LAME VBR quality where 0 is best and 9 is lowest.
:: -b:a = LAME CBR, so 128k 192k 256k 320k can be used.
MKDIR mp3
FOR %%f IN ("*.m4a") DO %vffmpeg% -i "%%f" -acodec libmp3lame -q:a 0 "mp3\%%~nf.mp3"

:: Finish
ECHO Finished mp3 creation

:: pause can be used to view the extraction details
PAUSE

:END
ENDLOCAL
ECHO ON
@EXIT /B 0


Copy & paste the above into a file called m4a2mp3.cmd and place it in the directory/folder where the M4A files that you want converting are. Double-click it and a new dir/folder will be created called mp3 that will contain all the converted/transcoded M4A files using the LAME encoder.
 
Make sure you the change path to the ffmpeg.exe
Also remember that it will convert ALL M4A files in that folder.

user-1369

Very helpful indeed - many thanks

David

user-2

(11-08-2016, 05:39 PM)command and it is this which is flagged as to be deprecated... I was looking for how/what to do to replace this.. what am I missing pls?
Did the link provided in the relevant FAQ item not spark even a little curiosity? You'll find slightly expanded examples if you start from the FAQ on GitHub. Docs here are slightly out of date.

user-1135

Having just updated to the latest version of GIP for windoze, and seen the notes on the future loss of mp3 conversion I have a few questions.

First of all I am not conversant in perl scripting or linux environments, so some of the comments I have read both here and at http://lists.infradead.org/pipermail/get_iplayer/ , which the author's think are explanatory and self evident, are unfortunately not so easy for me to understand.
Secondly my main listening for radio is on a sansa clip and my car's mp3 player, neither of which will play the native files.

In an ideal world what I would like is:
One command line which will
a) run the pvr_scheduler
and then
b)convert the files and tags to mp3
and then
c)delete the source radio files (but leave tv files intact)

I have seen the faq posted at:
https://github.com/get-iplayer/get_iplay...m-commands
I can see how that might work for an individual command line, but is it possible to build this into the run_pvr_scheduler.cmd ?

With regard to @jaybeee 's example above in this thread, will that script transfer the tags to the mp3 file?

Lastly is there a way to call a windoze cmd at the end of  the run_pvr_scheduler.cmd (instead of it sitting there sleeping)

regards

roga

user-1026

(27-09-2016, 08:21 AM)With regard to @jaybeee 's example above in this thread, will that script transfer the tags to the mp3 file?

Yes, the tags are copied across.

user-2

(27-09-2016, 08:21 AM)Lastly is there a way to call a windoze cmd at the end of  the run_pvr_scheduler.cmd (instead of it sitting there sleeping)
No. Its only purpose is run your pvr list, sleep, run your pvr list, sleep, etc.

user-1135

Thanks jaybeee & user-2 for your replies.

I'll give jaybeee's script a go, it does have the advantage of setting a CBR which I think will work a bit better with my car's "radio" (particularly when trying to fast fwd or back)

These forums are archived

See this post for further info