VideoHelp Forum




+ Reply to Thread
Results 1 to 11 of 11
  1. I want to open this topic to "Video Conversion" section but rules don't allow it. Anyway. I'm nearly expert for video conversion but I didn't find any true info about solve of problem for convert vmw files with variable bitrate. I'm saying variable BITRATE, NOT variable FRAMERATE! Because these two are usually misunderstanding. I have a few videos, this is the one of them:

    Format : Windows Media
    File size : 370 KiB
    Duration : 4s 0ms
    Overall bit rate mode : Variable
    Overall bit rate : 757 Kbps
    Maximum Overall bit rate : 631 Kbps
    Movie name : ta03
    Performer : 岡崎硯次
    Encoded date : UTC 2009-01-31 09:29:14.687

    Video
    ID : 2
    Format : VC-1
    Format profile : MP@HL
    Codec ID : WMV3
    Codec ID/Info : Windows Media Video 9
    Codec ID/Hint : WMV3
    Description of the codec : Windows Media Video 9 - Professional
    Duration : 4s 0ms
    Bit rate mode : Variable
    Bit rate : 8 000 Kbps
    Width : 800 pixels
    Height : 600 pixels
    Display aspect ratio : 4:3
    Frame rate : 24.000 fps
    Resolution : 24 bits
    Scan type : Progressive
    Bits/(Pixel*Frame) : 0.694
    Stream size : 3.81 MiB
    Language : Japanese

    Audio
    ID : 1
    Format : WMA Lossless
    Format profile : M
    Codec ID : 163
    Codec ID/Info : Windows Media Audio 3
    Description of the codec : Windows Media Audio 9 Lossless - VBR Quality 100, 44 kHz, 2 channel 16 bit 1-pass VBR
    Duration : 4s 0ms
    Bit rate mode : Variable
    Bit rate : 134 Kbps
    Channel(s) : 2 channels
    Sampling rate : 44.1 KHz
    Resolution : 16 bits
    Stream size : 65.3 KiB (18%)
    Language : Japanese

    I tried every way I know, but when I try to convert this video, result is always same. Out of sync.
    Can I convert this video without audio-video sync. problem? Is there a way to convert variable wmv videos correctly?
    Please help me! I beg of you!

    NOTE:
    1- VirtualDub's VBR fix mode doesn't work.
    2- AviSynth's "EnsureVBRMP3Sync()" code doesn't work.
    3- VBR MP3 different than VBR WMV, so ways for MP3 don't work for WMV.
    4- I'll almost fr--king out.
    Quote Quote  
  2. What kind of sync issues? Constant or progressively worsening?

    What format are you trying to convert to? xvid/mp3/avi ?

    Did you try convertfps=true using directshowsource? e.g.
    DirectShowSource("video.wmv", fps=24, convertfps=true)

    Are sync issues evident on that small sample that you used mediainfo on? If so can you upload it somewhere since it's so small
    Quote Quote  
  3. 1- I don't know because this video is 4 second.
    2- AVI (I think h264+mp3 or xvid mp3)
    3- Yes I tried many many many times for different options.
    4- Yes, here is the link:

    http://rapidshare.com/files/300633545/ta02.wmv.html
    Quote Quote  
  4. I can't detect any sync issues using directshowsource, but this is a short video, and sync issues might manifest on longer sections. I used vdub, xvid, lame mp3 acm (CBR)

    If you don't know what kind of sync issues, how can you tell there is a problem at all?
    Quote Quote  
  5. What? Hmm, I think I understood you. You said, audio is constantly late or early from video OR audio going very different from video. I have long video too, but I can't try longer video yet. So let' sa that longer video has progressively worsening. What can I do?
    Quote Quote  
  6. Is the original WMV in sync? Are the clips from the same 24.0 fps source?

    If progressively worsening, but in sync at the beginning, then the audio & video lengths don't match. (there would be no offset delay, because the sync is OK in the beginning). You would either shrink/expand the audio or video duration to match. If the source was actually 23.976 (instead of 24), this could explain the sync issues

    First try this:
    DirectShowSource("video.wmv", fps=24, convertfps=true)
    AssumeFPS(24)

    Use CBR audio
    Quote Quote  
  7. Yes original wmv is sync. Yes all clips have 24 fps. No video and audio same time. And yes this code worked! (AssumeFPS(24))

    I tried this:
    DirectShowSource("video.wmv", fps=24, convertfps=true)

    with:
    EnsureVBRMP3Sync()

    And didn't work.

    Now with your code issues are gone. (From now) [For 15 seconds movie and that 4 seconds movie]

    Thanks for that. But I want to ask one thing:

    You'll said: "First try this: ".

    If this code didn't work, second?
    Quote Quote  
  8. Some WMV's are variable FRAME rate (VFR) , to help "fix" those (doesn't always work) , the convertfps is used

    If the actual frame rate is 24, AssumeFPS(24) , will change the frame rate without changing the frame count. This is used after the source filter, because it makes the frame rate exactly 24000/1000 , not 24000/1001 or some other value. Some source filters return an "off" frame rate, and you can check your script using info() to identify the exact frame rate the script is returning

    If you use
    AssumeFPS(24, true)
    This means sync_audio=true , and it will also change the audio sample rate to match (there might be a slight pitch shift proprotional to the change in rate from the original), but it looks like you didn't need to try it...

    Anyways, you usually have to try a few options, and sometimes one of them works

    Cheers
    Quote Quote  
  9. Many many thanks man. And I'm very sorry but I want to ask 2 thing.

    1- Which converter you usually use? (With avisynth codes of course...[I use virtualdub])

    2- Can I use this method for rmvb(real media variable bitrate) and Quicktime (some .mov videos have variable fps but constant bitrate)
    Quote Quote  
  10. 1) I use vdub and megui for converting to xvid, megui and command line to convert to h264 (using x264)

    2) Can you do this to convert FROM rmvb and QT => Yes, but for QT I would use QTSource, or FFMS2 instead of directshowsource. DirectShowSource is the least reliable and not necessarily frame accurate. It also is dependent on the system installed splitters and decoders, so prone to inconsistent results
    Quote Quote  
  11. Again very very thanks man.
    Quote Quote  



Similar Threads

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