Project

General

Profile

Transcoding Help

Added by F OM about 8 years ago

Can anyone help who is successfully transcoding?

Nvidia Shield TV 3.2 (android) with the tvheadend / ffmpeg as provided here by [[http://forum.xda-developers.com/shield-tv/general/dvb-c-t-t2-s-pvr-running-tvheadend-t3303424]]

Trying to use trancoding for some streams to a phone
It works but the video / audio stalls every 3-4seconds.
Watching CPU usage with transcoding, the TVH process increases to 40%
Anyone else using transcoding? Could you share your stream profile?

If I don't transcode, the streams play perfectly so network bandwidth not an issue in my opinion.

Mine is:

Also the TVH log shows the following for a transcoded stream

[CODE]
2016-10-14 15:59:38.476 subscription: 01E7: "HTTP" subscribing on channel "BBC NEWS HD", weight: 100, adapter: "SAT>IP DVB-S Tuner #1 (192.168.1.25)", network: "DVB-S Network", mux: "11024H", provider: "BSkyB", service: "BBC NEWS HD", profile="NVIDIA", hostname="x.y.z.x", username="user", client="VLC/2.2.0-rc1 LibVLC/2.2.0-rc1"
2016-10-14 15:59:38.922 transcode: 0010: 1:H264 1920x1080 > H264 426x240 (libx264)
2016-10-14 15:59:38.922 transcode: 0010: 2:DVBSUB > Passthrough
2016-10-14 15:59:38.922 transcode: 0010: 3:TELETEXT > Filtered
2016-10-14 15:59:38.922 transcode: 0010: 4:AC3 > Passthrough
2016-10-14 15:59:38.922 transcode: 0010: 5:TEXTSUB ==> Passthrough
2016-10-14 15:59:39.509 transcode: 0010: missing meta data for H264
2016-10-14 15:59:39.571 transcode: 0010: Using preset faster
2016-10-14 15:59:39.572 libav: using SAR=1/1
2016-10-14 15:59:39.572 libav: using cpu capabilities: ARMv8 NEON
2016-10-14 15:59:39.581 libav: profile High, level 2.1
2016-10-14 15:59:39.581 libav: 264 - core 148 - H.264/MPEG-4 AVC codec - Copyleft 2003-2016 - http://www.videolan.org/x264.html - options: cabac=1 ref=2 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=4 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=6 lookahead_threads=1 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=1 keyint=125 keyint_min=12 scenecut=40 intra_refresh=0 rc_lookahead=20 rc=abr mbtree=1 bitrate=1000 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=1250 vbv_bufsize=3750 nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00
2016-10-14 15:59:39.591 libav: Increasing reorder buffer to 1
2016-10-14 15:59:39.630 libav: Increasing reorder buffer to 2
2016-10-14 15:59:39.990 libav: Increasing reorder buffer to 3
2016-10-14 15:59:41.662 libav: forced frame type (5) at 4 was changed to frame type (3)
2016-10-14 15:59:42.172 libav: forced frame type (5) at 11 was changed to frame type (3)
2016-10-14 15:59:42.780 libav: forced frame type (5) at 19 was changed to frame type (3)
2016-10-14 15:59:43.387 libav: forced frame type (5) at 27 was changed to frame type (3)
2016-10-14 15:59:43.671 libav: forced frame type (5) at 30 was changed to frame type (3)
..................
2016-10-14 16:00:10.532 libav: forced frame type (5) at 405 was changed to frame type (3)
2016-10-14 16:00:10.841 libav: forced frame type (5) at 408 was changed to frame type (3)
2016-10-14 16:00:11.176 libav: forced frame type (5) at 413 was changed to frame type (3)
2016-10-14 16:00:12.109 libav: forced frame type (5) at 421 was changed to frame type (3)
2016-10-14 16:00:12.190 subscription: 01E7: "HTTP" unsubscribing from "BBC NEWS HD", hostname="x.y.z.w", username="user", client="VLC/2.2.0-rc1 LibVLC/2.2.0-rc1"
2016-10-14 16:00:12.195 libav: forced frame type (5) at 429 was changed to frame type (3)
2016-10-14 16:00:12.196 libav: forced frame type (5) at 432 was changed to frame type (3)
2016-10-14 16:00:12.197 libav: forced frame type (5) at 439 was changed to frame type (3)
2016-10-14 16:00:12.210 libav: frame I:19 Avg QP:18.53 size: 20765
2016-10-14 16:00:12.210 libav: frame P:108 Avg QP:21.67 size: 9213
2016-10-14 16:00:12.210 libav: frame B:284 Avg QP:25.41 size: 2434
2016-10-14 16:00:12.210 libav: consecutive B-frames: 5.1% 4.3% 9.4% 81.2%
2016-10-14 16:00:12.210 libav: mb I I16..4: 5.5% 7.1% 87.4%
2016-10-14 16:00:12.210 libav: mb P I16..4: 3.3% 5.6% 21.7% P16..4: 15.4% 23.4% 24.7% 0.0% 0.0% skip: 5.9%
2016-10-14 16:00:12.210 libav: mb B I16..4: 0.5% 1.0% 1.2% B16..8: 30.0% 21.8% 5.7% direct:12.0% skip:27.7% L0:30.7% L1:33.1% BI:36.2%
2016-10-14 16:00:12.210 libav: 8x8 transform intra:17.2% inter:28.1%
2016-10-14 16:00:12.210 libav: coded y,uvDC,uvAC intra: 86.4% 83.0% 60.2% inter: 32.5% 18.4% 3.8%
2016-10-14 16:00:12.210 libav: i16 v,h,dc,p: 57% 23% 15% 5%
2016-10-14 16:00:12.210 libav: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 19% 31% 18% 3% 6% 4% 7% 5% 9%
2016-10-14 16:00:12.210 libav: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 26% 12% 3% 10% 6% 8% 6% 9%
2016-10-14 16:00:12.210 libav: i8c dc,h,v,p: 48% 24% 19% 8%
2016-10-14 16:00:12.210 libav: Weighted P-Frames: Y:9.3% UV:1.9%
2016-10-14 16:00:12.210 libav: ref P L0: 83.7% 16.3%
2016-10-14 16:00:12.210 libav: ref B L0: 94.8% 5.2%
2016-10-14 16:00:12.210 libav: ref B L1: 98.7% 1.3%
2016-10-14 16:00:12.210 libav: kb/s:1012.59[/CODE]

Wonder if there is any way to compile ffmpeg to use the gpu - can't find too much on this for android - maybe someone here has done it