Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
14th July 2010, 00:51 | #1 | Link | |||
Registered User
Join Date: Apr 2010
Posts: 9
|
how do I get ffmpeg to copy timecodes?
Hi,
I am having trouble getting ffmpeg to preserve the timecode when changing video from an mkv to a flv. The mkv is h.264 and I am using -vcodec copy. I am doing this because I need to play the files over adobe flash player using the new 10.1 api appendBytes method that require the flv fileformat. Here is the command line: Quote:
I am using one of the ffmpeg autobuilds: Quote:
Sorry for the small files but I have a 300kb upload limit. Here is the ffmpeg -i for the file: Quote:
Last edited by mynewusername; 14th July 2010 at 01:30. |
|||
16th July 2010, 04:38 | #4 | Link |
Registered User
Join Date: Apr 2008
Posts: 1,181
|
BIG FAT WARNING:
Official ffmpeg does NOT support -vcodec copy from mkv when b-frame is used. And this is not to be fixed in the near future. If you need frame copy from mkv to flv or anything else, use ffmpeg build from here. |
16th July 2010, 04:42 | #5 | Link | |
x264 developer
Join Date: Sep 2005
Posts: 8,666
|
Quote:
Furthermore, if this was the issue, he would be getting a very specific error message. Which he isn't getting. As kierank said, FLV requires that the first timestamp be zero. |
|
16th July 2010, 07:30 | #6 | Link | |
Registered User
Join Date: Apr 2008
Posts: 1,181
|
Quote:
MKV contains only PTS while MP4/FLV require both PTS and DTS. FFmpeg currently lacks the ability to generate DTS based on PTS. I have done some hack on the MKV demuxer so my ffmpeg generates correct DTS from MKV. That's why only my ffmpeg works on MKV. Last edited by roozhou; 16th July 2010 at 07:32. |
|
16th July 2010, 18:10 | #9 | Link |
Registered User
Join Date: Dec 2002
Posts: 5,565
|
I never had success with remuxing mkv->mp4 (tried it every now and then, should be ffmpeg issue 807) using ffmpeg but it seems to be working in the latest build. The files seem to play fine. Could you test if the newest version creates mp4 files correctly, roozhou?
|
17th July 2010, 17:30 | #10 | Link | |
Registered User
Join Date: Apr 2008
Posts: 1,181
|
Quote:
I have looked into ffmpeg's auto DTS generation code, and unfortunately it cannot be handling mkv correctly. If you are using windows, try my build here. |
|
17th July 2010, 17:46 | #11 | Link | |
x264 developer
Join Date: Sep 2005
Posts: 8,666
|
Quote:
|
|
17th July 2010, 18:24 | #12 | Link |
Registered User
Join Date: Dec 2002
Posts: 5,565
|
Thanks for testing, both of you. For me playing works fine in Lord_Mulder's mplayer build, but not in kovensky chan's. So I'm tempted to believe in roozhou and will stay away from it for now, at least for archival purposes. Extracting the tracks and muxing using mp4box plays fine in both builds (as expected).
roozhou's version works fine. Last edited by sneaker_ger; 17th July 2010 at 18:28. |
17th July 2010, 18:59 | #14 | Link |
Registered User
Join Date: Aug 2008
Location: The Land Of Dracula (Romania - EU)
Posts: 934
|
ps3 only plays mp4 remuxed with roozhou's build of ffmpeg...
_
__________________
if you ask a question and somebody give you the correct answer don't forget to leave a "thank you" note... Visit The Land Of Dracula (Romania - EU)! |
Tags |
ffmpeg, flv, h264, mkv to flv, mux |
Thread Tools | Search this Thread |
Display Modes | |
|
|