FORUMS: list search recent posts

combining video files

COW Forums : FFmpeg

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
Peter Robertson
combining video files
on Jul 3, 2013 at 6:31:44 pm

I'm trying to combine some video clips. Using:

cat index_0.mp4 index_30.mp4 index_60.mp4| ffmpeg -i - -vcodec copy -acodec copy -f mp4 comp.mp4

gives me

Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)

And the output is a file that will not play. Suggestions??

Pedro


Return to posts index

Lou Logan
Re: combining video files
on Jul 5, 2013 at 9:00:16 pm

See FFmpeg Wiki: How to concatenate (join, merge) media files, and FFmpeg FAQ: How can I join video files?; particularly the information on the concat demuxer.


Return to posts index

Chiq Garcia
Re: combining video files
on Aug 6, 2013 at 7:17:04 am

ffmpeg -i concat:"file1|file2|file3" -c:v copy -c:a copy "combined.mp4"

there are other approaches, but i think this one is easy on the eyes. plus, video specs have to be exactly the same.


Return to posts index


Lou Logan
Re: combining video files
on Aug 6, 2013 at 7:01:56 pm

[Chiq Garcia] " ffmpeg -i concat:"file1|file2|file3" -c:v copy -c:a copy "combined.mp4"
there are other approaches, but i think this one is easy on the eyes. plus, video specs have to be exactly the same."


Use of the concat protocol requires the input to be "cat friendly". From FFmpeg FAQ - Concatenating using the concat protocol (file level):

A few multimedia containers (MPEG-1, MPEG-2 PS, DV) allow to concatenate video by merely concatenating the files containing them.


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]