Project

General

Profile

Raspberry pi 3b+ raspbian repo build transcoding/webviewer not working properly

Added by macaco madai about 4 years ago

Hi im running the build from the stretch apt repo 4.2.8.
It works ok but when i try to watch in the webviever it freezes.
I think its about the transcoding. Works on some channels some dont.
Is there an easy fix or do i have to build it with custom options, if so is there a guide?
Thank you


Replies (9)

RE: Raspberry pi 3b+ raspbian repo build transcoding/webviewer not working properly - Added by Hiro Protagonist about 4 years ago

Are you trying to watch live or recordings?
What are you transcoding from/to?
Are you trying to watch on the Pi or a different device?

If you are having problems with transcoding live, consider post processing your recordings.

RE: Raspberry pi 3b+ raspbian repo build transcoding/webviewer not working properly - Added by macaco madai about 4 years ago

Hi, im trying to transcode live tv from my pi to the pc using the browser viewer/vlc.
I wanted to do some transcoding on the recordings too in order to save diskspace.
But yeah it starts somehow but freezes then.
Here is the output of the log


Oct 28 07:12:08 tv tvheadend[7141]: mpegts: 522MHz in DVB-T Network - tuning on DiBcom 7000PC #0 : DVB-T #0
Oct 28 07:12:08 tv tvheadend[7141]: subscription: 004E: "HTTP" subscribing on channel "RAS SRF zwei HD", weight: 100, adapter: "DiBcom 7000PC #0 : DVB-T #0", network: "DVB-T Network", mux: "522MHz", provider: "RAS", service: "RAS SRF zwei HD", profile="webtv-h264-aac-matroska", hostname="192.168.2.100", client="VLC/3.0.11 LibVLC/3.0.11"
Oct 28 07:12:08 tv tvheadend[7141]: transcode: 0002: 1:H264 1280x720 > H264 682x384 (libx264)
Oct 28 07:12:08 tv tvheadend[7141]: transcode: 0002: 2:MPEG2AUDIO > AAC (aac)
Oct 28 07:12:09 tv tvheadend7141: transcode: 0002: Using preset faster
Oct 28 07:12:09 tv tvheadend7141: libav: using SAR=1/1
Oct 28 07:12:09 tv tvheadend7141: libav: using cpu capabilities: ARMv6 NEON
Oct 28 07:12:09 tv tvheadend7141: libav: profile High, level 3.1
Oct 28 07:12:09 tv tvheadend7141: libav: 264 - core 155 r2917 0a84d98 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - 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=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=50 keyint_min=5 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
Oct 28 07:12:10 tv tvheadend7141: libav: forced frame type (5) at 1 was changed to frame type (3)
Oct 28 07:12:10 tv tvheadend7141: libav: forced frame type (5) at 2 was changed to frame type (3)
Oct 28 07:12:10 tv tvheadend7141: libav: forced frame type (5) at 3 was changed to frame type (3)
Oct 28 07:12:10 tv tvheadend7141: libav: forced frame type (5) at 4 was changed to frame type (3)
Oct 28 07:12:10 tv tvheadend7141: libav: forced frame type (5) at 5 was changed to frame type (3)
Oct 28 07:12:10 tv tvheadend7141: libav: forced frame type (5) at 7 was changed to frame type (3)
Oct 28 07:12:10 tv tvheadend7141: libav: forced frame type (5) at 8 was changed to frame type (3)
Oct 28 07:12:10 tv tvheadend7141: libav: forced frame type (5) at 9 was changed to frame type (3)

RE: Raspberry pi 3b+ raspbian repo build transcoding/webviewer not working properly - Added by macaco madai about 4 years ago

And here with webtv-h264-aac-mpegts


