Trouble converting from DNxHD36 to h.264
Having trouble converting from DNxHD36 to h.264/mp4 and h.264/mov Code used
ffmpeg input.mov -strict -2 -b:v 8000K -vf format=yuv420p -c:a aac output.mp4
Picture comes out green or purple with horizontal lines I'm on an older version MacOS (no choice. Specs below). I'm running same version MacOS on a different machine across town, where FFmpeg works just fine, so I'm curious what might be the cause of the problem. Perhaps not installed correctly? Including a screen grab here, but not sure if it will post... System specs: MacOS Mojave 10.14.6 (18G103) ffmpeg version 4.4.git Copyright (c) 2000-2022 the FFmpeg developers built with Apple LLVM version 10.0.1 (clang-1001.0.46.4) configuration: --disable-x86asm libavutil 57. 27.100 / 57. 27.100 libavcodec 59. 33.100 / 59. 33.100 libavformat 59. 25.100 / 59. 25.100 libavdevice 59. 6.100 / 59. 6.100 libavfilter 8. 41.100 / 8. 41.100 libswscale 6. 6.100 / 6. 6.100 libswresample 4. 6.100 / 4. 6.100 Hyper fast Audio and Video encoder usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...
On 7/18/2022 7:13 PM, Media Mouth wrote:
I'm running same version MacOS on a different machine across town, where FFmpeg works just fine, so I'm curious what might be the cause of the problem. Quite likely then a different version of ffmpeg. Please post the complete and unedited command output in an email message (not a screen grab).
(often that type of error is a colorspace mismatch) z!
On Jul 18, 2022, at 7:20 PM, Carl Zwanzig <cpz@tuunq.com> wrote:
On 7/18/2022 7:13 PM, Media Mouth wrote:
I'm running same version MacOS on a different machine across town, where FFmpeg works just fine, so I'm curious what might be the cause of the problem. Quite likely then a different version of ffmpeg. Please post the complete and unedited command output in an email message (not a screen grab).
(often that type of error is a colorspace mismatch)
z!
RE "different version of ffmpeg" Yes, probably. stdout: ffmpeg -i 'input.mov' -strict -2 -b:v 8000K -vf format=yuv420p -c:a aac 'output.mov' ffmpeg version 4.4.git Copyright (c) 2000-2022 the FFmpeg developers built with Apple LLVM version 10.0.1 (clang-1001.0.46.4) configuration: --disable-x86asm libavutil 57. 27.100 / 57. 27.100 libavcodec 59. 33.100 / 59. 33.100 libavformat 59. 25.100 / 59. 25.100 libavdevice 59. 6.100 / 59. 6.100 libavfilter 8. 41.100 / 8. 41.100 libswscale 6. 6.100 / 6. 6.100 libswresample 4. 6.100 / 4. 6.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'input.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt creation_time : 2022-07-18T20:05:46.000000Z timecode : 00:59:56:00 Duration: 00:01:49.19, start: 0.000000, bitrate: 36279 kb/s Stream #0:0[0x1](eng): Video: dnxhd (DNXHD) (AVdn / 0x6E645641), yuv422p(tv, bt709/unknown/unknown), 1920x1080, 36175 kb/s, SAR 1:1 DAR 16:9, 24 fps, 24 tbr, 23976 tbn (default) Metadata: creation_time : 2022-07-18T20:05:46.000000Z handler_name : Apple Video Media Handler vendor_id : AVID encoder : DNxHD 709 Stream #0:1[0x2](eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 89 kb/s (default) Metadata: creation_time : 2022-07-18T20:05:46.000000Z handler_name : Apple Sound Media Handler vendor_id : [0][0][0][0] Stream #0:2[0x3](eng): Data: none (tmcd / 0x64636D74) (default) Metadata: creation_time : 2022-07-18T20:08:11.000000Z handler_name : Time Code Media Handler timecode : 00:59:56:00 Stream mapping: Stream #0:0 -> #0:0 (dnxhd (native) -> mpeg4 (native)) Stream #0:1 -> #0:1 (aac (native) -> aac (native)) Press [q] to stop, [?] for help Output #0, mov, to 'output.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt timecode : 00:59:56:00 encoder : Lavf59.25.100 Stream #0:0(eng): Video: mpeg4 (mp4v / 0x7634706D), yuv420p(tv, bt709/unknown/unknown, progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 8000 kb/s, 24 fps, 12288 tbn (default) Metadata: creation_time : 2022-07-18T20:05:46.000000Z handler_name : Apple Video Media Handler vendor_id : AVID encoder : Lavc59.33.100 mpeg4 Side data: cpb: bitrate max/min/avg: 0/0/8000000 buffer size: 0 vbv_delay: N/A Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default) Metadata: creation_time : 2022-07-18T20:05:46.000000Z handler_name : Apple Sound Media Handler vendor_id : [0][0][0][0] encoder : Lavc59.33.100 aac
On Jul 18, 2022, at 7:20 PM, Carl Zwanzig <cpz@tuunq.com> wrote:
Quite likely then a different version of ffmpeg. Please post the complete and unedited command output in an email message (not a screen grab).
(often that type of error is a colorspace mismatch)
z!
On Jul 18, 2022, at 7:37 PM, Media Mouth <communque@gmail.com> wrote:
ffmpeg -i 'input.mov' -strict -2 -b:v 8000K -vf format=yuv420p -c:a aac 'output.mov' ffmpeg version 4.4.git Copyright (c) 2000-2022 the FFmpeg developers built with Apple LLVM version 10.0.1 (clang-1001.0.46.4) configuration: --disable-x86asm
I think I figured it out. The culprit seems to have been "configuration: --disable-x86asm" During the first attempted installs a notice came up showing there was some kind problem with "yasm" and to go with "-disable-x86asm" to get around it. My impression is -disable-x86asm means you end up without the necessary libraries or something. Solution: Install yasm, re-install ffmpeg. So far that seems to have solved the problem. DNxHD36 now transcodes to h.264 just fine. Thanks ffmpeg!
participants (2)
-
Carl Zwanzig -
Media Mouth