LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-24-2021, 12:47 PM   #1
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,350

Rep: Reputation: 75
Advice on ffmpeg, aac and mp4


I have some music downloads which are in the form of .m4a files and I want to cut them up using ffmpeg.

I find that something like

Quote:
ffmpeg -ss 309 -i input.m4a -to 982 -c copy output.aac
does the trick but I have the problem that I am unable to put tags on the .aac file. Easytag for instance will not write to them so I need to convert to mp4.

ffmpeg does seem to able to output directly to mp4 but I found that my software does not behave proerly with these files. What does work is going from aac to mp4.

Quote:
ffmpeg -i input.aac -c:a copy output.mp4
Now I come to the real question. The aac filesize is slightly larger than the mp4 filesize. If mp4 is a container for aac why should that be?

Is my approach correct?
 
Old 02-24-2021, 02:57 PM   #2
Grobe
Member
 
Registered: Aug 2019
Location: Close to north
Distribution: Fedora
Posts: 117

Rep: Reputation: Disabled
The mp4 format is used when you have both video and audio stream.

If the file size of the mp4 is slightly smaller, i guess it strips some excess metadata off the aac stream.
 
Old 02-24-2021, 04:27 PM   #3
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,350

Original Poster
Rep: Reputation: 75
As I understand it the container for aac is mp4 but by convention if it just contains audio it is usually renamed as m4a.

My only reason for using mp4/m4a rather than just aac is that I cannot find any other way to write the tags.
 
Old 02-24-2021, 04:30 PM   #4
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Out of curiosity I did a net search, this was the first hit, but there was more.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Audacious won't play AAC AAC+, & no system sounds KDE 4.4.3 netcrawl Slackware 4 11-09-2014 09:22 PM
Problem AAC while encoding mp4 for my PSP J_angel2000 Linux - General 4 04-29-2007 02:40 AM
aac/m4a support for JUK / decent aac music players reformedgeek Linux - Newbie 1 04-23-2005 02:52 PM
Anyone know how to rip CD's to Tagged m4a, AAC, mp4 files? carl0ski Linux - Software 2 04-17-2005 04:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration