PDA

View Full Version : How to extract timecode from mp4-vfr ?


Nimo
26th August 2009, 16:34
I have *.mp4 - vfr file. And i want this file to be used in other program like AFX.

After that, afx output the *.avi for me which i re-encode it to *.h264 and want to re-muxed to mkv (In vfr format)

But i don't know how to extract the timecode from original mp4 file.
So, i dont have timecode-file.

Therefore, if somebody please give me some command line sample or guide about how to do this? I'm really stuck.

PS. I'm not a guru. So, someone found my question quite silly or noobie. Feel free to laugh, but at least answer my question.

btw, sorry for my bad English.

b66pak
26th August 2009, 21:20
use FFmpegSource:

http://forum.doom9.org/showthread.php?t=127037

FFVideoSource("movie.mp4", timecodes="movie_timecodes_v2.txt")
_

Nimo
27th August 2009, 02:31
Thanks for the code. Works very well.

Selur
27th August 2009, 07:21
is there a way to do this with ffmpeg itself?

Chikuzen
27th August 2009, 17:19
is there a way to do this with ffmpeg itself?
I don't know whether it can be done with ffmpeg itself.
However, I know the easiest method.

Use DtsEdit.
http://seraphy.fam.cx/~seraphy/program/x264/DtsEdit/
DtsEdit.exe yourfile.mp4

TheFluff
28th August 2009, 22:10
is there a way to do this with ffmpeg itself?

With the API yes, with the commandline program no. Sooner or later I'll add timecode extraction to ffmsindex.exe so you don't have to involve avisynth in it.