From 622db308713f0b57211569082f27879d708ebb74 Mon Sep 17 00:00:00 2001 From: Dan MacDonald Date: Sat, 27 Oct 2018 20:51:13 +0000 Subject: [PATCH 1/2] Update example mpv command to include --drm-mode=21; Add new section with a couple of useful mpv commands --- recipes/video-playback.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/recipes/video-playback.md b/recipes/video-playback.md index eca3618..6b5d129 100644 --- a/recipes/video-playback.md +++ b/recipes/video-playback.md @@ -70,7 +70,7 @@ mpv: ### Run ```bash -mpv --vo=gpu --gpu-context=drm --hwdec=rkmpp video.mkv +mpv --vo=gpu --gpu-context=drm --hwdec=rkmpp --drm-mode=21 video.mkv ``` It will start fullscreen video playback. You should see something like this: @@ -90,6 +90,22 @@ VO: [gpu] 1280x640 drm_prime[nv12] ... ``` +### Useful mpv options + +If you get large horizontal black bars during video playback ('letterboxing'), you may be able to achieve full screen playback by adjusting the aspect ratio. + +Tap 'A' during playback of a video to cycle through aspect modes or use a switch to make it permanent by adding something like: + + --video-aspect=1.3333 + +To the example mpv command above. + +mpv defaults to rotating videos that have been shot in potrait mode. To get it to ignore videos rotation metadata and always play videos in landscape mode add: + + --video-rotate=no + +To the example mpv command. + ### Alternative way It is possible to have GLES2 and MPV working without reinstalling the package over and over. From d2f9a9de35c4fb0064562eaea95977e8cb231651 Mon Sep 17 00:00:00 2001 From: Dan MacDonald Date: Sat, 27 Oct 2018 21:05:24 +0000 Subject: [PATCH 2/2] Add Quirks section to video playback notes --- recipes/video-playback.md | 42 +++++++++++++++++++++++---------------- 1 file changed, 25 insertions(+), 17 deletions(-) diff --git a/recipes/video-playback.md b/recipes/video-playback.md index 6b5d129..52d1ff2 100644 --- a/recipes/video-playback.md +++ b/recipes/video-playback.md @@ -70,7 +70,7 @@ mpv: ### Run ```bash -mpv --vo=gpu --gpu-context=drm --hwdec=rkmpp --drm-mode=21 video.mkv +mpv --vo=gpu --gpu-context=drm --hwdec=rkmpp video.mkv ``` It will start fullscreen video playback. You should see something like this: @@ -90,22 +90,6 @@ VO: [gpu] 1280x640 drm_prime[nv12] ... ``` -### Useful mpv options - -If you get large horizontal black bars during video playback ('letterboxing'), you may be able to achieve full screen playback by adjusting the aspect ratio. - -Tap 'A' during playback of a video to cycle through aspect modes or use a switch to make it permanent by adding something like: - - --video-aspect=1.3333 - -To the example mpv command above. - -mpv defaults to rotating videos that have been shot in potrait mode. To get it to ignore videos rotation metadata and always play videos in landscape mode add: - - --video-rotate=no - -To the example mpv command. - ### Alternative way It is possible to have GLES2 and MPV working without reinstalling the package over and over. @@ -126,6 +110,30 @@ And then using `LD_PRELOAD_PATH` to instruct `mpv` to use different library: LD_PRELOAD_PATH=/usr/lib/aarch64-linux-gnu/gbm mpv --vo=gpu --gpu-context=drm --hwdec=rkmpp video.mkv ``` +### Quirks + +If you experience distorted or very jerky video playback, try adding the follwing switch: + + --drm-mode=21 + +or + + --drm-mode=17 + +If you get large horizontal black bars during video playback ('letterboxing'), you may be able to achieve full screen playback by adjusting the aspect ratio. + +Tap 'A' during playback of a video to cycle through aspect modes or use a switch to make it permanent by adding something like: + + --video-aspect=1.3333 + +To the example mpv command above. + +mpv defaults to rotating videos that have been shot in potrait mode. To get it to ignore videos rotation metadata and always play videos in landscape mode add: + + --video-rotate=no + +To the example mpv command. + ## Thanks You should thank [LongChair](https://github.com/LongChair) and [Kwiboo](https://github.com/Kwiboo/) for making this work!