Skip to content

Commit

Permalink
COMP: Portrait device playlists only support the yuv420p colormap (#60)
Browse files Browse the repository at this point in the history
* COMP: Portrait device playlists only support yuv420p colormaps

It isn't well described on their website, but Portrait devices
require you to use yuv420p colormap if you want to sync an mp4
with the device for stand-alone playback.   This isn't a requirement
if you only want to playback on connected devices.
  • Loading branch information
aylward authored Oct 24, 2022
1 parent 88a24da commit 78cc2ce
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Examples/Python/cinematic_rendering/head_and_neck_animation.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@
it may need to be converted. Here's an example of a conversion
using ffmpeg:
ffmpeg -i input_file.ogv -c:v libx265 -crf 10 output_file.mp4
ffmpeg -i input_file.ogv -c:v libx265 -pix_fmt yuv420p -crf 10 output_file.mp4
Where `libx265` specifies to use the h.265 video codec, and `crf`
Where `libx265` specifies to use the h.265 video codec, `crf`
specifies the video quality (where 0 is lossless and 51 is the lowest
quality).
quality), and 'pix_fmt' is required if you want to include the
mp4 in a playlist that is sync'd with a portrait device.
Example output of this script that was generated for a 16" device and
converted to MP4 may be found here:
Expand Down Expand Up @@ -66,9 +67,7 @@
# renWin.SetSize(800, 800)
renWin = vtkRenderingLookingGlass.vtkLookingGlassInterface.CreateLookingGlassRenderWindow()

if renWin.GetDeviceType() == "standard":
# This looks better on large settings
renWin.SetDeviceType("large")
renWin.SetDeviceType("portrait")

renWin.AddRenderer(ren)

Expand Down

0 comments on commit 78cc2ce

Please sign in to comment.