This post was updated on .
Hi all,
Using the following pipeline, i observe that right after the tag section is read, the filesrc read again from the beginning of the file and drop the buffer if it's before the stream data. (tagdemux: Buffer is before the start of the data). I have seen that the filesrc is changed from pull mode in push mode. It's there any possibility to seek from start to the end of id3v2 header, without reading again this part? gst version: 0.10.36 # export GST_DEBUG=filesrc:5 # gst-launch filesrc location=/media/mydev/usb_Sample_09.mp3 ! decodebin2 ! alsasink (or gst-launch filesrc location=/media/cddev/usb_Sample_09.mp3 ! id3demux ! fakesink ) 0:00:01.378344001 1656 0x18050 INFO filesrc gstfilesrc.c:374:gst_file_src_set_location: filename : /media/mydev/usb_Sample_09.mp3 0:00:01.378592001 1656 0x18050 INFO filesrc gstfilesrc.c:375:gst_file_src_set_location: uri : file:///media/mydev/usb_Sample_09.mp3 Setting pipeline to PAUSED ... 0:00:01.537406001 1656 0x18050 INFO filesrc gstfilesrc.c:969:gst_file_src_start:<filesrc0> opening file /media/mydev/usb_Sample_09.mp3 0:00:01.537716001 1656 0x18050 INFO filesrc gstfilesrc.c:969:gst_file_src_start:<filesrc0> opening file /media/mydev/usb_Sample_09.mp3 0:00:01.579373001 1656 0x18050 LOG filesrc gstfilesrc.c:829:gst_file_src_create_read:<filesrc0> Reading 4096 bytes at offset 0x0 0:00:01.622206002 1656 0x18050 INFO filesrc gstfilesrc.c:969:gst_file_src_start:<filesrc0> opening file /media/mydev/usb_Sample_09.mp3 0:00:01.622479002 1656 0x18050 INFO filesrc gstfilesrc.c:969:gst_file_src_start:<filesrc0> opening file /media/mydev/usb_Sample_09.mp3 0:00:01.622824001 1656 0x18050 LOG filesrc gstfilesrc.c:829:gst_file_src_create_read:<filesrc0> Reading 4096 bytes at offset 0x0 0:00:01.623320001 1656 0x18050 LOG filesrc gstfilesrc.c:829:gst_file_src_create_read:<filesrc0> Reading 652160 bytes at offset 0x0 0:00:01.643732001 1656 0x18050 LOG filesrc gstfilesrc.c:829:gst_file_src_create_read:<filesrc0> Reading 4096 bytes at offset 0x9f380 0:00:01.656949001 1656 0x18050 INFO filesrc gstfilesrc.c:969:gst_file_src_start:<filesrc0> opening file /media/mydev/usb_Sample_09.mp3 Pipeline is PREROLLING ... 0:00:01.658520001 1656 0x10a520 LOG filesrc gstfilesrc.c:829:gst_file_src_create_read:<filesrc0> Reading 4096 bytes at offset 0x0 0:00:01.658966001 1656 0x10a520 LOG filesrc gstfilesrc.c:829:gst_file_src_create_read:<filesrc0> Reading 4096 bytes at offset 0x1000 0:00:01.659195001 1656 0x10a520 LOG filesrc gstfilesrc.c:829:gst_file_src_create_read:<filesrc0> Reading 4096 bytes at offset 0x2000 0:00:01.659408001 1656 0x10a520 LOG filesrc gstfilesrc.c:829:gst_file_src_create_read:<filesrc0> Reading 4096 bytes at offset 0x3000 ... ... 0:00:01.700659001 1656 0x10a520 LOG filesrc gstfilesrc.c:829:gst_file_src_create_read:<filesrc0> Reading 4096 bytes at offset 0x9f000 0:00:01.842763001 1656 0x10a520 LOG filesrc gstfilesrc.c:829:gst_file_src_create_read:<filesrc0> Reading 4096 bytes at offset 0xa0000 0:00:01.865642001 1656 0x10a520 LOG filesrc gstfilesrc.c:829:gst_file_src_create_read:<filesrc0> Reading 4096 bytes at offset 0xa1000 Pipeline is PREROLLED ... Setting pipeline to PLAYING ... New clock: GstAudioSinkClock 0:00:01.882503002 1656 0x10a520 LOG filesrc gstfilesrc.c:829:gst_file_src_create_read:<filesrc0> Reading 4096 bytes at offset 0xa2000 0:00:02.045127001 1656 0x10a520 LOG filesrc gstfilesrc.c:829:gst_file_src_create_read:<filesrc0> Reading 4096 bytes at offset 0xa3000 0:00:02.300572001 1656 0x10a520 LOG filesrc gstfilesrc.c:829:gst_file_src_create_read:<filesrc0> Reading 4096 bytes at offset 0xa4000 Thanks and regards! |
Free forum by Nabble | Edit this page |