PDA

View Full Version : recent version of dtsedit. where to?


b66pak
5th May 2009, 18:12
hi, i try to and timecodes to a .mp4 but i can't find anywhere dtsedit...do you have a link to the most recent version?
_

P.S. and be kind an post the command line too...

thanks in advance...
_

kemuri-_9
6th May 2009, 04:35
when i have needed to create a vfr mp4 using a mkv timecodes file, i used tc2mp4 (http://forum.doom9.org/showthread.php?t=112199)

should give it a try.

gator1102
6th May 2009, 08:39
http://seraphy.fam.cx/~seraphy/program/x264/DtsEdit/

b66pak
6th May 2009, 20:36
@gator1102 thanks a lot...the readme, the help, and the .bats are in japanese (i think)...can someone help with translation?

@kemuri-_9 i tried tc2mp4 on a 4gb file and it gives me error at 98%...
_

Oleg Rode
7th May 2009, 16:18
@
@kemuri-_9 i tried tc2mp4 on a 4gb file and it gives me error at 98%...
_

tc2mp4 is a bad choice. I also found it buggy and VERY slow. DTSedit is much better.
gator1102 thanks a lot...the readme, the help, and the .bats are in japanese (i think)...can someone help with translation?
What commands do you need?

Sorry for my English.

Wilbert
7th May 2009, 17:35
DTSedit
Did anybody contact him about the source? It's seems to be released under the GPL, but i don't see any source files.

b66pak
7th May 2009, 19:50
@Oleg Rode ...the readme, the help, and the .bats...
_

L.E. after same tests i have success with this:

rem extract timecodes

dtsedit -o input.mp4_timecodes.txt input.mp4


rem insert timcodes

dtsedit -tc input.mp4_timecodes.txt input.mp4


there are a lot of other switches...it needs translation!
_

gator1102
8th May 2009, 17:02
source
http://seraphy.fam.cx/~seraphy/cgi-bin/upload/DtsEdit_src20081009.zip

contact borad
http://seraphy.fam.cx/~seraphy/cgi-bin/cbbs.cgi

i can`t english.... sorry

Wilbert
11th May 2009, 16:54
Thanks gator1102! A list of all switches which are in help.cpp:


printf("パラメータが不正です。\n");
printf("Usage: DtsEdit <option> <mp4 file>\n");
printf("\n");
printf("option list\n");
printf(" -tc <file name> : 入力するTimeCodeファイモ指定します。\n");
printf(" -tcが指定された場合は、TimeCodeを指定のMP4ファイルに埋め込みます。\n");
printf(" 指定されなかった場合は、MP4ファイルからTimeCodeを抽出します。\n");
printf(" -tv <1|2> : 入出力するTimeCodeファイルのバージョンを指定します。デフォルトは2です。\n");
printf(" -s <time scale> : timeScaleを指定します。\n");
printf(" 未指定の場合は、入力されたtimecode formatによって自動計算されます。\n");
printf(" -mlt <multiple> : timeScaleの自動計算に使用します。\n");
printf(" デフォルト値は4.0倍です。timeScaleを直接指定した場合は、内部の計算結果で上書きされます。\n");
printf(" -r <time rate> : 最小timeRateを指定します。\n");
printf(" 未指定の場合は、入力されたMP4ファイルに従います。\n");
printf(" -no-dc : 初期ディレイカットを無効にします。\n");
printf(" -df <count> : 初期ディレイを付与する場合の、ディレイフレーム数を指定します。\n");
printf(" 未指定の場合は、入力されたMP4ファイルから自動計算します。\n");
printf(" 再生時間の短い動画では正確に取得できない場合が*ります。\n");
printf(" -o <output file> : 出力ファイルを指定します。\n");

b66pak
11th May 2009, 20:00
what about a translation?
_

roozhou
12th May 2009, 05:29
I translated part of readme (sorry for my bad english and even worse japanese):


Usage: DtsEdit <option> <mp4 file>
option list

-tc <file name>: set timecode file
If -tc is specifiled, timecode will be inserted into MP4 file, else timecode will be extracted from MP4 file

-tv <1|2>: set version of TimeCode file, 2 by default


-s <time scale>: set timescale
If not set, timescale format is automatically calculated

-mlt <multiple>: this help calculating timeScale automatically, 4 by default
If timeScale is directly set, the internal result will be shown

-r <time rate>: set minimun time rate
If not set, time rate from source MP4 file will be used

-no-dc and -df <count>: I cannot under stand what ディレイ and ディレイフレーム stands for, could someone help?

-o <output>: set output file

To output TimeCode
Do not set basic options
Use [-tv 1] if you need output timecode format v1

To input TimeCode
TimeScale and TimeRate can be automatically set. Even if they are not manully set, proper options will be set according to input TimeCode.

Because TimeCode is assumed VFR, TimeScale is calculated at 4-times precision.

If you need to change precision, use -mlt option.

If TimeScale of target is clear, you can use -s option. In this case target's TimeRate will follow that of the original file.

About TimeRate

fps is represented as a fraction.
Standard NTSC is 29.97fps. But more exactly fps should be a repeating decimal, or marked as 30000/1001
In this case, TimeScale becomes 30000, and TimeRate becomes 1001.

For non-NTSC content please check the source.
e.g. for 30fps animation, TimeRate can be 1. (In that case TimeScale will be calculated as 120)

again I cannot under stand ディレイフレーム and ディレイカット

About precision

In order to implement VFR we need to avoid being truncated by NTSC's n-times TimeScale

e.g. for 23.976fps and 29.97fps mixed framerate, to present in fraction they should be 24000/1001, 30000/1001.
If combined to the larger TimeScale 30000, 24000/1001 => 30000/1251.25, resulting a decimal in denominator.
Here we use a 4-time TimeScale of the larger one. We can prepresent correct framerate in integer as 120000/5005, 120000/4004.
Now mixed frame rate is implemented.
59.94fps(60000/1001) can also be represented as 120000/2002(Because multiple is set to 4 by default, this timecode will be in 240000/10010 and 240000/8008), resulting in 240000/4004

Brazil2
12th May 2009, 06:40
again I cannot under stand ディレイフレーム and ディレイカット
I'm not sure if it's correct or not as I don't read Japanese language but Babel Fish says that:
ディレイフレーム: delay frame
ディレイカット: delay cutting

which seems to match with the -df and -dc options.

Chikuzen
13th May 2009, 14:43
I also translated part of readme (sorry for my bad english:D ):

-no-dc: Disable eliminating decoding delay for B-frames.

-df <count>: Specify number of decoding delay frames.
This option is used when You want to add the decoding delay to the track.
If not set,the number of frames is automatically calculated.
But if the duratioin of movie is too short,the numerical result might be not correct.

And here is an another tool to mux timecode to mp4
tc2mp4mod
http://zoome.jp/VFR_maniac/diary/6/

roozhou
13th May 2009, 16:36
I wonder why all vfr mp4 tools come from Japan.

b66pak
13th May 2009, 18:20
thanks...
_

Chikuzen
13th May 2009, 18:55
I wonder why all vfr mp4 tools come from Japan.

Because mkv is too unpopular, and used mp4 well in Japan.