[FFmpeg-trac] #11330(ffmpeg:new): When recording, audio duration is shorter by the time it takes to spin up the video
FFmpeg
trac at avcodec.org
Wed Dec 11 22:07:24 EET 2024
#11330: When recording, audio duration is shorter by the time it takes to spin up
the video
----------------------------------------+----------------------------------
Reporter: chuckwoodchuck | Owner: (none)
Type: defect | Status: new
Priority: important | Component: ffmpeg
Version: unspecified | Resolution:
Keywords: pulseaudio | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
----------------------------------------+----------------------------------
Comment (by chuckwoodchuck):
Replying to [comment:2 Balling]:
> Does it happen on flac?
No it does not. I tried multiple audio output formats in separate tests,
the trimmed tail is of the same length in all cases.
>
> >What's strange is that the audio is cut from the end, not the beginning
(that is, the audio that is played while codec is starting is NOT lost -
the lost part is the tail
>
> That is not strange, we support editlist for aac in the beginning. So
the added silence from the start is removed.
To clarify - assuming the recording started at 10:00:00, video codec took
3 seconds to begin its operation, and "q" was hit at 10:00:10, the audio
portion in the final file comes from 10:00:00 to 10:00:07, and not from
10:00:03 to 10:00:00. So even though the recording was still going between
10:00:07 and 10:00:10, and the portion from 10:00:00 to 10:00:03 is
present, last 3 seconds are discarded.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/11330#comment:3>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list