Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

MP4 Containers created by MP4Box fail to parse having 'meta' atom set

未关闭
#414 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
28/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
rust

调研方向

使用 ffmpeg 转换步骤重现 issue 中的 MP4Box 命令,然后对生成的文件调用 mp4parse::read_mp4。比较包含和不包含 meta atom 时的解析结果,并跟踪 CheckParserStateErr 在何处返回。完成标准是报告的 MP4 能够成功解析,或明确报告不支持的结构;相关的 GPAC issue 可能提供背景信息。

由索引模型根据 Issue 内容生成。

描述

Hello there,

I have issues when I'm trying to convert Original Sony ILCE-7M4 movies to HEVC with a lower bitrate, and adding a META box / atom via MP4Box.
I do the following steps:

First I CONVert the ORIGinal File
ffmpeg -i "${ORIGFILE}" -preset faster -c:v libx265 -crf 17 -c:a aac_at -b:a 192k -movflags use_metadata_tags+faststart -map_metadata 0 -tag:v hvc1 "${CONVFILE}"

Then I add a meta box to a new PROCessed file (previously I added XML data to the meta, but this does not make any difference)
MP4Box -add "${CONVFILE}#1" -add "${CONVFILE}#2" -set-meta meta:tk=1 -new "${PROCFILE}"

When I then try to parse the file via mp4parse::read_mp4(&mut file).unwrap() I get thread 'main' panicked at 'called Result::unwrap()on anErr value: InvalidData(CheckParserStateErr)'

Can you please have a look at this? In the gpac area I already tried to investigate what happens, but I have to confess that I'm not an expert obviously ;). -> https://github.com/gpac/gpac/issues/2603

Thank you very much,
Joachim

主要语言
Rust
星标
448
派生
73
平均合并
6 天 4 小时
30 天内合并 PR
1

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

mozilla/mp4parse-rust 的其他 Issue

查看 mozilla/mp4parse-rust 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。