[mythtv-users] Help with playback issue on recordings from a single channel

Klaas de Waal klaas.de.waal at gmail.com
Sun Dec 26 16:07:55 UTC 2021


On Sun, 26 Dec 2021 at 16:16, Vincent Poore via mythtv-users <
mythtv-users at mythtv.org> wrote:

> So yesterday was not a good day to lock up my machine so I didn't test
> ffmpeg on the sample I uploaded.   Honestly I was worried 6 minutes wasn't
> going to be enough but I tried it today and it did lock up my machine about
> three or four minutes in.  I got impatient and switched away from terminal
> while it was running so I don't have the exact timestamp/frame where it
> locked up.   I can do it again if this would be helpful.
>
> Please try
>
> ffmpeg -i 1504_20211225153600.ts  -vcodec libx264 -crf 24 -tune film
> -acodec copy 1504_20211225153600.libx264.ts
>
> and let me know if it completes.
>
> Since mine locks up, does this mean there is a bug in my AMD CPU?
>
> I notice this in my output:
>
> [libx264 @ 0x5567615eaac0] using cpu capabilities: MMX2 SSE2Fast SSSE3
> SSE4.2 AVX XOP FMA3 BMI1
>

This is what it does here:

[klaas at kasus videos]$ ffmpeg -i 1504_20211225153600.ts  -vcodec libx264
-crf 24 -tune film -acodec copy 1504_20211225153600.libx264.ts
ffmpeg version 4.4.1 Copyright (c) 2000-2021 the FFmpeg developers
  built with gcc 11 (GCC)
  configuration: --prefix=/usr --bindir=/usr/bin
--datadir=/usr/share/ffmpeg --docdir=/usr/share/doc/ffmpeg
--incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man
--arch=x86_64 --optflags='-O2 -flto=auto -ffat-lto-objects -fexceptions -g
-grecord-gcc-switches -pipe -Wall -Werror=format-security
-Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
-fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection'
--extra-ldflags='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now
-specs=/usr/lib/rpm/redhat/redhat-hardened-ld
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 ' --extra-cflags='
-I/usr/include/rav1e' --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libvo-amrwbenc --enable-version3 --enable-bzlib
--enable-chromaprint --disable-crystalhd --enable-fontconfig
--enable-frei0r --enable-gcrypt --enable-gnutls --enable-ladspa
--enable-libaom --enable-libdav1d --enable-libass --enable-libbluray
--enable-libbs2b --enable-libcdio --enable-libdrm --enable-libjack
--enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libilbc
--enable-libmp3lame --enable-libmysofa --enable-nvenc --enable-openal
--enable-opencl --enable-opengl --enable-libopenjpeg --enable-libopenmpt
--enable-libopus --enable-libpulse --enable-librsvg --enable-librav1e
--enable-librtmp --enable-librubberband --enable-libsmbclient
--enable-version3 --enable-libsnappy --enable-libsoxr --enable-libspeex
--enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtesseract
--enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libv4l2
--enable-libvidstab --enable-libvmaf --enable-version3 --enable-vapoursynth
--enable-libvpx --enable-vulkan --enable-libglslang --enable-libwebp
--enable-libx264 --enable-libx265 --enable-libxvid --enable-libxml2
--enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2
--enable-avfilter --enable-avresample --enable-libmodplug --enable-postproc
--enable-pthreads --disable-static --enable-shared --enable-gpl
--disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-lto
--enable-libmfx --enable-runtime-cpudetect
  libavutil      56. 70.100 / 56. 70.100
  libavcodec     58.134.100 / 58.134.100
  libavformat    58. 76.100 / 58. 76.100
  libavdevice    58. 13.100 / 58. 13.100
  libavfilter     7.110.100 /  7.110.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  9.100 /  5.  9.100
  libswresample   3.  9.100 /  3.  9.100
  libpostproc    55.  9.100 / 55.  9.100
[mpegts @ 0x560785dfb140] PES packet size mismatch
[mpegts @ 0x560785dfb140] Packet corrupt (stream = 1, dts = 5992423806).
[mpegts @ 0x560785dfb140] stream 2 : no PTS found at end of file, duration
not set
Input #0, mpegts, from '1504_20211225153600.ts':
  Duration: 00:06:45.25, start: 66178.166733, bitrate: 7671 kb/s
  Program 1
  Stream #0:0[0x760]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002),
