简体   繁体   English

使用Java搜索最佳视频压缩

[英]searching for best video compressing with java

I need to greatly reduce the filesize of a large set of jpg images created by a java program. 我需要大大减少由Java程序创建的大量jpg图像的文件大小。 I thought video should be best choice and in particular mp4. 我认为视频应该是最好的选择,尤其是mp4。 but, I don't know why the size of mp4 video with h.264 codec is bigger than the size of the image set in the only implementation I found, so I made my own archive format that is basically the imageset merged together in 1 file and compressed with Snappy , plus the info for split them again. 但是,我不知道为什么带有h.264编解码器的mp4视频的大小比我发现的唯一实现中的图像集大 ,所以我制作了自己的存档格式,基本上就是将图像集合并为1文件,并使用Snappy压缩,再加上重新分割的信息。 so the question are: 所以问题是:

  1. Does anyone know a good compression video encoder for java? 有人知道Java的压缩视频编码器不错吗?
  2. Does anyone know why in that implementation the file growth and avoid it? 有谁知道为什么在该实现中文件增长并避免它?
  3. currently basing on test I found snappy is reducing size by 15-20%, i know that jpg is already a compressed format and miracles in further compressing can't be done but i'm trying, so if the previous 2 point fail, someone know how minimize the file size in other ways than video? 目前基于测试,我发现snappy正在将尺寸减小15-20%,我知道jpg已经是一种压缩格式,无法进行进一步压缩的奇迹,但是我正在尝试,因此,如果前2点失败,有人知道如何通过视频以外的其他方式最小化文件大小?

EDIT: the jpg single images are already greatly compressed so i don't need a jpg algorithm. 编辑:jpg单个图像已经被大大压缩,所以我不需要jpg算法。

Only have your program record an image if something in the camera changes. 仅当相机中的某些内容发生变化时,程序才记录图像。 This should be fairly easy to code, and will reduce the file size by a ton. 这应该相当容易编码,并且将使文件大小减少一吨。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM