this post was submitted on 08 Nov 2025
13 points (100.0% liked)

No Stupid Questions

3449 readers
56 users here now

There is no such thing as a Stupid Question!

Don't be embarrassed of your curiosity; everyone has questions that they may feel uncomfortable asking certain people, so this place gives you a nice area not to be judged about asking it. Everyone here is willing to help.


Reminder that the rules for lemmy.ca still apply!


Thanks for reading all of this, even if you didn't read all of this, and your eye started somewhere else, have a watermelon slice 🍉.


founded 3 years ago
MODERATORS
 

I have an album thats a bit more than 200MB, converted to just an audio only M4a or MP4 its still under 80MB

Is that 120+MB all chaff or is there another way to prevent losing all muh damn wheat

CONSTRAINT/NON-CONSTRAINTS

FILE SIZE DOES NOT MATTER AT ALL TO ME. JUST TO BE CLEAR

MUST BE AN MP4 "video" file. I get that MP4 is a container or whatever but that is a hard constraint—Please respect that

M4A/AAC are not acceptable. It must be within the container that is MP4, non-negotiable

you are viewing a single comment's thread
view the rest of the comments
[–] sopularity_fax@sopuli.xyz 1 points 2 weeks ago (1 children)

Also i really do not care about file size when it comes to quality for certain things. I just haplen to need an MP4 for my use case and id like to explore the options to do that exactly. I cant overemphasize how insignificant the file sizes are to me, id like to optimize for fidelity above all but in an mp4

[–] TootSweet@lemmy.world 3 points 2 weeks ago* (last edited 2 weeks ago) (1 children)

Ah. Ok. Well, in that case, I've got an idea.

And, being honest here, I've learned this in the last few minutes, but apparently MP4 can technically only hold a certain number of different kinds of audio. There are some not-to-spec ways to put things like uncompressed WAV or FLAC into an MP4, but a lot of tools don't support that.

I just did some tests with FFMPEG and was not able to embed FLAC or WAV (pcm_s16le or pcm_s24le) into an M4A container, but I was able to embed ALAC into an M4A file with the following command:

ffmpeg -i zelda_25th_symphony_01.flac -acodec alac zelda_25th_symphony_01.m4a

And mpv is able to play the resulting M4A file just fine.

So, it seems like what you're going for is doable, at least depending which tool you use. But FFMPEG can do it. Whether your player of choice can play it is another question, but it definitely seems worth a try.

Oh, by the way, the M4A file is a tiny bit larger than the FLAC file:

tootsweet@computer /tmp $ ls -lah zelda*
-rw-r--r--. 1 tootsweet tootsweet 43M Nov  8 11:16 zelda_25th_symphony_01.flac
-rw-r--r--. 1 tootsweet tootsweet 44M Nov  8 11:40 zelda_25th_symphony_01.m4a
tootsweet@computer /tmp $ ls -la zelda*
-rw-r--r--. 1 tootsweet tootsweet 44481504 Nov  8 11:16 zelda_25th_symphony_01.flac
-rw-r--r--. 1 tootsweet tootsweet 45660506 Nov  8 11:40 zelda_25th_symphony_01.m4a
tootsweet@computer /tmp $

(Username and computer hostname changed to protect the guilty.)

[–] sopularity_fax@sopuli.xyz 2 points 3 days ago

Excellent :) Thanks for this