Skip to content

Commit

Permalink
AV1 issue when transcoding without sepcifing a resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaserlang committed Dec 30, 2024
1 parent cdb017e commit 3eb3454
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion seplis_play_server/transcoders/video.py
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,14 @@ def get_video_filter(self, width: int):
else:
format_ = 'format=nv12'

width_filter = f'w={width}:h=-2' if width != self.video_stream['width'] else ''
width_filter = (
f'w={width}:h=-2'
if (width != self.video_stream['width'])
or (
self.video_input_codec == 'av1'
) # [av1 @ 0x64e783171840] HW accel start frame fail. - Add the width.
else ''
)
if width_filter and format_:
format_ = ':' + format_

Expand Down

0 comments on commit 3eb3454

Please sign in to comment.