VideoHelp.com Forum
+ Reply to Thread
Results 1 to 7 of 7
Thread
  1. Member
    Join Date: Aug 2008
    Location: United Kingdom
    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
    Quote Quote  

  3. Member
    Join Date: Aug 2008
    Location: Czech Republic
    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
    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/lates...ModifierCL.zip

    Batch processor for above utility

    http://www.burrrn.net/download/Packe...%20Remover.zip
    Quote Quote  

  5. Member
    Join Date: Aug 2008
    Location: Czech Republic
    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
    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
    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

  1. CrossPlatform command line tool to multiplex avi files?
    By Selur in forum Newbie / General discussions
    Replies: 0
    Last Post: 23rd Mar 2012, 15:29
  2. Replies: 2
    Last Post: 1st Jan 2010, 02:19
  3. Command line tool to make x264 mkv samples
    By lime- in forum Editing
    Replies: 4
    Last Post: 1st Nov 2008, 16:58
  4. Command line text overlay tool
    By lmundy in forum Linux
    Replies: 3
    Last Post: 13th Jul 2008, 13:58
  5. Command-Line Tool to Join Videos?
    By RobDude in forum Editing
    Replies: 1
    Last Post: 4th Jul 2007, 12:53
Search   Contact us   About   Advertise   Forum   RSS Feeds   Statistics   Tools