Commit Graph

2202 Commits

Author SHA1 Message Date
Moritz Bunkus
38dfa553a2 Disallow putting AVC/h.264 video in VfW compatibility mode. Can be forced with a new --engage option. 2005-08-21 13:04:48 +00:00
Moritz Bunkus
f86057e18d Fixed AVC extraction. Patch by Mike Matsnev <mike () po ! cs ! msu !su>. 2005-08-21 12:37:25 +00:00
Moritz Bunkus
5833f47656 Also write \r to stdout on Windows if it is the last character to be written. Flush stdout afterwards so that frontends (e.g. mmg) receive the output immediately. 2005-08-17 15:28:47 +00:00
Moritz Bunkus
0bdb3d83c2 Merged 3027 from https://svn.bunkus.org/mosu/trunk/prog/video/librmff 2005-08-17 13:13:02 +00:00
Moritz Bunkus
0a4e6d625c Cast size_t arguments to something whose size is known (or that matches the format specifier). 2005-08-17 11:46:09 +00:00
Moritz Bunkus
c6744290e7 Strip \r when outputting to stdout on Windows as Windows writes the \r on \n itself. 2005-08-16 17:14:54 +00:00
Moritz Bunkus
837a4bf7bb Simplified adding attachments both from the command line and from input files. A new function, add_attachment(), takes a flat attchment_t structure as its argument. Only render_attachment() deals with the relevant libmatroska classes while other readers do not have to anymore. The change in test/results.txt is intended. 2005-08-15 20:47:56 +00:00
Moritz Bunkus
7840cd800d Another version of the sound STSD atom: v2. Undocumented so far, but let's just skip 68 bytes ahead to the ESDS thingy. 2005-08-14 10:11:39 +00:00
Moritz Bunkus
cd661e5b2b Added 'pnot' to the list of atoms considered to be valid for Quicktime/MP4 files. 2005-08-13 10:58:44 +00:00
Moritz Bunkus
f896ed4685 Skip all unknown atoms, not only the "known" unknown ones. 2005-08-13 10:50:11 +00:00
Moritz Bunkus
6b29e4298f Renamed all member variables to m_* and the others accordingly. Changed v2 timecode files to require the timecodes to be sorted. Introduced timecode format v2 which is identical to v2 but allows non-sorted timecodes for those users that want to shoot themselves in their collective feet. 2005-08-12 10:56:07 +00:00
Moritz Bunkus
3880790696 Compilation fix for building on Solaris. 2005-08-12 09:42:33 +00:00
Moritz Bunkus
4105d505f6 Removed the lower limit of 1000 for --timecode-scale. 2005-08-07 10:10:57 +00:00
Moritz Bunkus
7a170eb98c Always recalculate the maximum number of ns per cluster, not only for sample precision mode. Otherwise low values for --timecode-scale would cause libmatroska to assert(). 2005-08-07 10:01:35 +00:00
Moritz Bunkus
15f47f2741 Reworked the packet queueing if timecode files are involved. First, do not queue anything if no timecode file has been specified and don't create a factory in that case either. Second, queue only as many frames as are needed. This depends on the track type and codec used. Subtitle tracks do not need any queueing. Neither do most audio tracks with the exception of RealAudio. Most normal B frame video codecs like MPEG-4 part 2, MPEG-1/-2, RealVideo etc only need short queueing while AVC and all unknown video codecs should be fully queued. 2005-08-06 11:52:14 +00:00
Moritz Bunkus
2f9f2801e7 Flush the packetizers! 2005-08-06 11:36:45 +00:00
Moritz Bunkus
ee0ffc1b87 Moved the handling of CL args common to all programs to a special function. That way mkvmerge and mkvextract gain --redirect-output and --output-charset (which they partially had before as well). 2005-08-03 17:21:31 +00:00
Moritz Bunkus
9a6055bb2d Added an extraction mode for v2 timecode files. 2005-08-03 13:58:48 +00:00
Moritz Bunkus
0e39483664 Output a warning if a v2 timecode file contains non-sorted timecodes. 2005-08-03 13:08:44 +00:00
Moritz Bunkus
fcb91df81c Fixed initialization. Also made sure that stdio is only redirected once as the CL args are passed multiple times. 2005-08-03 12:41:20 +00:00
Moritz Bunkus
141fa9974e Use mm_stdio->write() instead of mm_stdio->puts() so that carriage returns are not removed. 2005-08-03 11:13:41 +00:00
Moritz Bunkus
df5e9d869b Added --output-charst just like in mkvmerge to mkvinfo. 2005-08-03 11:12:35 +00:00
Moritz Bunkus
dae3bf21a1 Small correction to the help output. 2005-08-03 11:08:27 +00:00
Moritz Bunkus
0a00ee4cc9 Forgot some stdio class initializations. 2005-08-03 11:00:38 +00:00
Moritz Bunkus
fb3b7fd8b2 Made the mx* output routines write to an instance of mm_io_c and added an option for mkvinfo ("-o") for redirecting its output to a file. 2005-08-03 10:26:08 +00:00
Moritz Bunkus
934de763c7 Updates. 2005-08-03 09:28:34 +00:00
Moritz Bunkus
371c67727e A bit more space above the check box. 2005-08-03 09:18:15 +00:00
Moritz Bunkus
6c0425c922 Moved the application of the timecode factory to the packet's timecodes from get_packet() to add_packet2(). It is also called after flush(). It assigns as many packets as possible regarding the possible presence of B frames. If it is a subtitle track or if the packetizer has been flushed then all remaining packets are applied. Removed the timecode_factory_c::peek_next() function. 2005-08-02 19:26:57 +00:00
Moritz Bunkus
801e2b9ef5 Added support for extracting h.264 / AVC tracks into proper h.264 ES streams. Patch by Matt Rice <topquark () sluggy ! net>. 2005-08-02 08:20:01 +00:00
Moritz Bunkus
25d6ccee1a Added a regression test for the segfault fixed in r2996. 2005-07-28 06:35:04 +00:00
Moritz Bunkus
b1d7f1a40c Do the setup before trying to convert the command line to UTF-8. Otherwise arguments with non-ASCII characters are not converted correctly. 2005-07-25 18:23:36 +00:00
Moritz Bunkus
871d1b744b Timecode file handling for B frames. Patch by Steve Lhomme (see AUTHORS). Does not work yet as far as I can tell. 2005-07-25 15:58:07 +00:00
Moritz Bunkus
b08f7dd45f Do not try to access elements in a vector that are not present. 2005-07-20 08:14:23 +00:00
Moritz Bunkus
06948800ad Don't truncate large values. 2005-07-19 20:01:07 +00:00
Moritz Bunkus
6bd0b741a2 Do not truncate integers after reading them from Matroska files -- e.g. display width/height etc. 2005-07-19 19:53:12 +00:00
Moritz Bunkus
3e0da0ff84 AVC frames are referenced differently. Updated the test results. 2005-07-19 19:52:15 +00:00
Moritz Bunkus
3b090fbb34 Do not truncate integers read from Matroska files. 2005-07-19 19:34:36 +00:00
Moritz Bunkus
c11c95126b Frames with forward-only references are more or less P frames. 2005-07-19 18:35:26 +00:00
Moritz Bunkus
54b6f712fa Updates. 2005-07-19 18:34:13 +00:00
Moritz Bunkus
218425a0f8 Don't pass objects through ... 2005-07-19 18:19:28 +00:00
Moritz Bunkus
052b45ab52 AVC/H.264: Non-I frames reference the previous "P" frame just as if "B" frames were referenced as well and not the previous I frame. 2005-07-19 17:31:43 +00:00
Moritz Bunkus
688ea33885 That Printf was producing wrong results on x86_64 for some reason. 2005-07-19 08:39:00 +00:00
Moritz Bunkus
f3bfcd091d Spelling. 2005-07-19 07:43:19 +00:00
Moritz Bunkus
8d72574b9f Changed the timecode parsers to be more flexible in what formats they accept. Removed all other timecode parsers except the one in common.cpp and made the other parts of the programs use this one. Updated the documentation. 2005-07-16 14:51:18 +00:00
Moritz Bunkus
5e5005e16d Do not reformat the <text> ... </text> entries during USF extraction. 2005-07-08 13:14:54 +00:00
Moritz Bunkus
ec3f6f4b33 Use the xml_parser_c class in the xml_formatter_c class instead of calling expat directly. 2005-07-08 12:55:12 +00:00
Moritz Bunkus
e502fc7c05 Older versions of expat don't know XML_ERROR_FINISHED yet. 2005-07-08 12:22:37 +00:00
Moritz Bunkus
c8426104bc Fixed support for USF subtitles stored in UTF-16 and UTF-32. Added support for USF subtitles stored in UTF-8 without a BOM. Both work by parsing the "<?xml ... encoding="..." ...?>" line and adjusting the "encoding" attribute if necessary. 2005-07-08 12:12:51 +00:00
Moritz Bunkus
84f7683e07 Wrote a small wrapper class around expat and converted the USF reader to using it. This is a pre-step for supporting XML files with encoding="UTF-16". 2005-07-07 14:09:27 +00:00
Moritz Bunkus
311e1837d4 Missing a newline. 2005-07-06 12:54:11 +00:00