Page 1 of 1

Generate video for playback on Hyperdesk Studio 12G

PostPosted: Tue Oct 03, 2017 3:10 pm
by Yoann Baveye
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

Re: Generate video for playback on Hyperdesk Studio 12G

PostPosted: Tue Oct 03, 2017 5:36 pm
by Gary Adams
Hello Yoann. The Hyperdecks are only 422. They will not play back 444 video.

Regards, Gary

Re: Generate video for playback on Hyperdesk Studio 12G

PostPosted: Wed Oct 04, 2017 7:31 am
by Yoann Baveye
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.

Re: Generate video for playback on Hyperdesk Studio 12G

PostPosted: Mon Oct 09, 2017 11:06 pm
by Andrew Kolakowski
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.

Re: Generate video for playback on Hyperdesk Studio 12G

PostPosted: Mon Oct 23, 2017 1:43 pm
by Yoann Baveye
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.

Re: Generate video for playback on Hyperdesk Studio 12G

PostPosted: Tue Oct 24, 2017 9:44 am
by Andrew Kolakowski
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?

Re: Generate video for playback on Hyperdesk Studio 12G

PostPosted: Wed Oct 25, 2017 10:22 am
by Yoann Baveye
-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).

Re: Generate video for playback on Hyperdesk Studio 12G

PostPosted: Wed Oct 25, 2017 10:07 pm
by Andrew Kolakowski
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.

Re: Generate video for playback on Hyperdesk Studio 12G

PostPosted: Thu Oct 26, 2017 1:27 pm
by Yoann Baveye
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!

Re: Generate video for playback on Hyperdesk Studio 12G

PostPosted: Thu Oct 26, 2017 1:50 pm
by Andrew Kolakowski
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.

Re: Generate video for playback on Hyperdesk Studio 12G

PostPosted: Thu Oct 26, 2017 2:08 pm
by Yoann Baveye
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.

Re: Generate video for playback on Hyperdesk Studio 12G

PostPosted: Thu Oct 26, 2017 4:09 pm
by Andrew Kolakowski
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.

Re: Generate video for playback on Hyperdesk Studio 12G

PostPosted: Wed Jan 31, 2018 1:26 pm
by Yoann Baveye
Finally managed to generate a HD video file by adding -timecode 00:00:00:00 in the command line.
Still not working for a UHD video but the problem may be different since I can't even record in uncompressed UHD on y Hyperdesk 12G... will try to figure out why...

Re: Generate video for playback on Hyperdesk Studio 12G

PostPosted: Wed Jan 31, 2018 6:51 pm
by Andrew Kolakowski
Is uncompressed UHD supported? This requires way more speed than single SDD (specially for 50/60p), so probably this is locked.

Re: Generate video for playback on Hyperdesk Studio 12G

PostPosted: Wed Jan 31, 2018 7:27 pm
by Xtreemtec
You might want to look at this:
Frequently Asked Questions - Recording> Point 3.01
I collected a few usefull topics about how to generate media files for playback. Still want to create a ftp or dropbox folder with all settings in it... :)

Re: Generate video for playback on Hyperdesk Studio 12G

PostPosted: Tue Feb 06, 2018 2:13 pm
by Yoann Baveye
Andrew Kolakowski wrote:Is uncompressed UHD supported? This requires way more speed than single SDD (specially for 50/60p), so probably this is locked.

In the specs for the 12G it is clearly written that it is supported:

HDMI Video Inputs
HDMI 2.0 type A connector with support for Ultra HD 4K 10-bit 60p 4:2:2.

HDMI Video Outputs
HDMI 2.0 type A connector with support for Ultra HD 4K 10-bit 60p 4:2:2.

Re: Generate video for playback on Hyperdesk Studio 12G

PostPosted: Tue Feb 06, 2018 3:46 pm
by Andrew Kolakowski
This is irrelevant to what you can write to single SSD which is about 500MB/sec.
It just lists that full HDMI 2.0 is supported.

4K 60p 4:2:2 10bit is about 1.3GBytes/sec, so not sure who are you planing to write it into drive which can do 500MB/sec. You would need 3x SSDs in RAID0 to record it.

Re: Generate video for playback on Hyperdesk Studio 12G

PostPosted: Tue Feb 06, 2018 7:14 pm
by Jack Fairley
Andrew Kolakowski wrote:This is irrelevant to what you can write to single SSD which is about 500MB/sec.
It just lists that full HDMI 2.0 is supported.

4K 60p 4:2:2 10bit is about 1.3GBytes/sec, so not sure who are you planing to write it into drive which can do 500MB/sec. You would need 3x SSDs in RAID0 to record it.

It's faster than the interface too, so simply impossible for these devices.