how to merge 2 video files in 1 file
Hello everyone, Just want to ask if anybody knows how to merge 2 video files into 1 file using ffmpeg in linux environment? I mean, the second video starts right after the first one finishes. Thanks in advance! Don B Santillan Software Engineer <http://www.stratpoint.com/> http://www.stratpoint.com/ <http://www.stratpoint.com/> Stratpoint Technologies Inc. www.stratpoint.com <http://www.stratpoint.com/> 7/F Net Square, 28th St. corner 3rd Ave. Crescent Park West, Bonifacio Global City Taguig City, Philippines 1634 * +63.2.856.0564 to 65 ( + 63.2.919.478.9264
first extract frame from both movie file may be in jpgf ormat. then later combine jpg files to new movie. ffmpeg -i movie1.mpg -f image2 -t 1.0 movie%1d.jpg ffmpeg -i movie2.mpg -f image2 -t 1.0 movie%2d.jpg ffmpeg -an -r 30 -i movie%d.jpg test.mpg (30 is framerate) On 10/2/06, Don B. Santillan <dsantillan at stratpoint.com> wrote:
Hello everyone,
Just want to ask if anybody knows how to merge 2 video files into 1 file using ffmpeg in linux environment? I mean, the second video starts right after the first one finishes.
Thanks in advance!
Don B Santillan
Software Engineer
Stratpoint Technologies Inc.
www.stratpoint.com <http://www.stratpoint.com/>
7/F Net Square, 28th St. corner 3rd Ave.
Crescent Park West, Bonifacio Global City
Taguig City, Philippines 1634
* +63.2.856.0564 to 65
( + 63.2.919.478.9264
_______________________________________________ ffmpeg-user mailing list ffmpeg-user at mplayerhq.hu http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
prashant khadka wrote:
Just want to ask if anybody knows how to merge 2 video files into 1 file using ffmpeg in linux environment? I mean, the second video starts right after the first one finishes.
Another method: cat movie1.mpg movie2.mpg | ffmpeg -y -i - -genpts -vcodec copy -acodec copy new_movie.mpg Not perfect, but fast. Paul
participants (3)
-
dsantillan@stratpoint.com -
pfc@terrapin.com -
prkhadka@gmail.com