PDA

View Full Version : AVI-Mux 1.16.8 and RV appending


#2
6th November 2004, 10:37
I'm trying to append 2 Matroska files with RV and HE-AAC streams in them. It is a 2 sided DVD. The 2 halves have good audio sync but after they are joined there is a jump in the audio at the transition. If I then demux the video stream and then add to it an ac3 or mp4 stream I get a Black Screen for 1.5 seconds and then the audio goes out of sync. The same as when I encode with the 2 Vobs in the one d2v project file.

Any idea whats happening here; Issue with the mkv format/ issue with the first vob haveing some kind of black ending? Play back issue with MPC?

Thanks in advance.

tiki4
8th November 2004, 16:29
Originally posted by #2
the first vob haveing some kind of black ending?

Yep. This was discussed somewhere and sometime, but I don't remember when. The tricky thing would possibly be to cut some frames from the first part or try to elongate the audio of the first part so that audio and video have exactly the same duration. I never tried this myself but I think BeSweet can append silence to audio tracks.

On other thing to keep in mind is that RV10 might drop some frames during encoding if you are not using the new rate control which leads to variable frame rate. So I think you're only option is to sync everything before encoding.


tiki4

#2
9th November 2004, 10:18
Thanks tiki4.

I have tried to cut a few frames off the end of first part of the video stream and got it to the point where the first half is in sync and the last half is almost there. But rmeditor can't cut it to the exact frame that I need. (Only frames either side of it)

I've been trying to get this to work for 3 mounths now.

Any tips would be further appriciated.

tiki4
9th November 2004, 16:39
I'd try to sync before encoding to RV10. Somewhere on the Avisynth-Level [Trim()]. You have to do this somehow for video and audio. If your video is really longer than the audio you might cut the end to match your (uncompressed) audio duration. If your video is shorter, you have to cut the audio or add empty video frames. Sorry, if I can't be more specific. I don't think that's really easy to accomplish.

tiki4

#2
10th November 2004, 08:55
Cheers for that.

It sounds a bit over my head at the moment. I might have to do some reading on how to edit the uncompressed video or editing the vob. The audio demuxs fine from the 2 vobs when put through dgindex but the video doesn't so may be try to find a way to cut the back off the video stream in the vob?

tiki4
10th November 2004, 19:21
I think your best bet to cut the video is on the decoding stage in Avisynth. You can load your 'raw' .avs into VirtualDub(Mod) to find out where to cut. Let's say you go a file like:

LoadPlugin("\somewhere\DGDecode.dll")
Mpeg2Source("\somewhere_else\project.d2v")

In VirtualDub you can find out, how many frames the file has, e.g. 100000. Now you have to do a little math. If you know the time where to cut (e.g. duration of your audio track after fixing the DELAY with BeSweet), you can calculate the frame number with the fps value. PAL has 25 fps which means you can cut every 40 ms. If we further assume you know now the frame where to cut, you can do so in Avisynth like

Trim(0, 99990)

This would cut off the last 10 frames.

I must confess that this tends to get tricky, but you have to do some calculation so or so. If you live in NTSC land than things can get even more complicated because of IVTC. Fortunately I live in PAL land, but that won't help you
;)

Cheers,

tiki4

#2
13th November 2004, 10:19
Thanks Very much Tiki4. I will try that.

#2
18th November 2004, 19:59
Just wanted to say that that worked perfectly. I just set the end credits to the desired frame and then just used the movie part and not the joined result.

Cheers Tiki4