Hey everyone,
I have an XviD file with these attributes:
What I want to do is encode a separate file from MPG to XviD that matches these attributes so I can join them together.Code:General Format : AVI Format/Info : Audio Video Interleave File size : 400 MiB Duration : 46mn 23s Overall bit rate : 1 206 Kbps Writing application : VirtualDubMod 1.5.10.2 (build 2540/release) Writing library : VirtualDubMod build 2540/release Video ID : 0 Format : MPEG-4 Visual Format profile : Advanced Simple@L5 Format settings, BVOP : Yes Format settings, QPel : No Format settings, GMC : No warppoints Format settings, Matrix : Default (H.263) Codec ID : XVID Codec ID/Hint : XviD Duration : 46mn 23s Bit rate : 1 068 Kbps Width : 608 pixels Height : 384 pixels Display aspect ratio : 1.583 Frame rate : 25.000 fps Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Bits/(Pixel*Frame) : 0.183 Stream size : 354 MiB (89%) Writing library : XviD 1.0.1 (UTC 2004-06-05) Audio ID : 1 Format : MPEG Audio Format version : Version 1 Format profile : Layer 3 Mode : Joint stereo Mode extension : MS Stereo Codec ID : 55 Codec ID/Hint : MP3 Duration : 46mn 22s Bit rate mode : Constant Bit rate : 128 Kbps Channel(s) : 2 channels Sampling rate : 48.0 KHz Stream size : 42.5 MiB (11%) Alignment : Aligned on interleaves Interleave, duration : 40 ms (1.00 video frame) Interleave, preload duration : 504 ms
I set VirtualDub to the same resolution, framerate, and data rate. But no matter how I tweak the data rate, it always comes out slightly different than the file I want to join it to. So the program won't let me join the files.
I tweaked it to the single kilobit a second, to the point where adjusting it 1 more still makes it way off. For example I set it to 1125 kbps and the resulting file has 1071 kbps, but if I set it to 1124 kbps, it comes out as 1064kbps!
Does anyone know how I can get it to give me a file with the correct data rate (1068kbps)? I want to avoid re-encoding the file I'm joining it to, to maintain it's quality.
Thanks
+ Reply to Thread
Results 1 to 22 of 22
-
-
The error I get is:
"Cannot append segment (video.avi) The video steams have different data formats"
And yes I have matched the audio format on both clips. -
Code:
General Format : AVI Format/Info : Audio Video Interleave File size : 4.41 MiB Duration : 30s 680ms Overall bit rate : 1 205 Kbps Writing application : VirtualDubMod 1.5.10.2 (build 2540/release) Writing library : VirtualDubMod build 2540/release Video ID : 0 Format : MPEG-4 Visual Format profile : Advanced Simple@L5 Format settings, BVOP : Yes Format settings, QPel : No Format settings, GMC : No warppoints Format settings, Matrix : Default (H.263) Muxing mode : Packed bitstream Codec ID : XVID Codec ID/Hint : XviD Duration : 30s 680ms Bit rate : 1 064 Kbps Width : 608 pixels Height : 384 pixels Display aspect ratio : 1.583 Frame rate : 25.000 fps Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Bits/(Pixel*Frame) : 0.182 Stream size : 3.89 MiB (88%) Writing library : XviD 1.2.1 (UTC 2008-12-04) Audio ID : 1 Format : MPEG Audio Format version : Version 1 Format profile : Layer 3 Codec ID : 55 Codec ID/Hint : MP3 Duration : 30s 672ms Bit rate mode : Constant Bit rate : 128 Kbps Channel(s) : 2 channels Sampling rate : 48.0 KHz Stream size : 479 KiB (11%) Alignment : Aligned on interleaves Interleave, duration : 41 ms (1.02 video frame) Interleave, preload duration : 504 ms Writing library : LAME3.97 Encoding settings : -m s -V 4 -q 2 -lowpass 17 -b 128
-
The second one has packed bitstream while the first one doesn't. I don't know enough about it to know if that can stop them from being joined. But the first thing I would try is to turn off packed bitstream when creating the second one.
-
I tried turning off packed bitstream, same error message. I went as far as installing the same XviD writing library that was used on the other clip, and managed to finally match the data rate at 1068kbps, but it still won't join!
Here's the mediainfo from my latest attempt:
Code:General Format : AVI Format/Info : Audio Video Interleave File size : 4.42 MiB Duration : 30s 680ms Overall bit rate : 1 209 Kbps Writing application : VirtualDubMod 1.5.10.2 (build 2540/release) Writing library : VirtualDubMod build 2540/release Video ID : 0 Format : MPEG-4 Visual Format profile : Advanced Simple@L5 Format settings, BVOP : Yes Format settings, QPel : No Format settings, GMC : No warppoints Format settings, Matrix : Default (H.263) Codec ID : XVID Codec ID/Hint : XviD Duration : 30s 680ms Bit rate : 1 068 Kbps Width : 608 pixels Height : 384 pixels Display aspect ratio : 1.583 Frame rate : 25.000 fps Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Bits/(Pixel*Frame) : 0.183 Stream size : 3.91 MiB (88%) Writing library : XviD 1.0.1 (UTC 2004-06-05) Audio ID : 1 Format : MPEG Audio Format version : Version 1 Format profile : Layer 3 Codec ID : 55 Codec ID/Hint : MP3 Duration : 30s 672ms Bit rate mode : Constant Bit rate : 128 Kbps Channel(s) : 2 channels Sampling rate : 48.0 KHz Stream size : 479 KiB (11%) Alignment : Aligned on interleaves Interleave, duration : 41 ms (1.02 video frame) Interleave, preload duration : 504 ms Writing library : LAME3.97 Encoding settings : -m s -V 4 -q 2 -lowpass 17 -b 128
-
I am having the same issue and I am ready to start stabbing people. I have captured video i would rather not recompress bbecause it is very nice. I want to encode and intro and outro clip to append to beginning and end. I have set everythign to match the framerate, fourcc, audio sample rate, and audio bits precision. Here is my media infos if anyone can help me. The first one is the into I made and can reencode, the second is the file I don't want to modify.
General
Complete name : D:\file1.avi
Format : AVI
Format/Info : Audio Video Interleave
File size : 1.94 MiB
Duration : 8s 41ms
Overall bit rate : 2 027 Kbps
Writing application : VirtualDubMod 1.5.10.2 (build 2540/release)
Writing library : VirtualDubMod build 2540/release
Video
ID : 0
Format : MPEG-4 Visual
Format profile : Advanced Simple@L5
Format settings, BVOP : 1
Format settings, QPel : No
Format settings, GMC : No warppoints
Format settings, Matrix : Default (H.263)
Muxing mode : Packed bitstream
Codec ID : DX50
Codec ID/Hint : DivX 5
Duration : 8s 41ms
Bit rate : 600 Kbps
Width : 848 pixels
Height : 480 pixels
Display aspect ratio : 16:9
Frame rate : 29.970 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Compression mode : Lossy
Bits/(Pixel*Frame) : 0.049
Stream size : 589 KiB (30%)
Writing library : XviD 1.2.1 (UTC 2008-12-04)
Audio
ID : 1
Format : PCM
Format settings, Endianness : Little
Format settings, Sign : Signed
Codec ID : 1
Duration : 8s 0ms
Bit rate mode : Constant
Bit rate : 1 411.2 Kbps
Channel(s) : 2 channels
Sampling rate : 44.1 KHz
Bit depth : 16 bits
Stream size : 1.35 MiB (69%)
Interleave, duration : 36 ms (1.07 video frame)
Interleave, preload duration : 500 ms
And now the second capured video I do not wish to modify.
General
Complete name : D:\file2.avi
Format : AVI
Format/Info : Audio Video Interleave
File size : 162 MiB
Duration : 5mn 6s
Overall bit rate : 4 443 Kbps
Writing application : VirtualDubMod 1.5.10.2 (build 2540/release)
Writing library : VirtualDubMod build 2540/release
Video
ID : 0
Format : MPEG-4 Visual
Format settings, BVOP : 1
Format settings, QPel : No
Format settings, GMC : No warppoints
Format settings, Matrix : Default (H.263)
Muxing mode : Packed bitstream
Codec ID : DX50
Codec ID/Hint : DivX 5
Duration : 5mn 6s
Bit rate : 3 020 Kbps
Width : 848 pixels
Height : 480 pixels
Display aspect ratio : 16:9
Frame rate : 29.970 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Compression mode : Lossy
Bits/(Pixel*Frame) : 0.248
Stream size : 110 MiB (68%)
Writing library : DivX 1647
Audio
ID : 1
Format : PCM
Format settings, Endianness : Little
Format settings, Sign : Signed
Codec ID : 1
Duration : 5mn 6s
Bit rate mode : Constant
Bit rate : 1 411.2 Kbps
Channel(s) : 2 channels
Sampling rate : 44.1 KHz
Bit depth : 16 bits
Stream size : 51.5 MiB (32%)
Interleave, duration : 33 ms (1.00 video frame)
Interleave, preload duration : 500 msIf you want to see what I've done with my videos,
check out my video work on youtube, http://www.youtube.com/user/duhmez/ -
The frame rates are probably different. Use AviFrate to change one or both of them. The frame rate in an AVI file is indicated by two integers, a numerator and a denominator. If, for example, one of the files has a frame rate of 29970/1000 and the other has 30000/1001 VirtualDub will not append them, even though it will report both as 29.97 fps.
-
OK I checked avifrate both have scale 1001 and rate 30000. If anyone has the ambition to check them. I could send over these files in dropbox for anyone to check out. These videos are my copyright so there is no issue with distributing.
If you want to see what I've done with my videos,
check out my video work on youtube, http://www.youtube.com/user/duhmez/ -
OK I will link the 2 files below if anyone is ambitious and can help me join these. Understand that I dont mind reencoding the intro file it is just the main file I don't wnt to touch, if anyone can tell me how to make it hapen I will be ever so happy. For the record I am not a noob either so any suggestions won't be folowed by dumb questions. The files linked below!
Intro file:
http://dl.dropbox.com/u/11131124/Intro.avi
MAIN file
http://dl.dropbox.com/u/11131124/main.aviIf you want to see what I've done with my videos,
check out my video work on youtube, http://www.youtube.com/user/duhmez/ -
Hey thanks for testing. In my case that worked too but it totally scrambled the audio int he second clip, totally ruined it. Did the audio work for u?
I mean TOTALLY screwed the audio. If it worked for u maybe i NEED to update my avidemux?If you want to see what I've done with my videos,
check out my video work on youtube, http://www.youtube.com/user/duhmez/ -
Thanls for 4tsting it, I wil update my avidemux nd give it another go.
If you want to see what I've done with my videos,
check out my video work on youtube, http://www.youtube.com/user/duhmez/ -
Hi again. I went to avidemux developer site, the highest version they have is 2.5.6 same as the one I am currently using. Where did u get 2.6?
If you want to see what I've done with my videos,
check out my video work on youtube, http://www.youtube.com/user/duhmez/ -
OK so I rebooted the pc, and now it joined successfully, but another issue, HUGE Macroblocks all over the place, ruined the video. Something is very wrong here.
Using copy mode too and totally messed up video.
If you want to see what I've done with my videos,
check out my video work on youtube, http://www.youtube.com/user/duhmez/ -
Try opening the joined video in VirtualDub and saving again in Direct Stream Copy mode. Ie, remux the full video with VirtualDub.
-
II tried it again with avidemux and let it unpack the bitstream, and saved as "avi, unpack vop" and it WORKED!!! Did not need to restream with avisynth.
When i tried to restream the broken avi in avisynth, it broke it more ^^ I did just for curiosity sake.
Thanks for all you help guys! Solving this issue will save me thousands of hours of production time, and ensure the highest quality videos for myyoutube channel.If you want to see what I've done with my videos,
check out my video work on youtube, http://www.youtube.com/user/duhmez/
Similar Threads
-
Cannot join two clip in Virtual Dub
By s_joy09 in forum Newbie / General discussionsReplies: 2Last Post: 5th Mar 2011, 16:15 -
How to join back 2 xvid files encode by autogk
By warresg in forum DVD RippingReplies: 1Last Post: 6th Nov 2010, 02:59 -
Which ffmpeg build plays xvid in virtualdub after encode? ... [RESOLVED]
By vhelp in forum Software PlayingReplies: 1Last Post: 4th Sep 2009, 22:04 -
How to encode an xvid file to another xvid and prevent video blocking?
By BlooderButcher in forum Video ConversionReplies: 5Last Post: 21st Nov 2008, 16:03 -
Help! I'm going crazy trying VirtualDub to encode to Xvid
By hdnine in forum Newbie / General discussionsReplies: 9Last Post: 17th Dec 2007, 08:07