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!
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays!
+ Reply to Thread
Results 1 to 7 of 7
Thread
-
-
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.
-
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 -
oh god, different version work successfully.
very very very much thx man!!!
...u save me too much works. -
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?
Similar Threads
-
CrossPlatform command line tool to multiplex avi files?
By Selur in forum Newbie / General discussionsReplies: 0Last Post: 23rd Mar 2012, 15:29 -
command line tool to automatically cut avi file in HALF
By Choller in forum EditingReplies: 2Last Post: 1st Jan 2010, 02:19 -
Command line tool to make x264 mkv samples
By lime- in forum EditingReplies: 4Last Post: 1st Nov 2008, 16:58 -
Command line text overlay tool
By lmundy in forum LinuxReplies: 3Last Post: 13th Jul 2008, 13:58 -
Command-Line Tool to Join Videos?
By RobDude in forum EditingReplies: 1Last Post: 4th Jul 2007, 12:53