Linux: no proper support for mts, mp4, mov decoding

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

Milan Ihl

  • Posts: 29
  • Joined: Sun Jan 07, 2018 10:37 am
  • Location: Germany

Linux: no proper support for mts, mp4, mov decoding

PostTue Apr 17, 2018 11:45 am

I don't really know where to write this anymore, the Linux Install thread is confusing due it high compression of topics, and i barely find anything using the forum search.

I tried Resolve from AUR (ArchLinux) again now as it finally got Audio support, yes, it starts but no, i can't import video footage:

MTS: is recognized, is listed as offline, log complains about missing codec but where to find the codec?

Code: Select all
[0x7fcabe7fc700] | IO                   | ERROR | 2018-04-17 13:17:59,172 | Failed to decode clip </run/media/milan/LaCie/rec/00104.MTS>, track 0, frame 0: Cannot find the codec for decoding.
[0x7fcabdffb700] | IO                   | ERROR | 2018-04-17 13:17:59,190 | Failed to decode clip </run/media/milan/LaCie/rec/00105.MTS>, track 0, frame 0: Cannot find the codec for decoding.
[0x7fcaed7fa700] | IO                   | ERROR | 2018-04-17 13:17:59,196 | Failed to decode clip </run/media/milan/LaCie/rec/00106.MTS>, track 0, frame 0: Cannot find the codec for decoding.
[0x7fcabf7fe700] | IO                   | ERROR | 2018-04-17 13:17:59,207 | Failed to decode clip </run/media/milan/LaCie/rec/00108.MTS>, track 0, frame 0: Cannot find the codec for decoding.
[0x7fcaecff9700] | IO                   | ERROR | 2018-04-17 13:17:59,212 | Failed to decode clip </run/media/milan/LaCie/rec/00117.MTS>, track 0, frame 0: Cannot find the codec for decoding.
[0x7fcabeffd700] | IO                   | ERROR | 2018-04-17 13:17:59,217 | Failed to decode clip </run/media/milan/LaCie/rec/00118.MTS>, track 0, frame 0: Cannot find the codec for decoding.
[0x7fcabffff700] | IO                   | ERROR | 2018-04-17 13:17:59,222 | Failed to decode clip </run/media/milan/LaCie/rec/00116.MTS>, track 0, frame 0: Cannot find the codec for decoding.
[0x7fcaedffb700] | IO                   | ERROR | 2018-04-17 13:17:59,234 | Failed to decode clip </run/media/milan/LaCie/rec/00107.MTS>, track 0, frame 0: Cannot find the codec for decoding.
[0x7fc97ccff700] | IO                   | ERROR | 2018-04-17 13:29:22,695 | Codec (avc1) not Found in Repository
[0x7fc98866d700] | DtManager            | INFO  | 2018-04-17 13:29:22,719 | Audio WFM Generation thread starts
[0x7fc98866d700] | IO.Audio             | WARN  | 2018-04-17 13:29:22,804 | Failed to read audio while generating WFM
[0x7fc98866d700] | IO.Audio             | WARN  | 2018-04-17 13:29:22,804 | Failed to read audio while generating WFM
[0x7fcb4567da00] | BtCommon             | WARN  | 2018-04-17 13:29:24,293 | Invalid time -360001


MP4: log audio source log, completly useless but afaik the only thing my canon 750d stores

