diff --git a/packager/media/base/demuxer.cc b/packager/media/base/demuxer.cc index e509816f0c..45400958f2 100644 --- a/packager/media/base/demuxer.cc +++ b/packager/media/base/demuxer.cc @@ -51,6 +51,8 @@ Status Demuxer::Initialize() { DCHECK(!media_file_); DCHECK(!init_event_received_); + LOG(INFO) << "Initialize Demuxer for file '" << file_name_ << "'."; + media_file_ = File::Open(file_name_.c_str(), "r"); if (!media_file_) { return Status(error::FILE_FAILURE, @@ -126,6 +128,8 @@ bool Demuxer::NewSampleEvent(uint32_t track_id, Status Demuxer::Run() { Status status; + LOG(INFO) << "Demuxer::Run() on file '" << file_name_ << "'."; + // Start the streams. for (std::vector::iterator it = streams_.begin(); it != streams_.end(); diff --git a/packager/media/formats/mp4/mp4_media_parser.cc b/packager/media/formats/mp4/mp4_media_parser.cc index 25f40f538f..6e23d232d8 100644 --- a/packager/media/formats/mp4/mp4_media_parser.cc +++ b/packager/media/formats/mp4/mp4_media_parser.cc @@ -143,8 +143,7 @@ bool MP4MediaParser::ParseBox(bool* err) { // before the head of the 'moof', so keeping this box around is sufficient.) return !(*err); } else { - DLOG(WARNING) << "Skipping unrecognized top-level box: " - << FourCCToString(reader->type()); + VLOG(2) << "Skipping top-level box: " << FourCCToString(reader->type()); } queue_.Pop(reader->size()); diff --git a/packager/media/formats/mp4/mp4_muxer.cc b/packager/media/formats/mp4/mp4_muxer.cc index 63a57d730e..5fdc30bb31 100644 --- a/packager/media/formats/mp4/mp4_muxer.cc +++ b/packager/media/formats/mp4/mp4_muxer.cc @@ -123,6 +123,7 @@ Status MP4Muxer::Finalize() { return segmenter_finalized; FireOnMediaEndEvent(); + LOG(INFO) << "MP4 file '" << options().output_file_name << "' finalized."; return Status::OK; } diff --git a/packager/media/formats/mp4/single_segment_segmenter.cc b/packager/media/formats/mp4/single_segment_segmenter.cc index 4bbd343b66..70e4070b31 100644 --- a/packager/media/formats/mp4/single_segment_segmenter.cc +++ b/packager/media/formats/mp4/single_segment_segmenter.cc @@ -114,6 +114,9 @@ Status SingleSegmentSegmenter::DoFinalize() { "Cannot open file to write " + options().output_file_name); } + LOG(INFO) << "Update media header (moov) and rewrite the file to '" + << options().output_file_name << "'."; + // Write ftyp, moov and sidx to output file. scoped_ptr buffer(new BufferWriter()); ftyp()->Write(buffer.get());