Linux workflow for Android recorded videos

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

stevezemlicka

  • Posts: 2
  • Joined: Sat Jun 01, 2024 12:30 pm
  • Real Name: Steve Zemlicka

Linux workflow for Android recorded videos

PostSat Jun 01, 2024 2:19 pm

I just recently purchased DaVinci Resolve Studio for the H264/H265 support on linux. Unfortunately videos recorded from android are my main source and use the aac codec for audio which isn't supported. While this isn't ideal, at least transcoding the audio is far less time/resource consuming than transcoding the video so I am going to try and work with it.

I imagine there are several options but one quick option would seem to be:
Code: Select all
ffmpeg -i input.mp4 -vcodec copy -acodec ac3 output.mp4

This performs exactly the same as importing the original file (with aac audio) in that it imports an audio track but the audio track has no sound.

Another option which seemed promising was
Code: Select all
ffmpeg -i input.mp4 -vcodec copy -acodec flac output.mp4

This is a bit weird in that VLC plays the file with audio but just black video. However Resolve lets me import the video and seems to have video info/preview in the media view but Resolve crashes when adding to the timeline.

Another option was:
Code: Select all
ffmpeg -i input.mp4 -vcodec copy -acodec mp3 output.mp4

Similar to the flac, this plays in VLC with audio and a black video. But when imported into Resolve, it can be added to the timeline. The video seems to function but, like the file with ac3 audio, the audio track that imports has no sound.

I have had some partial success just by exporting the audio to a .mp3 file and adding that as a 2nd audio track. This works when exporting using the H264 Master preset but when using the Youtube preset, there is no sound. In addition, I'd prefer not to have to deal with separate audio and video files.

Can I get some guidance on how I might transcode the audio part of the file without re-encoding the video while maintaining a single file where the audio works in Resolve?
Offline

Christoph Schmid

  • Posts: 895
  • Joined: Thu Sep 26, 2019 10:15 am
  • Real Name: Christoph Schmid

Re: Linux workflow for Android recorded videos

PostMon Jun 03, 2024 12:14 pm

You could try wrapping it in a mov container and changing the audio to pcm:
Code: Select all
ffmpeg -i input.mp4 -c:v copy -c:a pcm_s24le -ar 48000 -ac 2 output.mov

Davinci Resolve Studio 20.0 Build 49
Windows 10 Pro 22H2
Davinci Resolve Studio 19.1.4 Build 11
Linux Ubuntu Studio 24.04 (Rocky 8.6 Container)
Offline

Jef Damen

  • Posts: 40
  • Joined: Sat Dec 29, 2018 1:55 pm
  • Location: Belgium
  • Real Name: Jef Damen

Re: Linux workflow for Android recorded videos

PostMon Jun 03, 2024 2:42 pm

-Intel(R)Core(TM)i7-8750H CPU@2.20GHz/System memory:16GB/NVIDIA GeForce GTX1600 6GB/Samsung SSD970EvoM.2 1TB(PCIe3.0 x4 NVMe)+Samsung SSD850Evo500GB/Ubuntu22.04LTS
-LG Gram16Intel Corei7-1165G7/16GB/Intel Iris Xe Graphics/500GB SSD/Windows 10/Studio18.5.1
Offline

stevezemlicka

  • Posts: 2
  • Joined: Sat Jun 01, 2024 12:30 pm
  • Real Name: Steve Zemlicka

Re: Linux workflow for Android recorded videos

PostMon Jun 03, 2024 5:51 pm

csx333 wrote:You could try wrapping it in a mov container and changing the audio to pcm:
Code: Select all
ffmpeg -i input.mp4 -c:v copy -c:a pcm_s24le -ar 48000 -ac 2 output.mov


This seems to work, thanks for the reference and help!

Unfortunately now it's locking up when switching to the deliver tab. I don't know what happened since I haven't run any updates or made any changes since I got it working over the weekend. Time to troubleshoot new issue. Thanks again for the help.

Return to DaVinci Resolve

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], Pecusx and 250 guests