Code: Select all
[0x7fcb4567da00] | BtCommon             | WARN  | 2018-04-17 13:29:24,302 | Invalid time
[0x7fc98866d700] | IO.Audio             | WARN  | 2018-04-17 13:29:24,303 | Failed to read audio while generating WFM
[0x7fc98866d700] | IO.Audio             | WARN  | 2018-04-17 13:29:24,303 | Failed to read audio while generating WFM
[0x7fcb283af700] | IO.Audio             | ERROR | 2018-04-17 13:29:24,367 | Failed to decode clip </run/media/milan/disk/DCIM/100CANON/MVI_0179.MP4>, track: 0, position: 6374000 - Failed to decode the audio samples.
[0x7fcb283af700] | IO.Audio             | ERROR | 2018-04-17 13:29:24,367 | Failed to decode clip </run/media/milan/disk/DCIM/100CANON/MVI_0179.MP4>, track: 0, position: 6374000 - Failed to decode the audio samples.
[0x7fcb283af700] | IO.Audio             | ERROR | 2018-04-17 13:29:24,998 | Failed to decode clip </run/media/milan/disk/DCIM/100CANON/MVI_0179.MP4>, track: 0, position: 6262000 - Failed to decode the audio samples.
[0x7fcb283af700] | IO.Audio             | ERROR | 2018-04-17 13:29:24,998 | Failed to decode clip </run/media/milan/disk/DCIM/100CANON/MVI_0179.MP4>, track: 0, position: 6262000 - Failed to decode the audio samples.
[0x7fcb283af700] | IO.Audio             | ERROR | 2018-04-17 13:29:25,037 | Failed to decode clip </run/media/milan/disk/DCIM/100CANON/MVI_0179.MP4>, track: 0, position: 6152000 - Failed to decode the audio samples.
[0x7fcb283af700] | IO.Audio             | ERROR | 2018-04-17 13:29:25,037 | Failed to decode clip </run/media/milan/disk/DCIM/100CANON/MVI_0179.MP4>, track: 0, position: 6152000 - Failed to decode the audio samples.
[0x7fcb283af700] | IO.Audio             | ERROR | 2018-04-17 13:29:25,070 | Failed to decode clip </run/media/milan/disk/DCIM/100CANON/MVI_0179.MP4>, track: 0, position: 5816000 - Failed to decode the audio samples.
[0x7fcb283af700] | IO.Audio             | ERROR | 2018-04-17 13:29:25,071 | Failed to decode clip </run/media/milan/disk/DCIM/100CANON/MVI_0179.MP4>, track: 0, position: 5816000 - Failed to decode the audio samples.
[0x7fcb283af700] | IO.Audio             | ERROR | 2018-04-17 13:29:25,104 | Failed to decode clip </run/media/milan/disk/DCIM/100CANON/MVI_0179.MP4>, track: 0, position: 5256000 - Failed to decode the audio samples.
[0x7fcb283af700] | IO.Audio             | ERROR | 2018-04-17 13:29:25,104 | Failed to decode clip </run/media/milan/disk/DCIM/100CANON/MVI_0179.MP4>, track: 0, position: 5256000 - Failed to decode the audio samples.
[0x7fcb283af700] | IO.Audio             | ERROR | 2018-04-17 13:29:25,121 | Failed to decode clip </run/media/milan/disk/DCIM/100CANON/MVI_0179.MP4>, track: 0, position: 4920000 - Failed to decode the audio samples.
[0x7fcb283af700] | IO.Audio             | ERROR | 2018-04-17 13:29:25,121 | Failed to decode clip </run/media/milan/disk/DCIM/100CANON/MVI_0179.MP4>, track: 0, position: 4920000 - Failed to decode the audio samples.
[0x7fcb283af700] | IO.Audio             | ERROR | 2018-04-17 13:29:25,137 | Failed to decode clip </run/media/milan/disk/DCIM/100CANON/MVI_0179.MP4>, track: 0, position: 4808000 - Failed to decode the audio samples.
[0x7fcb283af700] | IO.Audio             | ERROR | 2018-04-17 13:29:25,137 | Failed to decode clip </run/media/milan/disk/DCIM/100CANON/MVI_0179.MP4>, track: 0, position: 4808000 - Failed to decode the audio samples.
[0x7fcb283af700] | IO.Audio             | ERROR | 2018-04-17 13:29:25,413 | Failed to decode clip </run/media/milan/disk/DCIM/100CANON/MVI_0179.MP4>, track: 0, position: 4920000 - Failed to decode the audio samples.
[0x7fcb283af700] | IO.Audio             | ERROR | 2018-04-17 13:29:25,413 | Failed to decode clip </run/media/milan/disk/DCIM/100CANON/MVI_0179.MP4>, track: 0, position: 4920000 - Failed to decode the audio samples.
[0x7fcb283af700] | IO.Audio             | ERROR | 2018-04-17 13:29:25,489 | Failed to decode clip </run/media/milan/disk/DCIM/100CANON/MVI_0179.MP4>, track: 0, position: 5032000 - Failed to decode the audio samples.
[0x7fcb283af700] | IO.Audio             | ERROR | 2018-04-17 13:29:25,489 | Failed to decode clip </run/media/milan/disk/DCIM/100CANON/MVI_0179.MP4>, track: 0, position: 5032000 - Failed to decode the audio samples.
[0x7fcb283af700] | IO.Audio             | ERROR | 2018-04-17 13:29:25,504 | Failed to decode clip </run/media/milan/disk/DCIM/100CANON/MVI_0179.MP4>, track: 0, position: 5144000 - Failed to decode the audio samples.
[0x7fcb283af700] | IO.Audio             | ERROR | 2018-04-17 13:29:25,505 | Failed to decode clip </run/media/milan/disk/DCIM/100CANON/MVI_0179.MP4>, track: 0, position: 5144000 - Failed to decode the audio samples.
[0x7fcb283af700] | IO.Audio             | ERROR | 2018-04-17 13:29:25,548 | Failed to decode clip </run/media/milan/disk/DCIM/100CANON/MVI_0179.MP4>, track: 0, position: 5256000 - Failed to decode the audio samples.
[0x7fcb283af700] | IO.Audio             | ERROR | 2018-04-17 13:29:25,548 | Failed to decode clip </run/media/milan/disk/DCIM/100CANON/MVI_0179.MP4>, track: 0, position: 5256000 - Failed to decode the audio samples.
[0x7fcb283af700] | IO.Audio             | ERROR | 2018-04-17 13:29:25,571 | Failed to decode clip </run/media/milan/disk/DCIM/100CANON/MVI_0179.MP4>, track: 0, position: 5368000 - Failed to decode the audio samples.
[0x7fcb283af700] | IO.Audio             | ERROR | 2018-04-17 13:29:25,571 | Failed to decode clip </run/media/milan/disk/DCIM/100CANON/MVI_0179.MP4>, track: 0, position: 5368000 - Failed to decode the audio samples.
[0x7fcb283af700] | IO.Audio             | ERROR | 2018-04-17 13:29:25,605 | Failed to decode clip </run/media/milan/disk/DCIM/100CANON/MVI_0179.MP4>, track: 0, position: 5480000 - Failed to decode the audio samples.
[0x7fcb283af700] | IO.Audio             | ERROR | 2018-04-17 13:29:25,605 | Failed to decode clip </run/media/milan/disk/DCIM/100CANON/MVI_0179.MP4>, track: 0, position: 5480000 - Failed to decode the audio samples.
[0x7fcb283af700] | IO.Audio             | ERROR | 2018-04-17 13:29:25,638 | Failed to decode clip </run/media/milan/disk/DCIM/100CANON/MVI_0179.MP4>, track: 0, position: 5592000 - Failed to decode the audio samples.
[0x7fcb283af700] | IO.Audio             | ERROR | 2018-04-17 13:29:25,638 | Failed to decode clip </run/media/milan/disk/DCIM/100CANON/MVI_0179.MP4>, track: 0, position: 5592000 - Failed to decode the audio samples.
[0x7fcb283af700] | IO.Audio             | ERROR | 2018-04-17 13:29:25,655 | Failed to decode clip </run/media/milan/disk/DCIM/100CANON/MVI_0179.MP4>, track: 0, position: 5928000 - Failed to decode the audio samples.
[0x7fcb283af700] | IO.Audio             | ERROR | 2018-04-17 13:29:25,655 | Failed to decode clip </run/media/milan/disk/DCIM/100CANON/MVI_0179.MP4>, track: 0, position: 5928000 - Failed to decode the audio samples.
[0x7fcb283af700] | IO.Audio             | ERROR | 2018-04-17 13:29:25,688 | Failed to decode clip </run/media/milan/disk/DCIM/100CANON/MVI_0179.MP4>, track: 0, position: 6040000 - Failed to decode the audio samples.
[0x7fcb283af700] | IO.Audio             | ERROR | 2018-04-17 13:29:25,688 | Failed to decode clip </run/media/milan/disk/DCIM/100CANON/MVI_0179.MP4>, track: 0, position: 6040000 - Failed to decode the audio samples.
[0x7fcb283af700] | IO.Audio             | ERROR | 2018-04-17 13:29:25,797 | Failed to decode clip </run/media/milan/disk/DCIM/100CANON/MVI_0179.MP4>, track: 0, position: 6152000 - Failed to decode the audio samples.
[0x7fcb283af700] | IO.Audio             | ERROR | 2018-04-17 13:29:25,797 | Failed to decode clip </run/media/milan/disk/DCIM/100CANON/MVI_0179.MP4>, track: 0, position: 6152000 - Failed to decode the audio samples.
[0x7fcb283af700] | IO.Audio             | ERROR | 2018-04-17 13:29:25,821 | Failed to decode clip </run/media/milan/disk/DCIM/100CANON/MVI_0179.MP4>, track: 0, position: 6040000 - Failed to decode the audio samples.
[0x7fcb283af700] | IO.Audio             | ERROR | 2018-04-17 13:29:25,821 | Failed to decode clip </run/media/milan/disk/DCIM/100CANON/MVI_0179.MP4>, track: 0, position: 6040000 - Failed to decode the audio samples.
[0x7fcb283af700] | IO.Audio             | ERROR | 2018-04-17 13:29:25,873 | Failed to decode clip </run/media/milan/disk/DCIM/100CANON/MVI_0179.MP4>, track: 0, position: 6152000 - Failed to decode the audio samples.
[0x7fcb283af700] | IO.Audio             | ERROR | 2018-04-17 13:29:25,873 | Failed to decode clip </run/media/milan/disk/DCIM/100CANON/MVI_0179.MP4>, track: 0, position: 6152000 - Failed to decode the audio samples.
[0x7fcb283af700] | IO.Audio             | ERROR | 2018-04-17 13:29:25,938 | Failed to decode clip </run/media/milan/disk/DCIM/100CANON/MVI_0179.MP4>, track: 0, position: 6040000 - Failed to decode the audio samples.
[0x7fcb283af700] | IO.Audio             | ERROR | 2018-04-17 13:29:25,938 | Failed to decode clip </run/media/milan/disk/DCIM/100CANON/MVI_0179.MP4>, track: 0, position: 6040000 - Failed to decode the audio samples.
[0x7fcb283af700] | IO.Audio             | ERROR | 2018-04-17 13:29:25,955 | Failed to decode clip </run/media/milan/disk/DCIM/100CANON/MVI_0179.MP4>, track: 0, position: 5928000 - Failed to decode the audio samples.
[0x7fcb283af700] | IO.Audio             | ERROR | 2018-04-17 13:29:25,955 | Failed to decode clip </run/media/milan/disk/DCIM/100CANON/MVI_0179.MP4>, track: 0, position: 5928000 - Failed to decode the audio samples.
[0x7fcb283af700] | IO.Audio             | ERROR | 2018-04-17 13:29:25,971 | Failed to decode clip </run/media/milan/disk/DCIM/100CANON/MVI_0179.MP4>, track: 0, position: 5816000 - Failed to decode the audio samples.
[0x7fcb283af700] | IO.Audio             | ERROR | 2018-04-17 13:29:25,971 | Failed to decode clip </run/media/milan/disk/DCIM/100CANON/MVI_0179.MP4>, track: 0, position: 5816000 - Failed to decode the audio samples.
[0x7fcb4567da00] | BtCommon             | WARN  | 2018-04-17 13:29:29,844 | Invalid time -360001
[0x7fc98866d700] | IO.Audio             | WARN  | 2018-04-17 13:29:29,846 | Failed to read audio while generating WFM
[0x7fc98866d700] | IO.Audio             | WARN  | 2018-04-17 13:29:29,846 | Failed to read audio while generating WFM
[0x7fcb4567da00] | BtCommon             | WARN  | 2018-04-17 13:29:29,850 | Invalid time -360001
[0x7fcb4567da00] | BtCommon             | WARN  | 2018-04-17 13:29:29,852 | Invalid time -360001
[0x7fcb4567da00] | BtCommon             | WARN  | 2018-04-17 13:29:29,853 | Invalid time -360001
[0x7fcb4567da00] | BtCommon             | WARN  | 2018-04-17 13:29:29,854 | Invalid time -360001
[0x7fcb4567da00] | SyManager            | WARN  | 2018-04-17 13:29:30,381 | MsModel | FolderEntry failed with 1:003:/run/media/milan/disk/DCIM/100CANON/MVI_0179.MP4
[0x7fc98866d700] | IO.Audio             | WARN  | 2018-04-17 13:29:30,608 | Failed to read audio while generating WFM
[0x7fc98866d700] | IO.Audio             | WARN  | 2018-04-17 13:29:30,608 | Failed to read audio while generating WFM
[0x7fcb4567da00] | BtCommon             | WARN  | 2018-04-17 13:29:31,603 | Invalid time -360001
[0x7fc98866d700] | IO.Audio             | WARN  | 2018-04-17 13:29:31,605 | Failed to read audio while generating WFM
[0x7fc98866d700] | IO.Audio             | WARN  | 2018-04-17 13:29:31,605 | Failed to read audio while generating WFM
[0x7fcb4567da00] | BtCommon             | WARN  | 2018-04-17 13:29:32,594 | Invalid time -360001
[0x7fc98866d700] | IO.Audio             | WARN  | 2018-04-17 13:29:32,594 | Failed to read audio while generating WFM
[0x7fc98866d700] | IO.Audio             | WARN  | 2018-04-17 13:29:32,594 | Failed to read audio while generating WFM


MOV: works as audio source, not exactly what i installed resolve for though

...please lead me to the missing codecs to install so i can finally use resolve for anything on Linux.
here are dep's that are already installed https://aur.archlinux.org/packages/davinci-resolve-beta

Can't you just use something like Flatpak for universal Linux distro support if maintaining various Distro's is out of scope?
DaVinci Resolve Studio
PC: ArchLinux/Windows10 (main for editing)/macOS HS // 8-Core AMD FX-8350 // RX570 8GB // RAM: 15.57GiB
Laptop: ArchLinux/Windows10 // ThinkPad X250 // Intel i5-5300U // RAM: 7.88GiB
Offline
User avatar

MikeRochefort

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

Re: Linux: no proper support for mts, mp4, mov decoding

PostTue Apr 17, 2018 1:39 pm

Hi Milan,

Usage of MP4’s on Linux is a but of a hassle. You can only decode video tracks, and audio contained in an MP4 is completely unsupported. Please review the supported codecs document and check the media you’re using. You may have to transcode ahead of time with ffmpeg of similar.

http://documents.blackmagicdesign.com/D ... c_List.pdf

As to the other issues, I’m not sure. You’ll need to reach out to other Arch users to figure out how to install those codecs.

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
User avatar

Milan Ihl

  • Posts: 29
  • Joined: Sun Jan 07, 2018 10:37 am
  • Location: Germany

