Wykres commitów

224 Commity (master)

Autor SHA1 Wiadomość Data
loreg 8cae2ae5e9 Bug# 14594
h.264 RAP as I or I + recovery_point SEI

Two changes done:
1) esdots computes the duration of GOPs, even in the h.264 case. The change made is to consider an I frame without recovery_point SEI as beginning of a new GOP. This can be changed just setting rec_point_required = TRUE in esdots.c.
In this case a new GOP is started when we found I + recovery point SEI

2) nalunit has been modified so it's able to output the information about error recovery point SEI message. Just use 'esreport -x' and SEI recovery point messages will be reported with the same syntax as all the others.

e.g.

83644584/0036: NAL unit 0/6 (SEI)                     6: 06 06 01 a4 80 00
@@ Recovery Point SEI
   recovery_frame_cnt 0
   exact_match_flag 0
   broken_link_flag 1
   changing_slice_group_idc 0

--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4074
2008-10-24 16:13:03 +00:00
loreg 7dc61bf1f9 There is a commented code that if, activated, shows whether there are broken_link_flag in a h.264 stream.
Want to use it? Find 'broken_link_flag is 1' and uncomment that part of code.
Than compile and use esdots.

--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4073
2008-10-24 12:16:05 +00:00
tibs d2d9099928 Oops - gcc on Ubuntu points out this mistake.
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4072
2008-10-20 08:24:06 +00:00
tibs 16f6e337c0 Add (lazy) retrieval of PCR from TS packets.
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4071
2008-10-19 16:15:16 +00:00
tibs e1598da9c0 Bug 14603 -- this removes the remaining compilation warnings on my Mac OS X
build, and hopefully also in Linux. Ideally, do the same sort of thing for
the other "macro returning a constant string" cases.

--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4070
2008-10-18 16:15:26 +00:00
tibs 3ab74526ff Bug 14602: move to using <stdint.h> types for integers.
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4069
2008-10-18 15:04:34 +00:00
loreg 3579217878 correct a typo on the usage
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4068
2008-10-01 14:37:35 +00:00
tibs 66b15051d8 Make the __repr__ methods behave a bit better.
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4067
2008-09-22 22:29:05 +00:00
tibs f5453d8e32 PAT -- initial ideas
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4066
2008-09-21 20:14:26 +00:00
rrw fa9a6b71ee Modify copyright notice in ac3.c (Kynesim is a trading name ..)
Initial import of yuv2.

--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4065
2008-09-18 20:17:54 +00:00
tibs 5e19e0782a This is believed to be a sanitised version of tsserve's -tsdirect
startup, inspired by work done by Gareth. Still to be fully tested.

--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4064
2008-09-18 15:13:57 +00:00
tibs 37230ea362 This is a better way of implementing TSPacket, plus the code is (erm) correct
in (for instance) __repr__. The only snag is that I've not yet figured out
how to suppress the warning because the second argument to PyObject_AsReadBuffer
is meant to be "const void **", and I can't specify "const" in Pyrex. And
warnings are not nice...

--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4063
2008-09-17 20:34:42 +00:00
tibs 223c96020a Fix continuation lines in the Makefile so it works.
Fix "if (err = EOF)", which should be a comparison.

Various pedantries (petty stuff):
* Remove compiler warning on use of build_TS_reader_with_fns - this was because
  "char *" is signed on my Mac, whilst "byte *" is not. Fixed by making it
  exepct "byte *", and whilst I'm at it make pcapreport.c use the datatypes from
  compat.h -- not because they're better than the stdint.h type, because they
  clearly aren't, but purely for consistancy (long term, I still want to move
  to stdint types - it should be easier now as we don't need to support ancient
  compilers))
* Reformat pcapreport.c (this is going to make for a big difference, oh well)
  to standard tstools indentation patterns.

--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4062
2008-09-09 19:01:50 +00:00
rhodri 2b3fb08215 Add AC3 support to esmerge.
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4061
2008-09-09 13:45:11 +00:00
rhodri 9f0b83b97b Add m2ts2ts.
Utility to strip the timestamps off M2TS files and reorder the packets to present a normal TS file.

Known limitations: fails to detect discontinuities, and can produce bad (misordered) TS files as a result

--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4060
2008-09-09 13:44:14 +00:00
tibs 21f045d8ed Thinking about array handling...
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4059
2008-09-08 20:27:13 +00:00
tibs aecc545ec8 OK, this is just pedantry
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4058
2008-09-07 19:34:36 +00:00
tibs a4c3af2bda Make the doctest slightly less interesting, but a lot faster.
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4057
2008-09-07 19:33:15 +00:00
tibs a44d55f8bf Basic TS file reading now fleshed out.
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4056
2008-09-07 19:00:29 +00:00
tibs 4526d13d5a Some (admittedly inefficent, but this may not matter) TS processing now added
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4055
2008-09-06 17:41:26 +00:00
rrw aa08148c62 pcapreport can now report on disparities between PCR and
recorded packet times.

--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4054
2008-09-05 18:06:52 +00:00
rrw 05f19a9139 Remove spurious warnings from misc.c
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4053
2008-09-05 16:12:28 +00:00
rrw ed1c6f0783 Add licence blocks.
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4052
2008-09-05 16:11:56 +00:00
rrw 025d598651 You can now run pcapreport to report on a pcap file (in a very limited
way!). Next step is to analyse PCR against the pcap timestamps.

