Closed dajiangqingzhou closed 4 years ago
The MP4 format usually requires seeking to the end of a file, which InputStream doesn't support without downloading the whole file.
The MP4 format usually requires seeking to the end of a file, which InputStream doesn't support without downloading the whole file.
@saudet thank you for your reply. Yeah , I guess so. I separate the mp4 file into several parts, and handle every part of them until thumbnail generated. In my opinions, the mp4 format message should be included by one of parts. But I still get failed. Why ?
No, unfortunately, as far as I know, that's not something FFmpeg supports for the "mp4" format...
No, unfortunately, as far as I know, that's not something FFmpeg supports for the "mp4" format... @saudet All right, thank you!
You should try to ask on the FFmpeg user mailing list though. There's most likely someone over there that can help you figure out something for that.
FFmpeg does not support reading the first part of video to grap frame. Fortunately there is another way to create thumbnail by prividing a http url to FFmpeg. FFmpeg can seek and read the video, rather then download the whole video.
Yes, FFmpeg supports seeking for most formats and protocols. The problem is InputStream
that doesn't support seeking at all, so we can't expect that to work as well.
Did you find any solution to add thumbnail into the mp4 video file?
hello, guys I'm facing an issue when creating thumbnail of a mp4 video. The mp4 file is 178MB, no matter how big the variable 'defaultPart' is, it is always failed to create a thumbnail if 'defaultPart' is low than 178MB. The javacv version is : 1.4.4
Here is my code snippet(Using the same code , I can generate thumbnail for other mp4 videos which created by phone camera ):
the error message:
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f15f8865780] moov atom not found
But when I used the code as below, it works!! But in my case ,i have to use part of the video to create thumbnail, because my video is hurge, and it store in amazon s3, download
Hoping for your help,thank you!!