Re: Linux: no proper support for mts, mp4, mov decoding

PostTue Apr 17, 2018 1:45 pm

Hey, MP4 is H.264 and listed as supported, audio is AAC though, but both is not working.

As to the other issues, I’m not sure. You’ll need to reach out to other Arch users to figure out how to install those codecs.


Sure, there are sometimes variants of codecs needed like gstreamer/other gst-* but i don't know what Resolve is looking for in particular so it's hard to search or to consult anybody.

I can playback those files, all of them, with any other application if have installed, i can also edit them in Shotcut which is also built on qt similar to Resolve.
DaVinci Resolve Studio
PC: ArchLinux/Windows10 (main for editing)/macOS HS // 8-Core AMD FX-8350 // RX570 8GB // RAM: 15.57GiB
Laptop: ArchLinux/Windows10 // ThinkPad X250 // Intel i5-5300U // RAM: 7.88GiB
Offline

Sulo Kokki

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

Re: Linux: no proper support for mts, mp4, mov decoding

PostTue Apr 17, 2018 11:13 pm

Milan Ihl wrote:Hey, MP4 is H.264 and listed as supported, audio is AAC though, but both is not working.
You need the Studio version to import h.264.

Suggested a workaround for mp4 import w/ proper audio (wav/aiff) here.
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: no proper support for mts, mp4, mov decoding

PostWed Apr 18, 2018 12:29 am

Sulo Kokki wrote:Suggested a workaround for mp4 import w/ proper audio (wav/aiff) here.


