Opened 17 months ago

Last modified 17 months ago

#9090 open defect

In the process of screen recording, adjusting the volume will cause confusion of screen recording progress bar

Reported by: HouLei Owned by:
Priority: normal Component: undetermined
Version: git-master Keywords: x11grab
Cc: houlei@uniontech.com Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

  1. On Linux platform, execute: ffmpeg - F x11grab - fragment 25 - video_ size 1920*1080 -i :0.0 out.mp4
  1. Adjust the volume of Linux system repeatedly
  1. Save the screen video

Problem: play the screen recording file and observe the progress bar. The progress bar goes backward and gets stuck

Attachments (2)

out.mp4 (1.6 MB ) - added by HouLei 17 months ago.
out1.mkv (415.6 KB ) - added by HouLei 17 months ago.

Change History (7)

comment:1 by Carl Eugen Hoyos, 17 months ago

Component: ffmpegundetermined
Priority: importantnormal
Resolution: needs_more_info
Status: newclosed

Please reopen this ticket if you can provide the command line you tested together with the complete, uncut console output.

by HouLei, 17 months ago

Attachment: out.mp4 added

comment:2 by HouLei, 17 months ago

Cc: houlei@uniontech.com added
Component: undeterminedffmpeg
Priority: normalimportant
Resolution: needs_more_info
Status: closedreopened

houlei@houlei-PC:~/Desktop$ ffmpeg -f x11grab -framerate 25 -video_size 1920*1080 -i :0.0 out.mp4
ffmpeg version 4.1.6-1+dde Copyright (c) 2000-2020 the FFmpeg developers

built with gcc 8 (Uos 8.3.0.3-3+rebuild)
configuration: --prefix=/usr --extra-version=1+dde --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
libavutil 56. 22.100 / 56. 22.100
libavcodec 58. 35.100 / 58. 35.100
libavformat 58. 20.100 / 58. 20.100
libavdevice 58. 5.100 / 58. 5.100
libavfilter 7. 40.101 / 7. 40.101
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 3.100 / 5. 3.100
libswresample 3. 3.100 / 3. 3.100
libpostproc 55. 3.100 / 55. 3.100

[x11grab @ 0x55d65d3968c0] Stream #0: not enough frames to estimate rate; consider increasing probesize
Input #0, x11grab, from ':0.0':

Duration: N/A, start: 1612317357.270483, bitrate: N/A

Stream #0:0: Video: rawvideo (BGR[0] / 0x524742), bgr0, 1920x1080, 25 fps, 1000k tbr, 1000k tbn, 1000k tbc

Cannot open libmwv206dec.so, libmwv206dec.so: cannot open shared object file: No such file or directory
Stream mapping:

Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))

Press [q] to stop, ? for help
[libx264 @ 0x55d65d3a4580] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 0x55d65d3a4580] profile High 4:4:4 Predictive, level 4.0, 4:4:4 8-bit
[libx264 @ 0x55d65d3a4580] 264 - core 155 r2917 0a84d98 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 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=4 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=25 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
Output #0, mp4, to 'out.mp4':

Metadata:

encoder : Lavf58.20.100
Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv444p, 1920x1080, q=-1--1, 25 fps, 12800 tbn, 25 tbc
Metadata:

encoder : Lavc58.35.100 libx264

Side data:

cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1

