VideoHelp Forum
+ Reply to Thread
Results 1 to 22 of 22
Thread
  1. Member
    Join Date
    Aug 2000
    Location
    Canada
    Search Comp PM
    Hey everyone,

    I have an XviD file with these attributes:

    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
    What I want to do is encode a separate file from MPG to XviD that matches these attributes so I can join them together.

    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
    Quote Quote  
  2. It's not because of the video bitrate that they won't join. It's something else. What error message does VDub give you exactly? And is the audio also the same as originally? Same kind and bitrate?
    Quote Quote  
  3. Member
    Join Date
    Aug 2000
    Location
    Canada
    Search Comp PM
    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.
    Quote Quote  
  4. Always Watching guns1inger's Avatar
    Join Date
    Apr 2004
    Location
    Miskatonic U
    Search Comp PM
    Post the mediainfo for the other half
    Read my blog here.
    Quote Quote  
  5. Member
    Join Date
    Aug 2000
    Location
    Canada
    Search Comp PM
    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
    Quote Quote  
  6. 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.
    Quote Quote  
  7. Member
    Join Date
    Aug 2000
    Location
    Canada
    Search Comp PM
    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
    Quote Quote  
  8. Maybe it's time to switch to AVIDemux which can be much more forgiving when joining AVI files than is VDub. Maybe someone else has a suggestion for VDub, but I don't know why they won't join.
    Quote Quote  
  9. Member
    Join Date
    Aug 2000
    Location
    Canada
    Search Comp PM
    I'll try that, thanks for your help
    Quote Quote  
  10. 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 ms
    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/
    Quote Quote  
  11. 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.
    Quote Quote  
  12. 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/
    Quote Quote  
  13. 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.avi
    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/
    Quote Quote  
  14. AviDemux was able to join the two clips and save without reencoding.
    Quote Quote  
  15. Originally Posted by jagabo View Post
    AviDemux was able to join the two clips and save without reencoding.
    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/
    Quote Quote  
  16. I tried the full video in a couple players and it the audio was ok. MPCHC and VLC. I used AviDemux version 2.6.0 r7809.
    Quote Quote  
  17. 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/
    Quote Quote  
  18. 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/
    Quote Quote  
  19. Probably a beta version available here:

    http://avidemux.razorbyte.com.au/
    Quote Quote  
  20. 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/
    Quote Quote  
  21. Try opening the joined video in VirtualDub and saving again in Direct Stream Copy mode. Ie, remux the full video with VirtualDub.
    Quote Quote  
  22. 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/
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!