[FFmpeg-user] ffmpeg how to set stream layout

Soho Soho123 soho123.2012 at gmail.com
Tue Jul 23 14:25:03 CEST 2013


> I use ffmpeg command to generate audio and video stream.
> > ffmpeg -loglevel debug -f video4linux2 -r 30 -s 640x480 -input_format
> h264
> > -i /dev/video1 -f alsa -ar 44100 -ac 2 -i hw:0 -vcodec copy -acodec copy
> > http://localhost:8090/feed1.ffm
> >
> > I got the stream layout :
> >  Stream #0:0, 0, 1/1000000: Audio: pcm_s16be, 44100 Hz, stereo, 1411 kb/s
> >     Stream #0:1, 0, 1/1000000: Video: h264, yuv420p, 640x480, 1/30,
> q=2-31,
> > -5 kb/s, 30 fps, 1000k tbn, 30 tbc
> >
> > Can I modify the layout to
> > Stream 0 is video , and stream 1 is audio?
>
> Yes, use the -map option to enumerate streams in the order you want them to
> appear in the output.
>
> Cheers,
> Francois
>
> Hi,
Excuse me!
Do you know where is the example about "-map" option usage?

Thanks!


More information about the ffmpeg-user mailing list