VideoHelp Forum




+ Reply to Thread
Results 1 to 11 of 11
  1. Just solved one problem with colors (many thanks to guys from this forum!) and got another one immedeately

    Ive combined audio and video files with Audiodub, and the result is that both video and audio are not really synchronized and get interrupted every 2-3 sec so that the file is played with pauses.

    I tried to look for info in the web but as I'm a complete silly newbie yet it's hard for me to find the necessary info in the ocean of new terms. I would be thankful if you could just point out what particular info i should learn or what parameters check. I think it should be something about differences in frame rates, discretization or timing?
    Quote Quote  
  2. Need more info

    Post info on audio/video sources, post your script, how did you determine there is a sync issue (what software, what player ?) , Are you playing the script preview or actual encode ?
    Quote Quote  
  3. Hello, thanks for attention to my problem.

    Video

    colorspace YUY2
    width 1920 pixels, height 1080 pixels
    frames per sec 23.9760(24000/1001)
    fieldbased(separated) video no
    parity bottom field first
    video pitch 5760 bytes
    has audio no

    Audio

    mp3 converted to wav
    1411 kbit/s
    (dont know where to look for more info...)

    Piece of script

    m=a++b++c++d++e1++e2++e3++e4++e5++k1++k2++k3++k4++ y1++y2++y3++y4++y5+
    +y6++y7++x1++x2++x3++x4++x5++x6++x7++x8++x9++x10++ x11++x12++x13+x14+
    +x15++x16++x17++x18++x19++x20++x21++x22++x23++x24
    last=ConvertToYUY2(m)
    audio=wavsource("d:/bacha/film/100eos5d/film/1.wav")
    AudioDub(last,audio)

    I play files in virtualdub. What kind of software do you mean? And im sorry for not understanding your last question

    Im not sure this is a sync issue but audio and video dont fit and dont go smoothly as they should. Both audio and video get interrupted (stop/make pauses) every few sec + video gets messed up (plays too slow, then too fast, then normal, again slow etc) though when i remove audio track it plays fine alone.
    Quote Quote  
  4. vdub is not a reliable player, especially when audio is involved

    encode a small test segment and play it in a media player to determine if there really is a problem
    Quote Quote  
  5. When i save video with audio track in vdub as avi file and then play this file in vlc media player, theres still the same problem.
    Quote Quote  
  6. Member
    Join Date
    May 2014
    Location
    Memphis TN, US
    Search PM
    You posted only a "piece" of your script. I'm assuming a,b,c,d, etc., are cuts from the original but you haven't shown us everything. How were the cuts made? Do all the cuts altogether have the same number of frames as the original? If not, then the full audio from the original will not be in sync. The safest way to preserve audio sync is to include the audio with each cut from the original -- but deleting any frames from those segments will interrupt the audio, even if it stays in sync using that method.
    - My sister Ann's brother
    Quote Quote  
  7. Hi again

    For this video i used not the original audio but just a famous song downloaded from youtube in mp3 which was then converted to wav (in order to fit WavSource function). Does it make any difference? Maybe i should try using the internal mp3 filter...
    Heres the full code (many pieces cut from the original which is MOV files from DSLR camera):

    a=avisource ("d:/bacha/film/100eos5d/film/11.avi")
    a=trim (a,0,56)
    b=avisource ("d:/bacha/film/100eos5d/film/21.avi")
    b=trim (b,283,400)
    c=avisource("d:/bacha/film/100eos5d/film/31.avi")
    c=trim (c,160,340)
    d=avisource("d:/bacha/film/100eos5d/film/41.avi")
    d=trim(d,140,400)
    e=avisource("d:/bacha/film/100eos5d/film/51.avi")
    e1=trim(e,400,600)
    e2=trim(e,1000,1095)
    e3=trim(e, 1351, 1447)
    e4=trim(e, 1574, 1560)
    e5=trim(e,1969, 2050 )
    k=avisource("d:/bacha/film/100eos5d/film/61.avi")
    k1=trim(k,723,760)
    k2=trim(k, 21113, 21201)
    k3=trim(k,23990 , 24074)
    k4=trim(k,25394,25478)
    y=avisource("d:/bacha/film/100eos5d/film/71.avi")
    y1=trim(y,5617,5691)
    y2=trim(y, 5785, 5897 )
    y3=trim(y, 6289, 6371 )
    y4=trim(y, 6505,6631 )
    y5=trim(y,7299 ,7371)
    y6=trim(y,11372,11441)
    y7=trim(y,12989,13073)
    x=avisource("d:/bacha/film/100eos5d/film/81.avi")
    x1=trim(x,2307 , 2349)
    x2=trim(x,3903,4415)
    x3=trim(x,5625, 5818)
    x4=trim(x,6709 , 6838)
    x5=trim(x, 6997,7128 )
    x6=trim(x,7633, 7746 )
    x7=trim(x, 7837,7954)
    x8=trim( x,7981, 8049)
    x9=trim(x, 8089 , 8216)
    x10=trim( x,8672 , 8887)
    x11=trim(x, 8900 ,9026)
    x12=trim(x, 9896,10028)
    x13=trim(x, 10527 ,10527)
    x14=trim(x,10796,10861)
    x15=trim(x, 11174,11231)
    x16=trim(x,11550 ,11610)
    x17=trim(x, 11723, 11795 )
    x18=trim(x, 12046, 12172)
    x19=trim(x, 13301,13452)
    x20=trim(x, 13632 , 13749 )
    x21=trim(x, 15807,15879 )
    x22=trim(x,16359 , 16443)
    x23=trim(x, 18626 ,18726)
    x24=trim(x, 19037 , 19217)
    x25=trim(x, 23589, 23772)
    m=a++b++c++d++e1++e2++e3++e4++e5++k1++k2++k3++k4++ y1++y2++y3++y4++y5++y6++y7++x1++x2++x3++x4++x5++x6 ++x7++x8++x9++x10++x11++x12++x13+x14++x15++x16++x1 7++x18++x19++x20++x21++x22++x23++x24
    last=ConvertToYUY2(m)
    audio=wavsource("d:/bacha/film/100eos5d/film/1.wav")
    AudioDub(last,audio)

    By the way, i'd like to make sure that the sequence im planning to do is correct. First i just cut from the original all the pieces i liked and wanted to use for my project. Now im trying to manage an appropiate song for soundtrack. And after that im planning to do the actual editing, choosing the best sequences of frames according to audio. Finally i'll probably try to do something with colors, sharpnes etc. Does this sound ok?
    Quote Quote  
  8. When you used file=>save as avi in vdub, what compression did you use for video, and for audio ?

    (If it was uncompressed, you need a SDD or at least 2xHDD in Raid-0 to get enough I/O throughput for 1920x1080p23.976)

    What are your computer specs?


    By the way, i'd like to make sure that the sequence im planning to do is correct. First i just cut from the original all the pieces i liked and wanted to use for my project. Now im trying to manage an appropiate song for soundtrack. And after that im planning to do the actual editing, choosing the best sequences of frames according to audio. Finally i'll probably try to do something with colors, sharpnes etc. Does this sound ok?
    There is more than one way to approach things. You can do it whatever way you want

    Avisynth is difficult to use do to fine editing and get things in sync (e.g. if you need to do fine edits, timing to events). I would recommend a video editors (NLE) such as premiere pro, sony vegas etc... for anything more than simple timeline editing
    Last edited by poisondeathray; 10th Sep 2015 at 09:48.
    Quote Quote  
  9. Seems it was uncompressed, and maybe my pc is actually not good enough to play this...
    I tried to recompress this file (chose normal recompress in vdub) but in this case for some reason only audio was saved as avi file. Could you please explain how to recompress it right?

    What for using avisynth, i do simple editing at the moment, just start learning so cant actually do any serious editing anyway , so avisynth should be fine at this point.
    Quote Quote  
  10. Member
    Join Date
    Dec 2005
    Location
    Canada
    Search Comp PM
    I was never sure what 'Normal Recompress' was supposed to do, but all I ever got out was audio.
    Why not select a compressor and see what you get out.

    Edit:
    To be clear I mean simply opening a script, clicking Normal recompress and saving the output without selecting a compressor gives only a small file with no viewable video.
    Last edited by sambat; 11th Sep 2015 at 10:18.
    Quote Quote  
  11. I have just converted my video to mp4 and now it plays fine... Thank you all, guys!
    Quote Quote  



Similar Threads

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