[FFmpeg-user] Problems with concat
Renato Santos
renato.cron at gmail.com
Sun Feb 9 23:26:01 CET 2014
>
> FFmpeg has three concat methods.
> concat protocol
> <http://ffmpeg.org/ffmpeg-protocols.html#concat> $ ffmpeg -i concat:
> "input1|input2" -codec copy output
> concat video filter
> <http://ffmpeg.org/ffmpeg-filters.html#concat>$ ffmpeg -i opening.mkv -i
> episode.mkv -i ending.mkv -filter_complex \
> '[0:0] [0:1] [1:0] [1:1] [2:0] [2:1] \ concat=n=3:v=1:a=1 [v] [a]'
> concat=n=3:v=1:a=1 [v] [a]' \
> -map '[v]' -map '[a]' output.mkv
> concat demuxer
> <http://ffmpeg.org/ffmpeg-formats.html#concat-1>$ cat mylist.txt file
> file '/path/to/file1'
> file '/path/to/file2'
> file '/path/to/file3'
>
> $ ffmpeg -f concat -i mylist.txt -c copy output
> Which one to use
>
> - *concat protocol*: use with formats that support file level
> concatenation (MPEG-1, MPEG-2 PS, DV).
>
>
> - *concat filter*: use if you need to re-encode such as when applying
> filters.
>
>
> - *concat demuxer*: use when you want to avoid a re-encode and your
> format does not support file level concatenation.
>
> If in doubt try the concat demuxer.
> Also see
>
> - FFmpeg FAQ: How can I join video files?<http://ffmpeg.org/faq.html#How-can-I-join-video-files_003f>
>
>
> - FFmpeg Wiki: How to concatenate (join, merge) media files<https://trac.ffmpeg.org/wiki/How%20to%20concatenate%20%28join,%20merge%29%20media%20files>
>
> from
http://stackoverflow.com/questions/7333232/concatenate-two-mp4-files-using-ffmpeg
On Sun, Feb 9, 2014 at 7:41 PM, James Board <jpboard2 at yahoo.com> wrote:
> I'm trying to concatenate to AVI files together. This is the command and
> error message
>
> > ffmpeg -f concat -i file1.avi file2.avi -c copy OUT.avi
> ffmpeg version N-54733-gab5f581 Copyright (c) 2000-2013 the FFmpeg
> developers
> built on Aug 5 2013 20:24:36 with gcc 4.4.7 (GCC) 20120313 (Red Hat
> 4.4.7-3)
> configuration: --enable-libfreetype --enable-gpl --enable-libx264
> libavutil 52. 39.100 / 52. 39.100
> libavcodec 55. 18.102 / 55. 18.102
> libavformat 55. 12.102 / 55. 12.102
> libavdevice 55. 3.100 / 55. 3.100
> libavfilter 3. 80.101 / 3. 80.101
> libswscale 2. 3.100 / 2. 3.100
> libswresample 0. 17.102 / 0. 17.102
> libpostproc 52. 3.100 / 52. 3.100
> [concat @ 0x23aa060] Line 1: unknown keyword 'RIFF
>
>
> Here's what ffprobe says about file1.avi
>
> > ffprobe version N-54733-gab5f581 Copyright (c) 2007-2013 the FFmpeg
> developers
> built on Aug 5 2013 20:24:36 with gcc 4.4.7 (GCC) 20120313 (Red Hat
> 4.4.7-3)
> configuration: --enable-libfreetype --enable-gpl --enable-libx264
> libavutil 52. 39.100 / 52. 39.100
> libavcodec 55. 18.102 / 55. 18.102
> libavformat 55. 12.102 / 55. 12.102
> libavdevice 55. 3.100 / 55. 3.100
> libavfilter 3. 80.101 / 3. 80.101
> libswscale 2. 3.100 / 2. 3.100
> libswresample 0. 17.102 / 0. 17.102
> libpostproc 52. 3.100 / 52. 3.100
> Input #0, avi, from '2014_Olympics_FS_yadif_ffvhuff000_encode.avi':
> Metadata:
> encoder : MEncoder VERSION
> Duration: 00:00:08.01, start: 0.000000, bitrate: 9843 kb/s
> Stream #0:0: Video: mpeg4 (Simple Profile) (FMP4 / 0x34504D46), yuv420p,
> 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 29.97 tbn, 30k tbc
>
>
> Both file1.avi and file2.avi can be played with ffplay or mplayer.
>
>
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
--
Saravá,
Renato CRON
http://www.renatocron.com/blog/
@renato_cron <http://twitter.com/#!/renato_cron>
More information about the ffmpeg-user
mailing list