livepeer / livepeer/transcode-cli

Error while transcoding: mp4: stream#0

Open
#9 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
9
Forks
1
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue with the provided livepeer-transcode command, input video, and config.json. Start in transcode.go around the segment-copy and error-reporting paths shown in the log, then inspect segmenter.go and livepeer.go as needed. Done means the supplied input either transcodes successfully or produces a clear, actionable error without the reported mp4 stream timing failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.