Log in

View Full Version : Vdub ERROR: Cannot append segment: The video stream has different sampling rates (29.


verabgd
23rd June 2003, 17:02
Vdub ERROR: Cannot append segment: The video stream has different sampling rates (29.97003 vs. 29.97000) - too long for subjec. Sorry.

For days I unsuccessfully tried to join two AVI files in VirtalDub (as I am doing joining up to now).

The both video streams have the same resolution/framerate/codec and the both audio streams the same sample rate/number of channels/codec.

File A is the MPEG-1 file and I encoded it in VirtualDub (I need some filtering). File B is the DVD chapter encoded using GordianKnot 0.28.4.beta (audio - cbr MP3). DivX codec is DivXPro 5.05.

Later I tried various combinations:

Convert MPEG-1 file to HuffYUV AVI using TMPGEnc and then encoded it in GordianKnot. The same happened when I tried to finally join them.

Then I encoded DVD rip in VirtualDub. Also tried to demux video and audio in VDub; then to join only video parts from GKnot but couldn’t join the video files at all. I got always the same VirtualDub error message.

Any idea what I am doing wrong? Thanks in advance.

BTW, this is very important to me to find the solution how to join DivX files previously encoded from various sources (DVD rips, MPEG-1, ASF) because I have to make the collection of many music video clips. Obviously I have to encode them separately. I’d like to have VBR audio for these music videos; if I encode my files with CBR MP3 and convert audio in VBR MP3 at the end I am afraid that I can get final AVI out of synch.

Thanks.

ChristianHJW
24th June 2003, 03:33
You may find the answer here (http://virtualdub.everwicked.com/index.php?act=ST&f=4&t=11&)

verabgd
24th June 2003, 15:35
Thanks. It could solve my fore mentioned particular problem.

But, I would be very thankful if you can give me the link where I can find the explanation – why I got slightly different bitrate and if it possible (and how) to avoid similar problems.

Thank you in advance.

\AX
25th June 2003, 10:24
This is dirty but ive grown tired of that error msg myself.

on win...
COPY /B file1.avi+file2.avi final.avi

on lin check cp

it works for me. i have also, in some case's of a miracl, opened file1.avi in hex and jotted down the last few values...then performed a binary copy and went back in and just deleted some values after at the end of the file1.avi. Honestly i have no clue what im deleting besides i know what headers look like...but it worked a couple times. When it didnt work it just kept hiccuping. Even sometimes it wont hiccup at all and play smooth.

Again this is dirty...but can POSSIBLY work.

Ive tried it the clean way...that works too. However every time this has happened the video i was joining was not to be archived in any way so i just use a binary copy.

there is a great tool a divx-digest that can do this. Cant remember the name but it is something like "filejoiner"...it joins any file and seems to produce good results on .avi, mpg, .mov, .rm ...that is all i ever tried it with and most of the time it worked out.

forgot...if you do a binary copy and open in vdub...you will get a error. usually it had to reindex if i remember correctly.

ChristianHJW
26th June 2003, 00:34
Originally posted by \AX
on win... COPY /B file1.avi+file2.avi final.avi ... the index of these AVI files will be completely screwed, making seeking in the file almost impossible. When seeing methods like this being used, i am starting to understand why so much unplayable crap is on p2p ...

Cyberia
4th July 2003, 00:10
Why not open and append them all through AviSynth?




#Begin AviSynth Script

video1=mpeg2source("file1.d2v")
video2=DirectShowSource("file2.mpg")

video=video1 + video2
video=video.ConvertToYV12()
video
#End AviSynth Script