here is ffprobe's output on a file: Input #0, matroska,webm, from…
- User
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
here is ffprobe's output on a file:
Input #0, matroska,webm, from '.\Angst.1983.GERMAN.1080p.BluRay.DDP5.1.x265.10bit-GalaxyRG265.mkv': Metadata: title : GalaxyRG265 - Angst.1983.GERMAN.1080p.BluRay.DDP5.1.x265.10bit-GalaxyRG265 COMMENT : GalaxyRG265 - Angst.1983.GERMAN.1080p.BluRay.DDP5.1.x265.10bit-GalaxyRG265 ENCODER : Lavf60.5.100 Duration: 01:26:45.67, start: -0.005000, bitrate: 4608 kb/s Chapters: Chapter #0:0: start 0.000000, end 462.170000 Metadata: title : 00:00:00.000 Chapter #0:1: start 462.170000, end 1059.433000 Metadata: title : 00:07:42.170 Chapter #0:2: start 1059.433000, end 1315.064000 Metadata: title : 00:17:39.433 Chapter #0:3: start 1315.064000, end 1804.803000 Metadata: title : 00:21:55.064 Chapter #0:4: start 1804.803000, end 2118.533000 Metadata: title : 00:30:04.803 Chapter #0:5: start 2118.533000, end 2415.163000 Metadata: title : 00:35:18.533 Chapter #0:6: start 2415.163000, end 3155.527000 Metadata: title : 00:40:15.163 Chapter #0:7: start 3155.527000, end 3755.335000 Metadata: title : 00:52:35.527 Chapter #0:8: start 3755.335000, end 4498.577000 Metadata: title : 01:02:35.335 Chapter #0:9: start 4498.577000, end 4770.099000 Metadata: title : 01:14:58.577 Chapter #0:10: start 4770.099000, end 5205.667000 Metadata: title : 01:19:30.099 Stream #0:0(eng): Video: hevc (Main 10), yuv420p10le(tv, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn (default) Metadata: title : GalaxyRG265 - Angst.1983.GERMAN.1080p.BluRay.DDP5.1.x265.10bit-GalaxyRG265 BPS : 9312723 BPS-eng : 9312723 DURATION-eng : 01:26:45.667000000 NUMBER_OF_FRAMES: 124811 NUMBER_OF_FRAMES-eng: 124811 NUMBER_OF_BYTES : 6059867174 NUMBER_OF_BYTES-eng: 6059867174 _STATISTICS_WRITING_APP: mkvmerge v8.3.0 ('Over the Horizon') 64bit _STATISTICS_WRITING_APP-eng: mkvmerge v8.3.0 ('Over the Horizon') 64bit _STATISTICS_WRITING_DATE_UTC: 2015-10-14 19:37:36 _STATISTICS_WRITING_DATE_UTC-eng: 2015-10-14 19:37:36 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES ENCODER : Lavc60.14.101 libx265 DURATION : 01:26:45.667000000 Stream #0:1(ger): Audio: eac3, 48000 Hz, 5.1(side), fltp, 384 kb/s (default) Metadata: title : GalaxyRG265 - Angst.1983.GERMAN.1080p.BluRay.DDP5.1.x265.10bit-GalaxyRG265 BPS : 1509000 BPS-eng : 1509000 DURATION-eng : 01:26:45.664000000 NUMBER_OF_FRAMES: 488031 NUMBER_OF_FRAMES-eng: 488031 NUMBER_OF_BYTES : 981918372 NUMBER_OF_BYTES-eng: 981918372 _STATISTICS_WRITING_APP: mkvmerge v8.3.0 ('Over the Horizon') 64bit _STATISTICS_WRITING_APP-eng: mkvmerge v8.3.0 ('Over the Horizon') 64bit _STATISTICS_WRITING_DATE_UTC: 2015-10-14 19:37:36 _STATISTICS_WRITING_DATE_UTC-eng: 2015-10-14 19:37:36 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES ENCODER : Lavc60.14.101 eac3 DURATION : 01:26:45.663000000 Stream #0:2(eng): Subtitle: subrip (srt) (default) Metadata: title : GalaxyRG256 - Angst.1983.GERMAN.1080p.BluRay.DDP5.1.x265.10bit-GalaxyRG265 BPS : 23 BPS-eng : 23 DURATION-eng : 01:23:43.227000000 NUMBER_OF_FRAMES: 417 NUMBER_OF_FRAMES-eng: 417 NUMBER_OF_BYTES : 14992 NUMBER_OF_BYTES-eng: 14992 _STATISTICS_WRITING_APP: mkvmerge v8.3.0 ('Over the Horizon') 64bit _STATISTICS_WRITING_APP-eng: mkvmerge v8.3.0 ('Over the Horizon') 64bit _STATISTICS_WRITING_DATE_UTC: 2015-10-14 19:37:36 _STATISTICS_WRITING_DATE_UTC-eng: 2015-10-14 19:37:36 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES DURATION : 01:25:14.902000000
I want to edit it in davinci resolve, but when imported it doesn't seem to recognise the audio track. please write an ffmpeg command to transfer this file into a format that resolve will be able to fully handle, with as little damage as possible
To ensure DaVinci Resolve can properly handle the file, we'll need to convert it to a format that Resolve prefers, such as ProRes for video and PCM for audio. Here's an FFmpeg command that will:
ffmpeg -i "Angst.1983.GERMAN.1080p.BluRay.DDP5.1.x265.10bit-GalaxyRG265.mkv" \
-c:v prores_ks -profile:v 3 -pix_fmt yuv422p10le -vendor apl0 -bits_per_mb 8000 \
-c:a pcm_s24le -ar 48000 \
-c:s mov_text \
"Angst_1983_Resolve_Ready.mov"
Video:
-c:v prores_ks: Uses the ProRes encoder (Kostya's version)-profile:v 3: Sets ProRes 422 HQ profile (high quality)-pix_fmt yuv422p10le: Maintains 10-bit color depth-vendor apl0: Ensures compatibility with Apple's ProRes-bits_per_mb 8000: Sets a high bitrate for quality preservationAudio:
-c:a pcm_s24le: Converts to 24-bit PCM audio (uncompressed)-ar 48000: Maintains the original sample rateSubtitles:
-c:s mov_text: Converts subtitles to MOV text format (if you need them)Output:
.mov file which is well-supported in DaVinci ResolveIf the ProRes file is too large, you could use DNxHR instead:
ffmpeg -i "Angst.1983.GERMAN.1080p.BluRay.DDP5.1.x265.10bit-GalaxyRG265.mkv" \
-c:v dnxhd -profile:v dnxhr_hqx -pix_fmt yuv422p10le \
-c:a pcm_s24le -ar 48000 \
"Angst_1983_Resolve_Ready.mov"
This should give you a file that DaVinci Resolve can handle properly while maintaining as much quality as possible from your original file.
I should be clearer here; when I say "as little damage as possible" I don't mean "completely avoid damage at all costs including time and hard drive space". mild re-encoding to keep the audio reasonably sized is fine. I just don't want you to gratuitously reencode the video if it's possible to just repack the container without modifying the bytes
Understood! Since you want to avoid unnecessary video re-encoding while ensuring the audio is properly recognized by DaVinci Resolve, we can remux (repackage) the video stream as-is and transcode only the audio to a more compatible format (like AAC or PCM) without touching the video.
ffmpeg -i "Angst.1983.GERMAN.1080p.BluRay.DDP5.1.x265.10bit-GalaxyRG265.mkv" \
-map 0 -c:v copy -c:a aac -b:a 384k -ac 6 \
-c:s mov_text -metadata:s:s:0 language=eng \
"Angst_1983_Resolve_Friendly.mp4"
-c:v copy → Copies the video stream without re-encoding (lossless).-c:a aac -b:a 384k -ac 6 → Converts audio to AAC at 384 kbps (same as original) with 5.1 channels.-c:s mov_text → Converts subtitles to MOV text format (if needed).-metadata:s:s:0 language=eng → Ensures subtitles are marked as English (adjust if needed)..mp4 → Better compatibility with Resolve than MKV.If Resolve still has issues with MP4, try MOV instead:
ffmpeg -i "Angst.1983.GERMAN.1080p.BluRay.DDP5.1.x265.10bit-GalaxyRG265.mkv" \
-map 0 -c:v copy -c:a pcm_s16le -ar 48000 \
-c:s mov_text -metadata:s:s:0 language=eng \
"Angst_1983_Resolve_Friendly.mov"
-c:a pcm_s16le → Uncompressed PCM audio (better compatibility but larger file size).This should give you the best balance between compatibility and quality.