Skip to content

Commit 056555c

Browse files
fix: hardware transcoding 10-bit error and EPG navigation bug (Issues #61, #63)
1 parent 059cfec commit 056555c

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ coverage/
88
.DS_Store
99
dist/
1010
release/
11-
11+
.vscode
1212
transcode-cache/

public/js/components/EpgGuide.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -920,8 +920,8 @@ class EpgGuide {
920920
);
921921
if (channel) {
922922
await window.app.channelList.selectChannel({ channelId: channel.id });
923-
// Switch to home page
924-
document.querySelector('[data-page="home"]').click();
923+
// Switch to live TV page
924+
document.querySelector('[data-page="live"]').click();
925925
}
926926
}
927927
}

server/services/transcodeSession.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,8 @@ class TranscodeSession extends EventEmitter {
433433
'-preset', 'p4', // Balanced preset (p1=fastest, p7=best)
434434
'-rc', 'constqp', // Constant QP mode
435435
'-qp', String(qp),
436-
'-bf', '3' // B-frames for better compression
436+
'-bf', '3', // B-frames for better compression
437+
'-pix_fmt', 'yuv420p' // Force 8-bit output for compatibility
437438
);
438439
}
439440

@@ -450,7 +451,8 @@ class TranscodeSession extends EventEmitter {
450451
'-rc', 'cqp', // Constant QP
451452
'-qp_i', String(qp),
452453
'-qp_p', String(qp + 2),
453-
'-qp_b', String(qp + 4)
454+
'-qp_b', String(qp + 4),
455+
'-pix_fmt', 'yuv420p' // Force 8-bit output for compatibility
454456
);
455457
}
456458

@@ -470,7 +472,8 @@ class TranscodeSession extends EventEmitter {
470472
'-c:v', 'h264_vaapi',
471473
'-profile:v', 'main', // Use main profile for compatibility
472474
'-global_quality', String(qp),
473-
'-bf', '3'
475+
'-bf', '3',
476+
'-pix_fmt', 'yuv420p' // Force 8-bit output for compatibility
474477
);
475478
}
476479

@@ -486,7 +489,8 @@ class TranscodeSession extends EventEmitter {
486489
'-preset', 'medium',
487490
'-global_quality', String(qp),
488491
'-look_ahead', '1',
489-
'-look_ahead_depth', '40'
492+
'-look_ahead_depth', '40',
493+
'-pix_fmt', 'yuv420p' // Force 8-bit output for compatibility
490494
);
491495
}
492496

0 commit comments

Comments
 (0)