livepeer / livepeer/transcode-cli

Error while transcoding: mp4: stream#0

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

还没有人认领这个 Issue。

主要语言
Go
星标
9
派生
1
PR 合并指标
30 天内没有已合并 PR

描述

Command:
./livepeer-transcode transcode --api-key "$API_KEY" "assets/sintel-1024-surround.mp4" output.mp4 --profiles config.json

Log:

I0326 11:15:32.865486   48776 transcode.go:382] api key="ab1858f9-0e5f-xxxx-xxxx-xxxxxxxxxxxxxx" transcode from "assets/sintel-1024-surround.mp4" to "output.mp4"
I0326 11:15:32.865925   48776 transcode.go:165] Chosen API server: https://livepeer.com
I0326 11:15:32.866040   48776 livepeer.go:418] Creating Livepeer stream 'tod_2022-03-26T11:15:32-03:00' with presets '[]' and profiles [{Name:240p0 Width:426 Height:240 Bitrate:250000 Fps:30000 FpsDen:1001 Gop:2.0 Profile:H264Baseline} {Name:360p0 Width:640 Height:360 Bitrate:800000 Fps:60000 FpsDen:1001 Gop:2.0 Profile:H264Main} {Name:480p0 Width:854 Height:480 Bitrate:1600000 Fps:24000 FpsDen:1001 Gop:2.0 Profile:H264High} {Name:720p0 Width:1280 Height:720 Bitrate:3000000 Fps:0 FpsDen:0 Gop:2.0 Profile:H264ConstrainedHigh}]
I0326 11:15:32.866389   48776 livepeer.go:437] Sending: {"name":"tod_2022-03-26T11:15:32-03:00","profiles":[{"name":"240p0","width":426,"height":240,"bitrate":250000,"fps":30000,"fpsDen":1001,"gop":"2.0","profile":"H264Baseline"},{"name":"360p0","width":640,"height":360,"bitrate":800000,"fps":60000,"fpsDen":1001,"gop":"2.0","profile":"H264Main"},{"name":"480p0","width":854,"height":480,"bitrate":1600000,"fps":24000,"fpsDen":1001,"gop":"2.0","profile":"H264High"},{"name":"720p0","width":1280,"height":720,"bitrate":3000000,"fps":0,"gop":"2.0","profile":"H264ConstrainedHigh"}]}
I0326 11:15:34.266047   48776 livepeer.go:459] {"lastSeen":0,"isActive":false,"record":false,"suspended":false,"sourceSegments":0,"transcodedSegments":0,"sourceSegmentsDuration":0,"transcodedSegmentsDuration":0,"sourceBytes":0,"transcodedBytes":0,"profiles":[{"name":"240p0","width":426,"height":240,"bitrate":250000,"fps":30000,"fpsDen":1001,"gop":"2.0","profile":"H264Baseline"},{"name":"360p0","width":640,"height":360,"bitrate":800000,"fps":60000,"fpsDen":1001,"gop":"2.0","profile":"H264Main"},{"name":"480p0","width":854,"height":480,"bitrate":1600000,"fps":24000,"fpsDen":1001,"gop":"2.0","profile":"H264High"},{"name":"720p0","width":1280,"height":720,"bitrate":3000000,"fps":0,"gop":"2.0","profile":"H264ConstrainedHigh"}],"name":"tod_2022-03-26T11:15:32-03:00","kind":"stream","userId":"3d7a1abf-afcb-433a-81ec-2f7927b77edb","renditions":{},"id":"15401875-43ab-42c0-9dc8-ce65922ce7b1","createdAt":1648304134413,"streamKey":"1540-ijxp-zvix-mdib","playbackId":"1540le0iea9ckgdo","createdByTokenName":"sea","createdByTokenId":"ab1858f9-0e5f-4c6a-87c4-6e66bec09079","multistream":{"targets":[]}}
I0326 11:15:34.266641   48776 livepeer.go:468] Stream tod_2022-03-26T11:15:32-03:00 created with id 15401875-43ab-42c0-9dc8-ce65922ce7b1
I0326 11:15:34.266709   48776 transcode.go:181] Created stream id=15401875-43ab-42c0-9dc8-ce65922ce7b1 name=tod_2022-03-26T11:15:32-03:00
I0326 11:15:34.266742   48776 segmenter.go:33] Starting segmenting file assets/sintel-1024-surround.mp4
I0326 11:15:34.325500   48776 transcode.go:232] Got segment seqNo=0 pts=0s dur=23.916666666s data len bytes=3113092
I0326 11:15:35.185723   48776 livepeer.go:271] [{"address":"https://lax.livepeer.com"},{"address":"https://nyc.livepeer.com"}]
I0326 11:15:52.327317   48776 transcode.go:239] Transcoded 4 took 18.001721471s
W0326 11:15:52.379888   48776 transcode.go:271] Copy packets media 2 err=mp4: stream#0 time=125.133333ms < lasttime=125.133333ms
E0326 11:15:52.684438   48776 transcode.go:427] Error while transcoding: mp4: stream#0 time=125.133333ms < lasttime=125.133333ms

config.json: https://github.com/livepeer/transcode-cli/blob/main/config.json

video: http://www.peach.themazzone.com/durian/movies/sintel-1024-surround.mp4

Using: livepeer-transcode-linux-amd64 binary
OS: Ubuntu 20.04.3 LTS

贡献指南

这个仓库没有索引到贡献指南

从这里开始

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

调研方向

使用提供的 livepeer-transcode 命令、输入视频和 config.json 重现该问题。从 transcode.go 中日志所示的片段复制和错误报告路径附近开始,然后根据需要检查 segmenter.go 和 livepeer.go。当提供的输入能够成功转码,或在不出现报告的 mp4 流时序失败的情况下产生清晰且可操作的错误时,即表示完成。

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

评估

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

把新 issue 发到你的邮箱

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