shaka-packager/packager/media/formats/mp4
Kongqun Yang a5dd1fd3d4 Allow generating avc3 / hev1 from TS and Wvm files
Added a flag --strip_parameter_set_nalus. When enabled, parameter
set NAL units, SPS/PPS for H264 and SPS/PPS/VPS for H265, are stripped
from frames when converting NAL byte stream (AnnexB stream) to NAL
unit stream, which generates avc1/hvc1; otherwise they are not
stripped, and avc3/hev1 is generated.

Parameter set NAL units should not be stripped if they are varying
in the frames otherwise the frames may fail to be decoded.

The flag is enabled by default as we don't usually see varying
SPS/PPS/VPS and it is more space efficient with them stripped.

Set --strip_parameter_set_nalus=false to disable the flag if there
are varying SPS/PPS/VPS in the frames. This addresses #206.

Change-Id: I34bde6f33069f9f77d51a510b39f58a0f0e141aa
2017-04-04 17:58:42 -07:00
..
box.cc Fix x64 build on Windows. 2017-01-05 14:19:35 -08:00
box.h Fix x64 build on Windows. 2017-01-05 14:19:35 -08:00
box_buffer.h Rename top level namespace to shaka 2016-05-24 21:55:55 +00:00
box_definitions.cc Allow generating avc3 / hev1 from TS and Wvm files 2017-04-04 17:58:42 -07:00
box_definitions.h Fix x64 build on Windows. 2017-01-05 14:19:35 -08:00
box_definitions_comparison.h VPCodecConfiguration box should inherit from FullBox instead of Box 2016-05-25 23:59:16 +00:00
box_definitions_unittest.cc Fix x64 build on Windows. 2017-01-05 14:19:35 -08:00
box_reader.cc Fix crash when seeing unsupported es descriptor data 2016-11-29 23:27:22 +00:00
box_reader.h Fix crash when seeing unsupported es descriptor data 2016-11-29 23:27:22 +00:00
box_reader_unittest.cc Fix x64 build on Windows. 2017-01-05 14:19:35 -08:00
chunk_info_iterator.cc Rename top level namespace to shaka 2016-05-24 21:55:55 +00:00
chunk_info_iterator.h Rename top level namespace to shaka 2016-05-24 21:55:55 +00:00
chunk_info_iterator_unittest.cc Replace scoped_ptr with std::unique_ptr 2016-08-18 17:12:36 -07:00
composition_offset_iterator.cc Rename top level namespace to shaka 2016-05-24 21:55:55 +00:00
composition_offset_iterator.h Rename top level namespace to shaka 2016-05-24 21:55:55 +00:00
composition_offset_iterator_unittest.cc Replace scoped_ptr with std::unique_ptr 2016-08-18 17:12:36 -07:00
decoding_time_iterator.cc Rename top level namespace to shaka 2016-05-24 21:55:55 +00:00
decoding_time_iterator.h Rename top level namespace to shaka 2016-05-24 21:55:55 +00:00
decoding_time_iterator_unittest.cc Replace scoped_ptr with std::unique_ptr 2016-08-18 17:12:36 -07:00
encrypting_fragmenter.cc Allow generating avc3 / hev1 from TS and Wvm files 2017-04-04 17:58:42 -07:00
encrypting_fragmenter.h Fix x64 build on Windows. 2017-01-05 14:19:35 -08:00
fragmenter.cc Fix x64 build on Windows. 2017-01-05 14:19:35 -08:00
fragmenter.h Update DEPS to fix mac build failure 2016-08-19 13:49:41 -07:00
key_rotation_fragmenter.cc Replace scoped_ptr with std::unique_ptr 2016-08-18 17:12:36 -07:00
key_rotation_fragmenter.h Windows build working 2016-08-18 08:30:26 -07:00
mp4.gyp Rename filters directory to codecs 2016-05-27 16:13:19 -07:00
mp4_media_parser.cc Allow generating avc3 / hev1 from TS and Wvm files 2017-04-04 17:58:42 -07:00
mp4_media_parser.h Replace scoped_ptr with std::unique_ptr 2016-08-18 17:12:36 -07:00
mp4_media_parser_unittest.cc Fix x64 build on Windows. 2017-01-05 14:19:35 -08:00
mp4_muxer.cc Allow generating avc3 / hev1 from TS and Wvm files 2017-04-04 17:58:42 -07:00
mp4_muxer.h Replace scoped_ptr with std::unique_ptr 2016-08-18 17:12:36 -07:00
multi_segment_segmenter.cc Fix x64 build on Windows. 2017-01-05 14:19:35 -08:00
multi_segment_segmenter.h Replace scoped_ptr with std::unique_ptr 2016-08-18 17:12:36 -07:00
segmenter.cc Fix x64 build on Windows. 2017-01-05 14:19:35 -08:00
segmenter.h Add support for 4K and 8K content. 2016-12-13 19:24:22 +00:00
single_segment_segmenter.cc Fix build break in Windows 2016-10-13 15:54:32 -07:00
single_segment_segmenter.h Replace scoped_ptr with std::unique_ptr 2016-08-18 17:12:36 -07:00
sync_sample_iterator.cc Rename top level namespace to shaka 2016-05-24 21:55:55 +00:00
sync_sample_iterator.h Rename top level namespace to shaka 2016-05-24 21:55:55 +00:00
sync_sample_iterator_unittest.cc Rename top level namespace to shaka 2016-05-24 21:55:55 +00:00
track_run_iterator.cc Fix x64 build on Windows. 2017-01-05 14:19:35 -08:00
track_run_iterator.h Replace scoped_ptr with std::unique_ptr 2016-08-18 17:12:36 -07:00
track_run_iterator_unittest.cc Fix x64 build on Windows. 2017-01-05 14:19:35 -08:00