Opened 3 years ago

Closed 2 years ago

#64022 closed defect (fixed)

ffmpeg @4.4.x videotoolbox invalid DTS

Reported by: Alexivia (Alexandre Vieira) Owned by: mascguy (Christopher Nielsen)
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: Cc: Alexivia (Alexandre Vieira), evanmiller (Evan Miller), Gcenx, ballapete (Peter "Pete" Dyballa)
Port: ffmpeg

Description

When attempting to use either h264_videotoolbox or hevc_videotoolbox on an M1 Pro MacBook with Monterey, ffmpeg 4.4.x fails with a message "DTS is invalid". If using the software counterparts (libxxxx) the encoding works.

This is inline with https://githubmemory.com/repo/tanersener/ffmpeg-kit/issues/178.

By manually installing an older version of the ffmpeg port, like in commit f7789e13, encoding works fine.

Change History (9)

comment:1 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: macos removed
Milestone: MacPorts Future
Summary: ffmpeg 4.4.x videotoolbox invalid DTSffmpeg @4.4.x videotoolbox invalid DTS

A better URL for that is its original source:

https://github.com/tanersener/ffmpeg-kit/issues/178

comment:2 Changed 3 years ago by ligaard (Kasper Ligaard)

comment:3 Changed 3 years ago by mascguy (Christopher Nielsen)

Owner: set to mascguy
Status: newassigned

comment:4 Changed 3 years ago by Christopher Nielsen <mascguy@…>

In eab8fc421e1db4093d2a31cd96bfe5379944ec40/macports-ports (master):

ffmpeg-devel: fix videotoolbox encoding error: invalid DTS
Upstream issue: https://trac.ffmpeg.org/ticket/9439
See: #64022

comment:5 Changed 3 years ago by mascguy (Christopher Nielsen)

Sorry for the delay, didn't notice this ticket when it was first opened.

Patch added to ffmpeg-devel. Once we've confirmed that all is well across-the-board, I'll apply it to ffmpeg as well.

comment:6 Changed 3 years ago by mascguy (Christopher Nielsen)

Cc: evanmiller Gcenx ballapete added

Evan/Dean/Peter, while I wouldn't expect this patch to cause any issues for PPC - at least in principle - it would be great to verify that, prior to adding this to ffmpeg.

Are any of you folks presently utilizing ffmpeg-devel on your PPC systems? If not, is there any interest in testing this latest change?

comment:7 Changed 3 years ago by evanmiller (Evan Miller)

My PPC machine is currently blocked on #64212

comment:8 Changed 3 years ago by Gcenx

I can’t really say as I don’t own a PPC Mac only Intel/Apple Silicon systems.

comment:9 Changed 2 years ago by Christopher Nielsen <mascguy@…>

Resolution: fixed
Status: assignedclosed

In 4e121c20f6671f4a9fae2b886bd34cab7bbd2728/macports-ports (master):

ffmpeg: fix videotoolbox encoding error: invalid DTS
Upstream issue: https://trac.ffmpeg.org/ticket/9439
Fixes: #64022

Note: See TracTickets for help on using tickets.