PDA

View Full Version : Creating m4a from only flac on pogoplug - linux?



rkrug
2015-12-15, 02:09
Hi

System: LMS on Linux (Pogoplug)
iTunes: on Mac OS X, library via samba share of LMS library

I want to transcode all my flac to m4a files so that I can easily sync
my library with iTunes. I would ;ike to have the following functunality

1) convert FILENAME.flac --->>> FILENAME.m4a with specified target
bitrate 128 (I would like to get all my music on the iPhone and iPad -
and the quality is OK) and change timestamp of FILENAME.m4a. If the m4a
exist, do nothing

2) If the time of the m4a is newer than the flac, update the tags in the m4a.

This should not be difficult to write, but before I lok into this, I
want to make sure that I do not reinvent the wheel.

Is there something like this?

mp3 would also work, but I would prefer m4a as it is supposedly better
quality with similar size.

Any suggestions?

Rainer


--
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel : +33 - (0)9 53 10 27 44
Cell: +33 - (0)6 85 62 59 98
Fax : +33 - (0)9 58 10 27 44

Fax (D): +49 - (0)3 21 21 25 22 44

email: Rainer (AT) krugs (DOT) de

Skype: RMkrug

PGP: 0x0F52F982

DJanGo
2015-12-15, 02:39
2) If the time of the m4a is newer than the flac, update the tags in the m4a.
i would do that this way...

if m4a does not exist (like in 1) then convert and write tags...
otherwise do nothing

edit i dont think that pogoplug has enough power to do this kind of job....(even when a running lms also needs resources)

d6jg
2015-12-15, 02:41
Hi

mp3 would also work, but I would prefer m4a as it is supposedly better quality with similar size.



I think you need to read up a bit about Codecs and then decide what you want.

rkrug
2015-12-15, 02:54
d6jg <d6jg.77xqo0 (AT) no-mx (DOT) forums.slimdevices.com> writes:

> rkrug wrote:
>> Hi
>>
>> mp3 would also work, but I would prefer m4a as it is supposedly better
>> quality with similar size.
>>
>>
>
> I think you need to read up a bit about Codecs and then decide what you
> want.

I prefer m4a, but if there is a script for mp3, I can use this is as
well.

Rainer

>
>
>
> *Vortexbox LMS 7.8 music on QNAP TS419p via NFS* iThingys/iPeng/Tablets
> *Living Room* - SB3 -> Onkyo TS606 - > Celestion Ditton F20s - Zone 2 ->
> Sony TA FE 320 -> Sennheiser RS 130 & B&W P7
> *Office* - RPi -> Sony TA FE320 -> Celestion F10s / SB3 -> Onkyo CRN 755
> -> Wharfedale Modus Cubes
> *Dining Room* -> SB Boom *Kitchen* -> UE Radio (upgraded to SB Radio)
> *Bedroom (Bedside)* - SB Touch -> Topping TP21 -> AKG Headphones
> *Bedroom (TV)* - Amazon Fire TV (SB Player) -> Topping TP20 ->
> Wharfedale Modus Cubes
> ------------------------------------------------------------------------
> d6jg's Profile: http://forums.slimdevices.com/member.php?userid=44051
> View this thread: http://forums.slimdevices.com/showthread.php?t=104811
>
>

rkrug
2015-12-15, 02:56
DJanGo <DJanGo.77xqkn (AT) no-mx (DOT) forums.slimdevices.com> writes:

> rkrug wrote:
>>
>> 2) If the time of the m4a is newer than the flac, update the tags in the
>> m4a.
> i would do that this way...
>
> if m4a does not exist (like in 1) then convert and write tags...
> otherwise do nothing

The reason why I want to have the timestamp check is that when I change
tags, I only the tags get updated in the m4a. I could obviously
transcode the flac again, but this is not necessary if only the tags
have changed.

Rainer

>
>
>
> Gruss
> Jan
> ------------------------------------------------------------------------
> DJanGo's Profile: http://forums.slimdevices.com/member.php?userid=1516
> View this thread: http://forums.slimdevices.com/showthread.php?t=104811
>
>