Oct 28 07:14:07 tv tvheadend[7141]: linuxdvb: DiBcom 7000PC #1 : DVB-T #0 - poll TIMEOUT
Oct 28 07:14:07 tv tvheadend[7141]: transcode: 0003: 1:H264 1280x720 > H264 682x384 (libx264)
Oct 28 07:14:07 tv tvheadend[7141]: transcode: 0003: 2:MPEG2AUDIO > AAC (aac)
Oct 28 07:14:07 tv tvheadend7141: transcode: 0003: Using preset faster
Oct 28 07:14:07 tv tvheadend7141: libav: using SAR=1/1
Oct 28 07:14:07 tv tvheadend7141: libav: using cpu capabilities: ARMv6 NEON
Oct 28 07:14:07 tv tvheadend7141: libav: profile High, level 3.1
Oct 28 07:14:07 tv tvheadend7141: libav: 264 - core 155 r2917 0a84d98 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - 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=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=50 keyint_min=5 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
Oct 28 07:14:07 tv tvheadend7141: libav: forced frame type (5) at 1 was changed to frame type (3)
Oct 28 07:14:07 tv tvheadend7141: libav: Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
Oct 28 07:14:07 tv tvheadend7141: libav: Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
Oct 28 07:14:07 tv tvheadend7141: libav: forced frame type (5) at 2 was changed to frame type (3)
Oct 28 07:14:07 tv tvheadend7141: libav: forced frame type (5) at 3 was changed to frame type (3)
Oct 28 07:14:08 tv tvheadend7141: libav: forced frame type (5) at 4 was changed to frame type (3)
Oct 28 07:14:08 tv tvheadend7141: libav: forced frame type (5) at 5 was changed to frame type (3)
Oct 28 07:14:08 tv tvheadend7141: libav: forced frame type (5) at 7 was changed to frame type (3)
Oct 28 07:14:08 tv tvheadend7141: libav: forced frame type (5) at 8 was changed to frame type (3)
Oct 28 07:14:08 tv tvheadend7141: libav: forced frame type (5) at 9 was changed to frame type (3)
Oct 28 07:14:08 tv tvheadend7141: libav: forced frame type (5) at 10 was changed to frame type (3)
Oct 28 07:14:08 tv tvheadend7141: libav: forced frame type (5) at 11 was changed to frame type (3)
Oct 28 07:14:08 tv tvheadend7141: libav: forced frame type (5) at 13 was changed to frame type (3)
Oct 28 07:14:08 tv tvheadend7141: libav: forced frame type (5) at 14 was changed to frame type (3)
Oct 28 07:14:09 tv tvheadend7141: libav: forced frame type (5) at 15 was changed to frame type (3)
Oct 28 07:14:09 tv tvheadend7141: libav: forced frame type (5) at 16 was changed to frame type (3)
Oct 28 07:14:09 tv tvheadend7141: libav: forced frame type (5) at 17 was changed to frame type (3)
Oct 28 07:14:09 tv tvheadend7141: libav: forced frame type (5) at 19 was changed to frame type (3)
Oct 28 07:14:09 tv tvheadend7141: libav: forced frame type (5) at 20 was changed to frame type (3)
Oct 28 07:14:09 tv tvheadend7141: libav: forced frame type (5) at 21 was changed to frame type (3)
Oct 28 07:14:09 tv tvheadend7141: libav: forced frame type (5) at 22 was changed to frame type (3)
Oct 28 07:14:09 tv tvheadend7141: libav: forced frame type (5) at 23 was changed to frame type (3)
Oct 28 07:14:10 tv tvheadend7141: libav: forced frame type (5) at 25 was changed to frame type (3)
Oct 28 07:14:10 tv tvheadend7141: libav: forced frame type (5) at 26 was changed to frame type (3)
Oct 28 07:14:10 tv tvheadend7141: libav: forced frame type (5) at 27 was changed to frame type (3)
Oct 28 07:14:10 tv tvheadend7141: libav: forced frame type (5) at 29 was changed to frame type (3)

RE: Raspberry pi 3b+ raspbian repo build transcoding/webviewer not working properly - Added by macaco madai about 4 years ago

It starts playback but it freezes continiously. I have the video codeds enabled on the pi would be great to use hardware acceleration.

RE: Raspberry pi 3b+ raspbian repo build transcoding/webviewer not working properly - Added by Hiro Protagonist about 4 years ago

macaco madai wrote:

I wanted to do some transcoding on the recordings too in order to save diskspace.

Post processing can do this for you. Have a look at the scripts in this thread:
https://tvheadend.org/boards/5/topics/32425

If you use postrecord.sh with tvhremux.sh the post-processing is serialised, so you'll only ever be running one at a time,
this will help given the limited RAM on the Pi.

Make sure you have some swap configured - and NOT on the SDcard.

tvhremux.sh assumes you have "Remove all unsafe characters from filename:" and "Replace whitespace in title with '-':" set.
As the name suggests, it is only doing remux, but you can modify the ffmpeg command to do whatever you want.

RE: Raspberry pi 3b+ raspbian repo build transcoding/webviewer not working properly - Added by macaco madai about 4 years ago

I have read a few articles where it says that it runs smooth on kodi.
I think i had it running time ago, but now im running it on raspbian or pi os, however stream transcoding should work just not sure how to enable..

RE: Raspberry pi 3b+ raspbian repo build transcoding/webviewer not working properly - Added by ace golfer almost 4 years ago

From my experience, RPi3B+ is okay as TVH client but not as TVH server. It chokes, whenever handling more than 2 ATSC streams.

    (1-9/9)