yes -- it's in fact not a big deal, to work around this kind of limitations by simple scripts and batch jobs. but in practice it's still a little bit uncomfortable and annoying.

i know it from myself and the practical experience, that i'm often just starting natron instead of nuke non-commercial, if a have to make simple job, which can be done in quite with both of them, but i would have to convert the footage in advance for use in nuke. sure -- it wouldn't take much efforts, but it's simply an unnecessary additional task, which you pragmatically try to avoid...
Offline
User avatar

Milan Ihl

  • Posts: 29
  • Joined: Sun Jan 07, 2018 10:37 am
  • Location: Germany

Re: Linux: no proper support for mts, mp4, mov decoding

PostWed Apr 18, 2018 5:52 pm

Thanks for your answers, there may be a little misunderstanding, it's not about missing sound, it's about missing anything, also even tho i have an external mic, the camera merges the audio into the clips, so maybe i need to extract and merge for ... dude this are some clips per project to work with!

So if mts (my little rx100) is not possible and i gotta pay hundreds of euros just to get my mp4's to work...is there anything i can do with the free version in the first place like without a bunch of scripting and tons of workarounds?

I found out at least Kdenlive 18.04 supports clipgrouping, so maybe there is still hope for my projects to get a proper workflow done as i just don't yet have the money to pay this much for basic tasks like importing video sources.

...damn i was so happy reading about native audio support.
Attachments
Bildschirmfoto vom 2018-04-18 19-44-35.png
Bildschirmfoto vom 2018-04-18 19-44-35.png (97.95 KiB) Viewed 8831 times
DaVinci Resolve Studio
PC: ArchLinux/Windows10 (main for editing)/macOS HS // 8-Core AMD FX-8350 // RX570 8GB // RAM: 15.57GiB
Laptop: ArchLinux/Windows10 // ThinkPad X250 // Intel i5-5300U // RAM: 7.88GiB
Offline

Martin Schitter

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

Re: Linux: no proper support for mts, mp4, mov decoding

PostWed Apr 18, 2018 6:39 pm

Milan Ihl wrote:it's not about missing sound, it's about missing anything, ... , so maybe i need to extract and merge for ... dude this are some clips per project to work with!


yes -- this kind of artificial limitations, just because of stupid hardly comprehensible licensing issues, are indeed very annoying.

but you are on a linux system!
writing little helper scripts, which will batch convert all of your files automatically, is a common task on this platform. i personally would rather see this kind of excellent development support even on the command shell level as one of the the most important reasons, why i prefer linux to other click-by-click alternatives.
Offline
User avatar

Milan Ihl

  • Posts: 29
  • Joined: Sun Jan 07, 2018 10:37 am
  • Location: Germany

Re: Linux: no proper support for mts, mp4, mov decoding

PostWed Apr 18, 2018 8:06 pm

writing little helper scripts, which will batch convert all of your files automatically, is a common task on this platform.


Well depends... but yes you are right about the possibility that simplifies alot and i am doing similar with mogrify already from time to time.
However, assuming a 10-50G load of sourcefiles or even way more, this workaround will take a bunch of time to finish - even with a powerful processor and ssd given.

Beside that... if fail... :(
Using the command from the linked thread and a simpler method of mine result both back in AAC and change nothing for Resolve.

Most recent:

Code: Select all
for f in *.MP4;do ffmpeg -i "$f" "${f%mp4}.wav";done # the wav file seems fine
ffmpeg -i MVI_0179.MP4 -i MVI_0179.MP4.wav -acodec copy -vcodec copy MVI_0179.MP4_wav.mp4
DaVinci Resolve Studio
PC: ArchLinux/Windows10 (main for editing)/macOS HS // 8-Core AMD FX-8350 // RX570 8GB // RAM: 15.57GiB
Laptop: ArchLinux/Windows10 // ThinkPad X250 // Intel i5-5300U // RAM: 7.88GiB
Offline

Martin Schitter

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

Re: Linux: no proper support for mts, mp4, mov decoding

PostWed Apr 18, 2018 8:41 pm

Milan Ihl wrote:
Code: Select all
for f in *.MP4;do ffmpeg -i "$f" "${f%mp4}.wav";done # the wav file seems fine
ffmpeg -i MVI_0179.MP4 -i MVI_0179.MP4.wav -acodec copy -vcodec copy MVI_0179.MP4_wav.mp4


i would guess, the interim wav file will just contain AAC as well. :)
just do a quick check by ffprobe or mediainfo.
WAVs 'usually' do only hold PCM data, but that's not a strict requirement. they can also act as containers for more uncommon audio codecs...

you therefor should specify the desired PCM format as -c:a option (-acodec and -vcodec are deprecated comandline options) explicitly on exporting, because the .wav target-suffix isn't meaningful enough -- something like: "-c:a pcm_s16le"

btw: you can do the whole conversion in just one ffmpeg command. you don't need temporary files. you only have to specify the -c:a... and -c:v copy -- but using "-c:v dnxhd -profile:v dnxhr_hq" to convert the video track as well and put the result into a .mov container, would probably make more sense, given resolves actual limitations on linux.
Last edited by Martin Schitter on Wed Apr 18, 2018 9:13 pm, edited 1 time in total.
Offline
User avatar

