livepeer / livepeer/transcode-cli
Error while transcoding: mp4: stream#0
オープン
まだ誰も着手していません。
- 主要言語
- 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
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
提供された livepeer-transcode コマンド、入力動画、config.json を使って問題を再現します。まず、ログに示されているセグメントコピーとエラー報告の経路付近にある transcode.go から始め、必要に応じて segmenter.go と livepeer.go を調べます。提供された入力が正常にトランスコードされるか、報告されている mp4 ストリームのタイミング失敗なしに、明確で対処可能なエラーを生成すれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- go
- 領域
- cli
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100