Without proceeding with a dichotomic approach preferably.
Context: Benjamin_Loison/Voice_assistant/issues/57
The Super User answer 785532:
8.mp4 video is empty in shotcut (I checked many time steps) and VLC, but at least Videos works to some extent.
8.mp4
DuckDuckGo and Google search ffmpeg H265 encoding.
ffmpeg -i 8.mp4 -c:v libx265 -c:a copy 8_265.mp4
ffmpeg version 7.1.5-0+deb13u1 Copyright (c) 2000-2026 the FFmpeg developers built with gcc 14 (Debian 14.2.0-19) configuration: --prefix=/usr --extra-version=0+deb13u1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --disable-libmfx --disable-omx --enable-gnutls --enable-libaom --enable-libass --enable-libbs2b --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libglslang --enable-libgme --enable-libgsm --enable-libharfbuzz --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-openal --enable-opencl --enable-opengl --disable-sndio --enable-libvpl --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-ladspa --enable-libbluray --enable-libcaca --enable-libdvdnav --enable-libdvdread --enable-libjack --enable-libpulse --enable-librabbitmq --enable-librist --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libx264 --enable-libzmq --enable-libzvbi --enable-lv2 --enable-sdl2 --enable-libplacebo --enable-librav1e --enable-pocketsphinx --enable-librsvg --enable-libjxl --enable-shared libavutil 59. 39.100 / 59. 39.100 libavcodec 61. 19.101 / 61. 19.101 libavformat 61. 7.103 / 61. 7.103 libavdevice 61. 3.100 / 61. 3.100 libavfilter 10. 5.100 / 10. 5.100 libswscale 8. 3.100 / 8. 3.100 libswresample 5. 3.100 / 5. 3.100 libpostproc 58. 3.100 / 58. 3.100 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x5635ea8cf200] Could not find codec parameters for stream 0 (Video: h264 (avc1 / 0x31637661), none, 1080x2340, 1875 kb/s): unspecified pixel format Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '8.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf62.12.102 comment : Recorded by scrcpy 4.1 Duration: 00:11:14.02, start: 0.000000, bitrate: 1817 kb/s Stream #0:0[0x1](und): Video: h264 (avc1 / 0x31637661), none, 1080x2340, 1875 kb/s, 5.83 fps, 90k tbr, 90k tbn (default) Metadata: handler_name : VideoHandler vendor_id : [0][0][0][0] Stream #0:1[0x2](und): Audio: opus (Opus / 0x7375704F), 48000 Hz, stereo, fltp, 12 kb/s (default) Metadata: handler_name : SoundHandler vendor_id : [0][0][0][0] Stream mapping: Stream #0:0 -> #0:0 (h264 (native) -> hevc (libx265)) Stream #0:1 -> #0:1 (copy) Press [q] to stop, [?] for help x265 [info]: HEVC encoder version 4.1+1-1d117be x265 [info]: build info [Linux][GCC 14.2.0][64 bit] 8bit+10bit+12bit x265 [info]: using cpu capabilities: MMX2 SSE2Fast LZCNT SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 x265 [info]: Main profile, Level-5 (Main tier) x265 [info]: Thread pool created using 16 threads x265 [info]: Slices : 1 x265 [info]: frame threads / pool features : 4 / wpp(37 rows) x265 [info]: Coding QT: max CU size, min CU size : 64 / 8 x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra x265 [info]: ME / range / subpel / merge : hex / 57 / 2 / 3 x265 [info]: Keyframe min / max / scenecut / bias : 5 / 250 / 40 / 5.00 x265 [info]: Lookahead / bframes / badapt : 20 / 4 / 2 x265 [info]: b-pyramid / weightp / weightb : 1 / 1 / 0 x265 [info]: References / ref-limit cu / depth : 3 / off / on x265 [info]: AQ: mode / str / qg-size / cu-tree : 2 / 1.0 / 32 / 1 x265 [info]: Rate Control / qCompress : CRF-28.0 / 0.60 x265 [info]: tools: rd=3 psy-rd=2.00 early-skip rskip mode=1 signhide tmvp x265 [info]: tools: b-intra strong-intra-smoothing lslices=8 deblock sao [mp4 @ 0x5635ea8d6a00] track 1: codec frame size is not set Output #0, mp4, to '8_265.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 comment : Recorded by scrcpy 4.1 encoder : Lavf61.7.103 Stream #0:0(und): Video: hevc (hev1 / 0x31766568), yuv420p(tv, ycgco/unknown/smpte170m, progressive), 1080x2340, q=2-31, 5.83 fps, 169470000.00 tbn (default) Metadata: handler_name : VideoHandler vendor_id : [0][0][0][0] encoder : Lavc61.19.101 libx265 Side data: cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A Stream #0:1(und): Audio: opus (Opus / 0x7375704F), 48000 Hz, stereo, fltp, 12 kb/s (default) Metadata: handler_name : SoundHandler vendor_id : [0][0][0][0] frame= 1 fps=0.0 q=27.9 size= 0KiB time=00:00:07.20 bitrate= 0.0kbitsframe= 26 fps= 26 q=28.0 size= 0KiB time=00:00:12.34 bitrate= 0.0kbits[mp4 @ 0x5635ea8d6a00] pts/dts pair unsupported [vost#0:0/libx265 @ 0x5635ea903280] Error submitting a packet to the muxer: Not yet implemented in FFmpeg, patches welcome Last message repeated 1 times [out#0/mp4 @ 0x5635ea8d6900] Error muxing a packet [out#0/mp4 @ 0x5635ea8d6900] Task finished with error code: -1163346256 (Not yet implemented in FFmpeg, patches welcome) [out#0/mp4 @ 0x5635ea8d6900] Terminating thread with return code -1163346256 (Not yet implemented in FFmpeg, patches welcome) [out#0/mp4 @ 0x5635ea8d6900] video:151KiB audio:10KiB subtitle:0KiB other streams:0KiB global headers:2KiB muxing overhead: 21.843169% frame= 47 fps= 26 q=30.0 Lsize= 196KiB time=00:00:18.69 bitrate= 85.7kbits/s dup=0 drop=139 speed=10.2x x265 [info]: frame I: 3, Avg QP:25.34 kb/s: 883.12 x265 [info]: frame P: 36, Avg QP:27.46 kb/s: 208.87 x265 [info]: frame B: 50, Avg QP:30.34 kb/s: 24.87 x265 [info]: Weighted P-Frames: Y:2.8% UV:2.8% encoded 89 frames in 1.76s (50.65 fps), 128.22 kb/s, Avg QP:29.01 Conversion failed!
ffmpeg -i 8.mp4 -c:v libx264 -c:a copy 8_264.mp4
ffmpeg version 7.1.5-0+deb13u1 Copyright (c) 2000-2026 the FFmpeg developers built with gcc 14 (Debian 14.2.0-19) configuration: --prefix=/usr --extra-version=0+deb13u1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --disable-libmfx --disable-omx --enable-gnutls --enable-libaom --enable-libass --enable-libbs2b --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libglslang --enable-libgme --enable-libgsm --enable-libharfbuzz --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-openal --enable-opencl --enable-opengl --disable-sndio --enable-libvpl --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-ladspa --enable-libbluray --enable-libcaca --enable-libdvdnav --enable-libdvdread --enable-libjack --enable-libpulse --enable-librabbitmq --enable-librist --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libx264 --enable-libzmq --enable-libzvbi --enable-lv2 --enable-sdl2 --enable-libplacebo --enable-librav1e --enable-pocketsphinx --enable-librsvg --enable-libjxl --enable-shared libavutil 59. 39.100 / 59. 39.100 libavcodec 61. 19.101 / 61. 19.101 libavformat 61. 7.103 / 61. 7.103 libavdevice 61. 3.100 / 61. 3.100 libavfilter 10. 5.100 / 10. 5.100 libswscale 8. 3.100 / 8. 3.100 libswresample 5. 3.100 / 5. 3.100 libpostproc 58. 3.100 / 58. 3.100 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b10c1eb200] Could not find codec parameters for stream 0 (Video: h264 (avc1 / 0x31637661), none, 1080x2340, 1875 kb/s): unspecified pixel format Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '8.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf62.12.102 comment : Recorded by scrcpy 4.1 Duration: 00:11:14.02, start: 0.000000, bitrate: 1817 kb/s Stream #0:0[0x1](und): Video: h264 (avc1 / 0x31637661), none, 1080x2340, 1875 kb/s, 5.83 fps, 90k tbr, 90k tbn (default) Metadata: handler_name : VideoHandler vendor_id : [0][0][0][0] Stream #0:1[0x2](und): Audio: opus (Opus / 0x7375704F), 48000 Hz, stereo, fltp, 12 kb/s (default) Metadata: handler_name : SoundHandler vendor_id : [0][0][0][0] Stream mapping: Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264)) Stream #0:1 -> #0:1 (copy) Press [q] to stop, [?] for help [libx264 @ 0x55b10c1ef640] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 [libx264 @ 0x55b10c1ef640] profile High, level 5.0, 4:2:0, 8-bit [libx264 @ 0x55b10c1ef640] 264 - core 164 r3108 31e19f9 - H.264/MPEG-4 AVC codec - Copyleft 2003-2023 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=24 lookahead_threads=4 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=5 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 [mp4 @ 0x55b10c1f2a00] track 1: codec frame size is not set Output #0, mp4, to '8_264.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 comment : Recorded by scrcpy 4.1 encoder : Lavf61.7.103 Stream #0:0(und): Video: h264 (avc1 / 0x31637661), yuv420p(tv, ycgco/unknown/smpte170m, progressive), 1080x2340, q=2-31, 5.83 fps, 169470000.00 tbn (default) Metadata: handler_name : VideoHandler vendor_id : [0][0][0][0] encoder : Lavc61.19.101 libx264 Side data: cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A Stream #0:1(und): Audio: opus (Opus / 0x7375704F), 48000 Hz, stereo, fltp, 12 kb/s (default) Metadata: handler_name : SoundHandler vendor_id : [0][0][0][0] frame= 0 fps=0.0 q=0.0 size= 0KiB time=N/A bitrate=N/A dup=0 drop=94 spframe= 41 fps= 41 q=23.0 size= 256KiB time=00:00:16.98 bitrate= 123.5kbits[mp4 @ 0x55b10c1f2a00] pts/dts pair unsupported [vost#0:0/libx264 @ 0x55b10c21f280] Error submitting a packet to the muxer: Not yet implemented in FFmpeg, patches welcome Last message repeated 1 times [out#0/mp4 @ 0x55b10c1f2900] Error muxing a packet [out#0/mp4 @ 0x55b10c1f2900] Task finished with error code: -1163346256 (Not yet implemented in FFmpeg, patches welcome) [out#0/mp4 @ 0x55b10c1f2900] Terminating thread with return code -1163346256 (Not yet implemented in FFmpeg, patches welcome) [out#0/mp4 @ 0x55b10c1f2900] video:262KiB audio:13KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: 15.627069% frame= 49 fps= 28 q=-1.0 Lsize= 317KiB time=00:00:19.03 bitrate= 136.5kbits/s dup=0 drop=332 speed=10.7x [libx264 @ 0x55b10c1ef640] frame I:7 Avg QP:10.96 size: 58778 [libx264 @ 0x55b10c1ef640] frame P:42 Avg QP:15.13 size: 20792 [libx264 @ 0x55b10c1ef640] frame B:75 Avg QP:11.21 size: 8348 [libx264 @ 0x55b10c1ef640] consecutive B-frames: 16.1% 6.5% 9.7% 67.7% [libx264 @ 0x55b10c1ef640] mb I I16..4: 54.0% 39.2% 6.8% [libx264 @ 0x55b10c1ef640] mb P I16..4: 8.9% 16.4% 1.8% P16..4: 2.7% 0.9% 0.5% 0.0% 0.0% skip:68.9% [libx264 @ 0x55b10c1ef640] mb B I16..4: 0.4% 1.4% 0.1% B16..8: 3.6% 0.7% 0.2% direct: 1.6% skip:92.1% L0:40.8% L1:54.6% BI: 4.6% [libx264 @ 0x55b10c1ef640] 8x8 transform intra:53.9% inter:67.4% [libx264 @ 0x55b10c1ef640] coded y,uvDC,uvAC intra: 30.5% 32.5% 12.7% inter: 3.0% 3.1% 0.2% [libx264 @ 0x55b10c1ef640] i16 v,h,dc,p: 70% 15% 4% 10% [libx264 @ 0x55b10c1ef640] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 23% 30% 4% 2% 2% 3% 2% 4% [libx264 @ 0x55b10c1ef640] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 33% 24% 19% 4% 4% 4% 4% 3% 3% [libx264 @ 0x55b10c1ef640] i8c dc,h,v,p: 75% 13% 10% 2% [libx264 @ 0x55b10c1ef640] Weighted P-Frames: Y:2.4% UV:2.4% [libx264 @ 0x55b10c1ef640] ref P L0: 69.1% 9.7% 13.9% 7.2% [libx264 @ 0x55b10c1ef640] ref B L0: 86.8% 13.0% 0.3% [libx264 @ 0x55b10c1ef640] ref B L1: 94.0% 6.0% [libx264 @ 0x55b10c1ef640] kb/s:194.17 Conversion failed!
ls -lh 8{,_26{4,5}}.mp4
-rw-rw-r-- 1 benjamin_loison benjamin_loison 318K Sep 28 03:58 8_264.mp4 -rw-rw-r-- 1 benjamin_loison benjamin_loison 196K Sep 28 03:58 8_265.mp4 -rw-rw-r-- 1 benjamin_loison benjamin_loison 147M Sep 27 23:52 8.mp4
No dependencies set.
The note is not visible to the blocked user.
Without proceeding with a dichotomic approach preferably.
Context: Benjamin_Loison/Voice_assistant/issues/57
The Super User answer 785532:
8.mp4video is empty in shotcut (I checked many time steps) and VLC, but at least Videos works to some extent.DuckDuckGo and Google search ffmpeg H265 encoding.
Output:
Output:
Output: