On 2025-09-08 23:30, Ferdi Scholten via ffmpeg-user wrote:
On 08-09-2025 15:26, Carlos E. R. via ffmpeg-user wrote:On 2025-09-08 07:51, Ferdi Scholten via ffmpeg-user wrote:On 06-09-2025 23:44, Carlos E. R. via ffmpeg-user wrote:
This looks pretty good to me, bt I would personally drop the "- disposition:a:0 default" from it and use libopus instead of aacI had no idea there was a version 8, now searching for it I see it.As you say the api has changed, could you suggest a command line for doing the conversion? Similar to:ffmpeg -i movie.mkv \-vf "scale=-1:802,format=yuv420p" -c:v libx264 -preset fast -crf 22 -tune fastdecode -profile:v main -c:a copy -c:s copy \output.mkvbut with 2 subtitle streams. I get audio not supported on VLC, and only one subtittle stream. On version 3 and 4, same line gets working audio, and one subtittle stream. Attempts to produce the two subtittles on version 4 killed the audio.Tried also this concoction suggested by chatgpt, VLC also refuses to play the audio but generates the two subtittles:ffmpeg -i movie.mkv -vf "scale=-1:802,format=yuv420p" -map 0 -c:v libx264 -preset fast -crf 22 -tune fastdecode -profile:v main -c:a aac -b:a 192k -c:s copy -disposition:a:0 default 8c_movie.mkvSo replace "-c:a aac -b:a 192k" with "-c:a libopus -ac 6"Your VLC seems to have a problem with eac and aac codecs as both error out that is why I suggest opus instead (it also is better quality as aac)
Thanks. [...] Maybe I did something wrong, there is no audio on vlc :-? Kodi works, but it is not convenient. cer@Telcontar:/mnt/nfs/Isengard/xfsRaid/Videos/tmp> ffmpeg -t 10:0 -i movie.mkv -vf "scale=-1:802,format=yuv420p" -map 0 -c:v libx264 -preset fast -crf 22 -tune fastdecode -profile:v main -c:a libopus -ac 6 -c:s copy 8d_movie.mkv ffmpeg version 8.0 Copyright (c) 2000-2025 the FFmpeg developers built with gcc 7 (SUSE Linux) configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --incdir=/usr/include/ffmpeg --extra-cflags='-fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -g' --optflags='-fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -g' --disable-htmlpages --enable-pic --disable-stripping --enable-shared --disable-static --enable-gpl --enable-version3 --enable-libsmbclient --disable-openssl --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcdio --enable-libdav1d --enable-libdc1394 --enable-libdrm --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack --enable-libmp3lame --enable-libopenjpeg --enable-libopenmpt --enable-libopenh264 --enable-libopus --enable-libpulse --enable-librav1e --enable-libsvtav1 --enable-libsoxr --enable-libspeex --enable-libssh --enable-libsrt --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libxml2 --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-libvpl --enable-vaapi --enable-vdpau --enable-version3 --enable-libfdk-aac-dlopen --enable-nonfree --enable-libvo-amrwbenc --enable-libx264 --enable-libx265 --enable-libxvid libavutil 60. 8.100 / 60. 8.100 libavcodec 62. 11.100 / 62. 11.100 libavformat 62. 3.100 / 62. 3.100 libavdevice 62. 1.100 / 62. 1.100 libavfilter 11. 4.100 / 11. 4.100 libswscale 9. 1.100 / 9. 1.100 libswresample 6. 1.100 / 6. 1.100 Input #0, matroska,webm, from 'movie.mkv': Metadata: encoder : libebml v1.4.2 + libmatroska v1.6.4 creation_time : 2022-05-15T21:04:13.000000Z Duration: 00:54:17.60, start: 0.000000, bitrate: 4608 kb/s Stream #0:0: Video: hevc (Main 10), yuv420p10le(tv, bt709), 3840x1604, SAR 1:1 DAR 960:401, 23.98 fps, 23.98 tbr, 1k tbn (default) Metadata: BPS : 3966208 DURATION : 00:54:17.588000000 NUMBER_OF_FRAMES: 78104 NUMBER_OF_BYTES : 1615034142 _STATISTICS_WRITING_APP: mkvmerge v67.0.0 ('Under Stars') 64-bit _STATISTICS_WRITING_DATE_UTC: 2022-05-15 21:04:13 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Stream #0:1(eng): Audio: eac3, 48000 Hz, 5.1(side), fltp, 640 kb/s Metadata: BPS : 640000 DURATION : 00:54:17.600000000 NUMBER_OF_FRAMES: 101800 NUMBER_OF_BYTES : 260608000 _STATISTICS_WRITING_APP: mkvmerge v67.0.0 ('Under Stars') 64-bit _STATISTICS_WRITING_DATE_UTC: 2022-05-15 21:04:13 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Stream #0:2(eng): Subtitle: subrip (srt) Metadata: BPS : 79 DURATION : 00:52:31.318000000 NUMBER_OF_FRAMES: 980 NUMBER_OF_BYTES : 31376 _STATISTICS_WRITING_APP: mkvmerge v67.0.0 ('Under Stars') 64-bit _STATISTICS_WRITING_DATE_UTC: 2022-05-15 21:04:13 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Stream #0:3(eng): Subtitle: subrip (srt) (hearing impaired) Metadata: title : SDH BPS : 84 DURATION : 00:52:40.980000000 NUMBER_OF_FRAMES: 1041 NUMBER_OF_BYTES : 33504 _STATISTICS_WRITING_APP: mkvmerge v67.0.0 ('Under Stars') 64-bit _STATISTICS_WRITING_DATE_UTC: 2022-05-15 21:04:13 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Stream mapping: Stream #0:0 -> #0:0 (hevc (native) -> h264 (libx264)) Stream #0:1 -> #0:1 (eac3 (native) -> opus (libopus)) Stream #0:2 -> #0:2 (copy) Stream #0:3 -> #0:3 (copy) Press [q] to stop, [?] for help [libopus @ 0x5641052e3d00] No bit rate set. Defaulting to 320000 bps. [libx264 @ 0x5641048130c0] using SAR=1/1 [libx264 @ 0x5641048130c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 [libx264 @ 0x5641048130c0] profile Main, level 4.0, 4:2:0, 8-bit [libx264 @ 0x5641048130c0] 264 - core 164 - H.264/MPEG-4 AVC codec - Copyleft 2003-2023 - http://www.videolan.org/x264.html - options: cabac=0 ref=2 deblock=0:0:0 analyse=0x1:0x111 me=hex subme=6 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=18 lookahead_threads=3 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=0 open_gop=0 weightp=0 keyint=250 keyint_min=23 scenecut=40 intra_refresh=0 rc_lookahead=30 rc=crf mbtree=1 crf=22.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 Output #0, matroska, to '8d_movie.mkv': Metadata: encoder : Lavf62.3.100 Stream #0:0: Video: h264 (H264 / 0x34363248), yuv420p(tv, bt709, progressive), 1920x802 [SAR 1:1 DAR 960:401], q=2-31, 23.98 fps, 1k tbn (default) Metadata: encoder : Lavc62.11.100 libx264 BPS : 3966208 DURATION : 00:54:17.588000000 NUMBER_OF_FRAMES: 78104 NUMBER_OF_BYTES : 1615034142 _STATISTICS_WRITING_APP: mkvmerge v67.0.0 ('Under Stars') 64-bit _STATISTICS_WRITING_DATE_UTC: 2022-05-15 21:04:13 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Side data: cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A Stream #0:1(eng): Audio: opus ([255][255][255][255] / 0xFFFFFFFF), 48000 Hz, 5.1, flt, 320 kb/s Metadata: encoder : Lavc62.11.100 libopus BPS : 640000 DURATION : 00:54:17.600000000 NUMBER_OF_FRAMES: 101800 NUMBER_OF_BYTES : 260608000 _STATISTICS_WRITING_APP: mkvmerge v67.0.0 ('Under Stars') 64-bit _STATISTICS_WRITING_DATE_UTC: 2022-05-15 21:04:13 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Stream #0:2(eng): Subtitle: subrip (default) Metadata: BPS : 79 DURATION : 00:52:31.318000000 NUMBER_OF_FRAMES: 980 NUMBER_OF_BYTES : 31376 _STATISTICS_WRITING_APP: mkvmerge v67.0.0 ('Under Stars') 64-bit _STATISTICS_WRITING_DATE_UTC: 2022-05-15 21:04:13 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Stream #0:3(eng): Subtitle: subrip (hearing impaired) Metadata: title : SDH BPS : 84 DURATION : 00:52:40.980000000 NUMBER_OF_FRAMES: 1041 NUMBER_OF_BYTES : 33504 _STATISTICS_WRITING_APP: mkvmerge v67.0.0 ('Under Stars') 64-bit _STATISTICS_WRITING_DATE_UTC: 2022-05-15 21:04:13 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES [out#0/matroska @ 0x5641048407c0] video:158239KiB audio:23658KiB subtitle:10KiB other streams:0KiB global headers:0KiB muxing overhead: 0.178860% frame=14386 fps= 94 q=-1.0 Lsize= 182231KiB time=00:09:59.77 bitrate=2489.0kbits/s speed=3.91x elapsed=0:02:33.51 [libx264 @ 0x5641048130c0] frame I:175 Avg QP:16.17 size: 73474 [libx264 @ 0x5641048130c0] frame P:4190 Avg QP:19.45 size: 20328 [libx264 @ 0x5641048130c0] frame B:10021 Avg QP:21.28 size: 6387 [libx264 @ 0x5641048130c0] consecutive B-frames: 5.7% 3.1% 3.6% 87.6% [libx264 @ 0x5641048130c0] mb I I16..4: 54.4% 0.0% 45.6% [libx264 @ 0x5641048130c0] mb P I16..4: 12.2% 0.0% 3.9% P16..4: 36.1% 8.9% 3.8% 0.0% 0.0% skip:35.1% [libx264 @ 0x5641048130c0] mb B I16..4: 4.1% 0.0% 0.4% B16..8: 18.0% 3.1% 0.1% direct:10.7% skip:63.5% L0:43.0% L1:49.6% BI: 7.5% [libx264 @ 0x5641048130c0] coded y,uvDC,uvAC intra: 19.1% 56.1% 10.4% inter: 3.8% 17.8% 0.4% [libx264 @ 0x5641048130c0] i16 v,h,dc,p: 41% 24% 13% 22% [libx264 @ 0x5641048130c0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 25% 19% 21% 6% 7% 6% 6% 5% 4% [libx264 @ 0x5641048130c0] i8c dc,h,v,p: 62% 17% 16% 5% [libx264 @ 0x5641048130c0] ref P L0: 66.6% 33.4% [libx264 @ 0x5641048130c0] ref B L0: 82.6% 17.4% [libx264 @ 0x5641048130c0] ref B L1: 95.3% 4.7% [libx264 @ 0x5641048130c0] kb/s:2160.42 cer@Telcontar:/mnt/nfs/Isengard/xfsRaid/Videos/tmp> cer@Telcontar:/mnt/nfs/Isengard/xfsRaid/Videos/tmp> vlc 8d_movie.mkv VLC media player 3.0.21 Vetinari (revision 3.0.21-0-gdd8bfdbabe8) [000055bfa949d9a0] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface. [00007f2468f46ab0] opus decoder error: cannot read Opus header [00007f2468f46ab0] opus decoder error: initial Opus header is corrupted [00007f2468f46ab0] opus decoder error: cannot read Opus header [00007f2468f46ab0] opus decoder error: initial Opus header is corrupted [00007f2468f46ab0] opus decoder error: cannot read Opus header [00007f2468f46ab0] opus decoder error: initial Opus header is corrupted [00007f2468f46ab0] opus decoder error: cannot read Opus header [00007f2468f46ab0] opus decoder error: initial Opus header is corrupted [00007f2468f46ab0] opus decoder error: cannot read Opus header [00007f2468f46ab0] opus decoder error: initial Opus header is corrupted [00007f2468f46ab0] opus decoder error: cannot read Opus header [00007f2468f46ab0] opus decoder error: initial Opus header is corrupted [00007f2468f46ab0] opus decoder error: cannot read Opus header [00007f2468f46ab0] opus decoder error: initial Opus header is corrupted [00007f2468f46ab0] opus decoder error: cannot read Opus header [00007f2468f46ab0] opus decoder error: initial Opus header is corrupted [00007f2468f46ab0] opus decoder error: cannot read Opus header [00007f2468f46ab0] opus decoder error: initial Opus header is corrupted [00007f2468f46ab0] opus decoder error: cannot read Opus header [00007f2468f46ab0] opus decoder error: initial Opus header is corrupted [00007f2468f46ab0] opus decoder error: cannot read Opus header [00007f2468f46ab0] opus decoder error: initial Opus header is corrupted ... many of the same [00007f2468f46ab0] opus decoder error: initial Opus header is corrupted [00007f2468f46ab0] opus decoder error: cannot read Opus header [00007f2468f46ab0] opus decoder error: initial Opus header is corrupted [00007f2468f46ab0] opus decoder error: cannot read Opus header [00007f2468f46ab0] opus decoder error: initial Opus header is corrupted [00007f2468f46ab0] opus decoder error: cannot read Opus header [00007f2468f46ab0] opus decoder error: initial Opus header is corrupted [00007f2468f46ab0] opus decoder error: cannot read Opus header cer@Telcontar:/mnt/nfs/Isengard/xfsRaid/Videos/tmp> cer@Telcontar:/mnt/nfs/Isengard/xfsRaid/Videos/tmp> mediainfo 8d_movie.mkv General Unique ID : 292535759913027140487632929033961707487 (0xDC145685FDFB3A5BC1FC3D84AF0D97DF) Complete name : 8d_movie.mkv Format : Matroska Format version : Version 4 File size : 178 MiB Duration : 10 min 0 s Overall bit rate : 2 488 kb/s Frame rate : 130.170 FPS Writing application : Lavf62.3.100 Writing library : Lavf62.3.100 ErrorDetectionType : Per level 1 Video ID : 1 Format : AVC Format/Info : Advanced Video Codec Format profile : Main@L4 Format settings : 4 Ref Frames Format settings, CABAC : No Format settings, Reference frames : 4 frames Codec ID : V_MPEG4/ISO/AVC Duration : 10 min 0 s Bit rate : 3 966 kb/s Width : 1 920 pixels Height : 802 pixels Display aspect ratio : 2.39:1 Frame rate mode : Variable Frame rate : 130.170 FPS Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Bits/(Pixel*Frame) : 0.020 Stream size : 1.50 GiB Writing library : x264 core 164 Encoding settings : cabac=0 / ref=2 / deblock=0:0:0 / analyse=0x1:0x111 / me=hex / subme=6 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=18 / lookahead_threads=3 / 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=0 / open_gop=0 / weightp=0 / keyint=250 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=30 / rc=crf / mbtree=1 / crf=22.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00 Default : Yes Forced : No Color range : Limited Color primaries : BT.709 Transfer characteristics : BT.709 Matrix coefficients : BT.709 Audio ID : 2 Format : Opus Codec ID : A_OPUS Duration : 10 min 0 s Bit rate : 640 kb/s Channel(s) : 6 channels Channel layout : L R C Lb Rb LFE Sampling rate : 48.0 kHz Frame rate : 169.664 FPS (283 SPF) Bit depth : 32 bits Compression mode : Lossy Stream size : 249 MiB Writing library : Lavc62.11.100 libopus Language : English Default : No Forced : No Text #1 ID : 3 Format : UTF-8 Codec ID : S_TEXT/UTF8 Codec ID/Info : UTF-8 Plain Text Duration : 9 min 59 s Bit rate : 79 b/s Frame rate : 1.634 FPS Count of elements : 980 Stream size : 30.6 KiB (0%) Language : English Default : Yes Forced : No Text #2 ID : 4 Format : UTF-8 Codec ID : S_TEXT/UTF8 Codec ID/Info : UTF-8 Plain Text Duration : 9 min 59 s Bit rate : 84 b/s Frame rate : 1.736 FPS Count of elements : 1041 Stream size : 32.7 KiB (0%) Title : SDH Language : English Default : No Forced : No cer@Telcontar:/mnt/nfs/Isengard/xfsRaid/Videos/tmp> -- Cheers / Saludos, Carlos E. R. (from 15.6 x86_64 at Telcontar)
OpenPGP_signature.asc
Description: OpenPGP digital signature
_______________________________________________ ffmpeg-user mailing list -- ffmpeg-user@ffmpeg.org To unsubscribe send an email to ffmpeg-user-le...@ffmpeg.org