我想从一个服务器从我的Android应用程序下载的视频文件的一帧。我不笏下载完整的视频在前面。使用该帧作为缩略图来显示给用户,这样,如果choosen由用户就可以下载。
I want to download a single frame of a video file from a server from my android application. I do not wat to download the full video at front. Use that frame as a thumbnail to display to the user, so that if choosen by user it can be downloaded.
的ffmpeg
可以使用此命令从视频流中创建缩略图:
ffmpeg
can create a thumbnail from a video stream using this command:
ffmpeg -itsoffset -4 -i https://m.xsw88.com/allimgs/daicuo/20230906/1168.png.jpg
要获得的ffmpeg
进入Android的似乎doable.
To get ffmpeg
into android seems doable.