[Ffmpeg-devel] My ffmpeg manual
Víctor Paesa
wzrlpy
Wed Dec 13 12:46:12 CET 2006
Hi,
> I just noticed a flag called -newvideo : add a new video stream to the
> current output stream.
>
> Q1: Does this flag allow me to take 2 serial source videos and create a
> single output video?
It behaves as -newaudio: it adds a new video stream, useful if you want
to add multiple points of view (angles in DVD parlance) or same video
in a different video codec. Of course, all this if the container supports
it.
> Q2: If so, can you please provide a sample commandline?
$ ffmpeg -i one_view.avi -target pal-dvd multi_angle.mpg \
-i second_view.avi -vcodec mpeg2video -newvideo
FFmpeg version SVN-r7186, Copyright (c) 2000-2006 Fabrice Bellard, et al.
configuration: --enable-mp3lame --enable-a52 --disable-static
--enable-shared --enable-pthreads --enable-swscaler --enable-avisynth
--enable-gpl --extra-cflags=-DX_DISPLAY_MISSING -march=pentium4
libavutil version: 49.1.0
libavcodec version: 51.25.0
libavformat version: 51.6.0
built on Nov 30 2006 13:45:33, gcc: 3.4.4 (cygming special) (gdc 0.12,
using dmd 0.125)
Input #0, avi, from 'one_view.avi':
Duration: 00:00:20.2, start: 0.000000, bitrate: 622 kb/s
Stream #0.0: Video: mpeg4, yuv420p, 720x576, 25.00 fps(r)
Stream #0.1: Audio: mp2, 48000 Hz, stereo, 64 kb/s
Input #1, avi, from 'second_view.avi':
Duration: 00:00:20.2, start: 0.000000, bitrate: 622 kb/s
Stream #1.0: Video: mpeg4, yuv420p, 720x576, 25.00 fps(r)
Stream #1.1: Audio: mp2, 48000 Hz, stereo, 64 kb/s
Output #0, dvd, to 'multi_angle.mpg':
Stream #0.0: Video: mpeg2video, yuv420p, 720x576, q=2-31, 6000 kb/s,
25.00 fps(c)
Stream #0.1: Audio: ac3, 48000 Hz, stereo, 448 kb/s
Stream #0.2: Video: mpeg2video, yuv420p, 720x576, q=2-31, 6000 kb/s,
25.00 fps(c)
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
Stream #1.0 -> #0.2
Press [q] to stop encoding
frame= 507 q=2.0 Lq=2.0 size= 9236kB time=20.2 bitrate=3738.2kbits/s
video:7744kB audio:1108kB global headers:0kB muxing overhead 4.335286%
> Q3: If not, is there a way to join 2 videos into one? (Both are
> identical in xysize, codec, bitrate etc.)
That point has been explained multiple times at ffmpeg-user.
Regards,
V?ctor
More information about the ffmpeg-devel
mailing list