frame= 938 fps= 25 q=-1.0 Lsize= 1658kB time=00:00:37.40 bitrate= 363.1kbits/s speed=0.991x
video:1646kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.714329%
[libx264 @ 0x55d65d3a4580] frame I:4 Avg QP: 9.87 size:248582
[libx264 @ 0x55d65d3a4580] frame P:246 Avg QP:19.03 size: 2033
[libx264 @ 0x55d65d3a4580] frame B:688 Avg QP:28.86 size: 277
[libx264 @ 0x55d65d3a4580] consecutive B-frames: 1.4% 1.5% 2.9% 94.2%
[libx264 @ 0x55d65d3a4580] mb I I16..4: 73.5% 0.0% 26.5%
[libx264 @ 0x55d65d3a4580] mb P I16..4: 0.5% 0.0% 0.2% P16..4: 0.6% 0.1% 0.0% 0.0% 0.0% skip:98.6%
[libx264 @ 0x55d65d3a4580] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 1.2% 0.0% 0.0% direct: 0.0% skip:98.7% L0:56.9% L1:42.9% BI: 0.2%
[libx264 @ 0x55d65d3a4580] coded y,u,v intra: 21.4% 16.0% 16.8% inter: 0.0% 0.0% 0.0%
[libx264 @ 0x55d65d3a4580] i16 v,h,dc,p: 75% 23% 2% 0%
[libx264 @ 0x55d65d3a4580] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 34% 27% 19% 2% 4% 3% 4% 2% 4%
[libx264 @ 0x55d65d3a4580] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x55d65d3a4580] ref P L0: 30.9% 3.2% 40.4% 25.5%
[libx264 @ 0x55d65d3a4580] ref B L0: 56.0% 37.6% 6.4%
[libx264 @ 0x55d65d3a4580] ref B L1: 95.0% 5.0%
[libx264 @ 0x55d65d3a4580] kb/s:359.23
Exiting normally, received signal 2.
houlei@houlei-PC:~/Desktop$


Hello, you can download the attached file: out.mp4 , open it with the player, and then observe the progress bar when playing. You will find that the progress bar is stuck, but the picture is still playing.

Repeat steps:

1.Play music in Linux system.
2.On Linux platform, execute: ffmpeg -f x11grab -framerate 25 -video_size 1920*1080 -i :0.0 out.mp4
3.Adjust the volume of Linux system repeatedly
4.Save the screen video
5.Play the video and observe the progress bar.

by HouLei, 17 months ago

Attachment: out1.mkv added

comment:3 by HouLei, 17 months ago

Status: reopenedopen

Download the attachment: out1.mp4 and play, listen to the sound, observe the screen and progress bar, there is an exception.

comment:4 by Carl Eugen Hoyos, 17 months ago

Component: ffmpegundetermined
Keywords: x11grab added
Priority: importantnormal

Please test current FFmpeg git head, the only version supported on this bug tracker.

in reply to:  4 comment:5 by HouLei, 17 months ago

Replying to cehoyos:

Please test current FFmpeg git head, the only version supported on this bug tracker.

commit 029e3c1c70b31ede9f17dda4b3a4fc8e35cada70 (HEAD -> master, origin/master, origin/HEAD)

houlei@houlei-PC:~/project/ffmpeg-source/ffmpeg-test$ ffmpeg -f x11grab -framerate 25 -video_size 1920*1080 -i :0.0 out.mp4
ffmpeg version N-101185-g029e3c1c70 Copyright (c) 2000-2021 the FFmpeg developers

built with gcc 8 (Uos 8.3.0.5-1+dde)
configuration:
libavutil 56. 65.100 / 56. 65.100
libavcodec 58.124.100 / 58.124.100
libavformat 58. 67.100 / 58. 67.100
libavdevice 58. 12.100 / 58. 12.100
libavfilter 7.107.100 / 7.107.100
libswscale 5. 8.100 / 5. 8.100
libswresample 3. 8.100 / 3. 8.100

[x11grab @ 0x3358380] Stream #0: not enough frames to estimate rate; consider increasing probesize
Input #0, x11grab, from ':0.0':

Duration: N/A, start: 1613792538.480405, bitrate: 1658880 kb/s
Stream #0:0: Video: rawvideo (BGR[0] / 0x524742), bgr0, 1920x1080, 1658880 kb/s, 25 fps, 1000k tbr, 1000k tbn, 1000k tbc

Stream mapping:

Stream #0:0 -> #0:0 (rawvideo (native) -> mpeg4 (native))

Press [q] to stop, ? for help
Output #0, mp4, to 'out.mp4':

Metadata:

encoder : Lavf58.67.100

Stream #0:0: Video: mpeg4 (mp4v / 0x7634706D), yuv420p(tv, progressive), 1920x1080, q=2-31, 200 kb/s, 25 fps, 12800 tbn

Metadata:

encoder : Lavc58.124.100 mpeg4

Side data:

cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: N/A

frame= 638 fps= 25 q=31.0 Lsize= 3725kB time=00:00:25.48 bitrate=1197.7kbits/s speed= 1x
video:3722kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.096932%
Exiting normally, received signal 2.

Note: See TracTickets for help on using tickets.