Feature #502 » burn-0.2.0-beta5-rem_requant_v2.diff
burn-0.2.0-beta5.patched//chain-dvd.c 2011-01-14 16:10:20.189825445 +0100 | ||
---|---|---|
{
|
||
// insert requant step if required
|
||
if (get_job().get_requant_factor() > 1) {
|
||
const char* requant_call;
|
||
if ( global_setup().RequantType == requanttype_transcode )
|
||
requant_call = "tcrequant";
|
||
else if ( global_setup().RequantType == requanttype_metakine )
|
||
requant_call = "requant";
|
||
else
|
||
requant_call = "lxrequant";
|
||
shellprocess* requant = new shellprocess( "requant", shellescape( "vdrburn-dvd.sh" ) + requant_call );
|
||
shellprocess* requant = new shellprocess( "requant", shellescape( "vdrburn-dvd.sh" ) + "requant" );
|
||
requant->put_environment("VIDEO_FILE", m_currentRecording->get_video_track_path());
|
||
requant->put_environment("REQUANT_FILE", m_currentRecording->get_requant_path());
|
||
requant->put_environment("REQUANT_FACTOR", get_job().get_requant_factor());
|
burn-0.2.0-beta5.patched//common.c 2011-01-14 16:10:20.190825453 +0100 | ||
---|---|---|
{ tr("ProjectX") };
|
||
//{ tr("VDRSync"), tr("ProjectX") };
|
||
// --- requanttype --------------------------------------------------------
|
||
const char* requanttype_strings[requanttype_count] =
|
||
{ tr("M2VRequantizer"), tr("Transcode") , tr("lxdvdrip") };
|
||
int ScanPageCount(const std::string& Path)
|
||
{
|
||
cString path = AddDirectory(Path.c_str(), "menu-bg-*.png");
|
burn-0.2.0-beta5.patched//common.h 2011-01-14 16:10:20.190825453 +0100 | ||
---|---|---|
const int demuxtype_count( demuxtype_projectx + 1 );
|
||
extern const char* demuxtype_strings[demuxtype_count];
|
||
//!--- requanttype --------------------------------------------------------
|
||
enum requanttype
|
||
{
|
||
requanttype_metakine,
|
||
requanttype_transcode,
|
||
requanttype_lxdvdrip,
|
||
};
|
||
const int requanttype_count = requanttype_lxdvdrip + 1;
|
||
extern const char* requanttype_strings[requanttype_count];
|
||
int ScanPageCount(const std::string& Path);
|
||
std::string progress_bar(double current, double total, int length = 20);
|
||
void trim_left( std::string& text_, const char* characters_, std::string::size_type offset_ = 0 );
|
||
//!--- recording helper functions -----------------------------------------
|
||
std::string get_recording_datetime(const cRecording* recording_, char delimiter = '\t');
|
burn-0.2.0-beta5.patched//po/de_DE.po 2011-01-14 16:10:20.190825453 +0100 | ||
---|---|---|
msgid "ProjectX"
|
||
msgstr "ProjectX"
|
||
msgid "M2VRequantizer"
|
||
msgstr "M2VRequantizer"
|
||
msgid "Transcode"
|
||
msgstr "Transcode"
|
||
msgid "lxdvdrip"
|
||
msgstr "lxdvdrip"
|
||
msgid "Couldn't convert character sets!"
|
||
msgstr ""
|
||
... | ... | |
msgid "Demux using"
|
||
msgstr "Demultiplexer"
|
||
msgid "Requant using"
|
||
msgstr "Verkleinern mit"
|
||
msgid "Burn speed"
|
||
msgstr "Brenngeschwindigkeit"
|
||
burn-0.2.0-beta5.patched//po/fi_FI.po 2011-01-14 16:10:20.190825453 +0100 | ||
---|---|---|
msgid "ProjectX"
|
||
msgstr "ProjectX"
|
||
msgid "M2VRequantizer"
|
||
msgstr "M2VRequantizer"
|
||
msgid "Transcode"
|
||
msgstr "Transcode"
|
||
msgid "lxdvdrip"
|
||
msgstr "lxdvdrip"
|
||
msgid "Couldn't convert character sets!"
|
||
msgstr "Merkistömuunnos epäonnistui!"
|
||
... | ... | |
msgid "Demux using"
|
||
msgstr "Demuksausohjelmisto"
|
||
msgid "Requant using"
|
||
msgstr "Requant-ohjelmisto"
|
||
msgid "Burn speed"
|
||
msgstr "Polttonopeus"
|
||
burn-0.2.0-beta5.patched//po/fr_FR.po 2011-01-14 16:10:20.190825453 +0100 | ||
---|---|---|
msgid "ProjectX"
|
||
msgstr "ProjectX"
|
||
msgid "M2VRequantizer"
|
||
msgstr ""
|
||
msgid "Transcode"
|
||
msgstr ""
|
||
msgid "lxdvdrip"
|
||
msgstr ""
|
||
msgid "Couldn't convert character sets!"
|
||
msgstr ""
|
||
... | ... | |
msgid "Demux using"
|
||
msgstr "Demultipléxeur"
|
||
msgid "Requant using"
|
||
msgstr ""
|
||
msgid "Burn speed"
|
||
msgstr "Vitesse de gravure"
|
||
burn-0.2.0-beta5.patched//po/it_IT.po 2011-01-14 16:10:20.190825453 +0100 | ||
---|---|---|
msgid "ProjectX"
|
||
msgstr "ProjectX"
|
||
msgid "M2VRequantizer"
|
||
msgstr "M2VRequantizer"
|
||
msgid "Transcode"
|
||
msgstr "Transcode"
|
||
msgid "lxdvdrip"
|
||
msgstr "lxdvdrip"
|
||
msgid "Couldn't convert character sets!"
|
||
msgstr "Impossibile convertire insieme di caratteri!"
|
||
... | ... | |
msgid "Demux using"
|
||
msgstr "Utilizza Demux"
|
||
msgid "Requant using"
|
||
msgstr "Utilizza Requant"
|
||
msgid "Burn speed"
|
||
msgstr "Velocità scrittura"
|
||
burn-0.2.0-beta5.patched//po/nl_NL.po 2011-01-14 16:10:20.190825453 +0100 | ||
---|---|---|
msgid "ProjectX"
|
||
msgstr "ProjectX"
|
||
msgid "M2VRequantizer"
|
||
msgstr "M2VRequantizer"
|
||
msgid "Transcode"
|
||
msgstr "Transcode"
|
||
msgid "lxdvdrip"
|
||
msgstr "lxdvdrip"
|
||
msgid "Couldn't convert character sets!"
|
||
msgstr "Kan karaktersets niet converteren!"
|
||
... | ... | |
msgid "Demux using"
|
||
msgstr "Demultiplexer"
|
||
msgid "Requant using"
|
||
msgstr "Verkleinen met"
|
||
msgid "Burn speed"
|
||
msgstr "Brandsnelheid"
|
||
burn-0.2.0-beta5.patched//po/ru_RU.po 2011-01-14 16:10:20.191825462 +0100 | ||
---|---|---|
msgid "ProjectX"
|
||
msgstr "ProjectX"
|
||
msgid "M2VRequantizer"
|
||
msgstr "M2VRequantizer"
|
||
msgid "Transcode"
|
||
msgstr "Transcode"
|
||
msgid "lxdvdrip"
|
||
msgstr ""
|
||
msgid "Couldn't convert character sets!"
|
||
msgstr ""
|
||
... | ... | |
msgid "Demux using"
|
||
msgstr "???????????????"
|
||
msgid "Requant using"
|
||
msgstr "????????? ? ???????"
|
||
msgid "Burn speed"
|
||
msgstr "???????? ??????"
|
||
burn-0.2.0-beta5.patched//setup.c 2011-01-14 16:10:20.191825462 +0100 | ||
---|---|---|
PROCTOOLS_INIT_PROPERTY( CustomDiskSize, 200 ),
|
||
PROCTOOLS_INIT_PROPERTY( BurnSpeed, 0 ),
|
||
PROCTOOLS_INIT_PROPERTY( DemuxType, demuxtype_projectx ),
|
||
PROCTOOLS_INIT_PROPERTY( RequantType, requanttype_metakine ),
|
||
PROCTOOLS_INIT_PROPERTY( PreserveLogFiles, false ),
|
||
PROCTOOLS_INIT_PROPERTY( DefaultLanguage, 0 ),
|
||
PROCTOOLS_INIT_PROPERTY( MainMenuStatus, true ),
|
||
... | ... | |
Add( new menu::text_item( tr("--- Common settings --------------------------------------------------") ) );
|
||
Add( new menu::bool_edit_item( tr("Remove path component"), m_setup.RemovePath ) );
|
||
Add( new menu::list_edit_item( tr("Demux using"), m_setup.DemuxType, demuxtype_strings ) );
|
||
Add( new menu::list_edit_item( tr("Requant using"), m_setup.RequantType, requanttype_strings ) );
|
||
Add( new menu::number_edit_item( tr("Burn speed"), m_setup.BurnSpeed, 0, 32, tr("unlimited") ) );
|
||
Add( new menu::bool_edit_item( tr("Preserve logfiles"), m_setup.PreserveLogFiles ) );
|
||
Add( new menu::list_edit_item( tr("Spare language code"), m_setup.DefaultLanguage, track_info::get_language_codes(), false ) );
|
burn-0.2.0-beta5.patched//setup.h 2011-01-14 16:10:20.191825462 +0100 | ||
---|---|---|
proctools::property< int > CustomDiskSize;
|
||
proctools::property< int > BurnSpeed;
|
||
proctools::property< int > DemuxType;
|
||
proctools::property< int > RequantType;
|
||
proctools::property< bool > PreserveLogFiles;
|
||
proctools::property< int > DefaultLanguage;
|
||
proctools::property< bool > MainMenuStatus;
|
burn-0.2.0-beta5.patched//vdrburn-dvd.sh 2011-01-14 16:18:21.914825469 +0100 | ||
---|---|---|
requant)
|
||
REQUANT_FACTOR=$(echo "$REQUANT_FACTOR" | tr ',' '.')
|
||
echo requant $REQUANT_FACTOR 3 $VIDEO_SIZE
|
||
requant $REQUANT_FACTOR 3 $VIDEO_SIZE < "$VIDEO_FILE" > "$REQUANT_FILE"
|
||
if which requant 2>&-
|
||
requant $REQUANT_FACTOR 3 $VIDEO_SIZE < "$VIDEO_FILE" > "$REQUANT_FILE"
|
||
elif which tcrequant 2>&-
|
||
tcrequant -f $REQUANT_FACTOR < "$VIDEO_FILE" > "$REQUANT_FILE"
|
||
fi
|
||
rm -f "$VIDEO_FILE"
|
||
;;
|
||
tcrequant)
|
||
REQUANT_FACTOR=$(echo "$REQUANT_FACTOR" | tr ',' '.')
|
||
echo tcrequant -f $REQUANT_FACTOR
|
||
tcrequant -f $REQUANT_FACTOR < "$VIDEO_FILE" > "$REQUANT_FILE"
|
||
rm -f "$VIDEO_FILE"
|
||
;;
|
||
lxrequant)
|
||
echo requant_lxdvdrip -f $REQUANT_FACTOR
|
||
requant_lxdvdrip -f $REQUANT_FACTOR -i "$VIDEO_FILE" -o "$REQUANT_FILE"
|
||
rm -f "$VIDEO_FILE"
|
||
;;
|
||
mplex)
|
||
MPLEX_OPTS="-S 0"
|
- « Previous
- 1
- 2
- Next »