* [linux-dvb] Where I can get the open sofware to play TS file?
@ 2008-07-29 12:38 loody
2008-07-29 13:01 ` Markus Rechberger
0 siblings, 1 reply; 7+ messages in thread
From: loody @ 2008-07-29 12:38 UTC (permalink / raw)
To: linux-dvb
Dear all:
I study 13818-1 recently, but I cannot understand the whole flow of
PCR, PTS and DTS.
Would someone please tell me where I can get any open TS-player or
part of source code which can help me to figure this part out?
ps:I have check ffmpeg and vcl, and both of them seem cannot play TS directly.
appreciate your help,
miloody
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [linux-dvb] Where I can get the open sofware to play TS file?
2008-07-29 12:38 [linux-dvb] Where I can get the open sofware to play TS file? loody
@ 2008-07-29 13:01 ` Markus Rechberger
2008-07-29 13:16 ` Nico Sabbi
0 siblings, 1 reply; 7+ messages in thread
From: Markus Rechberger @ 2008-07-29 13:01 UTC (permalink / raw)
To: loody; +Cc: linux-dvb
On Tue, Jul 29, 2008 at 2:38 PM, loody <miloody@gmail.com> wrote:
> Dear all:
> I study 13818-1 recently, but I cannot understand the whole flow of
> PCR, PTS and DTS.
> Would someone please tell me where I can get any open TS-player or
> part of source code which can help me to figure this part out?
> ps:I have check ffmpeg and vcl, and both of them seem cannot play TS directly.
>
you could use mplayer.
Markus
> appreciate your help,
> miloody
>
> _______________________________________________
> linux-dvb mailing list
> linux-dvb@linuxtv.org
> http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
>
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [linux-dvb] Where I can get the open sofware to play TS file?
2008-07-29 13:01 ` Markus Rechberger
@ 2008-07-29 13:16 ` Nico Sabbi
2008-07-29 16:11 ` Frederic CAND
2008-07-30 2:14 ` hermann pitton
0 siblings, 2 replies; 7+ messages in thread
From: Nico Sabbi @ 2008-07-29 13:16 UTC (permalink / raw)
To: linux-dvb
On Tuesday 29 July 2008 15:01:39 Markus Rechberger wrote:
> On Tue, Jul 29, 2008 at 2:38 PM, loody <miloody@gmail.com> wrote:
> > Dear all:
> > I study 13818-1 recently, but I cannot understand the whole flow
> > of PCR, PTS and DTS.
> > Would someone please tell me where I can get any open TS-player
> > or part of source code which can help me to figure this part out?
> > ps:I have check ffmpeg and vcl, and both of them seem cannot play
> > TS directly.
>
> you could use mplayer.
it's the most messy player around and also the least academical ;)
ffmpeg is much cleaner, but it doesn't expose how to use
PCR wrt to DTS and PTS.
To make it short: you can consider the PCR your "wallclock",
the DTS and the PTS are then timestamps when you should
begin to decode and display, respectively.
In a stream the DTS and PTS are always > PCR, thus you
have to buffer packets (PES payloads) and dispatch each packet whose
[PD]TS is <= last PCR seen to the respective decoder/player
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [linux-dvb] Where I can get the open sofware to play TS file?
2008-07-29 13:16 ` Nico Sabbi
@ 2008-07-29 16:11 ` Frederic CAND
2008-07-30 2:14 ` hermann pitton
1 sibling, 0 replies; 7+ messages in thread
From: Frederic CAND @ 2008-07-29 16:11 UTC (permalink / raw)
To: Nico Sabbi; +Cc: linux-dvb
Nico Sabbi a écrit :
> On Tuesday 29 July 2008 15:01:39 Markus Rechberger wrote:
>> On Tue, Jul 29, 2008 at 2:38 PM, loody <miloody@gmail.com> wrote:
>>> Dear all:
>>> I study 13818-1 recently, but I cannot understand the whole flow
>>> of PCR, PTS and DTS.
>>> Would someone please tell me where I can get any open TS-player
>>> or part of source code which can help me to figure this part out?
>>> ps:I have check ffmpeg and vcl, and both of them seem cannot play
>>> TS directly.
>> you could use mplayer.
>
> it's the most messy player around and also the least academical ;)
> ffmpeg is much cleaner, but it doesn't expose how to use
> PCR wrt to DTS and PTS.
> To make it short: you can consider the PCR your "wallclock",
> the DTS and the PTS are then timestamps when you should
> begin to decode and display, respectively.
> In a stream the DTS and PTS are always > PCR, thus you
> have to buffer packets (PES payloads) and dispatch each packet whose
> [PD]TS is <= last PCR seen to the respective decoder/player
>
Btw if vlc can't play a TS file then there's a problem in your computer
since I've been using it for a very long time and it works perfectly
fine to me (able to read a full TS from DVB-S, Demux it, presents the
list of the services within the stream on the top menu, a.s.o.)
--
CAND Frederic
Product Manager
ANEVIA
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [linux-dvb] Where I can get the open sofware to play TS file?
[not found] <mailman.5.1217347135.25488.linux-dvb@linuxtv.org>
@ 2008-07-29 21:10 ` Andrea Venturi
2008-07-30 3:51 ` loody
0 siblings, 1 reply; 7+ messages in thread
From: Andrea Venturi @ 2008-07-29 21:10 UTC (permalink / raw)
To: linux-dvb
[-- Attachment #1: Type: text/plain, Size: 2232 bytes --]
[sorry if i break the thread but i read this list in a digest form..]
>
> Subject:
> [linux-dvb] Where I can get the open sofware to play TS file?
> From:
> loody <miloody@gmail.com>
> Date:
> Tue, 29 Jul 2008 20:38:33 +0800
> To:
> linux-dvb@linuxtv.org
>
> To:
> linux-dvb@linuxtv.org
>
>
> Dear all:
> I study 13818-1 recently, but I cannot understand the whole flow of
> PCR, PTS and DTS.
>
as nico already told you, this PCR is the "tick" information that sync
remote decoders to the clock inside the source (the TS player).
then, DTS and PTS are timestamps on every frames with which the decoder
decide when decode or present each single frame.
the tough problem is that in a "real decoder" (aka cheap, crappy or
whatever..) you have though constraints on the buffer so you need to act
quickly otherwise you'll occur in underrun and overrun of these buffers,
i.e. artifacts (blocking freeze) on the screen.. (it depends on the
concealment techniques implemented..)
if you play a Ts in a "fatty" PC, with huge buffers, you don't mind to
be so picky in the PCR recovery so VLC and MPLAYER don't need to cope so
much to give a reasonable quality (albeit latency increases).
if you want, you can get some interesting tools to study PCR creation
and test something, multiplexing remultiplexing, on real TS (if you can
get them from the air..).
i work in Avalpa, a company developing a free (GPL) software toolbox for
digital television management, OpenCaster (formerly JustDvb-It), you can
get it here:
http://www.avalpa.com/component/content/article/12-newsflash/35-opencaster-ver10-release-today-2062008
this toolbox is composed of something like 10 different basic utitilities.
putting them together, you cold achieve a great number of services for
(interactive) digital television..
you should focus on "tsstamp" and "tspcmeasure", these are related to PCR.
hope that helps. let me know if you have more questions.
bye
andrea venturi
> Would someone please tell me where I can get any open TS-player or
> part of source code which can help me to figure this part out?
> ps:I have check ffmpeg and vcl, and both of them seem cannot play TS directly.
>
> appreciate your help,
> miloody
>
>
[-- Attachment #2: a_venturi.vcf --]
[-- Type: text/x-vcard, Size: 271 bytes --]
begin:vcard
fn:Andrea Venturi
n:;Andrea Venturi
org:Avalpa Digital Engineering SRL
adr;dom:;;Via dell'Arcoveggio 49/5;Bologna;BO;40129
email;internet:a.venturi@avalpa.com
title:CEO
tel;work:+39 0514187531
tel;cell:+39 3477142994
url:www.avalpa.com
version:2.1
end:vcard
[-- Attachment #3: Type: text/plain, Size: 150 bytes --]
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [linux-dvb] Where I can get the open sofware to play TS file?
2008-07-29 13:16 ` Nico Sabbi
2008-07-29 16:11 ` Frederic CAND
@ 2008-07-30 2:14 ` hermann pitton
1 sibling, 0 replies; 7+ messages in thread
From: hermann pitton @ 2008-07-30 2:14 UTC (permalink / raw)
To: Nico Sabbi; +Cc: linux-dvb
Hi,
Am Dienstag, den 29.07.2008, 15:16 +0200 schrieb Nico Sabbi:
> On Tuesday 29 July 2008 15:01:39 Markus Rechberger wrote:
> > On Tue, Jul 29, 2008 at 2:38 PM, loody <miloody@gmail.com> wrote:
> > > Dear all:
> > > I study 13818-1 recently, but I cannot understand the whole flow
> > > of PCR, PTS and DTS.
> > > Would someone please tell me where I can get any open TS-player
> > > or part of source code which can help me to figure this part out?
> > > ps:I have check ffmpeg and vcl, and both of them seem cannot play
> > > TS directly.
> >
> > you could use mplayer.
>
> it's the most messy player around and also the least academical ;)
> ffmpeg is much cleaner, but it doesn't expose how to use
> PCR wrt to DTS and PTS.
in many cases it is the best player around, the v4l2 implementation was
also always great, it is still most robust for A/V sync issues if you
are at hardware limits and it has unique features concerning dma audio.
> To make it short: you can consider the PCR your "wallclock",
> the DTS and the PTS are then timestamps when you should
> begin to decode and display, respectively.
> In a stream the DTS and PTS are always > PCR, thus you
> have to buffer packets (PES payloads) and dispatch each packet whose
> [PD]TS is <= last PCR seen to the respective decoder/player
>
What works best is not finished at all. Compiled a lot.
Concerning shuffling around HDTV files from m$ vista, with full Nvidia
h.264/AVC hardware acceleration, seemingly no flaws there, to x86_64
linux and back on the other hand, there is no winner yet.
Cheers,
Hermann
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [linux-dvb] Where I can get the open sofware to play TS file?
2008-07-29 21:10 ` Andrea Venturi
@ 2008-07-30 3:51 ` loody
0 siblings, 0 replies; 7+ messages in thread
From: loody @ 2008-07-30 3:51 UTC (permalink / raw)
To: Andrea Venturi; +Cc: linux-dvb
2008/7/30 Andrea Venturi <a.venturi@avalpa.com>:
> [sorry if i break the thread but i read this list in a digest form..]
>
>>
>> Subject:
>> [linux-dvb] Where I can get the open sofware to play TS file?
>> From:
>> loody <miloody@gmail.com>
>> Date:
>> Tue, 29 Jul 2008 20:38:33 +0800
>> To:
>> linux-dvb@linuxtv.org
>>
>> To:
>> linux-dvb@linuxtv.org
>>
>>
>> Dear all:
>> I study 13818-1 recently, but I cannot understand the whole flow of
>> PCR, PTS and DTS.
>>
>
> as nico already told you, this PCR is the "tick" information that sync
> remote decoders to the clock inside the source (the TS player).
if I interpret the spec wrong, please let me know.
1. From spec 2.4.2.2. It seems we have to calculate our own pcr value.
2. if above is true, equ 2-1 ~ equ 2-5 seems used to explain how
decoder get his own pcr.
3. if 2 is true, what will be our next step,when we finish get our own
pcr(i), where i is the offset respect to previous incoming pcr TS
package, PCR(i'')
I roughly draw the picture below:
PCR TS(i'') ------- video ------ audio ------ video ------ PCR TS(i')
^--------------------^ pass by i bytes and PCR(i) is
obtained from spec.
4. how does encoder generate pcr packages?
Does it just put the 24Mhz clock value on the TS pcr package?
if it so, why he needs to divide 300?
appreciate your kind help,
miloody
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2008-07-30 3:51 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-29 12:38 [linux-dvb] Where I can get the open sofware to play TS file? loody
2008-07-29 13:01 ` Markus Rechberger
2008-07-29 13:16 ` Nico Sabbi
2008-07-29 16:11 ` Frederic CAND
2008-07-30 2:14 ` hermann pitton
[not found] <mailman.5.1217347135.25488.linux-dvb@linuxtv.org>
2008-07-29 21:10 ` Andrea Venturi
2008-07-30 3:51 ` loody
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox