Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

H264 encoder output nothing after a long time #879

Open
waiter89 opened this issue Jul 29, 2019 · 3 comments
Open

H264 encoder output nothing after a long time #879

waiter89 opened this issue Jul 29, 2019 · 3 comments

Comments

@waiter89
Copy link

(gdb) p obj->output_
$6 = {
data = 0x3b5b090 "",
bufferSize = 1727040,
dataSize = 0,
remainingSize = 0,
flag = 0,
format = OUTPUT_EVERYTHING,
temporalID = 0 '\000',
timeStamp = 1564393746439
}

我在4台相同的机器相同的系统相同的软件上面测试编码,刚开始都是正常编码画面正常,每台机器同时编码2路,经过3天测试之后,发现其中有一台编码机器编码无数据,2路编码都是无数据.从dmesg看该机器正常.当关闭编码软件再重新打开,画面正常编码.

surveil@101:~> vainfo
libva info: VA-API version 0.39.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib64/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_39
libva info: va_openDriver() returns 0
vainfo: VA-API version: 0.39 (libva 1.7.0)
vainfo: Driver version: Intel i965 driver for Intel(R) Skylake - 1.7.2
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Simple : VAEntrypointEncSlice
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointEncSlice
VAProfileH264ConstrainedBaseline: VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
VAProfileH264ConstrainedBaseline:
VAProfileH264Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointEncSlice
VAProfileH264Main :
VAProfileH264High : VAEntrypointVLD
VAProfileH264High : VAEntrypointEncSlice
VAProfileH264High :
VAProfileH264MultiviewHigh : VAEntrypointVLD
VAProfileH264MultiviewHigh : VAEntrypointEncSlice
VAProfileH264StereoHigh : VAEntrypointVLD
VAProfileH264StereoHigh : VAEntrypointEncSlice
VAProfileVC1Simple : VAEntrypointVLD
VAProfileVC1Main : VAEntrypointVLD
VAProfileVC1Advanced : VAEntrypointVLD
VAProfileNone : VAEntrypointVideoProc
VAProfileJPEGBaseline : VAEntrypointVLD
VAProfileJPEGBaseline : VAEntrypointEncPicture
VAProfileVP8Version0_3 : VAEntrypointVLD
VAProfileVP8Version0_3 : VAEntrypointEncSlice
VAProfileHEVCMain : VAEntrypointVLD
VAProfileHEVCMain : VAEntrypointEncSlice

surveil@101:> lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 4
On-line CPU(s) list: 0-3
Thread(s) per core: 2
Core(s) per socket: 2
Socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 78
Model name: Intel(R) Core(TM) i3-6006U CPU @ 2.00GHz
Stepping: 3
CPU MHz: 798.828
CPU max MHz: 2000.0000
CPU min MHz: 400.0000
BogoMIPS: 3984.36
Virtualization: VT-x
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 3072K
NUMA node0 CPU(s): 0-3
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch epb intel_pt tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid mpx rdseed adx smap clflushopt xsaveopt xsavec xgetbv1 dtherm arat pln pts hwp hwp_notify hwp_act_window hwp_epp
surveil@101:
>

surveil@101:~> /sbin/lspci -nn
00:00.0 Host bridge [0600]: Intel Corporation Skylake Host Bridge/DRAM Registers [8086:1904] (rev 08)
00:02.0 VGA compatible controller [0300]: Intel Corporation HD Graphics 520 [8086:1916] (rev 07)
00:08.0 System peripheral [0880]: Intel Corporation Skylake Gaussian Mixture Model [8086:1911]
00:14.0 USB controller [0c03]: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller [8086:9d2f] (rev 21)
00:14.2 Signal processing controller [1180]: Intel Corporation Sunrise Point-LP Thermal subsystem [8086:9d31] (rev 21)
00:17.0 SATA controller [0106]: Intel Corporation Sunrise Point-LP SATA Controller [AHCI mode] [8086:9d03] (rev 21)
00:1c.0 PCI bridge [0604]: Intel Corporation Device [8086:9d12] (rev f1)
00:1c.3 PCI bridge [0604]: Intel Corporation Device [8086:9d13] (rev f1)
00:1f.0 ISA bridge [0601]: Intel Corporation Sunrise Point-LP LPC Controller [8086:9d48] (rev 21)
00:1f.2 Memory controller [0580]: Intel Corporation Sunrise Point-LP PMC [8086:9d21] (rev 21)
00:1f.3 Audio device [0403]: Intel Corporation Sunrise Point-LP HD Audio [8086:9d70] (rev 21)
00:1f.4 SMBus [0c05]: Intel Corporation Sunrise Point-LP SMBus [8086:9d23] (rev 21)
00:1f.7 Non-Essential Instrumentation [1300]: Intel Corporation Device [8086:9d26] (rev 21)
01:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 07)
02:00.0 Network controller [0280]: Broadcom Corporation BCM43224 802.11a/b/g/n [14e4:4353] (rev 01)

surveil@101:~> rpm -qif /etc/issue
Name : openSUSE-release
Version : 20160709
Release : 1.2
Architecture: x86_64
Install Date: 2016年07月13日 星期三 22时57分10秒
Group : System/Fhs
Size : 564203
License : BSD-3-Clause
Signature : RSA/SHA256, 2016年07月10日 星期日 11时22分08秒, Key ID b88b2fd43dbdc284
Source RPM : openSUSE-release-20160709-1.2.src.rpm
Build Date : 2016年07月10日 星期日 11时21分52秒
Build Host : cloud122
Relocations : (not relocatable)
Packager : http://bugs.opensuse.org
Vendor : openSUSE
Summary : openSUSE Tumbleweed
Description :
openSUSE Tumbleweed is the rolling distribution by the openSUSE.org project.
Distribution: openSUSE Tumbleweed

@xuguangxin
Copy link
Contributor

@waiter89 , thanks for report the issue.
to make all user know the status, please provide information using English.
Any error message in stdio?
thanks

@waiter89
Copy link
Author

@xuguanxin,After a long time encoding,the GPU hang,dmesg show below:

[二 7月 30 23:40:42 2019] [drm] stuck on render ring
[二 7月 30 23:40:42 2019] [drm] GPU HANG: ecode 9:0:0x8fd8ffff, in generator [1377], reason: Ring hung, action: reset
[二 7月 30 23:40:42 2019] drm/i915: Resetting chip after gpu hang
[二 7月 30 23:40:44 2019] [drm] RC6 on
[二 7月 30 23:40:48 2019] [drm] stuck on bsd ring
[二 7月 30 23:40:48 2019] [drm] GPU HANG: ecode 9:2:0xa8dfbffd, in generator [1377], reason: Ring hung, action: reset
[二 7月 30 23:40:48 2019] [drm:i915_set_reset_status [i915]] ERROR gpu hanging too fast, banning!
[二 7月 30 23:40:48 2019] drm/i915: Resetting chip after gpu hang
[二 7月 30 23:40:50 2019] [drm] RC6 on

@xuguangxin
Copy link
Contributor

render ring is for graphics and video post processing.
do you seem any issue on screen?
thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants