This is an old revision of the document!
Except for the common usage of Mobilemate, there are more flexible controling converting using its common configuration file “tce/conf/common.conf”. And, because Mobilemate's work is based on its converting configuration file, so you can also create your own configuration file using text editor without the Video Converting Configure.
This “common.conf” file is used for setting global convert options for all convertings. It is located in directory of “tce(TinyCore Extensions Directory)/conf”. The default whole “common.conf” is below.
PATH="/opt/mobilemate/bin:/opt/custom/bin:$PATH" DECODED_BY="LIBAV" guiconfirm="NO" MAXHISTORY="3" WORKDIR="/opt/mobilemate" TASKBASE="${WORKDIR}/task" TMPBASE="/tmp/mobilemate" TMPCONFBASE="${TMPBASE}/conf" threads="-1" STARTTIME="0" ENDTIME="0" MPEGTS_MENCODER_OFPS="12.5,25" DEFAULT_SOURCE_PAR="1" COMPARE_DAR_CONSTANT="100" X264PRESET="medium" X264PROFILE="baseline" XVIDFOURCC="DX50" LIBAVSEEK="FAST" ASYNC="1" logfile="${WORKDIR}/log/mobilemate.log" v2voptionslistfile="${WORKDIR}/conf/v2voptions.list" x2aoptionslistfile="${WORKDIR}/conf/x2aoptions.list" v2vruleslistfile="${WORKDIR}/conf/v2vrules.list" x2aruleslistfile="${WORKDIR}/conf/x2arules.list" v2vworkconfigfile="${WORKDIR}/conf/v2vwork.conf" x2aworkconfigfile="${WORKDIR}/conf/x2awork.conf"
Explain all options below:
PATH="/opt/mobilemate/bin:/opt/custom/bin:$PATH"
Set the executable PATH environment for Mobilemate.
DECODED_BY="LIBAV"
Set which decode tool to be used.
The available options are: “LIBAV”, “MENCODER”.
Mobilemate can use one of two tools for its decoding, the default is FFmpeg(libav), and the alternate of Mencoder. If you found the default “LIBAV” can't decode your source file(I have not met ever until today), try “MENCODER”. But, the converting time maybe need more than default when you convert multiple files at the same time.
guiconfirm="NO"
Set if confirm it after every step of configuring or converting.
The available options are: “NO”, “YES”.
The default option is “NO”. When you change it to “YES”, you need confirm every steps when you configure or convert.
MAXHISTORY="3"
Set the how many history configuration files to be kept.
The avialable options are: “1”, “2”, “3”, …, unsigned integer equal to or bigger than 1.
Moblemate will keep your history converting configuration files, the history configuration file is located in folder “tce/conf”, and its name is in the form of “v2vhistoryX.conf” for converting to video and “x2ahistoryX.conf” for converting to audio, “X” is the unsigned integer equal to or bigger than 0.
WORKDIR="/opt/mobilemate"
The Mobilemate tools root directory. Don't change it.
TASKBASE="${WORKDIR}/task"
The Mobilemate task directory. Don't change it.
TMPBASE="/tmp/mobilemate"
The Mobilemate temporary directory. Don't change it.
TMPCONFBASE="${TMPBASE}/conf"
The Mobilemate temporary configuration directory. Don't change it.
threads="-1"
Set how many converting threads working in the same time.
The available options are: “-1” and “1”, “2”, “3”, …, unsigned integer.
The default “-1” indicates the threads number is equal to the amount of CPU cores.
STARTTIME="0"
Set the start point of the file to be converted in second number or in the form of “HH:MM:SS”(Hours:Minutes:Seconds) or “MM:SS” or “-HH:MM:SS”(-Hours:Minutes:Seconds) or “-MM:SS”.
The available options are: Negative integer, …, “-3”, “-2”, “-1”, “0”, “1”, “2”, “3”, unsigned integer. Or, “-01:01:21”, “01:01:21”, etc.. Or, “-11:21”, “11:21”, etc..
Negative value indicates the distance between the specified time point and the end of the file. Unsigned value indicates which time point begin to convert. The default “0” indicates the begin of the original file.
ENDTIME="0"
Set the end point of the file to be converted in second number or in the form of “HH:MM:SS”(Hours:Minutes:Seconds) or “MM:SS” or “-HH:MM:SS”(-Hours:Minutes:Seconds) or “-MM:SS” or “+HH:MM:SS” or “+MM:SS”.
The available options are: Negative integer, …, “-3”, “-2”, “-1”, “0”, “1”, “2”, “3”, unsigned integer, and “+1”, “+2”, “+3”, positive integer. Or, “-01:01:21”, “01:01:21”, etc.. Or, “-11:21”, “11:21”, etc.. Or, “+11:21”, etc..
Negative value indicates the distance between the specified time point and the end of the file. Unsigned value indicates which time point of the file to end of the converting. Positive value indicates the distance between the specified time point and the start time. The default “0” indicates the end of the original file.
MPEGTS_MENCODER_OFPS="12.5,25"
Set the valid Mencoder ofps value for converting mpegts file.
The available option is the unsigned number separated with comma.
Sometimes(or any time, no deep testing), when convert mpegts video files, mencoder need special ofps for its bug.
DEFAULT_SOURCE_PAR="1"
Set the default source video's PAR(Pixel Aspect Ratio) value.
The available option is the unsigned non-zero number.
Sometimes, Mobilemate can't detect the PAR value of the source video file correctly. So this default value will be used. Default “1” indicates the square pixel.
COMPARE_DAR_CONSTANT="100"
Set the constant for comparing the DAR(Display Aspect Ratio) value between the converting intermediate temporary pipe video file and destination video. Only used when using Mencoder as the decoding tool.
The available option is the unsigned non-zero integer number.
The default “100” indicates if the difference between the temporary pipe video DAR times 10000 and destination DAR times 10000 less than “100”, we see the DAR is same between these two files.
X264PRESET="medium"
Set preset to select encoding settings when use libx264 encoder.
The avilable options are: “ultrafast”, “superfast”, “veryfast”, “faster”, “fast”, “medium”, “slow”, “slower”, “veryslow”, “placebo”.
Basically, more slower get more better quality and more smaller file size, but more long converting time. The default is “medium”.
Below is option explaination copied from man page of “mplayer_1.0~rc4.dfsg1+svn33713”.
Use a preset to select encoding settings. ultrafast no8x8dct aq_mode=0 b_adapt=0 bframes=0 nodeblock nomb‐ tree me=dia nomixed_refs partitions=none ref=1 scene‐ cut=0 subq=0 trellis=0 noweight_b weightp=0 superfast nombtree me=dia nomixed_refs partitions=i8x8,i4x4 ref=1 subq=1 trellis=0 weightp=0 veryfast nombtree nomixed_refs ref=1 subq=2 trellis=0 weightp=0 faster nomixed_refs rc_lookahead=20 ref=5 subq=4 weightp=1 fast rc_lookahead=30 ref=2 subq=6 medium Default settings apply. slow b_adapt=2 direct=auto me=umh rc_lookahead=50 ref=5 subq=8 slower b_adapt=2 direct=auto me=umh partitions=all rc_looka‐ head=60 ref=8 subq=9 trellis=2 veryslow b_adapt=2 b_frames=8 direct=auto me=umh me_range=24 par‐ titions=all ref=16 subq=10 trellis=2 rc_lookahead=60 placebo bframes=16 b_adapt=2 direct=auto nofast_pskip me=tesa me_range=24 partitions=all rc_lookahead=60 ref=16 subq=10 trellis=2
X264PROFILE="baseline"
Set H.264 profile when use libx264 encoder.
The avilable options are: “baseline”, “main”, “high”.
Basically, “baseline” has the most and “high” has the least compatibility for hardware, but “high” has the more advanced features, e.g., can get same quality as “baseline” but with smaller file size. The default is “baseline”. See also: What are the differences between H.264 Profiles?.
Below is option explaination copied from man page of “mplayer_1.0~rc4.dfsg1+svn33713”.
Constrain options to be compatible with an H.264 profile. baseline no8x8dct bframes=0 nocabac cqm=flat weightp=0 nointer‐ laced qp>0 main no8x8dct cqm=flat qp>0 high qp>0 (default)
XVIDFOURCC="DX50"
Set FOURCC tag using -vtag option in ffmpeg(libav) using libxvid encoder.
The available options are: “XVID”, “DIVX”, “DX50”.(todo: maybe isn't too exact?)
The default is “DX50”.
LIBAVSEEK="FAST"
Set the FFmpeg(Libav) seeking method.
The available options are: “FAST”, “SLOW”.
When the default “FAST” used, the “-ss” used as an input option (before -i), seeks in this input file to position. Note in most formats it is not possible to seek exactly, so it will seek to the closest seek point before position. When “SLOW” used, the “-ss” used as an output option (before an output filename), decodes but discards input until the timestamps reach position. The “SLOW” option will result more accurate seeking but it will decode the part before seeking point and spend more time to seek.
ASYNC="1"
Set audio sync method of FFmpeg(Libav).
The available options are non-zero unsigned integer number.
This option is mainly used for solving some Audio and Video syncing problem. “Stretches/squeezes” the audio stream to match the timestamps, the parameter is the maximum samples per second by which the audio is changed. The default “1” is a special case where only the start of the audio stream is corrected without any later correction.
logfile="${WORKDIR}/log/mobilemate.log"
Set the log file.
v2voptionslistfile="${WORKDIR}/conf/v2voptions.list"
The options list file of converting to video. Don't change it.
x2aoptionslistfile="${WORKDIR}/conf/x2aoptions.list"
The options list file of converting to audio. Don't change it.
v2vruleslistfile="${WORKDIR}/conf/v2vrules.list"
The rules list file of converting to video. Don't change it.
x2aruleslistfile="${WORKDIR}/conf/x2arules.list"
The rules list file of converting to audio. Don't change it.
v2vworkconfigfile="${WORKDIR}/conf/v2vwork.conf"
Cancelled.
x2aworkconfigfile="${WORKDIR}/conf/x2awork.conf"
Cancelled
蜀ICP备2021012931号-1 川公网安备51092202000377号