d6jg
2015-12-15, 03:36
m4a is just a file extension - it can contain AAC (lossy) or ALAC (lossless). The former is similar in size to the equivalent mp3 but the latter is significantly larger. Do some research before you go any further.

If your intention is to produce alternate low res files to play on an iThingy then I would strongly suggest you opt for mp3. That way if you wanted to swap to an Android device or needed music on a USB stick for the car then you are covered all ways up.

rkrug
2015-12-15, 03:48
d6jg <d6jg.77xt9b (AT) no-mx (DOT) forums.slimdevices.com> writes:

> m4a is just a file extension - it can contain AAC (lossy) or ALAC
> (lossless). The former is similar in size to the equivalent mp3 but the
> latter is significantly larger. Do some research before you go any
> further.

Thanks - I want AAC.

>
> If your intention is to produce alternate low res files to play on an
> iThingy then I would strongly suggest you opt for mp3. That way if you
> wanted to swap to an Android device or needed music on a USB stick for
> the car then you are covered all ways up.

As I am with Apple at the moment, I will stick with AAC, as I can easily
do the conversion to mp3 if I decide to switch sides.

Cheers and thanks,

Rainer

>
>
>
> *Vortexbox LMS 7.8 music on QNAP TS419p via NFS* iThingys/iPeng/Tablets
> *Living Room* - SB3 -> Onkyo TS606 - > Celestion Ditton F20s - Zone 2 ->
> Sony TA FE 320 -> Sennheiser RS 130 & B&W P7
> *Office* - RPi -> Sony TA FE320 -> Celestion F10s / SB3 -> Onkyo CRN 755
> -> Wharfedale Modus Cubes
> *Dining Room* -> SB Boom *Kitchen* -> UE Radio (upgraded to SB Radio)
> *Bedroom (Bedside)* - SB Touch -> Topping TP21 -> AKG Headphones
> *Bedroom (TV)* - Amazon Fire TV (SB Player) -> Topping TP20 ->
> Wharfedale Modus Cubes
> ------------------------------------------------------------------------
> d6jg's Profile: http://forums.slimdevices.com/member.php?userid=44051
> View this thread: http://forums.slimdevices.com/showthread.php?t=104811
>
>

DJanGo
2015-12-15, 04:38
Thanks - I want AAC.

to be honest i have nothing that fits your needings cause the only conversion that i handle is wav (from my vinyl rips) to mp3 even when i use the idevices like imac/ipod (2.nd generation) and iphone/ipads.

i found out, that the best way to convert into m4x is using itunes and maybe a hexeditor to fake the iphone that auidiobooks shoulndt listed in the music by changing some in the header.

further plans depends on where your music is stored..

rkrug
2015-12-15, 04:55
DJanGo <DJanGo.77xw4n (AT) no-mx (DOT) forums.slimdevices.com> writes:

> rkrug wrote:
>>
>> Thanks - I want AAC.
>>
> to be honest i have nothing that fits your needings cause the only
> conversion that i handle is wav (from my vinyl rips) to mp3 even when i
> use the idevices like imac/ipod (2.nd generation) and iphone/ipads.

As I said - mp3 is also fine. But the input files are in flac.

>
> i found out, that the best way to convert into m4x is using itunes and
> maybe a hexeditor to fake the iphone that auidiobooks shoulndt listed in
> the music by changing some in the header.

Interesting.

>
> further plans depends on where your music is stored..

On a Linux box (Pogoplug).

I have done some initial conversion using XLD from the mac, but due to
some reasons I don't understand, XLD does not convert all files (says it
can not decode some, but I can play them and decode with another
program) and it does the transcoding first and than checks if the file
exists and skips it...

Rainer

>
>
>
> Gruss
> Jan
> ------------------------------------------------------------------------
> DJanGo's Profile: http://forums.slimdevices.com/member.php?userid=1516
> View this thread: http://forums.slimdevices.com/showthread.php?t=104811
>
>