Milan Ihl

  • Posts: 29
  • Joined: Sun Jan 07, 2018 10:37 am
  • Location: Germany

Re: Linux: no proper support for mts, mp4, mov decoding

PostWed Apr 18, 2018 9:11 pm

Ah, thanks for the hint, i noticed that pcm_s16le is not supported in mp4, i think this is why it happened as the content in the wav was correctly, specifying it gave me an error, this is how i found the link.

Of course this mkv files seems not to be supported so i tried mov which also only gets an audio symbol without anything, the only difference is nothing but "FolderEntry failed with 1:004:/tmp/ffmpegstuff/MVI_0179.MP4_wav.mov" in the debuglog.

...also this process gives me a load of 11 with 8 cores at 700+% for almost five minutes with only one testfile, this is not very satisfying , even if it would work out. :/

Code: Select all
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'MVI_0179.MP4_wav.mov':
  Metadata:
    major_brand     : qt 
    minor_version   : 512
    compatible_brands: qt 
    encoder         : Lavf57.83.100
  Duration: 00:04:16.44, start: 0.000000, bitrate: 6299 kb/s
    Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuvj420p(pc), 1920x1080, 4758 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
    Metadata:
      handler_name    : DataHandler
      encoder         : Lavc57.107.100 libx264
    Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, s16, 1536 kb/s (default)
    Metadata:
      handler_name    : DataHandler


Edit: Oh sorry i didn't fully read the last part but it still won't work with mp4.
And i am not sure about how to solve the deprecation error that comes with your recommendation:

Code: Select all
[swscaler @ 0x5558b1a33b80] deprecated pixel format used, make sure you did set range correctly
[mp4 @ 0x5558b116f500] Could not find tag for codec pcm_s16le in stream #1, codec not currently supported in container
Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
Error initializing output stream 0:0 --
DaVinci Resolve Studio
PC: ArchLinux/Windows10 (main for editing)/macOS HS // 8-Core AMD FX-8350 // RX570 8GB // RAM: 15.57GiB
Laptop: ArchLinux/Windows10 // ThinkPad X250 // Intel i5-5300U // RAM: 7.88GiB
Offline

Martin Schitter

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

Re: Linux: no proper support for mts, mp4, mov decoding

PostWed Apr 18, 2018 9:19 pm

Milan Ihl wrote:Ah, thanks for the hint, i noticed that pcm_s16le is not supported in mp4, i think this is why it happened as the content in the wav was correctly, specifying it gave me an error, this is how i found the link.


that's just the behavior of ffmpeg, which tries to follow the official standards as close as possible, but you will find many cameras, wich will put PCM audio tracks into .mp4 containers. and that's in fact accepted by most applications. it also makes some sense, because .mp4 containers became specified on the base of the .mov quicktime format and are otherwise nearly identical.
Offline
User avatar

Milan Ihl

  • Posts: 29
  • Joined: Sun Jan 07, 2018 10:37 am
  • Location: Germany

Re: Linux: no proper support for mts, mp4, mov decoding

PostWed Apr 18, 2018 9:25 pm

Okey but ffmpeg also refuses to do it when i try to enforce it (regarding to the help output, at least -acodec already enforces) so... i ... i don't know what to do.
DaVinci Resolve Studio
PC: ArchLinux/Windows10 (main for editing)/macOS HS // 8-Core AMD FX-8350 // RX570 8GB // RAM: 15.57GiB
Laptop: ArchLinux/Windows10 // ThinkPad X250 // Intel i5-5300U // RAM: 7.88GiB
Offline

Martin Schitter

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

Re: Linux: no proper support for mts, mp4, mov decoding

PostWed Apr 18, 2018 9:26 pm

Milan Ihl wrote:Edit: Oh sorry i didn't fully read the last part but it still won't work with mp4.
And i am not sure about how to solve the deprecation error that comes with your recommendation:

Code: Select all
[swscaler @ 0x5558b1a33b80] deprecated pixel format used, make sure you did set range correctly


that's usually related to full swing / legal range complications... but it looks more like a warning -- just ignore...

Milan Ihl wrote:
Code: Select all
[mp4 @ 0x5558b116f500] Could not find tag for codec pcm_s16le in stream #1, codec not currently supported in container
Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
Error initializing output stream 0:0 --


just use .mov containers resp. file suffix instead, if you want to use uncompressed audio tracks.

i think, you can not enforce ffmpeg, to put them in .mp4.
Offline
User avatar

Milan Ihl

  • Posts: 29
  • Joined: Sun Jan 07, 2018 10:37 am
  • Location: Germany

Re: Linux: no proper support for mts, mp4, mov decoding

PostWed Apr 18, 2018 9:54 pm

As mentioned above, Resolve did not recognize the .mov file propery, it was just the thing with audio thumbnail and no function what so ever - and it had not even a useful DebugLog entry as a result.

Okey so i mov'ed again ... two times, first time i had to realize that my swapfile wasn't mounted, due the video convertation it froze the whole computer and i had to kill it. -.-

With this converted one, Resolve crashes, i get

