mkvtoolnix/tests
Moritz Bunkus 11f6ca8c19 mkvmerge: add container ID as "number" attribute in verbose/JSON identification
Several container formats provide an internal ID of some kind. mkvmerge
already output that ID for some of the container formats it supports
albeit under different property names:

- Matroska: "number"
- MPEG program streams: "stream_id" and "sub_stream_id", encoded as a
  hexadecimal string instead of integers
- MPEG transport streams: "ts_pid"

With this commit the support is extended to other container formats. The
MPEG program and transport stream reader modules output their IDs as the
property "number" (in addition to the older identifiers) in order to
have a consistent naming scheme which makes using the output easier for
other applications.

The changes are:

- QuickTime/MP4: the track ID from the 'tkhd' atom
- MPEG program stream: the sub-stream ID in the upper 32 bits and the
  stream ID in the lower 32 bits
- MPEG transport stream: the program ID
- Ogg/OGM: the stream's serial number field
- RealMedia: the track ID

Implements #1541.
2015-12-17 20:05:32 +01:00
..
test.d
unit
new_test
Rakefile
results.txt
run.rb
test-001mp3.rb
test-002aac.rb
test-003ac3.rb fix spelling of AC3/EAC3 to AC-3/E-AC-3 2015-09-22 20:42:51 +02:00
test-004aacmp4.rb
test-005flac.rb
test-006oggflac.rb
test-007oggvorbis.rb
test-008avi_divx3_mp3.rb
test-009realvideo_3.rb
test-010realvideo_4.rb
test-011srt.rb
test-012ssa.rb
test-013vobsubs.rb
test-014splitting_by_size.rb
test-015splitting_by_time.rb
test-016cuesheet.rb
test-017chapters.rb
test-018attachments.rb
test-019attachments2.rb
test-020languages.rb
test-021aspect_ratio.rb
test-022display_dimensions.rb
test-023no_x.rb
test-024sync_mp3.rb
test-025sync_vorbis.rb
test-026sync_pcm.rb
test-027default_track.rb
test-028compression.rb
test-029link.rb
test-032cues.rb
test-033timecode_scale.rb
test-034ac3misdetected_as_mp2.rb
test-035X_vfw_video.rb
test-036X_mp3.rb
test-037X_aac.rb
test-038X_ac3.rb
test-039X_flac.rb
test-041X_mp2.rb
test-042X_vorbis.rb
test-043X_wav.rb
test-044X_srt.rb
test-045X_ssa.rb
test-046X_chapters.rb
test-047X_tags.rb
test-048X_chapters_ogmstyle.rb
test-049ass.rb
test-050X_ass.rb
test-051ogm.rb
test-200mp2_from_mp4.rb
test-201avc_from_mp4_with_par.rb
test-202avc_from_mp4_with_par_bframes.rb
test-203wavpack_with_correctiondata.rb
test-204wavpack_without_correctiondata.rb
test-205X_cuesheets.rb
test-206X_vobsub.rb
test-207segmentinfo.rb Replaced all exception() classes with error_c() classes. Added support for reading SegmentUID, NextSegmentUID and PreviousSegmentUID from a --segmentinfo XML file. Added a test for such a XML file. 2005-02-11 23:29:39 +00:00
test-208cat_and_splitting.rb
test-209ac3misdeetected_as_mpeges.rb
test-210splitting_and_chapters.rb
test-211bug_segfault_reading_mp4.rb
test-212ssa_attachments.rb
test-213mp4_broken_pixel_dimensions.rb
test-214one_frame_avi.rb
test-215X_codec_extradata_avi.rb
test-216mp4_editlists.rb
test-217file_identification.rb
test-218theora.rb
test-219srt_short_timecodes.rb
test-220ass_with_comments_at_start.rb
test-221aac_lc_misdetected_as_sbr.rb Added a test case for AAC LC profile misdetection as being SBR. 2006-11-03 16:42:51 +00:00
test-222stereo_mode.rb
test-223ra_cook_keyframes.rb
test-224dts.rb
test-225dts_in_wav.rb
test-226h264.rb
test-227h264_with_garbage.rb
test-228h264_no_idr_slices.rb
test-229rav3_in_rm.rb
test-230h264_nalu_size_len_change.rb
test-231X_ac3_header_removal.rb
test-232h264_changing_sps_pps.rb
test-233srt_with_coordinates.rb
test-234avi_aac_codecid_0x706d.rb
test-235wav_fmt_chunk_length.rb
test-236ac3_in_mov.rb
test-237ac3_in_wav_iec61937_mode.rb
test-238ac3_in_wav_acm_mode.rb
test-239aac_with_id3_tags.rb
test-240dts_hd.rb
test-241ac3_with_id3_tags.rb
test-242ogm_with_chapters.rb
test-243avi_with_audio_garbage.rb
test-244iconv_missing_character.rb
test-245srt_timecode_formats.rb
test-246theora_pixel_aspect_ratio.rb
test-247attachment_selection.rb
test-248mpeg2.rb
test-249mpeg2_no_codecprivate.rb
test-250tag_selection.rb
test-251vc1_truehd_eac3_from_evo.rb
test-252native_mpeg4.rb
test-254avi_with_subs.rb
test-255aspect_ratio_display_dimensions.rb
test-256cropping_stereo_mode.rb
test-257theora_v1_1.rb
test-258srt_negative_timecodes.rb
test-259mp4_chapters_text_trak.rb
test-260version_numbers.rb
test-261line_endings_in_text_files.rb
test-262level1_with_size_0.rb
test-263ass_missing_text_in_format.rb
test-264avc_es_from_lavf_with_native_codecid.rb
test-265mkvinfo_clusters_with_unknown_size.rb
test-266mkvmerge_clusters_with_unknown_size.rb
test-267mkvextract_clusters_with_unknown_size.rb
test-268X_vp8.rb
test-269X_vp8_without_default_duration.rb
test-270ivf.rb
test-271ogg_flac_1_1_1.rb
test-272dirac.rb
test-273pgssup.rb
test-274h264_in_nalus_in_avi.rb
test-275srt_mixed_eol_styles.rb
test-276h264_without_nalus_in_avi.rb
test-277display_dimensions_fixing_aspect_ratio_usage.rb
test-278turning_off_compression.rb
test-279packet_queue_not_empty_ivf.rb
test-280replace_one_byte_with_ebmlvoid.rb
test-281idr_after_non_idr_not_recognized.rb
test-282mkvextract_error_on_non_existing_file.rb
test-283no_video_on_avi.rb
test-284merging_chapter_editions_when_appending.rb
test-285h264_misdetected_as_mp3.rb
test-286vp8_in_ogg.rb
test-287mkvextract_exit_codes.rb
test-288identify_files_by_amg.rb
test-289wav_unsupported_formattag.rb
test-290seven_bytes_aac_codec_data.rb
test-291waveformatextensible.rb
test-292avi_aac_706d_privsize_huge.rb
test-293aac_adif_misdetected_as_video.rb
test-294vobsub_negative_delay.rb
test-295vc1_rederiving_frame_types.rb
test-296video_frames_duration_0.rb
test-297mpeg_transport_streams.rb
test-298ts_language.rb
test-299ts_ghost_entries_in_pmt.rb
test-300ts_dts_duplicate_timestamps.rb
test-301ts_pgssub.rb
test-302pat_pmt_only_once.rb
test-303mpeg_ts_eac3_pmt_descriptor_tag_0x7a.rb
test-304eac3_pes_private_but_no_pmt_descriptor_tag.rb
test-305ui_locale_en_US.rb
test-306ui_locale_de_DE.rb
test-307ui_locale_es_ES.rb
test-308ui_locale_fr_FR.rb
test-309ui_locale_it_IT.rb Tests: unify and simplify UI locale test scripts 2013-10-26 14:06:04 +02:00
test-310ui_locale_ja_JP.rb
test-311ui_locale_lt_LT.rb
test-312ui_locale_nl_NL.rb
test-313ui_locale_ru_RU.rb
test-314ui_locale_tr_TR.rb
test-315ui_locale_uk_UA.rb
test-316ui_locale_zh_CN.rb
test-317ui_locale_zh_TW.rb
test-318ui_locale_invalid.rb
test-319wav_with_pcm_detected_as_dts.rb
test-320ts_aac.rb
test-321vc1_without_markers.rb
test-322propedit_track_headers.rb
test-323propedit_segment_info.rb
test-324propedit_chapters.rb
test-325propedit_tags.rb
test-326mpeg_ps_mpeg_audio_layer4.rb
test-327vp8_frame_type.rb
test-328dts_detected_as_ac3.rb
test-329X_timecodes_v2.rb
test-330dts_detection.rb
test-331read_buffer_underflow.rb
test-332eac3_misdetected_as_avc.rb
test-333wavpack_with_correction.rb
test-334mp4_audio_encoder_delay.rb
test-335ui_locale_cs_CZ.rb Tests: unify and simplify UI locale test scripts 2013-10-26 14:06:04 +02:00
test-336pgs_misdetected_as_dv.rb
test-337vc1_es_sequence_header_not_at_start.rb
test-338h264_width_height_pixl_format_non_420.rb
test-339eac3_dependent_frames.rb
test-340m2ts_interlaced_h264_timecode_every_second_frame.rb
test-341vob_interlaced_mpeg2.rb
test-342m2ts_interlaced_h264_from_arte.rb
test-343m2ts_interlaced_h264_match_of_the_day.rb
test-344microdvd_recognition.rb
test-345flag_enabled.rb
test-347h264_misdetected_as_ac3.rb
test-348srt_negative_timecodes2.rb
test-349h264_interlaced_default_duration.rb
test-350h264_progressive_default_duration.rb
test-351h264_vfr_with_timecode_file.rb
test-352timecode_scale_auto_libmatroska_assert.rb
test-353ac3_from_ts_with_missing_tcs_with_non_zero_first_tc.rb
test-354h264_60000_1001i_def_duration_60000_1000.rb
test-355chapters.rb
test-356tags.rb
test-357segment_info.rb
test-358usf.rb
test-359split_parts.rb
test-360X_chapters_hex_format.rb
test-361file_concatenation.rb
test-362xtr_avc.rb
test-363srt_colon_decimal_separator.rb
test-364qtmp4_track_with_empty_chunkmap_table.rb
test-365qtmp4_constant_sample_size.rb
test-366srt_with_space_in_timecode_arrow.rb
test-367vob_80ms_delay_by_b_frames.rb
test-368alac.rb
test-369mpeg_ts_timecode_overflow.rb
test-370propedit_attachments.rb
test-371doc_and_read_version.rb
test-372ui_locale_eu_ES.rb
test-373reading_linked_seek_heads.rb
test-374extract_chapters_with_ebml_void.rb
test-375keep_pcm_timecodes.rb
test-376append_empty_tracks.rb
test-377mp3_skip_id3_properly.rb
test-378deprecated_iso_639_2_codes.rb
test-379flv.rb
test-380split_frames.rb
test-381X_alac.rb
test-382split_chapters.rb
test-383mp4_text_track_subtitles.rb
test-384vobsub_in_mp4.rb
test-385split_parts_frames.rb
test-386flv_vp6f.rb
test-387mp4_free_invalid_size.rb
test-388split_parts_and_chapters.rb
test-389mpeg1_in_ps_misdetected_as_avc.rb
test-390timecode_info_on_resync.rb
test-391fix_bitstream_frame_rate.rb
test-392avi_audio_chunk_size_0.rb
test-393aac_audiospecificconfig_0channels.rb
test-394flv_negative_cts_offset.rb
test-395remove_bitstream_ar_info.rb
test-396X_pcm_mono_16bit.rb
test-397mpeg_ts_broken_pes_track_detection.rb
test-398flv1_no_pixel_dimensions.rb
test-399h264_append_and_default_duration.rb
test-400opus_experimental.rb
test-401opus_experimental_remux.rb
test-402opus_output_order.rb
test-403opus_remux_final.rb
test-404opus_extraction.rb
test-405packet_ordering_and_default_duration.rb
test-406ogm_chapters_ansi_encoded.rb
test-407empty_tag_and_chapter_files.rb
test-408utf_encodings_with_bom.rb
test-409mux_vp9.rb
test-410extract_vp9.rb
test-411ui_locale_pt_PT.rb
test-412ui_locale_pl_PL.rb
test-413memory_resize_nonfree_smaller.rb
test-414vc1_no_sequence_headers_before_key_frames.rb
test-415create_webm.rb
test-416dts_in_mp4.rb
test-417mkvextract_tracks_at_end_of_file.rb
test-418ac3_frame_size_0.rb
test-419mov_pcm_sample_size_1_sample_table_empty.rb
test-420matroska_attachment_no_fileuid.rb
test-421svq3_from_mov.rb
test-422ac3_rederive_track_parameters_from_bitstream.rb
test-423deprecated_iso639_codes.rb
test-424avc_recover_point_sei_before_second_field.rb
test-425mpeg_ts_timestamp_outlier.rb
test-426extract_write_bom_only_once.rb
test-427ui_locale_pt_BR.rb
test-428mkv_misdetected_as_ass.rb
test-429track_statistics_tags.rb
test-430cues_multiple_blocks_same_timecode.rb
test-431ssa_comments_exclamation_mark.rb
test-432concatenate_two_ac3_files.rb
test-433matroska_no_track_uid.rb
test-434mkvpropedit_no_track_uid.rb
test-435mp4_edit_list_duration_uses_global_time_scale.rb
test-436extract_ssa_extradata_after_events.rb
test-437ac3_from_avi_with_garbage.rb AC3 output: fix garbage-in-AVI handling 2014-09-08 14:43:20 +02:00
test-438pcm_in_vob.rb
test-439pcm_in_m2ts.rb
test-440chapter_display_language_default_value.rb
test-441mkvmerge_mp4_big_endian_pcm.rb
test-442ui_locale_ca_ES.rb
test-443hevc_keep_user_data.rb
test-444pcm_statistics_from_packaged_sources.rb
test-445teletext_subs_missing_second_line.rb
test-446mkvinfo_output.rb
test-447mkvinfo_rounded_timecodes.rb
test-448mpeg_ts_with_hevc.rb
test-449segfaults_assertions.rb
test-450aac_loas_latm_in_mpeg_ts.rb
test-451aac_loas_latm_raw.rb
test-452mkvinfo_track_statistics_frame_order.rb
test-453mp4_with_hevc.rb
test-454mp4_dash.rb
test-455he_aacv2_ps.rb
test-456tta.rb
test-457mpeg_ts_all_pmts_with_crc_errors.rb
test-458pcm_big_endian_in_matroska.rb
test-459append_chapters_same_uid_with_sub_chapters.rb
test-460truehd.rb
test-461truehd_from_mpeg_ts.rb
test-462dtshd_reduce_to_core.rb
test-463a_ms_acm_with_track_tags.rb
test-464mp4_mp3_track_sampling_rate_0.rb
test-465propedit_gaps_of_130_bytes.rb
test-466mkvextract_avi_8bpp.rb
test-467mpeg_ts_eac3_type_0xa1.rb
test-468extract_cues.rb
test-469avi_keyframes.rb
test-470avi_idx1_video_not_00db.rb
test-471mp3_bit_id3_tag_at_start_of_file.rb
test-472flv_headers_signal_no_tracks.rb
test-473quicktime_cinepak_pcm.rb
test-474quicktime_rpza.rb
test-475quicktime_ima4_audio.rb
test-476hevc_append_and_set_default_duration.rb
test-477ui_locale_sv_SE.rb
test-478ui_locale_sr_RS_latin.rb
test-479dts_7_1_channels.rb
test-480dts_express.rb
test-481dts_hd_high_resolution.rb
test-482hevc_no_aspect_ratio_in_sps.rb
test-483select_tracks_by_language.rb
test-484dts_without_core_xll_substream.rb
test-485dtshd_file_format.rb
test-486m2ts_eac3_with_extension_in_own_packet.rb
test-487matroska_version_and_read_version_with_opus.rb
test-488hevc_conformance_window_with_cropping.rb
test-489dts_es.rb
test-490sequence_numbers_no_0_in_first_gop.rb
test-491auto_additional_files_only_with_vts_prefix.rb
test-492truehd_ac3_setting_track_properties.rb
test-493truehd_ac3_setting_track_properties_mpeg_ts.rb
test-494dont_abort_with_aac_error_proection_specific_config.rb
test-495default_durataion_and_sync.rb
test-496segment_size_0.rb
test-497crash_in_base64_decoder.rb
test-498mp2_misidentification.rb
test-499propedit_tags_and_track_properties.rb
test-500mp4_eac3_fourcc_ec_3.rb
test-501mpeg_ts_pat_and_pmt_crc_errors.rb
test-502ui_locale_sr_RS.rb
test-503pcm_in_mkv_varying_samples_per_packet.rb
test-504dts_96_24_identification.rb
test-505cisco_talos_can_0036.rb
test-506cisco_talos_can_0037.rb
test-507rerender_track_headers.rb
test-508splitting_by_parts_with_segment_linking.rb
test-509rerender_track_headers_chapters_attachments.rb
test-510propedit_add_attachments_without_meta_seek_present.rb
test-511propedit_ensure_seek_head_exists_at_front.rb
test-512json_identification.rb
test-513vp9_10bit_key_frame_detection.rb
test-514remove_track_statistics_tags_during_remux.rb