0

Learning ffmpeg, I tested SDL output by the code below. I noticed that video played well but no audio.

ffmpeg -re -i INPUT -vcodec rawvideo -pix_fmt yuv420p -window_size qcif -f sdl "sdl out"

there was no sound. audio stream was not appeared in the sdl output, but only the video stream.

How can I make sdl output take audio stream as well as video stream? thank you

Thm Lee
  • 153
  • 1
  • 8

2 Answers2

1

Not possible. The SDL audio muxer is only implemented in ffplay.

Gyan
  • 34,439
  • 6
  • 56
  • 98
-1
ffmpeg -re -i INPUT -vcodec rawvideo -pix_fmt yuv420p -window_size qcif -f sdl "sdl out" -f pulse "pulse out"
Giacomo1968
  • 53,069
  • 19
  • 162
  • 212
  • 3
    So can you explain this answer? Does the command work? Comparing it to what the original poster has posted it seems like your command adds `-f pulse "pulse out"` to the end of the command. Can you explain why that would work here? – Giacomo1968 Jan 06 '21 at 02:56