After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 348756 - [typefinding] not working for a MAVIX mpeg2 stream
[typefinding] not working for a MAVIX mpeg2 stream
Status: RESOLVED NOTABUG
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
git master
Other All
: Normal minor
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-07-26 09:27 UTC by Thijs Vermeir
Modified: 2006-08-17 07:30 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14


Attachments
Mavix mpeg2 patch (2.66 KB, patch)
2006-07-26 09:47 UTC, Thijs Vermeir
none Details | Review
500k mavix sample (500.00 KB, video/mpeg)
2006-07-26 14:29 UTC, Thijs Vermeir
  Details

Description Thijs Vermeir 2006-07-26 09:27:43 UTC
Please describe the problem:
when I try the typefind ele;ent on the mpeg2 stream from the mavix decoder the type of the stream is not found. because they seen to be using completely the standard. 

Steps to reproduce:
Just try to typefind the stream with GStreamer

Actual results:
No type found

Expected results:
mpeg2 type found

Does this happen every time?
Yes

Other information:
If it is needed I can provide a capture of the stream.

I made a patch that added the behavour of the mavix stream to the typefind element of mpeg, and it works for this element.
Comment 1 Thijs Vermeir 2006-07-26 09:47:01 UTC
Created attachment 69651 [details] [review]
Mavix mpeg2 patch

This patch makes it possible to detect a mpeg2 stream from a mavix encoder.
Comment 2 Tim-Philipp Müller 2006-07-26 10:03:25 UTC
Thanks for the report and the patch.

Could you also provide a sample of such a file where typefinding fails? You can create one with

 $ head --bytes=500k foo.mpg > sample.mpg

Comment 3 Thijs Vermeir 2006-07-26 14:29:43 UTC
Created attachment 69666 [details]
500k mavix sample

This is a sample of the mavix mpeg2 stream.
Gr,
Comment 4 Jan Schmidt 2006-07-27 05:01:20 UTC
On the face of it, the problem seems to be that there is about 600-700 bytes of junk at the start of the file. It looks like it was indiscriminately cut without respecting a the packet boundaries.

It seems reasonable to me that the typefind function could search some of the start of the file to skip such garbage, although it should probably do it more efficiently than in this patch, because it knows it needs a buffer that starts with 0x00 0x00 0x01 to have any hope of it being an MPEG packet header.
Comment 5 Thijs Vermeir 2006-07-28 07:52:49 UTC
This is a part of a MPEG2 stream (multicast)

So indeed there is some junk at the beginning of the stream that is not of any use for new subscribers of the multicast.

I will look at a more efficient way to solve this problem.
Comment 6 Thijs Vermeir 2006-08-17 07:30:49 UTC
This is not a Bug in GStreamer but bad use of GStreamer.
The RTP depayloader can strip of the first piece that is not in use.
Closing this bug as NOTABUG