ddewey
2015-12-15, 13:27
Quoting Rainer M Krug (Rainer (AT) krugs (DOT) de):

> Hi
>
> System: LMS on Linux (Pogoplug)
> iTunes: on Mac OS X, library via samba share of LMS library
>
> I want to transcode all my flac to m4a files so that I can easily sync
> my library with iTunes. I would ;ike to have the following functunality
>
> 1) convert FILENAME.flac --->>> FILENAME.m4a with specified target
> bitrate 128 (I would like to get all my music on the iPhone and iPad -
> and the quality is OK) and change timestamp of FILENAME.m4a. If the m4a
> exist, do nothing
>
> 2) If the time of the m4a is newer than the flac, update the tags in the m4a.
>
> This should not be difficult to write, but before I lok into this, I
> want to make sure that I do not reinvent the wheel.
>
> Is there something like this?
>
> mp3 would also work, but I would prefer m4a as it is supposedly better
> quality with similar size.

I solved this problem a different way. I like having FLAC for it's
superior sound for streaming, but also having MP3 for syncing to
iDevices to go.

I've used this for years: https://khenriks.github.io/mp3fs/

What it does is present your FLAC files to iTunes as mp3s, and
allows your iDevices to sync them. It transcodes the FLACs to mp3 on
the fly/on request, so syncing takes a bit longer, but not
unreasonably so. Any changes made to the FLAC files are immediately
represented in the MP3s as well, including tags and cover art so
none of the hassle to having to deal with two different libraries of
the same songs. It works very elegantly and transparently for me.
It's a bit geeky yes and requires some knowhow to set up, but if
you're reasonably familiar with linux it's a no brainer.

Julf
2015-12-15, 14:01
I've used this for years: https://khenriks.github.io/mp3fs/

Yes, that is what I use too. A very nice way to keep your main collection in sync with mobile devices.

rkrug
2015-12-16, 01:59
Wow - this is brilliant.

THis should be much more advertised. Installation on a Mac is as easy as

brew install mp3fs

and it works - it even let's other files pass through! Brilliant.

Thanks a million, I'll use it and some time in the next year update my
iTunes library with this!

Cheers,

Rainer

Julf <Julf.77ym5b (AT) no-mx (DOT) forums.slimdevices.com> writes:

> ddewey wrote:
>> I've used this for years: https://khenriks.github.io/mp3fs/
>
> Yes, that is what I use too. A very nice way to keep your main
> collection in sync with mobile devices.
>
>
>
> "To try to judge the real from the false will always be hard. In this
> fast-growing art of 'high fidelity' the quackery will bear a solid gilt
> edge that will fool many people" - Paul W Klipsch, 1953
> ------------------------------------------------------------------------
> Julf's Profile: http://forums.slimdevices.com/member.php?userid=42050
> View this thread: http://forums.slimdevices.com/showthread.php?t=104811
>
>

d6jg
2015-12-16, 06:49
That does indeed look interesting !

Can someone who uses it tell me what happens with artwork if it exists in a FLAC - I imagine its lost in the mp3 as I can't find any refrence to it specifically.

ddewey
2015-12-16, 16:47
Quoting d6jg (d6jg.77zwtb (AT) no-mx (DOT) forums.slimdevices.com):

>
> That does indeed look interesting !
>
> Can someone who uses it tell me what happens with artwork if it exists
> in a FLAC - I imagine its lost in the mp3 as I can't find any refrence
> to it specifically.

Nope, it appears in the MP3. All of the mp3s show up with artwork in
my iDevices.

d6jg
2015-12-17, 03:55
Quoting d6jg (d6jg.77zwtb (AT) no-mx (DOT) forums.slimdevices.com):

>
> That does indeed look interesting !
>
> Can someone who uses it tell me what happens with artwork if it exists
> in a FLAC - I imagine its lost in the mp3 as I can't find any refrence
> to it specifically.

Nope, it appears in the MP3. All of the mp3s show up with artwork in
my iDevices.

Thanks for that I will give it a try