问题标签 [mp4parser]

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.

0 投票
2 回答
4867 浏览

java - MP4Parser 改变视频方向

我正在尝试使用当前正在使用 TrackHeaderBox 播放但根本无法改变方向的 MP4Parser(或任何其他方法,如果您知道的话)将横向视频旋转成纵向,有没有人在此之前使用过它可以发现我可能犯的错误?任何帮助都会有很大帮助,谢谢

0 投票
0 回答
1249 浏览

android - 无法附加到Android中的视频

我正在使用 mp4 解析器来附加视频。我的问题是我无法附加视频。我收到诸如 BufferUnderFlow Exception 之类的错误。谁能告诉我我可能在哪里犯了错误?

这是我的代码:

0 投票
2 回答
2594 浏览

java - 使用 mp4parser 剪辑 mp4。无法通过 SyncSample 纠正过去的时间

我正在编写一个 Android 应用程序,我有一堆 5-15 秒的 .mp4 文件要剪辑。我一直在尝试使用 Sebastian Annies 的mp4parser来执行此操作,遵循此处给出的示例代码:ShortenExample

这是我正在使用的代码(非常类似于上面的示例代码):

我似乎无法阻止错误“开始时间已被另一个使用 SyncSample 的轨道更正。不支持。” 从发生。当我记录循环播放的曲目时,getHandler() 返回“vide”、“soun”,然后在“hint”时崩溃。如果我将此部分注释掉:

然后程序在到达该行时会因索引越界错误而崩溃

我究竟做错了什么?

0 投票
1 回答
941 浏览

apache - Apache Tika MP4 元数据密钥

我正在使用 Apache Tika v 1.4 通过以下方式解析视频文件。

问题是我不知道在某些情况下使用哪些键。例如 MP4 键: 持续时间。帧速率。

我在哪里找到这些钥匙?

谢谢。

0 投票
1 回答
2176 浏览

android - Mp4parser - android - 不能让它工作

我正在尝试借助缩短示例制作视频分割应用程序。我正在尝试从 github 实现以下项目。 https://github.com/dadachi/TestMp4parser

但该应用程序无法正常工作和中止。

日志猫 -


这些文件与 git hub 项目中的文件相同。请让我知道我犯了什么错误我正在犯什么错误。

0 投票
2 回答
2210 浏览

android - 如果我在 mp4parser 中合并更多视频,音频和视频未正确同步

我使用 mp4parser 将视频与动态暂停合并并录制视频捕获,最长录制时间为 6 秒。在以最小暂停/录制录制视频时预览其工作正常,如果我尝试超过 3 次暂停/录制意味着最后一个视频文件没有与音频正确合并。在视频开始时同步正常,但在结束时视频挂起,音频在屏幕上播放,剩余文件持续时间约为 1 秒。

我的录音管理器

视频工具

我的参考代码项目链接是

https://github.com/jwfing/AndroidVideoKit

0 投票
2 回答
3076 浏览

java - Resize mp4 video with mp4parser

I'm trying to figure out how to resize/scale an mp4 video using mp4parser in an android app. After quite a bit of googling and looking through the mp4parser source and examples, I'm still not sure how to go about doing this.

Does mp4parser have some built in way of doing this?

If not, can I grab the raw video data and resize it myself using mp4parser? (a link to an example would be awesome if possible)

NOTES:

mp4parser website https://code.google.com/p/mp4parser/

I'm willing to consider using a different library than mp4parser, but I'd like something with licensing similar to LGPL. In other words, I am willing to supply library source code and give credit where credit is due, but I'd rather not be forced to make my source code publicly available. (This app will eventually be commercially available).

I need this functionality to append 2 files together that have different resolutions (taken from front camera and back camera).

I have successfully used mp4parser to append 2 files of the same resolutions.

I'm pretty new to video editing.

While I've relied on stackoverflow for many years, this is my very first question asked. Please be gentle. I'll gladly take constructive criticism on the proper way to ask questions here.

0 投票
0 回答
397 浏览

java - 附加视频的问题:

我的问题很像这篇文章中描述的问题:Cant append to video in Android,只是无法使用更新的 jar 来解决我的问题(我目前使用的是 isoviewer-1.0-RC-26)。以下是我的代码:

我在 asyncTask 中运行此代码,这样当 vid 稍微大一点时,它们就不会占用 UI 线程。以下是我得到的错误:

我知道我试图连接的视频确实存在,并且我相当确定(通过上述输出和使用 Log 语句)它在向result变量添加新轨道时会中断。我究竟做错了什么?最糟糕的是,我正在 Google Nexus 和三星 Galaxy Tab 上进行测试。联系有效,星系抛出错误。

0 投票
1 回答
3857 浏览

android - 使用 Mp4parser 旋转视频

我需要旋转视频来调整我的一些需求。我将在下面的列表中解释详细信息。

我正在创建一个类似 Vine 的应用程序。我必须录制视频片段,然后将所有部分合并到一个文件中。我在使用最新版本 1.0-RC-26 的 mp4 解析器库的 Android 应用程序上执行此操作没有问题,使用他们网站上提供的示例:这里

如果所有视频都具有相同的方向,则附加视频示例可以正常工作,但是我发现从前置摄像头录制视频时存在一些问题,因此快速解决方案是将视频方向录制设置为 270。此解决方案的坏处是带有此方向在合并的视频上显示为错误的方向。

我可能的解决方案是旋转视频以在不同情况下应用我需要的内容,但我的代码没有工作示例。搜索互联网,我在这里找到了类似的解决方案。这段代码的问题是与上一个版本不兼容(它给出了编译错误)。我也试图理解图书馆的逻辑,但我没有结果。例如,我尝试使用setMatrixMovie 对象上的指令,但它根本不起作用。

有人使用最新版本的 Mp4 解析器旋转视频吗?英语不是我的母语,所以我对任何语法错误表示歉意。

0 投票
0 回答
997 浏览

mp4parser - mp4parse on Android 错误 - MovieCreator.build() : “java.lang.RuntimeException: No box object found for ftyp”

我正在使用mp4parser库。MovieCreator.build(new FileInputStream(f1).getChannel())出现异常时出错: RuntimeException: No box object found for ftyp。请帮帮我!