[FFmpeg-user] [HELP] ffmpeg how to arrange video , audio to the specific stream

Soho Soho123 soho123.2012 at gmail.com
Tue Aug 6 10:15:55 CEST 2013


> > Applying option map (set input stream mapping) with argument 0:1.
> > Stream map '0:1' matches no streams.
>
> Use "-map 1:0" instead of "-map 0:1"
> I use the map option when I start ffmepg,
>
I got the same stream arrangement.
the command :
ffmpeg -loglevel debug -f video4linux2 -r 30 -s 640x480 -input_format h264
-i /dev/video1 -f alsa -ar 48000 -ac 2 -i hw:0 -map 0:0 -map 1:0 -vcodec
copy -acodec copy http://localhost:8090/feed1.ffm

OR

ffmpeg -loglevel debug -f video4linux2 -r 30 -s 640x480 -input_format h264
-i /dev/video1 -f alsa -ar 48000 -ac 2 -i hw:0 -map 1:0 -map 0:0 -vcodec
copy -acodec copy http://localhost:8090/feed1.ffm

All get the stream mapping:

Stream mapping:
  Stream #1:0 -> #0:0 (copy)
  Stream #0:0 -> #0:1 (copy)


Do you know where is wrong?


More information about the ffmpeg-user mailing list