Generate video for playback on Hyperdesk Studio 12G

Do you have questions about Desktop Video, Converters, Routers and Monitoring?
  • Author
  • Message
Offline

Yoann Baveye

  • Posts: 6
  • Joined: Tue Oct 03, 2017 2:39 pm

Generate video for playback on Hyperdesk Studio 12G

PostTue Oct 03, 2017 3:10 pm

Hello,

I am trying to generate uncompressed videos using ffmpeg for playback on my Hyperdesk Studio 12G.
Here is the command line I am using, which converts an yuv420p input to the desired uncompressed yuv 4:2:2 10 bits (codec: v210 yuv422p10le):

ffmpeg -s 1920x1080 -i input_video.yuv -r 23.976 -pix_fmt yuv422p10le -c:v v210 output_video.mov

While the generated video plays fine on my computer, once played on the Hyperdesk Studio, the colors are not preserved and each pixel is either pink or green. The result is very similar to this picture:

Image

Am I missing something during the encoding step?

Thank you,
Yoann
Last edited by Yoann Baveye on Tue Oct 03, 2017 7:47 pm, edited 1 time in total.
Offline

Gary Adams

Blackmagic Design

  • Posts: 458
  • Joined: Sat Aug 25, 2012 6:14 am

Re: Generate video for playback on Hyperdesk Studio 12G

PostTue Oct 03, 2017 5:36 pm

Hello Yoann. The Hyperdecks are only 422. They will not play back 444 video.

Regards, Gary
Gary Adams
Blackmagic Design
Offline

Yoann Baveye

  • Posts: 6
  • Joined: Tue Oct 03, 2017 2:39 pm

Re: Generate video for playback on Hyperdesk Studio 12G

PostWed Oct 04, 2017 7:31 am

Gary Adams wrote:Hello Yoann. The Hyperdecks are only 422. They will not play back 444 video.
Regards, Gary


Hello Gary,
Yes it was a typo in my first post I edited. I am generating uncompressed yuv 422 videos and I am using the same encoder (v210) and same pixel format (yuv422p10le) as those used by the hyperdeck studio to record uncompressed files.
Offline

Andrew Kolakowski

  • Posts: 2765
  • Joined: Tue Sep 11, 2012 10:20 am

Re: Generate video for playback on Hyperdesk Studio 12G

PostMon Oct 09, 2017 11:06 pm

Don't use -r 23.976, but 24000/1001. v210 should work fine. You can also try ProRes. I found that Hyperdeck is more picky about audio. Even if you don't have one make sure there is at least 2 channels 24bit silence in the file.
Offline

Yoann Baveye

  • Posts: 6
  • Joined: Tue Oct 03, 2017 2:39 pm

Re: Generate video for playback on Hyperdesk Studio 12G

PostMon Oct 23, 2017 1:43 pm

Thank you for your answer. I added a silent audio track but the problem is similar using:

ffmpeg -f lavfi -i anullsrc=channel_layout=stereo:sample_rate=48000 -s 1920x1080 -i input.yuv -r 24000/1001 -pix_fmt yuv422p10le -shortest -c:v v210 -c:a pcm_s24le output.mov

Still no clue how to encode a lossless video for playback.
Offline

Andrew Kolakowski

  • Posts: 2765
  • Joined: Tue Sep 11, 2012 10:20 am

Re: Generate video for playback on Hyperdesk Studio 12G

PostTue Oct 24, 2017 9:44 am

Make sure you are on fairly latest ffmpeg e.g. 3.x version.
-f lavfi remove this.
Try -c:a pcm_s24be, not sure if BM uses little or big endian.
shortest is not 100% precise, so remove it an make sure source has video and audio with the same length (e.g. use in/out points when exporting from FCP).
You can also try adding this: -chunk_duration 500K
Not sure about audio- it may have to be 2x mono tracks, not 1x stereo. Check how Hyperdeck records it.
You can also use ffmbc if above fails.
Is your SSD decent?
Offline

Yoann Baveye

  • Posts: 6
  • Joined: Tue Oct 03, 2017 2:39 pm

Re: Generate video for playback on Hyperdesk Studio 12G

PostWed Oct 25, 2017 10:22 am

-f lavfi is needed to add the null audio source.
Also tried big endian with similar result, still using little endian since it is the one used when hyperdesk is recording, but Hyperdeck records a 16 channels audio track (?!).
-chunk_duration 500K did not change the playback.

Thank you for pointing ffmbc, I will compile it to give it a try.

The SSD should not be an issue (SanDisk Extreme PRO recommended by Blackmagic).
Offline

Andrew Kolakowski

  • Posts: 2765
  • Joined: Tue Sep 11, 2012 10:20 am

Re: Generate video for playback on Hyperdesk Studio 12G

PostWed Oct 25, 2017 10:07 pm

When I tried playing footage with Hyperdeck some time ago issue was audio not video.
Try 16 channels 1 track or 16x separate mono tracks.
Offline

Yoann Baveye

  • Posts: 6
  • Joined: Tue Oct 03, 2017 2:39 pm

Re: Generate video for playback on Hyperdesk Studio 12G

PostThu Oct 26, 2017 1:27 pm

Andrew Kolakowski wrote:When I tried playing footage with Hyperdeck some time ago issue was audio not video.
Try 16 channels 1 track or 16x separate mono tracks.


Thank you, you were completely right. I tried to generate a 16 channels blank audio track with ffmpeg but the result was similar :

ffmpeg -f lavfi -i anullsrc=channel_layout=hexadecagonal:sample_rate=48000 -s 1920x1080 -i input.yuv -r 24 -pix_fmt yuv422p10le -shortest -c:v v210 -c:a pcm_s24le output.mov

ffmpeg -i output-audio.wav -s 1920x1080 -i input.yuv -r 24 -pix_fmt yuv422p10le -shortest -c:v v210 -c:a copy ouput.mov

So I extracted the audio track from a video recorded by the player, merged it with the video and now finally it looks fine!
I will now try to generate this 16 channels using ffmpeg. Thank you again!
Offline

Andrew Kolakowski

  • Posts: 2765
  • Joined: Tue Sep 11, 2012 10:20 am

Re: Generate video for playback on Hyperdesk Studio 12G

PostThu Oct 26, 2017 1:50 pm

It suggest that Hyperdeck has some very restricted/fixed MOV reading engine. It expects audio "chunks" to be precise (size?) and if it's not then whole reading goes out of sequence, so you end up with garbage.
Don't try to sassing channel order- make them plain 16 channels track.
Offline

Yoann Baveye

  • Posts: 6
  • Joined: Tue Oct 03, 2017 2:39 pm

Re: Generate video for playback on Hyperdesk Studio 12G

PostThu Oct 26, 2017 2:08 pm

Yes you are probably right: the only difference between both audio tracks (generated by ffmpeg or recorded by blackmagix) is the size of the muxing overhead which is slightly bigger for the blackmagic audiotrack and I'm not sure that ffmpeg can reproduce this information. I will thus stick with the method copying the audio track... a shame that there is no information at all provided by blackmagic about the audio configuration.
Offline

Andrew Kolakowski

  • Posts: 2765
  • Joined: Tue Sep 11, 2012 10:20 am

Re: Generate video for playback on Hyperdesk Studio 12G

PostThu Oct 26, 2017 4:09 pm

You should be able to produce such a file. I did have files encoded with ffmpeg working in Hyperdeck, but older Hyperdeck version.
Try ffmbc.

Return to Post Production

Who is online

Users browsing this forum: Yahoo [Bot] and 9 guests