
The video is filtered once total, and encoded separately for each output. With the split filter ffmpeg -i input1.mp3 -i input2.mp3 -loop 1 -framerate 10 -i imagefile.png -filter_complex "format=yuv420p,split=outputs=2" -map " -map 0:a -shortest -movflags +faststart output1.mp4 -map "" -map 1:a -shortest -movflags +faststart output2.mp4 The video is filtered and encoded once per output. Now enjoy the play with video and audio together:Ĭ:\herong>\local\bin\flashplayer_13_sa Video_and_Audio.Basic command ffmpeg -i input1.mp3 -i input2.mp3 -loop 1 -framerate 10 -i imagefile.png -map 2:v -map 0:a -vf format=yuv420p -shortest output1.mp4 -map 2:v -map 1:a -vf format=yuv420p -shortest output2.mp4 Global headers:0kB muxing overhead: 1.422432% Video:1293kB audio:617kB subtitle:0kB other streams:0kB Output #0, swf, to 'Video_and_Audio.swf': Input #1, swf, from 'Audio_with_No_Video.swf': Input #0, swf, from 'Video_with_No_Audio.swf':ĭuration: N/A, start: 0.000000, bitrate: N/A i Video_with_No_Audio.swf -i Audio_with_No_Video.swf Let's try it on our sample SWF file, Anchor_and_Spider_Man.swf: Of the second input file to be mapped to the output file at the same time.

Of the first input file to be mapped to the output file.Īnd it uses "-map 1:0" to specify the first stream (audio stream)

The above command uses "-map 0:0" to specify the first stream (video stream) I am sure now you want to know how to merge a video stream and an audio stream into a single SWF file.

'-map' option used twice to specify video and audio streams into the output file.

This section provides a tutorial example on how to merge a video stream SWF file and an audio stream SWF file into a single SWF file. ∟Merge Video and Audio Streams to SWF File Flash Tutorials - Herong's Tutorial Examples
