shaka-packager/packager/media/codecs
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
..
aac_audio_specific_config.cc Windows build working 2016-08-18 08:30:26 -07:00
aac_audio_specific_config.h Rename filters directory to codecs 2016-05-27 16:13:19 -07:00
aac_audio_specific_config_unittest.cc Rename filters directory to codecs 2016-05-27 16:13:19 -07:00
avc_decoder_configuration_record.cc Update DEPS to fix mac build failure 2016-08-19 13:49:41 -07:00
avc_decoder_configuration_record.h Rename filters directory to codecs 2016-05-27 16:13:19 -07:00
avc_decoder_configuration_record_unittest.cc Rename filters directory to codecs 2016-05-27 16:13:19 -07:00
codecs.gyp Allow generating avc3 / hev1 from TS and Wvm files 2017-04-04 17:58:42 -07:00
decoder_configuration_record.cc Rename filters directory to codecs 2016-05-27 16:13:19 -07:00
decoder_configuration_record.h Rename filters directory to codecs 2016-05-27 16:13:19 -07:00
ec3_audio_util.cc Rename filters directory to codecs 2016-05-27 16:13:19 -07:00
ec3_audio_util.h Rename filters directory to codecs 2016-05-27 16:13:19 -07:00
ec3_audio_util_unittest.cc Rename filters directory to codecs 2016-05-27 16:13:19 -07:00
es_descriptor.cc Windows build working 2016-08-18 08:30:26 -07:00
es_descriptor.h Rename filters directory to codecs 2016-05-27 16:13:19 -07:00
es_descriptor_unittest.cc Rename filters directory to codecs 2016-05-27 16:13:19 -07:00
h26x_bit_reader.cc Rename filters directory to codecs 2016-05-27 16:13:19 -07:00
h26x_bit_reader.h Rename filters directory to codecs 2016-05-27 16:13:19 -07:00
h26x_bit_reader_unittest.cc Rename filters directory to codecs 2016-05-27 16:13:19 -07:00
h26x_byte_to_unit_stream_converter.cc Allow generating avc3 / hev1 from TS and Wvm files 2017-04-04 17:58:42 -07:00
h26x_byte_to_unit_stream_converter.h Allow generating avc3 / hev1 from TS and Wvm files 2017-04-04 17:58:42 -07:00
h264_byte_to_unit_stream_converter.cc Allow generating avc3 / hev1 from TS and Wvm files 2017-04-04 17:58:42 -07:00
h264_byte_to_unit_stream_converter.h Allow generating avc3 / hev1 from TS and Wvm files 2017-04-04 17:58:42 -07:00
h264_byte_to_unit_stream_converter_unittest.cc Allow generating avc3 / hev1 from TS and Wvm files 2017-04-04 17:58:42 -07:00
h264_parser.cc Change values for slice header attributes 2016-12-15 17:07:17 -08:00
h264_parser.h Fix x64 build on Windows. 2017-01-05 14:19:35 -08:00
h264_parser_unittest.cc Change values for slice header attributes 2016-12-15 17:07:17 -08:00
h265_byte_to_unit_stream_converter.cc Allow generating avc3 / hev1 from TS and Wvm files 2017-04-04 17:58:42 -07:00
h265_byte_to_unit_stream_converter.h Allow generating avc3 / hev1 from TS and Wvm files 2017-04-04 17:58:42 -07:00
h265_byte_to_unit_stream_converter_unittest.cc Allow generating avc3 / hev1 from TS and Wvm files 2017-04-04 17:58:42 -07:00
h265_parser.cc Change values for slice header attributes 2016-12-15 17:07:17 -08:00
h265_parser.h Fix x64 build on Windows. 2017-01-05 14:19:35 -08:00
h265_parser_unittest.cc Fix x64 build on Windows. 2017-01-05 14:19:35 -08:00
hevc_decoder_configuration_record.cc Allow generating avc3 / hev1 from TS and Wvm files 2017-04-04 17:58:42 -07:00
hevc_decoder_configuration_record.h Allow generating avc3 / hev1 from TS and Wvm files 2017-04-04 17:58:42 -07:00
hevc_decoder_configuration_record_unittest.cc Allow generating avc3 / hev1 from TS and Wvm files 2017-04-04 17:58:42 -07:00
nal_unit_to_byte_stream_converter.cc Fix x64 build on Windows. 2017-01-05 14:19:35 -08:00
nal_unit_to_byte_stream_converter.h Add encryption information in demuxer. 2016-09-08 17:13:36 +00:00
nal_unit_to_byte_stream_converter_unittest.cc Add encryption information in demuxer. 2016-09-08 17:13:36 +00:00
nalu_reader.cc Fix access unit detection problem for H264 2016-08-29 11:19:52 -07:00
nalu_reader.h Fix access unit detection problem for H264 2016-08-29 11:19:52 -07:00
nalu_reader_unittest.cc Rename filters directory to codecs 2016-05-27 16:13:19 -07:00
video_slice_header_parser.cc Fix x64 build on Windows. 2017-01-05 14:19:35 -08:00
video_slice_header_parser.h Rename filters directory to codecs 2016-05-27 16:13:19 -07:00
video_slice_header_parser_unittest.cc Rename filters directory to codecs 2016-05-27 16:13:19 -07:00
vp8_parser.cc Rename filters directory to codecs 2016-05-27 16:13:19 -07:00
vp8_parser.h Rename filters directory to codecs 2016-05-27 16:13:19 -07:00
vp8_parser_unittest.cc Rename filters directory to codecs 2016-05-27 16:13:19 -07:00
vp9_parser.cc Fix signed/unsigned mismatch on Windows. 2017-01-06 17:29:53 -08:00
vp9_parser.h Rename filters directory to codecs 2016-05-27 16:13:19 -07:00
vp9_parser_unittest.cc Rename filters directory to codecs 2016-05-27 16:13:19 -07:00
vp_codec_configuration_record.cc Fix signed/unsigned mismatch on Windows. 2017-01-06 17:29:53 -08:00
vp_codec_configuration_record.h Implemented WebM VP9 subsample encryption and decryption. 2016-08-18 13:55:36 -07:00
vp_codec_configuration_record_unittest.cc Add codec private data to VP9 in WebM. 2016-06-22 16:43:57 +00:00
vpx_parser.h Rename filters directory to codecs 2016-05-27 16:13:19 -07:00
webvtt_util.h Update DEPS to fix mac build failure 2016-08-19 13:49:41 -07:00