From: Josef Wolf <jw@raven.inka.de>
To: linux-dvb@linuxtv.org
Subject: Re: [linux-dvb] How to convert MPEG-TS to MPEG-PS on the fly?
Date: Thu, 21 Aug 2008 23:14:37 +0200 [thread overview]
Message-ID: <20080821211437.GE32022@raven.wolf.lan> (raw)
In-Reply-To: <20080821191758.GD32022@raven.wolf.lan>
On Thu, Aug 21, 2008 at 09:17:58PM +0200, Josef Wolf wrote:
> On Wed, Aug 20, 2008 at 11:10:06PM +0200, Josef Wolf wrote:
>
> > jw@dvb1:~$ dvbsnoop -s pes -if zdf.test|grep Stream_id|head -40
> > Stream_id: 224 (0xe0) [= ITU-T Rec. H.262 | ISO/IEC 13818-2 or ISO/IEC 11172-2 video stream]
> > Stream_id: 0 (0x00) [= picture_start_code]
> > Stream_id: 181 (0xb5) [= extension_start_code]
> > Stream_id: 1 (0x01) [= slice_start_code]
> > Stream_id: 2 (0x02) [= slice_start_code]
> > [ consecutive lines deleted ]
> > Stream_id: 34 (0x22) [= slice_start_code]
> > Stream_id: 35 (0x23) [= slice_start_code]
> > [ here the list of stream ids start over again and repeats ]
>
> Table 2-18 in iso-13818-1 don't list any stream_id's below 0xBC.
> Anybody knows what those stream_id's 0x00..0x23 and 0xB5 are for
> and whether they could be the reason for the artefacts?
The more I look at this PES stream the more confused I get: The
stream_id 0xe0 seems to transport PTS and DTS _only_. Everything
else seems to be contained in PES packets with those unknown
stream_id's. Here is what I see:
At byte position 0x0:
0x0000+0x0000: 00 00 01 e0 00 00 88 80 05 25 ea ad 04 69 00 00
0x0000+0x0010: 01 00 02 9f ff fb b8 00 00 01 b5 85 55 53 9c 00
stream_id: 0xe0
PES_packet_length: 0 (unlimited)
PES_priority: 1
PTS_DTS_flags: 10
PES_header_data_length: 5 (so the header ends on position 0x0d)
PTS: 25 ea ad 04 69 (bit fiddling not done yet)
at position 0x0e comes the next packet with stream_id==0x00
So this video PES packet don't contain any payload at all.
The next packet with stream_id==0xe0 is on position 0x2c83:
0x2c83+0x0000: 00 00 01 e0 00 00 88 c0 0b 35 ea ad 74 e9 15 ea
0x2c83+0x0010: ad 20 89 ff 00 00 01 b3 2d 02 40 33 24 9f 23 81
stream_id: 0xe0
PES_packet_length: 0 (unlimited)
PES_priority: 1
PTS_DTS_flags: 11
PES_header_data_length: 0x0b (so the header ends on position 0x13)
PTS: 35 ea ad 74 e9 (bit fiddling not done yet)
DTS: 15 ea ad 20 89 (bit fiddling not done yet)
payload: 0xff (ough, only one byte padding in payload?)
at position 0x14 comes the next packet with stream_id==0xb3
So this video packet don't contain any payload at all.
And so it goes on and on. All the payload seems to be contained
in those unknown packets. Packets with stream_id==0xe0 don't
seem to contain any payload at all.
Obviously, I must have misunderstood something very badly. But
I simply can't figure out what. I bet there is some sort of stuffing
or escaping that I should do when removing the TS layer?
Any ideas how those unknown stream_id's come to carry all the
ES contents?
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
next prev parent reply other threads:[~2008-08-21 21:20 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-20 21:10 [linux-dvb] How to convert MPEG-TS to MPEG-PS on the fly? Josef Wolf
2008-08-20 21:17 ` Steven Toth
2008-08-20 21:48 ` Josef Wolf
2008-08-21 12:10 ` barry bouwsma
2008-08-21 17:45 ` Josef Wolf
2008-08-22 1:07 ` Kevin Sheehan
2008-08-22 5:15 ` barry bouwsma
2008-08-22 15:16 ` Josef Wolf
2008-08-22 14:44 ` Josef Wolf
2008-08-22 15:44 ` Nick Ludlam
2008-08-25 19:02 ` Josef Wolf
2008-08-26 6:49 ` Nico Sabbi
2008-08-26 12:00 ` barry bouwsma
2008-08-26 22:45 ` Josef Wolf
2008-08-27 7:26 ` barry bouwsma
2008-08-27 22:00 ` Josef Wolf
2008-08-28 14:40 ` Johannes Stezenbach
2008-08-28 19:34 ` Josef Wolf
2008-08-28 21:09 ` Johannes Stezenbach
2008-08-28 22:48 ` Josef Wolf
2008-08-29 5:49 ` Josef Wolf
2008-08-29 15:45 ` [linux-dvb] PTS/DTS clarification (Was: How to convert MPEG-TS to MPEG-PS on the fly?) Josef Wolf
2008-08-26 22:31 ` [linux-dvb] How to convert MPEG-TS to MPEG-PS on the fly? Josef Wolf
2008-08-21 19:17 ` Josef Wolf
2008-08-21 21:14 ` Josef Wolf [this message]
2008-08-22 8:10 ` [linux-dvb] RE : " Thierry Lelegard
2008-08-25 19:55 ` Josef Wolf
2008-08-26 6:50 ` Nico Sabbi
2008-08-26 21:19 ` Josef Wolf
2008-08-22 7:57 ` Thierry Lelegard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080821211437.GE32022@raven.wolf.lan \
--to=jw@raven.inka.de \
--cc=linux-dvb@linuxtv.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox