[FFmpeg-user] FFMPEG Python Fails on Windows
Douglas Rhiner
douglasrhiner at gmail.com
Thu Feb 24 23:45:36 EET 2022
I have a simple Python script that converts to DASH format.
It runs perfectly on my MacMini but fails on our Processing PC.
I have several other Python scripts that leverage FFMPEG and they all run
fine.
Anyone have any ideas as to what is going on?
This is the command being called on the PC. The only difference between PC
and Mac is the input location string.
*ffmpeg -i X:/DASH/VIDEO_7984.h265.mp4 -y -preset veryslow -keyint_min 100
-g 100 -sc_threshold 0 -r 25 -c:v libx264 -pix_fmt yuv420p -c:a aac -b:a
128k -ac 1 -ar 44100 -map v:0 -s:0 1920x960 -b:v:0 2M -maxrate:0 2.14M
-bufsize:0 3.5M -map v:0 -s:1 1440x720 -b:v:1 145k -maxrate:1 155k
-bufsize:1 220k -map v:0 -s:2 2880x1440 -b:v:2 365k -maxrate:2 390k
-bufsize:2 640k -map v:0 -s:3 3320x1660 -b:v:3 730k -maxrate:3 781k
-bufsize:3 1278k -map v:0 -s:4 3320x1660 -b:v:4 1.1M -maxrate:4 1.17M
-bufsize:4 2M -map v:0 -s:5 3840x1920 -b:v:5 3M -maxrate:5 3.21M -bufsize:5
5.5M -map v:0 -s:6 3840x1920 -b:v:6 4.5M -maxrate:6 4.8M -bufsize:6 8M -map
v:0 -s:7 4096x2048 -b:v:7 6M -maxrate:7 6.42M -bufsize:7 11M -map v:0 -s:8
4096x2048 -b:v:8 7.8M -maxrate:8 8.3M -bufsize:8 14M -map 0:a
-init_seg_name init\$RepresentationID\$.\$ext\$ -media_seg_name
chunk\$RepresentationID\$-\$Number%05d\$.\$ext\$ -use_template 1
-use_timeline 1 -f dash Dash/dash.mpd*
This is the console output all the way to the failure.
*ffmpeg version 4.2.3 Copyright (c) 2000-2020 the FFmpeg developers*
* built with gcc 9.3.1 (GCC) 20200523*
* configuration: --enable-gpl --enable-version3 --enable-sdl2
--enable-fontconfig --enable-gnutls --enable-iconv --enable-libass
--enable-libdav1d --enable-libbluray --enable-libfreetype
--enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy
--enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx
--enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265
--enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp
--enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc
--enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom
--enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid
--enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2
--enable-avisynth --enable-libopenmpt*
* libavutil 56. 31.100 / 56. 31.100*
* libavcodec 58. 54.100 / 58. 54.100*
* libavformat 58. 29.100 / 58. 29.100*
* libavdevice 58. 8.100 / 58. 8.100*
* libavfilter 7. 57.100 / 7. 57.100*
* libswscale 5. 5.100 / 5. 5.100*
* libswresample 3. 5.100 / 3. 5.100*
* libpostproc 55. 5.100 / 55. 5.100*
*Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'X:/DASH/VIDEO_7984.h265.mp4':*
* Metadata:*
* major_brand : mp42*
* minor_version : 0*
* compatible_brands: mp42mp41*
* creation_time : 2022-02-23T19:29:37.000000Z*
* Duration: 00:00:19.01, start: 0.000000, bitrate: 60188 kb/s*
* Stream #0:0(eng): Video: hevc (Main) (hvc1 / 0x31637668), yuv420p(tv,
bt709), 5120x2560 [SAR 1:1 DAR 2:1], 60038 kb/s, 29.97 fps, 29.97 tbr, 30k
tbn, 29.97 tbc (default)*
* Metadata:*
* creation_time : 2022-02-23T19:29:37.000000Z*
* handler_name : ?Mainconcept Video Media Handler*
* encoder : HEVC Coding*
* Side data:*
* stereo3d: 2D*
* spherical: equirectangular (0.000000/0.000000/0.000000) *
* Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz,
stereo, fltp, 317 kb/s (default)*
* Metadata:*
* creation_time : 2022-02-23T19:29:37.000000Z*
* handler_name : #Mainconcept MP4 Sound Media Handler*
*Stream mapping:*
* Stream #0:0 -> #0:0 (hevc (native) -> h264 (libx264))*
* Stream #0:0 -> #0:1 (hevc (native) -> h264 (libx264))*
* Stream #0:0 -> #0:2 (hevc (native) -> h264 (libx264))*
* Stream #0:0 -> #0:3 (hevc (native) -> h264 (libx264))*
* Stream #0:0 -> #0:4 (hevc (native) -> h264 (libx264))*
* Stream #0:0 -> #0:5 (hevc (native) -> h264 (libx264))*
* Stream #0:0 -> #0:6 (hevc (native) -> h264 (libx264))*
* Stream #0:0 -> #0:7 (hevc (native) -> h264 (libx264))*
* Stream #0:0 -> #0:8 (hevc (native) -> h264 (libx264))*
* Stream #0:1 -> #0:9 (aac (native) -> aac (native))*
*Press [q] to stop, [?] for help*
*[libx264 @ 000002dcc5727940] using SAR=1/1*
*[libx264 @ 000002dcc5727940] using cpu capabilities: MMX2 SSE2Fast SSSE3
SSE4.2 AVX FMA3 BMI2 AVX2*
*[libx264 @ 000002dcc5727940] profile High, level 5.1, 4:2:0, 8-bit*
*[libx264 @ 000002dcc5727940] 264 - core 160 - H.264/MPEG-4 AVC codec -
Copyleft 2003-2020 - http://www.videolan.org/x264.html
<http://www.videolan.org/x264.html> - options: cabac=1 ref=16 deblock=1:0:0
analyse=0x3:0x133 me=umh subme=10 psy=1 psy_rd=1.00:0.00 mixed_ref=1
me_range=24 chroma_me=1 trellis=2 8x8dct=1 cqm=0 deadzone=21,11
fast_pskip=1 chroma_qp_offset=-2 threads=30 lookahead_threads=5
sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0
constrained_intra=0 bframes=8 b_pyramid=2 b_adapt=2 b_bias=0 direct=3
weightb=1 open_gop=0 weightp=2 keyint=100 keyint_min=51 scenecut=0
intra_refresh=0 rc_lookahead=60 rc=abr mbtree=1 bitrate=2000 ratetol=1.0
qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=2140 vbv_bufsize=3500
nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00*
*[libx264 @ 000002dcc533ff80] using SAR=1/1*
*[libx264 @ 000002dcc533ff80] using cpu capabilities: MMX2 SSE2Fast SSSE3
SSE4.2 AVX FMA3 BMI2 AVX2*
*[libx264 @ 000002dcc533ff80] profile High, level 5.0, 4:2:0, 8-bit*
*[libx264 @ 000002dcc533ff80] 264 - core 160 - H.264/MPEG-4 AVC codec -
Copyleft 2003-2020 - http://www.videolan.org/x264.html
<http://www.videolan.org/x264.html> - options: cabac=1 ref=16 deblock=1:0:0
analyse=0x3:0x133 me=umh subme=10 psy=1 psy_rd=1.00:0.00 mixed_ref=1
me_range=24 chroma_me=1 trellis=2 8x8dct=1 cqm=0 deadzone=21,11
fast_pskip=1 chroma_qp_offset=-2 threads=22 lookahead_threads=3
sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0
constrained_intra=0 bframes=8 b_pyramid=2 b_adapt=2 b_bias=0 direct=3
weightb=1 open_gop=0 weightp=2 keyint=100 keyint_min=51 scenecut=0
intra_refresh=0 rc_lookahead=60 rc=abr mbtree=1 bitrate=145 ratetol=1.0
qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=155 vbv_bufsize=220
nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00*
*[libx264 @ 000002dcc5341700] using SAR=1/1*
*[libx264 @ 000002dcc5341700] using cpu capabilities: MMX2 SSE2Fast SSSE3
SSE4.2 AVX FMA3 BMI2 AVX2*
*[libx264 @ 000002dcc5341700] profile High, level 6.0, 4:2:0, 8-bit*
*[libx264 @ 000002dcc5341700] 264 - core 160 - H.264/MPEG-4 AVC codec -
Copyleft 2003-2020 - http://www.videolan.org/x264.html
<http://www.videolan.org/x264.html> - options: cabac=1 ref=16 deblock=1:0:0
analyse=0x3:0x133 me=umh subme=10 psy=1 psy_rd=1.00:0.00 mixed_ref=1
me_range=24 chroma_me=1 trellis=2 8x8dct=1 cqm=0 deadzone=21,11
fast_pskip=1 chroma_qp_offset=-2 threads=45 lookahead_threads=7
sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0
constrained_intra=0 bframes=8 b_pyramid=2 b_adapt=2 b_bias=0 direct=3
weightb=1 open_gop=0 weightp=2 keyint=100 keyint_min=51 scenecut=0
intra_refresh=0 rc_lookahead=60 rc=abr mbtree=1 bitrate=365 ratetol=1.0
qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=390 vbv_bufsize=640
nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00*
*[libx264 @ 000002dcc4b84f80] using SAR=1/1*
*[libx264 @ 000002dcc4b84f80] using cpu capabilities: MMX2 SSE2Fast SSSE3
SSE4.2 AVX FMA3 BMI2 AVX2*
*[libx264 @ 000002dcc4b84f80] profile High, level 6.0, 4:2:0, 8-bit*
*[libx264 @ 000002dcc4b84f80] 264 - core 160 - H.264/MPEG-4 AVC codec -
Copyleft 2003-2020 - http://www.videolan.org/x264.html
<http://www.videolan.org/x264.html> - options: cabac=1 ref=16 deblock=1:0:0
analyse=0x3:0x133 me=umh subme=10 psy=1 psy_rd=1.00:0.00 mixed_ref=1
me_range=24 chroma_me=1 trellis=2 8x8dct=1 cqm=0 deadzone=21,11
fast_pskip=1 chroma_qp_offset=-2 threads=52 lookahead_threads=8
sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0
constrained_intra=0 bframes=8 b_pyramid=2 b_adapt=2 b_bias=0 direct=3
weightb=1 open_gop=0 weightp=2 keyint=100 keyint_min=51 scenecut=0
intra_refresh=0 rc_lookahead=60 rc=abr mbtree=1 bitrate=730 ratetol=1.0
qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=781 vbv_bufsize=1278
nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00*
*[libx264 @ 000002dcc4b85880] using SAR=1/1*
*[libx264 @ 000002dcc4b85880] using cpu capabilities: MMX2 SSE2Fast SSSE3
SSE4.2 AVX FMA3 BMI2 AVX2*
*[libx264 @ 000002dcc4b85880] profile High, level 6.0, 4:2:0, 8-bit*
*[libx264 @ 000002dcc4b85880] 264 - core 160 - H.264/MPEG-4 AVC codec -
Copyleft 2003-2020 - http://www.videolan.org/x264.html
<http://www.videolan.org/x264.html> - options: cabac=1 ref=16 deblock=1:0:0
analyse=0x3:0x133 me=umh subme=10 psy=1 psy_rd=1.00:0.00 mixed_ref=1
me_range=24 chroma_me=1 trellis=2 8x8dct=1 cqm=0 deadzone=21,11
fast_pskip=1 chroma_qp_offset=-2 threads=52 lookahead_threads=8
sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0
constrained_intra=0 bframes=8 b_pyramid=2 b_adapt=2 b_bias=0 direct=3
weightb=1 open_gop=0 weightp=2 keyint=100 keyint_min=51 scenecut=0
intra_refresh=0 rc_lookahead=60 rc=abr mbtree=1 bitrate=1100 ratetol=1.0
qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=1170 vbv_bufsize=2000
nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00*
*[libx264 @ 000002dcc4b9b080] using SAR=1/1*
*[libx264 @ 000002dcc4b9b080] using cpu capabilities: MMX2 SSE2Fast SSSE3
SSE4.2 AVX FMA3 BMI2 AVX2*
*[libx264 @ 000002dcc4b9b080] profile High, level 6.0, 4:2:0, 8-bit*
*[libx264 @ 000002dcc4b9b080] 264 - core 160 - H.264/MPEG-4 AVC codec -
Copyleft 2003-2020 - http://www.videolan.org/x264.html
<http://www.videolan.org/x264.html> - options: cabac=1 ref=16 deblock=1:0:0
analyse=0x3:0x133 me=umh subme=10 psy=1 psy_rd=1.00:0.00 mixed_ref=1
me_range=24 chroma_me=1 trellis=2 8x8dct=1 cqm=0 deadzone=21,11
fast_pskip=1 chroma_qp_offset=-2 threads=60 lookahead_threads=10
sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0
constrained_intra=0 bframes=8 b_pyramid=2 b_adapt=2 b_bias=0 direct=3
weightb=1 open_gop=0 weightp=2 keyint=100 keyint_min=51 scenecut=0
intra_refresh=0 rc_lookahead=60 rc=abr mbtree=1 bitrate=3000 ratetol=1.0
qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=3210 vbv_bufsize=5500
nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00*
*[libx264 @ 000002dcc4ba2700] using SAR=1/1*
*[libx264 @ 000002dcc4ba2700] using cpu capabilities: MMX2 SSE2Fast SSSE3
SSE4.2 AVX FMA3 BMI2 AVX2*
*[libx264 @ 000002dcc4ba2700] profile High, level 6.0, 4:2:0, 8-bit*
*[libx264 @ 000002dcc4ba2700] 264 - core 160 - H.264/MPEG-4 AVC codec -
Copyleft 2003-2020 - http://www.videolan.org/x264.html
<http://www.videolan.org/x264.html> - options: cabac=1 ref=16 deblock=1:0:0
analyse=0x3:0x133 me=umh subme=10 psy=1 psy_rd=1.00:0.00 mixed_ref=1
me_range=24 chroma_me=1 trellis=2 8x8dct=1 cqm=0 deadzone=21,11
fast_pskip=1 chroma_qp_offset=-2 threads=60 lookahead_threads=10
sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0
constrained_intra=0 bframes=8 b_pyramid=2 b_adapt=2 b_bias=0 direct=3
weightb=1 open_gop=0 weightp=2 keyint=100 keyint_min=51 scenecut=0
intra_refresh=0 rc_lookahead=60 rc=abr mbtree=1 bitrate=4500 ratetol=1.0
qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=4800 vbv_bufsize=8000
nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00*
*[libx264 @ 000002dcc4b9fe00] using SAR=1/1*
*[libx264 @ 000002dcc4b9fe00] using cpu capabilities: MMX2 SSE2Fast SSSE3
SSE4.2 AVX FMA3 BMI2 AVX2*
*[libx264 @ 000002dcc4b9fe00] profile High, level 6.0, 4:2:0, 8-bit*
*[libx264 @ 000002dcc4b9fe00] 264 - core 160 - H.264/MPEG-4 AVC codec -
Copyleft 2003-2020 - http://www.videolan.org/x264.html
<http://www.videolan.org/x264.html> - options: cabac=1 ref=16 deblock=1:0:0
analyse=0x3:0x133 me=umh subme=10 psy=1 psy_rd=1.00:0.00 mixed_ref=1
me_range=24 chroma_me=1 trellis=2 8x8dct=1 cqm=0 deadzone=21,11
fast_pskip=1 chroma_qp_offset=-2 threads=64 lookahead_threads=10
sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0
constrained_intra=0 bframes=8 b_pyramid=2 b_adapt=2 b_bias=0 direct=3
weightb=1 open_gop=0 weightp=2 keyint=100 keyint_min=51 scenecut=0
intra_refresh=0 rc_lookahead=60 rc=abr mbtree=1 bitrate=6000 ratetol=1.0
qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=6420 vbv_bufsize=11000
nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00*
*[libx264 @ 000002dcc4b9f040] using SAR=1/1*
*[libx264 @ 000002dcc4b9f040] using cpu capabilities: MMX2 SSE2Fast SSSE3
SSE4.2 AVX FMA3 BMI2 AVX2*
*[libx264 @ 000002dcc4b9f040] profile High, level 6.0, 4:2:0, 8-bit*
*[libx264 @ 000002dcc4b9f040] 264 - core 160 - H.264/MPEG-4 AVC codec -
Copyleft 2003-2020 - http://www.videolan.org/x264.html
<http://www.videolan.org/x264.html> - options: cabac=1 ref=16 deblock=1:0:0
analyse=0x3:0x133 me=umh subme=10 psy=1 psy_rd=1.00:0.00 mixed_ref=1
me_range=24 chroma_me=1 trellis=2 8x8dct=1 cqm=0 deadzone=21,11
fast_pskip=1 chroma_qp_offset=-2 threads=64 lookahead_threads=10
sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0
constrained_intra=0 bframes=8 b_pyramid=2 b_adapt=2 b_bias=0 direct=3
weightb=1 open_gop=0 weightp=2 keyint=100 keyint_min=51 scenecut=0
intra_refresh=0 rc_lookahead=60 rc=abr mbtree=1 bitrate=7800 ratetol=1.0
qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=8300 vbv_bufsize=14000
nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00*
*[dash @ 000002dcc5726480] Opening 'Dash/init\$RepresentationID\$.\$ext\$'
for writing*
*Could not write header for output file #0 (incorrect codec parameters ?):
No such file or directory*
*Error initializing output stream 0:8 -- *
*[aac @ 000002dcc4ba0280] Qavg: 33593.367*
*[aac @ 000002dcc4ba0280] 2 frames left in the queue on closing*
*Conversion failed!*
*Process finished with exit code 0*
--
Douglas Rhiner
JD Publishing
CTO
C.530-448-2754
Skype.douglasrhiner
924 Incline Way Suite L
Incline Village, NV
89451
douglasrhiner at gmail.com
xplorit.com <https://www.xplorit.com>
wendyourway.com <https://www.wendyourway.com>
More information about the ffmpeg-user
mailing list