I need to accurately find the playing time of .aac files. This time is needed to determine the length of a video cut. This is for a GNU/Linux Bash environment (a windows tool which works in wine would be okay if nothing native to Linux is found).
The information must be in these files somewhere, because muxing them into a non-video .m4a shows a time which is close to the actual playtime. (Why they is any difference at all is also a puzzle.)
The .aac files I have tested do not show the real playing time. The times are shown below.
Is there some way to find the real playing time?
Here are the test results.
---------------------------------------------------------------
| | mplayer | | |
| | status bar | mencoder's | |
| | run length | midentify.sh | ffmpeg -i |
| | ============= | ============ | =========== |
| original A.flv | 2:40 2:40 | 160.64 | 02:40.64 |
| demuxed A.aac | 2:40 3:10 | 190.20 | 03:10.20 | < whacky times!
| remuxed A.m4a | 2:40 2:41 | 161.21 | 02:41.20 |
| | | | |
| original B.flv | 4:54 4:55 | 295.00 | 04:54.99 |
| demuxed B.aac | 4:55 1:36:22 | 5782.15 | 01:36:22.15 | < whacky times!
| remuxed B.m4a | 4:49 4:55 | 295.57 | 04:55.57 |
---------------------------------------------------------------
AAC sample uncompresses to 1024 PCM samples
Hello, can you please give reference to this? Is this given in a standard?
– Vikram Dattu Aug 14 '18 at 08:42