[Ffmpeg-devel] [PATCH] FAQ entry for video joining

Stefano Sabatini stefano.sabatini-lala
Fri Apr 27 18:19:41 CEST 2007


On date Friday 2007-04-27 16:19:09 +0200, V?ctor Paesa encoded:
> Hi,
> 
> Patch attached to add $subject to documentation.
> 
> Regards,
> [...]
> + at section How can I join video files?
> +
> +A few multimedia containers (MPEG1, MPEG2 PS, DV) allow to join video files by
> +merely concatenating them.
> +
> +Hence you may concatenate your multimedia files by first transcoding them to
> +these privileged formats, then using the humble @code{cat} command (or the
> +equally humble @code{copy} under Win32), and finally transcoding back to your
> +format of choice.
> +
> + at example
> +ffmpeg -i input1.avi -sameq intermediate1.mpg
> +ffmpeg -i input2.avi -sameq intermediate2.mpg
> +cat intermediate1.mpg intermediate2.mpg > intermediate_all.mpg
> +ffmpeg -i intermediate_all.mpg -sameq intermediate2.avi

Why to call the final output "intermediate2.avi" if it's indeed the
final output? Wouldn't be better to call it "output.avi"?

> [...]
> + at example
> +mkfifo intermediate1.mpg
> +mkfifo intermediate2.mpg
> +ffmpeg -i input1.avi -sameq -y intermediate1.mpg < /dev/null &
> +ffmpeg -i input2.avi -sameq -y intermediate2.mpg < /dev/null &
> +cat intermediate1.mpg intermediate2.mpg |\
> +ffmpeg -f mpeg -i - -sameq -vcodec mpeg4 -acodec mp3 intermediate2.avi
                                                        ^^^^^^^^^^^^^^^^^
Same as above.

For the rest I found it very clear.
Thanks and regards
-- 
Stefano Sabatini
Linux user number 337176 (see http://counter.li.org)




More information about the ffmpeg-devel mailing list