[Linux] AV Codecs Clarification

Get answers to your questions about color grading, editing and finishing with DaVinci Resolve.
  • Author
  • Message
Offline
User avatar

MikeRochefort

  • Posts: 156
  • Joined: Thu Feb 12, 2015 2:48 am
  • Location: Boston

[Linux] AV Codecs Clarification

PostWed Apr 11, 2018 3:51 am

Hello,

I just wanted to get some clarification on codec usage based on the supported codecs docs. For video clips, we can decode (playback) anything using H.264, but can only encode (write) H.264 material if it is using the QuickTime .mov format. And this functionality is only available in the Studio version? Just want to make sure I’ve got this right. Everything else I believe is self explanatory for video codecs.

In regards to audio we need to be a bit more selective, and the offered codecs are preferable anyways, but again .mp4 is tripping me up. If I decide an H.264 clip that contains audio, will I not be able to play it back? If so, I’ll have to pre-transcode anything I ingest in the .mp4 format to something supported.

Again, this is purely for the Linux variant of DaVinci. I’m looking to implement it into my workflow and coming from comp/3D where image sequences reign king, this is still a bit foreign to me. I know I should be going with intermediate codecs anyways, but I just want to get some extra info.

Cheers,
Mike
https://michaelrochefort.com/
3D Lookdev, Compositing, and Sysadmin
Fusion Studio 9.0.2
Fusion 16 Studio
RHEL 7.6 | Intel i7-6850K | 32GB memory | 3x GTX 1070 | 418.56
Offline

John Morris

  • Posts: 200
  • Joined: Mon Jul 31, 2017 12:44 am
  • Location: Melbourne

Re: [Linux] AV Codecs Clarification

PostWed Apr 11, 2018 4:08 am

Some of the limitations seem odd, especially since patents have expired for H.264 and MP3 codecs. Also, why no VP9?
Hopefully those remaining Linux platform support deficiencies will be eliminated in time, so codec support between the platforms can be harmonized.

Should add, I haven't tried 15 myself yet. Also, lets hope the new scripting API will can be applied to import and export (or at least for transcoding in Media Management)
NVIDIA GTX1070 8GB
NVIDIA driver version 430.50
DeckLink Mini Monitor 4K
32G system memory
Resolve Studio 16.1.1.005 1 GPU
Linux Mint 19.2
Offline

Sulo Kokki

  • Posts: 234
  • Joined: Thu Sep 28, 2017 11:39 pm

Re: [Linux] AV Codecs Clarification

PostTue Apr 17, 2018 10:38 pm

MikeRochefort wrote:For video clips, we can decode (playback) anything using H.264, but can only encode (write) H.264 material if it is using the QuickTime .mov format. And this functionality is only available in the Studio version?
Last I checked,

h.264 import on Studio,
no h.264 export on the Linux Resolve.

BMD should just add both to Linux Lite, because this gets asked a lot. ;)

MikeRochefort wrote:I decide an H.264 clip that contains audio, will I not be able to play it back?
Depends.

Of which I know of, you need wav or aiff on it. Mp3 is unsupported. Unless you have access to the masters (as it would make little sense to encode something into h.264 for Resove import), you do need to transcode your audio beforehand.

You can use ffmpeg to create a stream copy from the h.264 video track and a .wav or .aiff of the audio track. How was it again...

Code: Select all
ffmpeg -i video.mp4 -i audio.wav -c:v copy -c:a copy -map 0:v:0 -map 1:a:0 video_h264_audio_wav.mp4

This gives you a wholly importable h.264 clip, with sync sound.

John Morris wrote:lets hope the new scripting API will can be applied to import and export (or at least for transcoding in Media Management)
Let's.
Linux Mint 19.3 | DaVinci Resolve Studio 17.1 | 2700x 32gb Radeon VII | macOS Mojave
Offline

Martin Schitter

  • Posts: 899
  • Joined: Tue Apr 28, 2015 10:41 pm

Re: [Linux] AV Codecs Clarification

PostWed Apr 18, 2018 12:19 am

Sulo Kokki wrote:BMD should just add both to Linux Lite, because this gets asked a lot. ;)


i think, they should just handle it like on all other platforms and support the available options of the given system.
that's why you get ProRes on macs but not on windows.

in case of linux they should simple enable all the capabilities, which you will find on the system wide installed ffmpeg libraries, because that's the actual mechnaism, which handles this kind of tasks in most other linux applications too -- just like similar system libraries on mac os and windows.
Offline

Sulo Kokki

  • Posts: 234
  • Joined: Thu Sep 28, 2017 11:39 pm

Re: [Linux] AV Codecs Clarification

PostWed Apr 18, 2018 12:44 am

Whatever is the best way to get the job done, simple as that. :)

ffmpeg would be a completely doable and viable solution. It would, basically, deliver BMD from any and all import/export requests on Linux. Just turn it on.

Alas, before BMD takes note, we need to work around it.
Linux Mint 19.3 | DaVinci Resolve Studio 17.1 | 2700x 32gb Radeon VII | macOS Mojave
Offline

Martin Schitter

  • Posts: 899
  • Joined: Tue Apr 28, 2015 10:41 pm

Re: [Linux] AV Codecs Clarification

PostWed Apr 18, 2018 1:05 am

Sulo Kokki wrote:ffmpeg would be a completely doable and viable solution. It would, basically, deliver BMD from any and all import/export requests on Linux. Just turn it on.


it could be even realized like in mistika, where you have to willingly install it as a kind of add-on via a special dialog in the application preferences, to prevent [GNU] licensing issues...

Image

Return to DaVinci Resolve

Who is online

Users browsing this forum: MatroxMan, panos_mts, roger.magnusson, Stephen Swaney, thebluehydrangea77, TheoTheBro, Victor van Dijk, VMFXBV and 276 guests