Log in

View Full Version : Source = Fine, but any edit = audio desync!


DoomNlNE
27th May 2012, 12:57
I captured an FLV stream which is apprently h.264 video with aac audio.

This source plays back fine, in terms of a/v sync, on all players and after uploading to youtube. The source is good.

However! I want to remove certain parts of that video and chop it up. It is 2 hours in length.

The problem is the audio *always* desyncs if I remove parts of the video. The desync is not constant, so changing the offset does not work.

I've tried:
1. VirtualDub: Edit -> Direct Stream Copy -> save as AVI = desync
2. Avidemux (too buggy, almost always crashes): Edit -> Direct Stream Copy -> save as MP4/AVI = youtube doesn't even recognise the format :-s

I'm using direct stream copy so as to not re-encode or mess with anything. But it seems impossible to get the a/v to sync.

Any ideas on this one?

poisondeathray
27th May 2012, 17:50
Source might be VFR (variable frame rate)

use flvextract and look at the timecodes

To keep in sync you have to mux in time codes (AVI doesn't support VFR, that's why vdub didn't work)

If it is VFR, it's very difficult to edit, because you would have to edit the corresponding timecodes