Log in

View Full Version : I have FLV and timecode, how can I repack them into mp4?


beterhans
9th April 2014, 15:50
the FLV is H.264 + AAC
video is VFR

if I use normal tools will cause sync problem.

but I can't find any tool to mux FLV with timecode into a mp4.

I use mac and windows.
please help.

Selur
10th April 2014, 14:45
Here are the two ways I would go at it:

use a gui

start Hybrid
enabled: "Config->Automation->On Load->Always extract timecodes from mp4/mkv/flv files"
set Main->Primary Input Selection->Audio handling->passthrough (all)
set Main->Primary Input Selection->Video handling->passthrough
load source (Main->File Input)
set an output file with .mkv extension (Main->Output file)
add Job to queue (Main->Add to queue)
start job (Jobs->Start)

do what the gui does manually:

Use FLVExtract (http://moitah.net/) to extract audio, video and timecode stream
use MP4Box (http://gpac.wp.mines-telecom.fr/downloads/gpac-nightly-builds/) to multiplex the audio&video stream into an mp4 container
mp4fpsmod (https://github.com/nu774/mp4fpsmod) to add the timecodes to the mp4 from above



Not sure if it works, but simply using ffmpeg to remux the file from flv to mp4 might work too. :)

Cu Selur

Video Dude
10th April 2014, 15:46
The only program I have had success keeping video and audio in sync while muxing flv to mp4 is AviDemux 2.6. If you try it, make sure to stream copy both the video and audio.