i have a list of video file mp4 and i want join all files into one file.
then with ffmpeg i have write one txt list with all my video files.
i have all video, my txt and ffmpeg on same folder.
with: ffmpeg -f concat -i xlist.txt -c copy output.mp4
i have this error:
[concat @ 00000000004d57c0] Line 1: unknown keyword 'first_video.mp4
xlist.txt: Invalid data found when processing input
why this error??
+ Reply to Thread
Results 1 to 12 of 12
work if add "file" at all my list like:
without "file" not work.... another suggestion to not add "file" to whole list? i have a long list.....
Did you try Prowo's suggestion?I think,therefore i am a hamster.
It may be easier just to create a quick new list from a dos command inside video folder
(for %i in (*.mp4,*mpg,*.Avi) do @echo file '%i') > mylist.txt
Bat file command
(for %%i in (*.mp4,*mpg,*.Avi) do @echo file '%%i') > mylist.txt
Not yet. now i try it
tanxs for reply. but no problem: i use XY as file manager, and with this select all files and copy name into clipboard.
but with ffmpeg only file name it's not enough... i can add "file" to each clip video.
but also this is not problem: with np++ it's easy add "file" entries.
now i have 2 problem:
1) ffmpeg meets mistakes to generate a final video file because the clips don't have the same resolution and maybe not even the same video codec... so I should make an initial selection to put in clip groups with the same settings. but I have too many files and this job is not worth it
for this reason maybe i just need to see them in the player, but.... (see point 2)
2) i like potplayer but some clip do not play. but if i insist several times it works! same clips with VLC or gomplayer have no problems, but I find these 2 players always with some flaws and therefore prefer PP, but this has problems in playback.
I have already tried to change the internal codec parameters, using its Opencodec FFmpeg64 or internal LAV filters but in the end I don't see results.
all my clips is mp4 format. some play correctly at first shot, other i need to repeat play several times to get correct video play. this is very strange, and this only with PP. VLC and gomP not have problem to play all clips.
tanxs for reply.
anyway i've solved my issue with PP.
before i have disable audio service (for my other issues). enable this service all clips play correctly!
VLC and gomplayer instead play all video with or without audio service.
that's why i didn't understand the problem with PP...!