VideoHelp Forum


Try StreamFab All-in-One and rip Netflix video! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 12 of 12
Thread
  1. Member
    Join Date
    Jan 2019
    Location
    hawai
    Search PM
    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

    G:\foldername>


    why this error??
    Quote Quote  
  2. Member
    Join Date
    Jan 2019
    Location
    hawai
    Search PM
    work if add "file" at all my list like:
    file ada01
    file ada02
    file ada03

    without "file" not work.... another suggestion to not add "file" to whole list? i have a long list.....
    Quote Quote  
  3. Try my clever FFmpeg-GUI; you can merge up to 20 videos
    Quote Quote  
  4. Member
    Join Date
    Jan 2019
    Location
    hawai
    Search PM
    with notepad++ is very simple add file at each line. problem solved
    but another problem: some clip are different, then ffmpeg have error to add all clips.
    have a way to solve this?
    Quote Quote  
  5. I'm a Super Moderator johns0's Avatar
    Join Date
    Jun 2002
    Location
    canada
    Search Comp PM
    Did you try Prowo's suggestion?
    I think,therefore i am a hamster.
    Quote Quote  
  6. Member Budman1's Avatar
    Join Date
    Jul 2012
    Location
    NORTHWEST ILLINOIS, USA
    Search Comp PM
    It may be easier just to create a quick new list from a dos command inside video folder

    Cmd command
    (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
    Quote Quote  
  7. Member
    Join Date
    Jan 2019
    Location
    hawai
    Search PM
    @ johns0
    Not yet. now i try it

    @Budman1
    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.
    Quote Quote  
  8. Originally Posted by lomero View Post
    with notepad++ is very simple add file at each line. problem solved
    but another problem: some clip are different, then ffmpeg have error to add all clips.
    have a way to solve this?
    Yes, you needed to add file to each line.
    Not sure you can concatenate clips with different codecs and resolutions without encoding.
    Quote Quote  
  9. Member
    Join Date
    Jan 2019
    Location
    hawai
    Search PM
    no. exact. ffmpeg have error if concatenate clips have different codecs and resolutions without re-encoding.
    this is my problem.
    Quote Quote  
  10. Originally Posted by lomero View Post
    no. exact. ffmpeg have error if concatenate clips have different codecs and resolutions without re-encoding.
    this is my problem.
    unsolvable...
    Quote Quote  
  11. - create a playlist and use a player which supports this feature
    or
    - convert to same resolution, append, and reencode to same codec parameters.
    Quote Quote  
  12. Member
    Join Date
    Jan 2019
    Location
    hawai
    Search PM
    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...!
    Quote Quote  



Similar Threads