yuv420p(tv, top first), 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr,
90k tbn, 59.94 tbc
    Side data:
      cpb: bitrate max/min/avg: 18824400/0/0 buffer size: 9764864
vbv_delay: N/A
  Stream #0:1[0x761](eng): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz,
5.1(side), fltp, 384 kb/s
  Stream #0:2[0x762](spa): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz,
stereo, fltp, 128 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg2video (native) -> h264 (libx264))
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[libx264 @ 0x560785fa0000] using SAR=1/1
[libx264 @ 0x560785fa0000] using cpu capabilities: MMX2 SSE2Fast SSSE3
SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 0x560785fa0000] profile High, level 4.0, 4:2:0, 8-bit
Output #0, mpegts, to '1504_20211225153600.libx264.ts':
  Metadata:
    encoder         : Lavf58.76.100
  Stream #0:0: Video: h264, yuv420p(tv, top coded first (swapped)),
1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 29.97 fps, 90k tbn
    Metadata:
      encoder         : Lavc58.134.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
  Stream #0:1(eng): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side),
fltp, 384 kb/s
[mpegts @ 0x560785dfb140] PES packet size mismatch:06:43.93
bitrate=3971.7kbits/s speed=1.11x
[mpegts @ 0x560785dfb140] Packet corrupt (stream = 1, dts = 5992423806).
[mpeg2video @ 0x560785e23280] ac-tex damaged at 56 44
[mpeg2video @ 0x560785e23280] Warning MVs not available
[mpeg2video @ 0x560785e23280] concealing 2873 DC, 2873 AC, 2873 MV errors
in I frame
1504_20211225153600.ts: corrupt decoded frame in stream 0
frame=12121 fps= 33 q=-1.0 Lsize=  197242kB time=00:06:45.03
bitrate=3989.3kbits/s speed=1.11x
video:169584kB audio:18957kB subtitle:0kB other streams:0kB global
headers:0kB muxing overhead: 4.615047%
[libx264 @ 0x560785fa0000] frame I:155   Avg QP:20.78  size: 86732
[libx264 @ 0x560785fa0000] frame P:3345  Avg QP:23.06  size: 33143
[libx264 @ 0x560785fa0000] frame B:8621  Avg QP:26.21  size:  5724
[libx264 @ 0x560785fa0000] consecutive B-frames:  3.4%  4.2%  2.8% 89.5%
[libx264 @ 0x560785fa0000] mb I  I16..4: 23.2% 70.4%  6.4%
[libx264 @ 0x560785fa0000] mb P  I16..4:  5.3% 11.1%  0.8%  P16..4: 42.3%
 7.9%  4.5%  0.0%  0.0%    skip:28.0%
[libx264 @ 0x560785fa0000] mb B  I16..4:  0.3%  0.4%  0.0%  B16..8: 31.7%
 0.9%  0.1%  direct: 1.1%  skip:65.4%  L0:39.9% L1:55.8% BI: 4.4%
[libx264 @ 0x560785fa0000] 8x8 transform intra:64.9% inter:87.0%
[libx264 @ 0x560785fa0000] coded y,uvDC,uvAC intra: 43.1% 54.1% 14.3%
inter: 7.0% 12.1% 0.4%
[libx264 @ 0x560785fa0000] i16 v,h,dc,p: 30% 37% 10% 24%
[libx264 @ 0x560785fa0000] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 31% 20% 30%  3%
 3%  3%  3%  4%  4%
[libx264 @ 0x560785fa0000] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 15% 61%  7%  2%
 3%  3%  3%  2%  2%
[libx264 @ 0x560785fa0000] i8c dc,h,v,p: 55% 19% 22%  4%
[libx264 @ 0x560785fa0000] Weighted P-Frames: Y:1.9% UV:1.1%
[libx264 @ 0x560785fa0000] ref P L0: 65.0% 10.4% 19.8%  4.8%  0.0%
[libx264 @ 0x560785fa0000] ref B L0: 88.8%  9.9%  1.3%
[libx264 @ 0x560785fa0000] ref B L1: 94.2%  5.8%
[libx264 @ 0x560785fa0000] kb/s:3433.27
[klaas at kasus videos]$

Looks OK to me.
Klaas.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20211226/01e3e8a0/attachment.htm>


More information about the mythtv-users mailing list