Feature #3596
openimproved Transcoding (e.g. Raspberry)
0%
Description
I'm running TVheadend successfull on my PI2 and im quiet happy with the home-network Streaming. Now i wanna go a step further and like to stream my channels online - ofc i need a transcoding bc of ultraSlow DSL upload speed.
And i wish we could customize the transcoding (like setting custom encoders and arguments and so on)
The problem right now is that the builtIn de/encoder dont have hardware suport....rasperry cpu cant even handle SD.
There ARE transcoders like gstreamer or omxtx that using RPI hardware coders. U can even transcode HD material smoothly with them.
Im just not good in programming and i would need like 10years to understand and implement that feature in TVH. But i guess many people would be happy about that.
Updated by Jaroslav Kysela almost 10 years ago
We use ffmpeg for transcoding, so it would be better to ask there....
Updated by Richi Kane almost 10 years ago
thanks for your answer.
btw. VP8 is the only codec working but with 5-10sec lags
is ffmpeg not supported at raspberry? in stream profile as type i can choose transcode/av-lib (no word about ffmpeg), and there is no setting working for me. e.g.:
videocodec: libx264
outputs:
2016-02-26 21:24:21.957 transcode: 0001: 1:MPEG2VIDEO 720x576 ==> H264 720x576 (libx264) 2016-02-26 21:24:21.957 transcode: 0001: 2:MPEG2AUDIO ==> VORBIS (libvorbis) 2016-02-26 21:24:22.421 libav: Invalid frame dimensions 0x0. 2016-02-26 21:24:22.627 libav: Invalid frame dimensions 0x0. 2016-02-26 21:24:22.628 transcode: 0001: Detected framedrop in audio 2016-02-26 21:24:22.706 transcode: 0001: Using preset fast 2016-02-26 21:24:22.715 libav: using SAR=64/45 2016-02-26 21:24:22.731 libav: using cpu capabilities: ARMv6 NEON 2016-02-26 21:24:22.794 libav: profile High, level 3.0 2016-02-26 21:24:22.794 libav: 264 - core 148 - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - http://www.videolan.org/x264.html - options: cabac=1 ref=2 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=6 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=4 lookahead_threads=4 sliced_threads=1 slices=4 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=1 keyint=25 keyint_min=2 scenecut=40 intra_refresh=0 rc=crf mbtree=0 crf=15.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 2016-02-26 21:24:23.070 libav: forced frame type (5) at 1 was changed to frame type (3) 2016-02-26 21:24:23.302 libav: forced frame type (5) at 2 was changed to frame type (3) 2016-02-26 21:24:23.970 libav: forced frame type (5) at 4 was changed to frame type (3) 2016-02-26 21:24:24.178 libav: forced frame type (5) at 5 was changed to frame type (3) 2016-02-26 21:24:24.600 libav: forced frame type (5) at 7 was changed to frame type (3) 2016-02-26 21:24:24.835 libav: forced frame type (5) at 8 was changed to frame type (3) 2016-02-26 21:24:25.236 libav: forced frame type (5) at 10 was changed to frame type (3) 2016-02-26 21:24:25.545 libav: forced frame type (5) at 11 was changed to frame type (3) 2016-02-26 21:24:25.992 webui: Stop streaming /stream/channel/4aadbd2eff3a8f92e953ed1e6355f43d?profile=TEST-tanscode-SD, muxer reported errors 2016-02-26 21:24:26.053 libav: forced frame type (5) at 13 was changed to frame type (3) 2016-02-26 21:24:26.290 libav: forced frame type (5) at 14 was changed to frame type (3) 2016-02-26 21:24:26.801 libav: forced frame type (5) at 16 was changed to frame type (3) 2016-02-26 21:24:26.996 libav: forced frame type (5) at 17 was changed to frame type (3) 2016-02-26 21:24:27.494 libav: forced frame type (5) at 19 was changed to frame type (3) 2016-02-26 21:24:27.713 libav: forced frame type (5) at 20 was changed to frame type (3) 2016-02-26 21:24:28.155 libav: forced frame type (5) at 22 was changed to frame type (3) 2016-02-26 21:24:28.343 libav: forced frame type (5) at 23 was changed to frame type (3) 2016-02-26 21:24:28.697 subscription: 012E: "HTTP" unsubscribing from "1-2-3.tv" hostname="192.168.178.22", client="Mozilla/5.0 (Windows NT 6.1; WOW64; rv:43.0) Gecko/20100101 Firefox/43.0" 2016-02-26 21:24:28.701 libav: 37 frames left in the queue on closing 2016-02-26 21:24:28.703 libav: frame I:3 Avg QP:11.26 size: 59949 2016-02-26 21:24:28.703 libav: frame P:22 Avg QP:14.24 size: 18279 2016-02-26 21:24:28.703 libav: mb I I16..4: 12.4% 63.0% 24.7% 2016-02-26 21:24:28.703 libav: mb P I16..4: 2.5% 13.2% 2.7% P16..4: 34.4% 16.4% 12.7% 0.0% 0.0% skip:18.0% 2016-02-26 21:24:28.703 libav: 8x8 transform intra:67.9% inter:59.5% 2016-02-26 21:24:28.703 libav: coded y,uvDC,uvAC intra: 84.7% 89.5% 77.0% inter: 41.2% 45.9% 22.7% 2016-02-26 21:24:28.703 libav: i16 v,h,dc,p: 14% 38% 9% 39% 2016-02-26 21:24:28.703 libav: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 22% 30% 4% 3% 4% 3% 6% 5% 2016-02-26 21:24:28.703 libav: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 27% 25% 17% 5% 5% 5% 4% 7% 4% 2016-02-26 21:24:28.703 libav: i8c dc,h,v,p: 46% 21% 26% 8% 2016-02-26 21:24:28.703 libav: Weighted P-Frames: Y:0.0% UV:0.0% 2016-02-26 21:24:28.703 libav: ref P L0: 84.5% 15.5% 2016-02-26 21:24:28.703 libav: kb/s:4655.80
so i guess i did something wrong at install? but i couldnt remember an option to install ffmpeg, or is there a trick do get ffmpeg included after i installed tvheadend? or just no support for PI?