Code: Select all
[0x7ff3b89ab700] | SyManager            | WARN  | 2018-04-18 23:43:38,452 | SyAudioWave::ParseHeader | Spotted unknown chunk: LIST of size 26 at 36
*** SetFilePath[969]: Unsupported data handler type rlhd and subtype  lru
*** SetFilePath[969]: Unsupported data handler type rlhd and subtype  lru
[0x7ff3b99ad700] | IO                   | ERROR | 2018-04-18 23:43:38,467 | Codec (avc1) not Found in Repository
[0x7ff3b99ad700] | DtManager            | INFO  | 2018-04-18 23:43:38,484 | Audio WFM Generation thread starts
*** SetFilePath[969]: Unsupported data handler type rlhd and subtype  lru
*** SetFilePath[969]: Unsupported data handler type rlhd and subtype  lru
[0x7ff3b99ad700] | IO.Audio             | WARN  | 2018-04-18 23:43:38,497 | Failed to read audio while generating WFM
[0x7ff3b99ad700] | IO.Audio             | WARN  | 2018-04-18 23:43:38,497 | Failed to read audio while generating WFM
[0x7ff3b99ad700] | SyManager            | WARN  | 2018-04-18 23:43:38,497 | SyAudioWave::ParseHeader | Spotted unknown chunk: LIST of size 26 at 36


I attempted to analyze the via coredumpctl gdb <id> but for some reason it is the same as coredumpct info and i didn't find a way to look into the file properly yet. hrm.

But also here, the amount of cpu time and memory to use just to be able to import a file into Resolve is unreal and i think not really practical.

Edit:
Endless lines of: in () at /opt/resolve/bin/../libs/libDNxHR.so
DaVinci Resolve Studio
PC: ArchLinux/Windows10 (main for editing)/macOS HS // 8-Core AMD FX-8350 // RX570 8GB // RAM: 15.57GiB
Laptop: ArchLinux/Windows10 // ThinkPad X250 // Intel i5-5300U // RAM: 7.88GiB
Offline

Martin Schitter

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

Re: Linux: no proper support for mts, mp4, mov decoding

PostWed Apr 18, 2018 11:12 pm

Milan Ihl wrote:As mentioned above, Resolve did not recognize the .mov file propery, it was just the thing with audio thumbnail and no function what so ever - and it had not even a useful DebugLog entry as a result.


i have no problems with .mov files here, as long as the contained codecs are supported by resolve -- audio and visual component works! but dnxhr in .mp4 works as well!

i usually prefer .mov containers to .mp4, because that's the container type where you have less restrictions -- e.g. prores can't be used in mp4 and pcm also audio shouldn't be used in this case.

Milan Ihl wrote:But also here, the amount of cpu time and memory to use just to be able to import a file into Resolve is unreal and i think not really practical.


sure -- unnecessary transcoding is always a waste of computing power end storage space.
but it shouldn't be a nightmare. here on my slow computer at home, i get about 6x realtime compression speed for FHD encoding in prores or dnxhd. and both of them work fine in resolve.

Milan Ihl wrote:Edit: Endless lines of: in () at /opt/resolve/bin/../libs/libDNxHR.so



do you have an AMD CPU? because in this case you could face some well known dnxhd issues and should perhaps use prores instead, but usually both work just the same.
Offline
User avatar

Milan Ihl

  • Posts: 29
  • Joined: Sun Jan 07, 2018 10:37 am
  • Location: Germany

Re: Linux: no proper support for mts, mp4, mov decoding

PostThu Apr 19, 2018 8:50 am

Oh wow thank you, it works! \o/

I don't know if i have enough disk space for all future projects tho rofl
Attachments
Bildschirmfoto vom 2018-04-19 10-48-34.png
Bildschirmfoto vom 2018-04-19 10-48-34.png (11.46 KiB) Viewed 8768 times
DaVinci Resolve Studio
PC: ArchLinux/Windows10 (main for editing)/macOS HS // 8-Core AMD FX-8350 // RX570 8GB // RAM: 15.57GiB
Laptop: ArchLinux/Windows10 // ThinkPad X250 // Intel i5-5300U // RAM: 7.88GiB
Offline
User avatar

Milan Ihl

  • Posts: 29
  • Joined: Sun Jan 07, 2018 10:37 am
  • Location: Germany

Re: Linux: no proper support for mts, mp4, mov decoding

PostThu Apr 19, 2018 3:37 pm

I am sorry but no, if this is the only workaround, i consider it not acceptable.
ffmpeg ran for a couple of hours now, it converted 28 of 35 sourcefiles and my footage folder grew from 12.4GB to 225GB.

Just no.
DaVinci Resolve Studio
PC: ArchLinux/Windows10 (main for editing)/macOS HS // 8-Core AMD FX-8350 // RX570 8GB // RAM: 15.57GiB
Laptop: ArchLinux/Windows10 // ThinkPad X250 // Intel i5-5300U // RAM: 7.88GiB
Offline

Martin Schitter

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

Re: Linux: no proper support for mts, mp4, mov decoding

PostThu Apr 19, 2018 3:44 pm

Milan Ihl wrote:I am sorry but no, if this is the only workaround, i consider it not acceptable.
ffmpeg ran for a couple of hours now, it converted 28 of 35 sourcefiles and my footage folder grew from 12.4GB to 225GB.


