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

Soho Soho123 soho123.2012 at gmail.com
Tue Aug 6 08:16:22 CEST 2013


hi All,


the question is :
how to set video to the specific stream
how to set audio to the specific stream
if I use ffmpeg to capture both video and audio simultaneously?

for example :
ffmpeg 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 -vcodec copy -acodec copy
http://localhost:8090/feed1.ffm

I get the result :
Output #0, ffm, to 'http://localhost:8090/feed1.ffm':
  Metadata:
    creation_time   : now
    encoder         : Lavf55.12.100
    Stream #0:0, 0, 1/1000000: Audio: pcm_s16be, 48000 Hz, stereo, 1536 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
Stream mapping:
  Stream #1:0 -> #0:0 (copy)
  Stream #0:0 -> #0:1 (copy)

how to modify the stream layout when capture video + audio?


More information about the ffmpeg-user mailing list