[FFmpeg-user] concatenate .h264 through a file

Cley Faye cleyfaye at gmail.com
Tue Apr 11 13:29:54 EEST 2017

2017-04-11 12:07 GMT+02:00 bbo2 <bbo2-at-yahoo.com at ffmpeg.org>:

> Guys I am a noob apologies if this has been asked..
> I have over 900 files to concatenate and am using following command:
> ffmpeg -f concat -i files.txt -vf scale=1080:-1 -vcodec mpeg4 -b:v 1000k
> output.mp4
> I Created a txt list(files.txt) with names of the videos (video-1.h264 - to
> video-943.h264)
> the response I get is "[concat @ 0000000000e967e0] Line 1: unknown keyword
> 'video-1.h264'
> files.txt: Invalid data found when processing input
> I am executing ffmpeg in the video directory... so don't need full path to
> videos, right?
> what am I doing wrong?

​he usual ​reply would be for you to post the actual content of files.txt
and the complete ffmpeg log.

However, I'll give you both these links in advance, showing you the full
help of the concat demuxer as well as a proper input file in this case:


More information about the ffmpeg-user mailing list