would you prefer [as much mac and windows users would likely do], that exactly the same increase of storage space by temporary proxy files will happen somehow invisible in the background, whenever you enable a inconspicuous option in the GUI?
Offline
User avatar

Milan Ihl

  • Posts: 29
  • Joined: Sun Jan 07, 2018 10:37 am
  • Location: Germany

Re: Linux: no proper support for mts, mp4, mov decoding

PostThu Apr 19, 2018 3:54 pm

When i edited some projects on Windows (i tried hackintoshing for resolve but the nvidia webdriver appears to be a bad joke), i never experienced something like this, and if this means i simply be able to work with my files without initial waiting time over a half day, yes, i would definitly prefer this, maybe i just didn't find the option you talk about.

If i had the money, i may would give Resolve Studio a try for better codecsupport but i don't have it, i rather look out for alternatives like the beta version of kdenlive18.04, maybe not as powerful and fast but maybe it's good enough and most importantly, it is able to work with my files without wasting half of a day and a huge ton of diskspace!
Sad that Shotcut still doesn't come with clipgrouping tho.
DaVinci Resolve Studio
PC: ArchLinux/Windows10 (main for editing)/macOS HS // 8-Core AMD FX-8350 // RX570 8GB // RAM: 15.57GiB
Laptop: ArchLinux/Windows10 // ThinkPad X250 // Intel i5-5300U // RAM: 7.88GiB
Offline

Martin Schitter

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

Re: Linux: no proper support for mts, mp4, mov decoding

PostThu Apr 19, 2018 8:01 pm

Milan Ihl wrote:i would definitly prefer this, maybe i just didn't find the option you talk about.


it's this "optimized media and render cache" dialog":

Image

sure -- it will not be of any use in your case, because resolve can't read your files at all, but in other cases, where it could read the data, but would show an unusable bad perfomance on interactive operations, it offers you a kind of background transcoding of the footage, witch does in fact nothing else than your actual commands... and it would also fill your harddisk and take a lot of time resp. computing power... ;)
Offline
User avatar

Milan Ihl

  • Posts: 29
  • Joined: Sun Jan 07, 2018 10:37 am
  • Location: Germany

Re: Linux: no proper support for mts, mp4, mov decoding

PostThu Apr 19, 2018 8:37 pm

I see, thanks for pointing out, i appreciate all your help.

Anyway...what i wanted to use Resolve on Linux with was a little experimental vlog, i didn't film that much in comparison. I think when i'd use this current solution for more, i will quickly reach a point where my computer runs for days, creating terrabytes and i really can't see me doing that to my time and my disk space, it's just not nice.

Actually i am trying making video creation a habit, i try to condition myself to it - this is really not helpful in that regard. :/

Maybe a wonder happens and i can afford the premium version of Resolve one day...or the Blackmagic team makes the crazy decision to let Resolve use actual tools on Linux making exotic (irony) mp4's, mts's and stuff compatible with the Linux builds...or i just try to contition myself to use Windows more...will see.

That like ANY free and opensource cutting tool on Linux can handle like everything and Resolve almost nothing feels just sooo wrong.
DaVinci Resolve Studio
PC: ArchLinux/Windows10 (main for editing)/macOS HS // 8-Core AMD FX-8350 // RX570 8GB // RAM: 15.57GiB
Laptop: ArchLinux/Windows10 // ThinkPad X250 // Intel i5-5300U // RAM: 7.88GiB
Offline

SteveMulcahy

  • Posts: 15
  • Joined: Thu Apr 19, 2018 3:49 pm
  • Real Name: Steve Mulcahy

Re: Linux: no proper support for mts, mp4, mov decoding

PostMon Apr 23, 2018 6:19 pm

I'm in a similar boat. Fortunately I have a spare 1TB drive that I may have to install just for Resolve though if my gopro footage has to go from 4GB to 50GB!
Offline

Sulo Kokki

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

Re: Linux: no proper support for mts, mp4, mov decoding

PostMon Apr 23, 2018 7:27 pm

Prores Proxy or LT might be easier on the hard drive space.

In ffmpeg, they are
Code: Select all
-c:v prores -profile:v 0

and
Code: Select all
-c:v prores -profile:v 1
Linux Mint 19.3 | DaVinci Resolve Studio 17.1 | 2700x 32gb Radeon VII | macOS Mojave
Offline
User avatar

Milan Ihl

  • Posts: 29
  • Joined: Sun Jan 07, 2018 10:37 am
  • Location: Germany

Re: Linux: no proper support for mts, mp4, mov decoding

PostMon Apr 23, 2018 7:48 pm

probably, not sure what proxy does but the other profiles do sound like quality loss, i don't know if i like that... :/

Edit: oh it is more about bitrates, so i gonna have a closer look into the docs..
DaVinci Resolve Studio
PC: ArchLinux/Windows10 (main for editing)/macOS HS // 8-Core AMD FX-8350 // RX570 8GB // RAM: 15.57GiB
Laptop: ArchLinux/Windows10 // ThinkPad X250 // Intel i5-5300U // RAM: 7.88GiB

Return to DaVinci Resolve

Who is online

Users browsing this forum: Bing [Bot], Blomerius, carysh, Gary Hango, panos_mts and 322 guests