Ticket #7986: t7986_mythtranscode_buildindex_cleanup.diff
File t7986_mythtranscode_buildindex_cleanup.diff, 2.9 KB (added by , 14 years ago) |
---|
-
programs/mythtranscode/mpeg2fix.cpp
746 746 return 0; 747 747 } 748 748 749 mkvfile = !strcmp(inputFC->iformat->name, "mkv") ? 1 : 0; 750 749 751 if (offset) 750 752 av_seek_frame(inputFC, vid_id, offset, AVSEEK_FLAG_BYTE); 751 753 … … 2576 2578 if (!InitAV(fname.constData(), NULL, 0)) 2577 2579 return TRANSCODE_EXIT_UNKNOWN_ERROR; 2578 2580 2581 if (mkvfile) 2582 { 2583 VERBOSE(MPF_IMPORTANT, "Seek tables are not required for MKV"); 2584 return TRANSCODE_EXIT_UNKNOWN_ERROR; 2585 } 2586 2579 2587 av_init_packet(&pkt); 2580 2588 2581 2589 while (av_read_frame(inputFC, &pkt) >= 0) -
programs/mythtranscode/main.cpp
568 568 return TRANSCODE_EXIT_REMOTE_FILE; 569 569 } 570 570 571 if (outfile.isNull() )571 if (outfile.isNull() && !build_index) 572 572 outfile = infile + ".tmp"; 573 573 574 574 if (jobID >= 0) … … 576 576 577 577 Transcode *transcode = new Transcode(pginfo); 578 578 579 VERBOSE(VB_GENERAL, QString("Transcoding from %1 to %2") 580 .arg(infile).arg(outfile)); 579 if (!build_index) 580 VERBOSE(VB_GENERAL, QString("Transcoding from %1 to %2") 581 .arg(infile).arg(outfile)); 581 582 582 583 if (showprogress) 583 584 transcode->ShowProgress(true); 584 585 if (!recorderOptions.isEmpty()) 585 586 transcode->SetRecorderOptions(recorderOptions); 586 587 int result = 0; 587 if (!mpeg2 )588 if (!mpeg2 && !build_index) 588 589 { 589 590 result = transcode->TranscodeFile(infile, outfile, 590 591 profilename, useCutlist, … … 595 596 } 596 597 597 598 int exitcode = TRANSCODE_EXIT_OK; 598 if ((result == REENCODE_MPEG2TRANS) || mpeg2 )599 if ((result == REENCODE_MPEG2TRANS) || mpeg2 || build_index) 599 600 { 600 601 void (*update_func)(float) = NULL; 601 602 int (*check_func)() = NULL; … … 647 648 { 648 649 if (jobID >= 0) 649 650 JobQueue::ChangeJobStatus(jobID, JOB_STOPPING); 650 VERBOSE(VB_GENERAL, QString("Transcoding %1 done").arg(infile)); 651 VERBOSE(VB_GENERAL, QString("%1 %2 done") 652 .arg(build_index ? "Building Index for" : "Transcoding") 653 .arg(infile)); 651 654 } 652 655 else if (result == REENCODE_CUTLIST_CHANGE) 653 656 { -
programs/mythtranscode/mpeg2fix.h
244 244 int aud_stream_count; 245 245 int64_t ptsIncrement; 246 246 int64_t ptsOffset; //was initPTS 247 bool mkvfile; 247 248 248 249 int discard; 249 250 //control options