No sound in stream

I used ffmpeg for live stream like below,

ffmpeg -re -thread_queue_size 5512 -i "file.mp4" -i "file.mp3" -c:v copy -c:a copy -f flv rtmp://.

Here I don't have audio in video. Then I tried,

ffmpeg -re -thread_queue_size 5512 -i "file.mp4" -map 0 -map -0:a -i "file.mp3" -c:v copy -c:a copy -f flv rtmp://to remove audio from video, then I get error like,

Option map (set input stream mapping) cannot be applied to input url file.mp3

How to fix it?

1 Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like