[FFmpeg-trac] #11018(ffmpeg:new): Bug: Export AAC from video file with specific duration don't give the good duration

FFmpeg trac at avcodec.org
Wed May 22 12:37:38 EEST 2024


#11018: Bug: Export AAC from video file with specific duration don't give the good
duration
-------------------------------------+-------------------------------------
             Reporter:               |                    Owner:  (none)
  Imprevisible                       |
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:  ffmpeg
              Version:  unspecified  |               Resolution:
             Keywords:  segment aac  |               Blocked By:
  seek seeking                       |
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Comment (by Imprevisible):

 I did some tests, and I can see that only the aac and the mp3 dont have a
 proper seeking. I'm doing HLS streaming, and I need to generate precise
 audio files so I don't get the audio out of sync. I'm gonna try to play
 all this audio files instead, but I'm not sure it will be possible

 {{
 AAC:
 command:
 ffmpeg -y -ss 00:00:00 -to 00:00:05 -i "../Téléchargements/The It Crowd
 S01e01 - Yesterday's Jam.m4v" -vn test.aac

 mediainfo:
 General
 Complete name                            : ../ffmpeg_test/test.aac
 Format                                   : ADTS
 Format/Info                              : Audio Data Transport Stream
 File size                                : 83.6 KiB
 Overall bit rate mode                    : Variable

 Audio
 Format                                   : AAC LC
 Format/Info                              : Advanced Audio Codec Low
 Complexity
 Format version                           : Version 4
 Codec ID                                 : 2
 Bit rate mode                            : Variable
 Channel(s)                               : 2 channels
 Channel layout                           : L R
 Sampling rate                            : 48.0 kHz
 Frame rate                               : 46.875 FPS (1024 SPF)
 Compression mode                         : Lossy
 Stream size                              : 83.6 KiB (100%)

 MP3:
 command:
 ffmpeg -y -ss 00:00:00 -to 00:00:05 -i "../Téléchargements/The It Crowd
 S01e01 - Yesterday's Jam.m4v" -vn test.mp3

 mediainfo:
 General
 Complete name                            : ../ffmpeg_test/test.mp3
 Format                                   : MPEG Audio
 File size                                : 79.1 KiB
 Duration                                 : 5 s 40 ms
 Overall bit rate mode                    : Constant
 Overall bit rate                         : 128 kb/s
 Writing library                          : Lavf61.3.103
 major_brand                              : mp42
 minor_version                            : 512
 compatible_brands                        : isomiso2mp41

 Audio
 Format                                   : MPEG Audio
 Format version                           : Version 1
 Format profile                           : Layer 3
 Format settings                          : Joint stereo
 Duration                                 : 5 s 40 ms
 Bit rate mode                            : Constant
 Bit rate                                 : 128 kb/s
 Channel(s)                               : 2 channels
 Sampling rate                            : 48.0 kHz
 Frame rate                               : 41.667 FPS (1152 SPF)
 Compression mode                         : Lossy
 Stream size                              : 78.8 KiB (100%)

 OGG:
 command:
 ffmpeg -y -ss 00:00:00 -to 00:00:05 -i "../Téléchargements/The It Crowd
 S01e01 - Yesterday's Jam.m4v" -vn test.ogg

 mediainfo:
 General
 Complete name                            : ../ffmpeg_test/test.ogg
 Format                                   : Ogg
 File size                                : 62.3 KiB
 Duration                                 : 5 s 0 ms
 Overall bit rate mode                    : Variable
 Overall bit rate                         : 102 kb/s
 Writing application                      : Lavc61.5.104 libvorbis
 creation_time                            : 2020-12-08T23:31:48.000000Z
 handler_name                             : Stereo
 vendor_id                                : [0][0][0][0]
 major_brand                              : mp42
 minor_version                            : 512
 compatible_brands                        : isomiso2mp41

 Audio
 ID                                       : 3624949711 (0xD81057CF)
 Format                                   : Vorbis
 Format settings, Floor                   : 1
 Duration                                 : 5 s 0 ms
 Bit rate mode                            : Variable
 Bit rate                                 : 112 kb/s
 Channel(s)                               : 2 channels
 Sampling rate                            : 48.0 kHz
 Compression mode                         : Lossy
 Stream size                              : 68.4 KiB
 Writing library                          : Lavf61.3.103
 Language                                 : English

 WAV:
 command:
 ffmpeg -y -ss 00:00:00 -to 00:00:05 -i "../Téléchargements/The It Crowd
 S01e01 - Yesterday's Jam.m4v" -vn test.wav

 mediainfo:
 General
 Complete name                            : ../ffmpeg_test/test.wav
 Format                                   : Wave
 Format settings                          : PcmWaveformat
 File size                                : 938 KiB
 Duration                                 : 5 s 0 ms
 Overall bit rate mode                    : Constant
 Overall bit rate                         : 1 536 kb/s
 Writing application                      : Lavf61.3.103

 Audio
 Format                                   : PCM
 Format settings                          : Little / Signed
 Codec ID                                 : 1
 Duration                                 : 5 s 0 ms
 Bit rate mode                            : Constant
 Bit rate                                 : 1 536 kb/s
 Channel(s)                               : 2 channels
 Sampling rate                            : 48.0 kHz
 Bit depth                                : 16 bits
 Stream size                              : 938 KiB (100%)

 FLAC:
 command:
 ffmpeg -y -ss 00:00:00 -to 00:00:05 -i "../Téléchargements/The It Crowd
 S01e01 - Yesterday's Jam.m4v" -vn test.flac

 mediainfo:
 General
 Complete name                            : ../ffmpeg_test/test.flac
 Format                                   : FLAC
 Format/Info                              : Free Lossless Audio Codec
 File size                                : 916 KiB
 Duration                                 : 5 s 0 ms
 Overall bit rate mode                    : Variable
 Overall bit rate                         : 1 501 kb/s
 Writing application                      : Lavf61.3.103
 major_brand                              : mp42
 minor_version                            : 512
 compatible_brands                        : isomiso2mp41

 Audio
 Format                                   : FLAC
 Format/Info                              : Free Lossless Audio Codec
 Duration                                 : 5 s 0 ms
 Bit rate mode                            : Variable
 Bit rate                                 : 1 487 kb/s
 Channel(s)                               : 2 channels
 Channel layout                           : L R
 Sampling rate                            : 48.0 kHz
 Bit depth                                : 24 bits
 Compression mode                         : Lossless
 Stream size                              : 908 KiB (99%)
 Writing library                          : Lavf61.3.103
 MD5 of the unencoded content             :
 44ADFEF5FD32EBC45E5E9B71D8637F2B
 }}
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/11018#comment:15>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list