Commit Graph

1443 Commits

Author SHA1 Message Date
Moritz Bunkus
8b41e3f949 Write codec extradata to the AVI if it is present which it is for e.g. HuffYuv. Fixes bug 157. 2005-10-04 17:49:36 +00:00
Moritz Bunkus
dc1f002065 Rewrote the reading function of the AVI reader to be much cleaner. It also allows one frame AVIs to be processed correctly. Fixes bug 156. 2005-10-04 17:30:09 +00:00
Moritz Bunkus
eebddbda7f Changed how frames are referenced in h.264/AVC video. References are kept intact when reading from Matroska. If no references are provided then the previous frame is referenced for non-I frames. Should fix bug 154. 2005-09-30 18:12:38 +00:00
Moritz Bunkus
39c71461c1 Do not erase in a vector while using iterators on it. 2005-09-29 20:04:07 +00:00
Moritz Bunkus
e757107878 Show the ID and the size of unknown elements. 2005-09-26 07:53:46 +00:00
Moritz Bunkus
19227e0ea6 Only use the extracted size if the current file is not being appended. Otherwise header values are not initialized. 2005-09-19 21:30:24 +00:00
Moritz Bunkus
d338c5dd12 Also fix the BITMAPINFOHEADER with the new pixel dimenions after getting them from the bitstream. Added a test case for this feature. 2005-09-19 07:49:22 +00:00
Moritz Bunkus
1f376290a2 Always escape quotes in XML files. 2005-09-18 19:01:25 +00:00
Moritz Bunkus
388bac2386 Always extract the aspect ratio information from the AVC private data. Otherwise overriding AR on the command line would cause two appended AVC tracks to have different private data because the AR information was still present in the first AVC track. 2005-09-18 12:55:34 +00:00
Moritz Bunkus
c3c252b32c Only activate the aspect ratio inputs if the current track is not being appended to another one. 2005-09-18 12:23:42 +00:00
Moritz Bunkus
ceeced6ffc Added a function for extracting the pixel width & height from the MPEG-4 part 2 bitstream. This is a workaround for buggy muxers writing wrong values to the source container, e.g. to MP4 files. Fixes bug 149. 2005-09-18 11:10:56 +00:00
Moritz Bunkus
9cbc0f4e56 0 means no duration which is the case for Real Media files. -1 means calculate the duration from the FPS which RM files do not really have. 2005-09-15 20:15:53 +00:00
Moritz Bunkus
826a119363 More security for bogus input from a reader. 2005-09-15 20:14:33 +00:00
Moritz Bunkus
60b5d0bfea Better placed and more debug output for the Quicktime/MP4 reader. 2005-09-15 20:12:40 +00:00
Moritz Bunkus
dad4cb8b57 The upper three bits are reserved and not guaranteed to be 0. 2005-09-15 16:09:25 +00:00
Moritz Bunkus
feb1a3be54 Some ASS files use a column "Actor" instead of "Name". This should be mapped to "Name" in Matroska as well. 2005-09-09 08:28:22 +00:00
Moritz Bunkus
af53ef8273 Variables have to be initialized. 2005-09-06 18:18:04 +00:00
Moritz Bunkus
2806bb0462 Try to get the combo box selections so that the currently visible value will actually be returned. I love wxWidgets! (sarcasm) Fixes Anthill bugs 132 and 146. 2005-09-06 17:43:28 +00:00
Moritz Bunkus
10557b0205 Make the compiler happy (and count == 0 an error). 2005-09-06 16:30:41 +00:00
Moritz Bunkus
d85536d30e Added a hack for keeping the bitstream AR info. 2005-09-06 09:47:27 +00:00
Moritz Bunkus
b998844107 Added support for 64bit chunk offset tables ("co64" atom). 2005-09-06 09:24:29 +00:00
Moritz Bunkus
c15f9a97c4 Remove the bitstream aspect ratio information from AVC/h.264 video tracks. 2005-09-04 15:06:06 +00:00
Moritz Bunkus
5c721f719e A more complete implementation. 2005-09-04 15:00:50 +00:00
Moritz Bunkus
852b960389 Convenience functions. 2005-09-04 14:56:29 +00:00
Moritz Bunkus
ada75f1768 Install the mkvmerge GUI guide by default into ${datadir}/mkvtoolnix, e.g. into /usr/share/mkvtoolnix. 2005-09-03 12:47:14 +00:00
Moritz Bunkus
ae33cf1763 Directly return the bits read from a bit_cursor_c as exceptions are used for error feedback. 2005-09-03 12:32:53 +00:00
Moritz Bunkus
d172fdb2b4 Changed the bit cursor to use exceptions on EOF. Added a bit writer needed for e.g. AVC AR removal. 2005-09-03 12:13:44 +00:00
Moritz Bunkus
6fe7ae4afd Look for the mkvmerge GUI guide in various paths before asking the user to select one. 2005-09-01 15:05:05 +00:00
Moritz Bunkus
299aaebd2e The mm_io_c classes expect file names encoded in UTF-8. 2005-08-31 06:59:57 +00:00
Moritz Bunkus
23144fb6fd Included commands for getting AVC from AVI into MP4 suitable for inclusion into MKV in the AVC-in-VfW-mode warning message. 2005-08-30 11:52:11 +00:00
Moritz Bunkus
8a3bc6086a Bumped the version number to 1.5.6. 2005-08-30 11:40:25 +00:00
Moritz Bunkus
55bdf3bfbf Only output the display dimensions if they have been set (e.g. not on audio tracks). 2005-08-30 10:53:36 +00:00
Moritz Bunkus
c6713105d0 The block duration is default_duration * number_of_frames. 2005-08-28 11:49:10 +00:00
Moritz Bunkus
3eaed084ed Use STL maps instead of vectors and structs in many places in the track info class. Easier to read, and for this task maps are suited way better than vectors anyway. 2005-08-27 16:13:48 +00:00
Moritz Bunkus
4ab272cbcc A lot of fixes for compiler warnings: size_t argument vs. %d/%u printf format; couple pointer assignments with different signes; couple of potentionally uninitialized variables. 2005-08-26 08:21:46 +00:00
Moritz Bunkus
1a378a21e7 Default display width/height to pixel width/height for video tracks read from Matroska files. Do not extract the AR from a MPEG-4 part 2 track if the display dimensions are given. 2005-08-25 09:17:25 +00:00
Moritz Bunkus
56703d4959 Always output native MPEG-4 ASP when reading native MPEP-4 ASP regardless of the --engage native_mpeg4 CL argument. 2005-08-25 09:06:33 +00:00
Moritz Bunkus
7a27f3bd9e Native MPEG-4 ASP: simplified and fixed the timecode/duration assignment -- hopefully! 2005-08-24 20:31:04 +00:00
Moritz Bunkus
23b476d8a1 Convert embedded fonts and pictures in SSA and ASS files into Matroska attachments. Keep other sections and non-"Dialogue:" lines from the "[Events]" section in the CodecPrivate in order to keep as much from the original file as possible. Renamed the member variables of the buffer_t structure in the process. 2005-08-24 11:18:24 +00:00
Moritz Bunkus
11b53ee089 Cosmetics: removed tab characters and trailing whitespaces. 2005-08-22 07:14:22 +00:00
Moritz Bunkus
a87386b8c8 Fixed --delay. 2005-08-21 20:04:09 +00:00
Moritz Bunkus
18d1ab995f Single-digit values followed by 's' were not recognized as a valid unit with number. 2005-08-21 18:07:59 +00:00
Moritz Bunkus
09551a3f94 Better error message. 2005-08-21 17:59:18 +00:00
Moritz Bunkus
1f725520dd Bumped the version number to 1.5.5 and set the version code name. 2005-08-21 13:06:50 +00:00
Moritz Bunkus
2e57b08d67 More positive wording. 2005-08-21 13:05:24 +00:00
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
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