VideoHelp Forum
+ Reply to Thread
Results 1 to 7 of 7
Thread
  1. Member
    Join Date
    Aug 2008
    Location
    United Kingdom
    Search Comp PM
    I run a video-sharing site and I want to automate the process of uploading content to my site. Is there a command-line tool I can use which will take ONE input avi, and generate an x second sample of it. I have been playing around with VirtualDub scripting and specifically the VirtualDub.video.SetRange function but what works for one video, won't work with another.

    I'm stumped!
    Quote Quote  
  2. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    Quote Quote  
  3. Member
    Join Date
    Aug 2008
    Location
    Czech Republic
    Search Comp PM
    i have tried this command for cutting some avi part:

    Code:
    ffmpeg -ss 180 -t 60 -y -vcodec copy -acodec copy -i long_input_file.avi short_output_file.avi

    but ff show me this error message:

    Code:
    [NULL @ 015781B0]Invalid and inefficient vfw-avi packed B frames detected
    Assertion failed: st2->time_base.den == ast2->rate, file libavformat/avidec.c, line 1029
    
    This application has requested the Runtime to terminate it in an unusual way.
    Please contact the application's support team for more information.
    pls help me
    Quote Quote  
  4. Member Soopafresh's Avatar
    Join Date
    Jan 2004
    Location
    United States
    Search Comp PM
    Try a different version of FFMPEG


    http://tirnanog.fate.jp/mirror/ffmpeg/

    If that doesn't work, try to unpack the bitstream on the source AVI file

    http://www.moitah.net/download/latest/MPEG4ModifierCL.zip

    Batch processor for above utility

    http://www.burrrn.net/download/Packed%20Bitstream%20Remover.zip
    Quote Quote  
  5. Member
    Join Date
    Aug 2008
    Location
    Czech Republic
    Search Comp PM
    oh god, different version work successfully.
    very very very much thx man!!!
    ...u save me too much works.
    Quote Quote  
  6. Member
    Join Date
    Aug 2008
    Location
    Czech Republic
    Search Comp PM
    i have one little problem with this:
    ffmpeg -ss 180 -t 60 -y -vcodec copy -acodec copy -i long_input_file.avi short_output_file.avi

    ss=180 = start frame is 4500, but cutting avi video is possible only in keyframes, that means really start frame is for example 4399, but audio is always cutted "in frame" 4500, not 4399. after this is audio in output avi desynced.
    exist any way to fixed this ffmpeg command?
    Quote Quote  
  7. VH Veteran jimmalenko's Avatar
    Join Date
    Aug 2003
    Location
    Down under
    Search PM
    Originally Posted by Dean C
    I have been playing around with VirtualDub scripting and specifically the VirtualDub.video.SetRange function but what works for one video, won't work with another.
    Vdub possibly uses frame numbers, and not timecodes. This would explain why you cannot get a consistent x second preview, without knowing the original frame rate.
    If in doubt, Google it.
    Quote Quote  



Similar Threads

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