问题标签 [xuggler]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
ffmpeg - 使用 Xuggle 对 HTTP 实时流进行编码
我创建了一个基于 Xuggle 的服务器系统,将传入的文件编码为 H264 并对其进行分段。但是,在 Quicktime 中播放视频时,它几乎可以正常工作(有时音频会出现小问题),但是当从一个质量流更改为另一个质量流时,图像会丢失。
所以我运行了'mediastreamvalidator'并得到了以下错误:
错误:(-1)未知的视频编解码器:1836069494(程序 0,轨道 0)错误:(-1)未能将段解析为 MPEG-2 TS 或 ES
所以我使用 FFMPEG 来获取有关 codex 的一些信息:我的 Xuggler 编码的结果:
Compressor 创建的文件的结果:
在我看来,主要区别在于 Xuggler 编码文件显示的是 Video: mpeg2video 而不是 h264。但是,在编码时,我确实将 Coder 设置为 ICodec.ID.CODEC_ID_H264。
我怎样才能强制它使用h264。音频也是一样。我指定了 AAC 并获得了 MP2。
我随后直接使用了 FFMPEG,结果是:
这样看起来更好。我可以直接使用 FFMPEG,但是通过使用 Xuggler,我可以分割文件,同时更容易跟踪过程的进度。
java - java.io.IOException:权限被 Xuggle 拒绝
我正在尝试在服务器上运行 Xuggle 5.4,并且有一个我不知道如何处理的异常。相同的代码在另外两台服务器上运行良好,并且在另一个应用程序(Playframework)下的同一台服务器上运行良好。它在另一个应用程序下运行的事实使我认为这可能是错误的。
错误的根源似乎是 Xuggle 试图创建一个临时文件并且访问被拒绝。我怎样才能知道这是哪里?如前所述,这可能是其他安装已经使用的位置,并且在另一个用户帐户下运行。
这是堆栈跟踪:
java - 在 Xuggler 中保存时图像损坏
为了从网络摄像头捕获视频,我使用了DisplayWebcamVideo.java中的示例代码
修改后的决议:
要保存添加到该行的图像:
所有的遗骸,但同时保持图像的周期性部分被涂成灰色。此外,如果我理解正确,在保存下一帧之前 - 从硬盘中删除前一个图像,然后创建一个新图像。因此,有时带有网络摄像头的图像并没有存储在 sozhranenie 应该发生的文件夹中 - 不是所需的文件。
你能告诉我如何正确保存来自网络相机的图像吗?
java - Xuggler MediaWriter Operation Not Permitted Issue
I keep getting an exception when I close an IMediaWriter doing a simple transcode. The exception is "java.lang.RuntimeException: error Operation not permitted, failed to write trailer to test.mp3" I get this whenever I call IMediaWriter.close(),Any ideas why I would be getting this for a simple transcoding? Here's the sample code:
streaming - red5 流媒体视频文件 vod
我在服务器上有很多非常大的记录 mpeg.ts 文件(每个几个小时),我希望它们流式传输到网站。我正在考虑将 red5 与 xuggler 一起使用。我的客户可以请求一个文件,红色 5 可以将它流式传输到客户。Xuggler 可以即时将流转码为 Flash 视频。
这是一个好方法吗?有人可以指导我演示代码吗?
谢谢
java - 通过 JWS 启动 xuggle 应用程序时出现运行时异常
当我通过 JWS 启动我的应用程序时出现以下异常。但是当作为没有 JNLP 的独立 Java 应用程序启动时,它工作得很好。
这是 JNLP:
MyApp.jar 包含主类文件。所有使用的 JARS 都已签名。
java - 如何提取大型视频文件的子部分
我想根据给定的开始和结束时间从大型视频文件中提取一小部分视频。
我的互联网搜索显示许多人建议使用 Xuggle 来执行此操作,但我不熟悉这个库、它的用途或如何使用它来实现我的目标。请帮我解决一下这个。
java - video-steganography in java
I need to create steganographic videos (videos with data hidden in them) for my project. I need to carry this out by extracting all the frames from a video and then hiding data in the selected frames by replacing bits in the LSB of the pixel color value and then encoding all the frames to create a new video(note here that lossless formats are required otherwise I might end up losing hidden data).
My research motivated me to use xuggler for manipulating videos, 'png' format to save the extracted images as it is a lossless format(handling them as BufferedImage objects), and using 'avi' video files. As of now I am able to extract all frames from a video and encode my hidden data in the lsb's.
But I am having problems in creating the new avi video file using xuggler. When I extract the frames from the new video they lose the hidden data. I don't understand how to get this right and keep the data intact. This could be due to some lossy compression technique being used to create the new video.The size of the new video does not matter to me. I also can't find the correct codec_id to create the new video. I am extensively using xuggler tutorial available on wiki. decode and capture frames http://build.xuggle.com/view/Stable/job/xuggler_jdk5_stable/ws/workingcopy/src/com/xuggle/mediatool/demos/DecodeAndCaptureFrames.java
I can post my code as required...
java - 视频中的 Xuggler/Java 缩略图
我正在用 Grails 构建一个应用程序,但我也精通 Java。我需要显示视频文件的缩略图,然后当用户单击缩略图时,在播放器中打开该视频。(如 Youtube)。
我在想的是,当用户发布视频时,我将使用 xuggler 抓取缩略图,并将其与视频文件本身一起保存。
问题1:这是一个好的设计吗?
我不熟悉xuggler。
问题 2:有没有办法在用户上传时从输入流中获取缩略图?否则,我将编写文件,然后按照此处所述从中获取缩略图。