Add info logging when packaging starts/finishes

Change-Id: I6adc2490e779242a34e3d2db11d349bd0c97eb9f
This commit is contained in:
Kongqun Yang 2015-05-11 17:52:53 -07:00
parent 8277236fe7
commit 57e3e79a3d
4 changed files with 9 additions and 2 deletions

View File

@ -51,6 +51,8 @@ Status Demuxer::Initialize() {
DCHECK(!media_file_); DCHECK(!media_file_);
DCHECK(!init_event_received_); DCHECK(!init_event_received_);
LOG(INFO) << "Initialize Demuxer for file '" << file_name_ << "'.";
media_file_ = File::Open(file_name_.c_str(), "r"); media_file_ = File::Open(file_name_.c_str(), "r");
if (!media_file_) { if (!media_file_) {
return Status(error::FILE_FAILURE, return Status(error::FILE_FAILURE,
@ -126,6 +128,8 @@ bool Demuxer::NewSampleEvent(uint32_t track_id,
Status Demuxer::Run() { Status Demuxer::Run() {
Status status; Status status;
LOG(INFO) << "Demuxer::Run() on file '" << file_name_ << "'.";
// Start the streams. // Start the streams.
for (std::vector<MediaStream*>::iterator it = streams_.begin(); for (std::vector<MediaStream*>::iterator it = streams_.begin();
it != streams_.end(); it != streams_.end();

View File

@ -143,8 +143,7 @@ bool MP4MediaParser::ParseBox(bool* err) {
// before the head of the 'moof', so keeping this box around is sufficient.) // before the head of the 'moof', so keeping this box around is sufficient.)
return !(*err); return !(*err);
} else { } else {
DLOG(WARNING) << "Skipping unrecognized top-level box: " VLOG(2) << "Skipping top-level box: " << FourCCToString(reader->type());
<< FourCCToString(reader->type());
} }
queue_.Pop(reader->size()); queue_.Pop(reader->size());

View File

@ -123,6 +123,7 @@ Status MP4Muxer::Finalize() {
return segmenter_finalized; return segmenter_finalized;
FireOnMediaEndEvent(); FireOnMediaEndEvent();
LOG(INFO) << "MP4 file '" << options().output_file_name << "' finalized.";
return Status::OK; return Status::OK;
} }

View File

@ -114,6 +114,9 @@ Status SingleSegmentSegmenter::DoFinalize() {
"Cannot open file to write " + options().output_file_name); "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. // Write ftyp, moov and sidx to output file.
scoped_ptr<BufferWriter> buffer(new BufferWriter()); scoped_ptr<BufferWriter> buffer(new BufferWriter());
ftyp()->Write(buffer.get()); ftyp()->Write(buffer.get());