--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4051
2008-09-05 16:09:58 +00:00
tibs 1909507d9b Begin support for TS files.
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4050
2008-09-04 21:20:52 +00:00
tibs 1540f806c6 Add the ability to use the "with" statement on ESFile.
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4049
2008-09-03 09:22:43 +00:00
tibs 657f94b363 Update to use segment 11 of the Elephant's Dream (HD) data as test data.
Improve the reporting of ES unit data slightly.

--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4048
2008-09-02 12:18:15 +00:00
tibs 8be8e9acf8 Added a data directory. Nothing in it as yet, except a README pointing to some
useful sources of data. This *may* help solve the issue of what test data to
use.

--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4047
2008-08-29 19:44:28 +00:00
tibs c89d69b15e It looks like seeking does work.
Use of ESOffset sorted out a bit more -- I think it now makes sense.

And since I can't find any way for doctest to "see" C stdout/stderr,
just make rundoctest.py output an explanatory message (and the RED/GREEN
thing just makes it a bit quicker to ignore worrying texts).

--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4046
2008-08-28 20:33:47 +00:00
tibs a5313c03ec The basics of seek now written -- yet to test it actuall goes to the right
place, though...

--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4045
2008-08-27 22:16:02 +00:00
tibs 179171dcfc Add alias -i to the -mcastif switch, because the latter really is
a pain to type, and I got lazy.

--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4044
2008-08-27 12:57:17 +00:00
tibs fb998f5655 Start towarards seeking -- properly support ES offsets.
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4043
2008-08-26 21:44:05 +00:00
tibs 2f63aad957 A little bit further -- now able to create arbitrary ES units
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4042
2008-08-26 20:37:15 +00:00
tibs da39d46655 Some ES attributes added.
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4041
2008-08-25 18:22:01 +00:00
tibs cabde235d0 Gradually iterating towards the obvious -- of course I didn't need to
involve Python files.

--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4040
2008-08-24 18:48:40 +00:00
tibs 02f72c180d (a) learn how to do comparisons, (b) make ES units comparable
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4039
2008-08-23 21:15:29 +00:00
tibs 1750c74d44 Tidy up a bit, by moving the Python binding stuff (i.e., the Pyrex related
stuff) into a separate directory.

--HG--
rename : test.txt => python/test.txt
rename : tstools.pyx => python/tstools.pyx
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4038
2008-08-22 23:08:38 +00:00
tibs e809155798 Make an ESStream more file-like, including initial support for opening for
read *or* write. Thus change the way it is actually opened for read.

--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4037
2008-08-22 22:58:15 +00:00
tibs c6fd86b273 NOt much change...
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4036
2008-08-20 22:11:27 +00:00
tibs 33f2feef01 Support an alternative location of test data, and also lose (notional) Python
2.2 support in the rundoctest script.

--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4035
2008-08-19 14:49:00 +00:00
loreg d036b098e6 Add documentation in tools.txt for the -fr switch for esdots.
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4034
2008-08-19 10:49:16 +00:00
loreg 7fa75f036a The frame rate can be given in input using the -fr switch.
Default value is 25.00, so if no value is given the code computes everything exacly as before.
The value of the frame rate is used to compute the gop duration.

--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4033
2008-08-19 10:46:56 +00:00
tibs 7aa5d73219 With a little bit of internal data.
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4032
2008-08-18 22:52:39 +00:00
tibs 6eb70d4409 A bit more progress -- iterating over ES units (but can't do anything with them).
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4031
2008-08-18 21:43:53 +00:00
rrw 354d0d09b9 1. Add an option to allow periodic retransmission of PAT and PMT in
esmerge

2. Do not output spurious packets if in tsdirect mode in tsserve.

--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4030
2008-08-11 22:30:47 +00:00
tibs eebcb3e33d Add some initial doctesting for the Pyrex bindings.
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4029
2008-08-10 17:43:24 +00:00
tibs 83cb113b8c Add license blocks to the Pyrex files (should have remembered earlier).
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4028
2008-07-31 10:09:59 +00:00
tibs 262f4b0c19 Add new program contributed by Gareth Bailey of Kynesim.
--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4027
2008-07-31 10:06:33 +00:00
tibs 75653b3cae Prevent a segmentation fault when the __dealloc__ method is called, by
using the (correct) close_elementary_stream. This is tolerant of a NULL
argument (because it's designed to pair with open_elementary_stream,
which can fail).

--HG--
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4026
2008-07-31 09:28:23 +00:00
tibs 4541c87b0c Rename es.pyx as tstools.pyx -- mainly because pyrex assumes that the final
Python package will have the same name as the pyx file (or nasty things
happen when you try to import it), and I ultimately want the Python module
to be called "tstools".

Add a (probably) temporary Makefile for pyrex, and the Setup.py that does
the actual work.

On my Mac, this how builds something I can import into Python, and then
discover errors in... so fix the 'filename' attribute of ESStream, both
to exist (!) and secondly to be visible to Python.

--HG--
rename : es.pyx => tstools.pyx
extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%4025
2008-07-30 22:07:47 +00:00