Add info logging when packaging starts/finishes
Change-Id: I6adc2490e779242a34e3d2db11d349bd0c97eb9f
This commit is contained in:
parent
8277236fe7
commit
57e3e79a3d
|
@ -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<MediaStream*>::iterator it = streams_.begin();
|
||||
it != streams_.end();
|
||||
|
|
|
@ -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());
|
||||
|
|
|
@ -123,6 +123,7 @@ Status MP4Muxer::Finalize() {
|
|||
return segmenter_finalized;
|
||||
|
||||
FireOnMediaEndEvent();
|
||||
LOG(INFO) << "MP4 file '" << options().output_file_name << "' finalized.";
|
||||
return Status::OK;
|
||||
}
|
||||
|
||||
|
|
|
@ -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<BufferWriter> buffer(new BufferWriter());
|
||||
ftyp()->Write(buffer.get());
|
||||
|
|
Loading…
Reference in New Issue