Closed liuxuan30 closed 4 years ago
sdl
library is not included in mobile-ffmpeg
binaries. So you won't be able to use -f sdl
in your commands. If you need it, you need to build your own mobile-ffmpeg
version.
You can use -f h264
, but in your case you need to decide what to do with the input stream. You can save it to a file by specifying full file path -i udp://0.0.0.0:11111 -f h264 <full file path.mp4>
.
Hi @tanersener thanks for replying. What is sdl
here?
I tried -f h264
however it says "At least one output file must be specified",
But my goal is not saving to a file, just want to play it on the screen directly, can we skip the output file? If not, does mobile-ffmpeg itself supports directly streaming it in memory(I guess)?
Hi @tanersener thanks for replying. What is
sdl
here?
You can find more information about sdl device here. It allows you to show a video stream in an SDL
window.
I tried
-f h264
however it says "At least one output file must be specified",But my goal is not saving to a file, just want to play it on the screen directly, can we skip the output file? If not, does mobile-ffmpeg itself supports directly streaming it in memory(I guess)?
Yeah, -f h264
requires an output file.
Unfortunately, mobile-ffmpeg
does not support playing a video on the screen. Because mobile-ffmpeg
does not know what a screen
is. A library like SDL
is needed to define a screen for ffmpeg
. But as I said in my previous post, sdl
is not enabled in mobile-ffmpeg
. You can build it, it is supported by the scripts. But parts that define a screen
is not implemented in mobile-ffmpeg
.
Thanks for answering!
Hi there, I'm very new to ffmpeg,
I'm trying to use this library to display DJI Tello drone camera output, following guide https://tellopilots.com/threads/tello-video-web-streaming.455/
in that post
or
works well on my macbook, 10.15 with ffmpeg 4.2.1.
When I am trying the ios test app, if I paste the command
it gives
or
can you help clarify if mobile-ffmpeg is fully compatabile?