Commit Graph

2138 Commits

Author SHA1 Message Date
Moritz Bunkus
6a8e29fd18 Accidentally committed a lot of debug code. 2005-06-16 08:48:18 +00:00
Moritz Bunkus
056abda15b Changed the timecode_factory_c interface. The get_next() function receives the complete packet and not only a couple of its parameters. 2005-06-16 08:34:54 +00:00
Moritz Bunkus
70ac090c65 Output information about the assigned timecodes for Haali. 2005-06-16 08:09:34 +00:00
Moritz Bunkus
29f9905e5c Only define NULL if it is needed. 2005-06-12 09:31:11 +00:00
Moritz Bunkus
41f5e7af68 The queue for native MPEG4 must also be flushed if it contains two I/P frames and the next frame is an I or P frame. 2005-06-12 08:07:30 +00:00
Moritz Bunkus
3513341664 Assign consecutive numbers to all created packet_t objects. 2005-06-12 08:03:58 +00:00
Moritz Bunkus
e64f94534a Added a field for specifying a factor that the timecode factory might need, e.g. in MPEG2 field-vs-frame situations. 2005-06-10 12:31:57 +00:00
Moritz Bunkus
309b6e2cdf Make sure that all readers call their packetizers' flush() function when they run out of data. Make sure that all packetizers' flush() functions call generic_packetizer_c::flush() as well so that this one can save the fact that flush() has been called already. 2005-06-10 07:12:50 +00:00
Moritz Bunkus
0ead02b226 Removed some debug code. 2005-06-09 09:44:16 +00:00
Moritz Bunkus
16bb7e252a Check the saved window coordinates. If the window is minimized when mmg is closed then the coordinates are negative. Moving the window to that position upon restart will make it invisible. 2005-06-07 14:40:26 +00:00
Moritz Bunkus
f4d1a9d351 If a OGM style chapter file contains empty chapter names ("CHAPTER01NAME=" without something after the "=") then this chapter's timecode is used as the name instead of aborting. 2005-06-07 09:05:44 +00:00
Moritz Bunkus
1d3db66b7d Link all programs against Expat even if they do not use any of its functions. Fixes a link problem a user had on his AMD64 Ubuntu system. 2005-06-07 08:57:59 +00:00
Moritz Bunkus
abcb6ed05e Do not list the extensions of all supported media files in the "open file" dialog. It gets way too wide that way. 2005-06-05 17:07:21 +00:00
Moritz Bunkus
989f6a6c80 Added splitting after specific timecodes. 2005-06-05 14:39:57 +00:00
Moritz Bunkus
45ace4b5ea Split the --split parser function into separate onces for duration and size type arguments. Another preparation for splitting by other criteria. 2005-06-05 11:51:29 +00:00
Moritz Bunkus
62f78d92fb Implemented a more flexible system for splitting as a basis for split point and splitting-by-chapters support. 2005-06-05 11:28:19 +00:00
Moritz Bunkus
5d5aeaf3ce Ups... Forgot to change this back before committing. Now the segment was only found if its size was 0. 2005-06-05 11:01:39 +00:00
Moritz Bunkus
66ddac74d5 Handle infinite sized segments correctly. 2005-06-04 09:33:53 +00:00
Moritz Bunkus
9b8d9f1f0b Respect infinite sized elements. Use STL's sort algorithm and not my own bubble sort. 2005-06-04 09:32:33 +00:00
Moritz Bunkus
03adf4296b Added a new hack (--engage write_headers_twice) for writing the SegmentInfo and Tracks headers a second time directly after the clusters. Those will be indexed as well. 2005-05-29 09:53:37 +00:00
Moritz Bunkus
1ec08e1c28 Put <USFSubtitles> ... </USFSubtitles> into CodecPrivate, too. Otherwise the USF version number is lost. 2005-05-29 09:31:26 +00:00
Moritz Bunkus
ac9c14b265 Cleanups & speed improvements for the MPEG video parser. Patch by Steve Lhomme (see AUTHORS). 2005-05-26 17:59:10 +00:00
Moritz Bunkus
64f306d8eb Updated the MSVC project files. Patch by Steve Lhomee (see AUTHORS). 2005-05-26 17:48:13 +00:00
Moritz Bunkus
26a3f6083e Removed unneeded commented-out code. 2005-05-26 16:50:10 +00:00
Moritz Bunkus
a25e565d35 After add_packet() the function's packet_t argument belongs to the lower layers, and it must not be reused. It's a considerable speed gain. 2005-05-26 16:46:32 +00:00
Moritz Bunkus
8a2dfc771a No double delete. 2005-05-26 11:25:27 +00:00
Moritz Bunkus
96c08ba235 Complete rewrite of the parameter passing between generic_packetizer_c::process() and generic_packetizer_c::add_packet(). Those functions use the packet_t structure. There are a couple of more or less small memory leaks left. Those will be addressed later. 2005-05-25 21:31:26 +00:00
Moritz Bunkus
8ef2a14e09 Make sure that a track has actually been selected before trying to modify its data. Fixes Anthill bug 133. 2005-05-23 20:52:45 +00:00
Moritz Bunkus
ab93eb7ce6 'yes' is not a boolean, of course. 2005-05-23 20:35:28 +00:00
Moritz Bunkus
3d91659766 Implemented the extraction of USF subtitles. 2005-05-23 20:24:08 +00:00
Moritz Bunkus
f50aef90ef Added a XML pretty printer class. 2005-05-23 20:23:23 +00:00
Moritz Bunkus
d156b7e8cc Parse the <language> node of the <metadata> node as well instead of simply copying <metadata>. This is used as the default language if the <subtitles> node doesn't contain a valid <language> node. 2005-05-23 20:22:24 +00:00
Moritz Bunkus
b034ec2188 Moved the XML node name creation function into common.cpp. Escape the contents the XML way before putting them into CodecPrivate or the data blocks. 2005-05-22 17:40:11 +00:00
Moritz Bunkus
cbe0a25c38 Set the default compression method in the packetizer. Otherwise it would have to be set in each reader. 2005-05-22 10:05:03 +00:00
Moritz Bunkus
dce6b8c2ea The duration is not the end ;) 2005-05-22 08:30:32 +00:00
Moritz Bunkus
9a9029c27b Strip the <subtitle> ... </subtitle> tags for the data blocks. 2005-05-22 08:26:35 +00:00
Moritz Bunkus
8684a2289e Implemented the rest of the muxing process: creating the packetizers, handling the language, passing the data to the packetizer, sorting the entries. Removed all of the debug output, too. 2005-05-22 07:22:37 +00:00
Moritz Bunkus
77f39e7a2b Added an entry for USF subtitles to the "add file" dialog. 2005-05-22 07:20:28 +00:00
Moritz Bunkus
b887cde4a2 Slightly improved error message if a demultiplexer does not initialize properly. 2005-05-21 21:24:03 +00:00
Moritz Bunkus
4263140f14 The beginning of an USF parser. Implemented basic file parsing so that the private data and each entry is already available. Start and end timecodes are already stripped from the entries but not parsed yet. A lot of debug output, and there is no packetizer yet -- so only identifying a file works for the moment. Language processing is not implemented yet either. 2005-05-21 18:09:39 +00:00
Moritz Bunkus
99d2e62869 Enhanced the escape_xml function to escape quotes if necessary. 2005-05-21 18:07:29 +00:00
Moritz Bunkus
01c0480771 Use separate exceptions for errors thrown by mm_io_c and its children. 2005-05-21 16:30:58 +00:00
Moritz Bunkus
447db3e04a VobSub extraction has been purposefully changed by commit 2915. 2005-05-20 14:24:15 +00:00
Moritz Bunkus
0a3f88b6d7 Pad MPEG packets up to 2048 bytes for VobSub extraction because some programs depend on it. Patch by Mike Matsnev <mike () po !cs ! msu ! su> 2005-05-17 17:39:00 +00:00
Moritz Bunkus
596d11ae2f Moved the XML mapping table initialization completely into the xml_element_map_init() function. 2005-05-07 16:26:30 +00:00
Moritz Bunkus
d08be3d074 Stupid buffer overflow... 2005-05-07 15:59:08 +00:00
Moritz Bunkus
ece399a299 Removed the restriction of having a maximum of ten levels of nesting for Matroska elements. 2005-05-07 15:32:50 +00:00
Moritz Bunkus
3a975f4798 Properly set the state of all radio buttons when a project file is loaded. This also affects what happens when "File -> new" is selected. On Windows "split by time" was not selectable anymore after "File -> new" if it had been selected before. Fixes Anthill bug 131. 2005-05-07 15:11:51 +00:00
Moritz Bunkus
00c0cb47cb The default value for "MaxBlockAdditions" has been changed from 1 to 0 in order to match the specs. 2005-05-05 14:58:14 +00:00
Moritz Bunkus
e8cdd29702 Output text lines with new lines according to the OS (\r\n on Windows, \n on all other systems). 2005-05-05 14:51:30 +00:00