[gstreamer-bugs] [Bug 623388] [audio encoders] Wrong output timestamps when receiving big input buffers

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Fri Jul 2 11:19:44 PDT 2010


https://bugzilla.gnome.org/show_bug.cgi?id=623388
  GStreamer | gst-ffmpeg | git

--- Comment #9 from Thiago Sousa Santos <thiago.sousa.santos at collabora.co.uk> 2010-07-02 18:19:41 UTC ---
gst-launch audiotestsrc num-buffers=10 samplesperbuffer=320000 !
"audio/x-raw-int, endianness=(int)1234, channels=(int)2, width=(int)16,
depth=(int)16, signed=(boolean)true, rate=(int)32000" ! ffenc_aac ! fakesink -v

Piece of log to help debugging:

/GstPipeline:pipeline0/GstFakeSink:fakesink0: last-message = "chain   ******* < 
(  220 bytes, timestamp: 0:00:09.920000000, duration: 0:00:00.032000000,
offset:
 -1, offset_end: -1, flags: 0) 0x8703de0"

*** There is not enough data in the adapter for another aac buffer ***
0:00:00.798176512 32215  0x858b2f8 LOG                   ffmpeg
gstffmpegenc.c:1
010:gst_ffmpegenc_chain_audio:<ffenc_aac0> 2048 bytes left in the adapter

0:00:00.798332327 32215  0x858b2f8 LOG             audiotestsrc
gstaudiotestsrc.
c:1083:gst_audio_test_src_create:<audiotestsrc0> samplerate 32000
0:00:00.798378114 32215  0x858b2f8 LOG             audiotestsrc
gstaudiotestsrc.
c:1085:gst_audio_test_src_create:<audiotestsrc0> next_sample 640000, ts
0:00:20.
000000000
0:00:00.798421211 32215  0x858b2f8 LOG             audiotestsrc
gstaudiotestsrc.c:1105:gst_audio_test_src_create:<audiotestsrc0> generating
320000 samples at ts 0:00:10.000000000
0:00:00.825475921 32215  0x858b2f8 DEBUG                 ffmpeg
gstffmpegenc.c:910:gst_ffmpegenc_chain_audio:<ffenc_aac0> Received time
0:00:10.000000000, duration 0:00:10.000000000, size 1280000

*** The adapter timestamp is 0, because it has not a whole buffer after the
last _take ***
0:00:00.827315935 32215  0x858b2f8 LOG                   ffmpeg
gstffmpegenc.c:937:gst_ffmpegenc_chain_audio:<ffenc_aac0> taking adapter
timestamp 0:00:00.000000000

*** OOPS ***
0:00:00.827390281 32215  0x858b2f8 DEBUG                 ffmpeg
gstffmpegenc.c:957:gst_ffmpegenc_chain_audio:<ffenc_aac0> adapter timestamp
drifting, taking upstream timestamp 0:00:39.936000000

0:00:00.827432396 32215  0x858b2f8 LOG                   ffmpeg
gstffmpegenc.c:967:gst_ffmpegenc_chain_audio:<ffenc_aac0> pushing buffer in
adapter
0:00:00.827471731 32215  0x858b2f8 LOG                   ffmpeg
gstffmpegenc.c:974:gst_ffmpegenc_chain_audio:<ffenc_aac0> frame_bytes 4096,
avail 1282048
0:00:00.827507803 32215  0x858b2f8 LOG                   ffmpeg
gstffmpegenc.c:979:gst_ffmpegenc_chain_audio:<ffenc_aac0> taking 4096 bytes
from the adapter
0:00:00.827547512 32215  0x858b2f8 LOG                   ffmpeg
gstffmpegenc.c:856:gst_ffmpegenc_encode_audio:<ffenc_aac0> encoding buffer of
max size 32768
0:00:00.828958862 32215  0x858b2f8 LOG                   ffmpeg
gstffmpegenc.c:867:gst_ffmpegenc_encode_audio:<ffenc_aac0> got output size 176
0:00:00.829015146 32215  0x858b2f8 LOG                   ffmpeg
gstffmpegenc.c:877:gst_ffmpegenc_encode_audio:<ffenc_aac0> pushing size 176,
timestamp 0:00:39.936000000
/GstPipeline:pipeline0/GstFakeSink:fakesink0: last-message = "chain   ******* <
(  374 bytes, timestamp: 0:00:09.952000000, duration: 0:00:00.032000000,
offset: -1, offset_end: -1, flags: 0) 0x8703d90"
0:00:00.829578846 32215  0x858b2f8 LOG                   ffmpeg
gstffmpegenc.c:979:gst_ffmpegenc_chain_audio:<ffenc_aac0> taking 4096 bytes
from the adapter
0:00:00.829578910 32215  0x858b2f8 LOG                   ffmpeg
gstffmpegenc.c:856:gst_ffmpegenc_encode_audio:<ffenc_aac0> encoding buffer of
max size 32768
0:00:00.831124398 32215  0x858b2f8 LOG                   ffmpeg
gstffmpegenc.c:867:gst_ffmpegenc_encode_audio:<ffenc_aac0> got output size 309
0:00:00.831158329 32215  0x858b2f8 LOG                   ffmpeg
gstffmpegenc.c:877:gst_ffmpegenc_encode_audio:<ffenc_aac0> pushing size 309,
timestamp 0:00:39.968000000
/GstPipeline:pipeline0/GstFakeSink:fakesink0: last-message = "chain   ******* <
(  176 bytes, timestamp: 0:00:39.936000000, duration: 0:00:00.032000000,
offset: -1, offset_end: -1, flags: 32) 0x8703cf0"

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.




More information about the Gstreamer-bugs mailing list