Project

General

Profile

How do we test the new Transcoding support?

Added by Martin Ayla over 11 years ago

Hi

I just upgraded to the latest unstable release and would like to try the transcoding support.

I have tried the john-tornblom branch and it works fine with XBMC (and transcodes).

Tried the same with the latest release but it doesn't seem to transcode the stream.

Any ideas?

Should it be working in the master branch already?

Thanks


Replies (43)

RE: How do we test the new Transcoding support? - Added by neil mac about 11 years ago

All SD channels I have tried get the error above, HD work but no sound, which I assume is the aac error.

Any thoughts?

RE: How do we test the new Transcoding support? - Added by Alex . about 11 years ago

neil mac wrote:

@Guido - does my log look like it trying to run the transcoding but then...

webui: Stop streaming /stream/channelid/237?transcode=1&mux=matroska&acodec=AAC&vcodec=H264&scodec=NONE&resolution=384&bandwidth=0&language=, muxer reported errors

Any ideas?

Hi Neil,

Did you test using the android client or using the webinterface?

If you only tried the androidclient you first might want to try using the browser with an URL like the following:
( so without the bandwidth parameter) to see if it works:

http://192.168.0.30:9981/stream/channelid/4?mux=matroska&acodec=MPEG2AUDIO&vcodec=H264&scodec=NONE&transcode=1&resolution=384

RE: How do we test the new Transcoding support? - Added by neil mac about 11 years ago

Hi Alex.

I was using this - http://IP:9981/tv.html

As above - the SD channels errors out, and the HD channels don't have sound.

Thanks.
Neil

RE: How do we test the new Transcoding support? - Added by Alex . about 11 years ago

Ok, I did not know this would automatically use transcoding.

Did you try a URL like the one below?
(i .e. :
http://192.168.0.30:9981/stream/channelid/4?mux=matroska&acodec=MPEG2AUDIO&vcodec=H264&scodec=NONE&transcode=1&resolution=384

)
You can then easily try different codecs ( and I do not know if this is possible using the tv.html address)

RE: How do we test the new Transcoding support? - Added by neil mac about 11 years ago

Seems to work when using the VLC client, just not the tv.html client.

Cheers,
Neil

RE: How do we test the new Transcoding support? - Added by Alex . about 11 years ago

Ok, wel , that is something. It means transcoding works, and you should be able to change resolution etc.

I also cant seem to be able to use the tv.html client ( didnt know it existed actually).

Alex.

RE: How do we test the new Transcoding support? - Added by Geoff Geoff about 11 years ago

Guido h wrote:

i can say with ubuntu 12, it works out of the box. just with the packages https://github.com/john-tornblom/tvheadend.

first:
make a backup from your .tvheadend config dir. (copy)

if u install from some repo, u maybe dont have the testing version with transcoding support.

second:

else git clone to another folder. like
[...]

change in src/plumbing/transcode.c -> enable_transcode to 1 and
[...]

run tvheadend with your config backup
run
[...]
to your backup path

u can try it with http://IP:9961/tv.html

Hi, done all the above. - thanks so far.

However I understand what I've done. I've changed the file done /.configure and make with /root/tvheadend_transcode. the config is in root/tvheadend_transcode/backup/tvheadend with the various directories - accesscontrol autorec capmt channels channeltags config cwc dvbadapters dvbmuxes dvbsatconf dvbtransports dvr epgdb.v2 epggrab imagecache superuser timeshift tvhtime

How do I run tvheadend to use this version /root/tvheadend_transcode and my config?

Also the other tvheadedend is still running as I can still can access http://192.168.10.38:9981/extjs.html and has all my config in.

Sorry if all sounds basic and is probably my linux knowledge lacking rather than tvheadend - any help would be greatly received.

RE: How do we test the new Transcoding support? - Added by Alex . about 11 years ago

Hi Geoff,

This all depends a bit on your system (what linux version are you using?) and the way you installed the original tvheadend version ( using some package manager like apt, or from source?), but usually there should be a file called tvheadend in /etc/init.d:

You can stop this version by running

/etc/init.d/tvheadend stop

(and restart using
/etc/init.d/tvheadend start
later)

Now, you can run the binary file in /root/tvheadend_transcode as the user that usually runs tvheadend. In that way you will use your regular settings etc.

However, it is not advisable to run tvheadend as root;
Your regular tvheadend version will also probably not run as root, but as some other user, for example a user called 'tvheadend'(, but again, this depends on your system.). Use the same user to run your new tvheadend version.

Alex.

RE: How do we test the new Transcoding support? - Added by Geoff Geoff about 11 years ago

thanks - /home/geoff/tvheadend_transcode/build.linux/tvheadend. (transcoding version) How do I get it to look at my config files from original version? - I think my original config files with all channels are in /home/hts/.hts/tvheadend$ (i think)

Thank you again for helping with this.

RE: How do we test the new Transcoding support? - Added by Alex . about 11 years ago

I guess usually TVheadend is run as a user 'hts'.

So by now running as user 'hts' the same configfile and .hts directory will be used.

NB: Also, you can copy the initfile in /etc/init.d do 'tvheadendtranscode' , and then edit the file to point to the new version of tvheadend.
You can then stop '/etc/init.d/tvheadend', and start '/etc/init.d/tvheadendtranscode'
(using

/etc/init.d/tvheadend stop
/etc/init.d/tvheadendtranscode start

)

RE: How do we test the new Transcoding support? - Added by Geoff Geoff about 11 years ago

Hi Alex, many thanks for your help I feel I'm getting somewhere and understand the program. Everything works ok thanks however when access a channel with DD5.1 it comes up with

Sep 01 22:27:47.556 [ ERROR] libav: Unable to set encoding parameters
Sep 01 22:27:47.556 [ ERROR] transcode: Unable to open libvo_aacenc encoder

any suggestions on this?

RE: How do we test the new Transcoding support? - Added by Geoff Geoff about 11 years ago

apart from the above question... I have to say the transcoding is working perfectly, using the latest TVHclient app. trancoding automatically on the iphone and ipad is brilliant. thanks guys for all your help.

RE: How do we test the new Transcoding support? - Added by Barry Reid about 11 years ago

Hi Guys

I have compiled from source and enabled transcoding in the web interface, but when I try play it in VLC I get the following :

Sep 04 09:25:34.171 [ INFO] transcode: 1:MPEG2VIDEO 720x576 > H264 480x384
Sep 04 09:25:34.171 [ INFO] transcode: 2:MPEG2AUDIO > Passthrough
Sep 04 09:25:34.172 [ INFO] subscription: "HTTP" subscribing on "7 Digital", weight: 100, adapter: "TurboSight TBS 62x0 DVBT/T2 frontend 0", network: "Seven Network", mux: "Seven Network: 177,500 kHz", provider: "Seven Network", service: "7 Digital", quality: 100
Sep 04 09:25:34.858 [ NOTICE] libav: using SAR=64/45
Sep 04 09:25:34.865 [ NOTICE] libav: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.1 Cache64
Sep 04 09:25:34.868 [ NOTICE] libav: profile Constrained Baseline, level 2.1
Sep 04 09:25:34.868 [ NOTICE] libav: 264 - core 120 r2151 a3f4407 - H.264/MPEG-4 AVC codec - Copyleft 2003-2011 - http://www.videolan.org/x264.html - options: cabac=0 ref=3 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=25 keyint_min=2 scenecut=40 intra_refresh=0 rc_lookahead=25 rc=abr mbtree=1 bitrate=368 ratetol=1.0 qcomp=0.60 qpmin=10 qpmax=30 qpstep=4 vbv_maxrate=3670 vbv_bufsize=1835 nal_hrd=none ip_ratio=1.41 aq=1:1.00
Sep 04 09:25:42.291 [ ERROR] mkv: Live stream: Write failed -- Broken pipe
Sep 04 09:25:42.292 [WARNING] webui: Stop streaming /stream/channelid/1?mux=matroska&acodec=MPEG2AUDIO&vcodec=H264&scodec=NONE&transcode=1&resolution=384, muxer reported errors
Sep 04 09:25:42.292 [ INFO] subscription: "HTTP" unsubscribing from "7 Digital"
Sep 04 09:25:42.306 [ NOTICE] libav: frame I:7 Avg QP:23.14 size: 27808
Sep 04 09:25:42.306 [ NOTICE] libav: frame P:144 Avg QP:24.57 size: 2977
Sep 04 09:25:42.306 [ NOTICE] libav: mb I I16..4: 16.9% 0.0% 83.1%
Sep 04 09:25:42.306 [ NOTICE] libav: mb P I16..4: 0.2% 0.0% 0.4% P16..4: 26.1% 8.4% 4.0% 0.0% 0.0% skip:60.9%
Sep 04 09:25:42.306 [ NOTICE] libav: final ratefactor: -30.69
Sep 04 09:25:42.306 [ NOTICE] libav: coded y,uvDC,uvAC intra: 77.6% 86.8% 64.5% inter: 14.6% 17.2% 7.6%
Sep 04 09:25:42.306 [ NOTICE] libav: i16 v,h,dc,p: 60% 12% 6% 21%
Sep 04 09:25:42.306 [ NOTICE] libav: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 37% 17% 8% 5% 6% 10% 5% 7% 4%
Sep 04 09:25:42.306 [ NOTICE] libav: i8c dc,h,v,p: 37% 25% 31% 7%
Sep 04 09:25:42.306 [ NOTICE] libav: ref P L0: 85.5% 8.9% 5.6%
Sep 04 09:25:42.306 [ NOTICE] libav: kb/s:0.23

And the stream never starts. If I use that same URL in the browser it starts to download the file but shows no errors till I cancel the download.

Any ideas what I am doing wrong?

RE: How do we test the new Transcoding support? - Added by Barry Reid about 11 years ago

I found out the problem.

For some reason my VLC on Ubuntu 13.04 will NOT play the stream. Any other VLC I try plays the stream just fine!

Barry

RE: How do we test the new Transcoding support? - Added by markus karlsson almost 11 years ago

having some truoble with the transcoding.

it transcodes the videostream fine to h264 , but i just won't transcode too aac. getting this output.

dec 23 09:13:30.111 [ NOTICE] libav: using SAR=64/45
dec 23 09:13:30.130 [ NOTICE] libav: using cpu capabilities: MMX2 SSE2Slow SlowCTZ
dec 23 09:13:30.137 [ NOTICE] libav: profile Constrained Baseline, level 2.1
dec 23 09:13:30.137 [ NOTICE] libav: 264 - core 140 r2 1ca7bb9 - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=0 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=-2 threads=2 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=25 keyint_min=2 scenecut=40 intra_refresh=0 rc_lookahead=25 rc=abr mbtree=1 bitrate=207 ratetol=1.0 qcomp=0.60 qpmin=10 qpmax=30 qpstep=4 vbv_maxrate=3670 vbv_bufsize=1835 nal_hrd=none filler=0 ip_ratio=1.41 aq=1:1.00
dec 23 09:13:30.140 [WARNING] libav: Warning: data is not aligned! This can lead to a speedloss
dec 23 09:13:30.365 [ ERROR] libav: Specified sample format s16p is invalid or not supported
dec 23 09:13:30.365 [ ERROR] transcode: Unable to open libfdk_aac encoder
dec 23 09:13:42.371 [ ERROR] mkv: Live stream: Write failed -- Brutet rör
dec 23 09:13:42.373 [WARNING] webui: Stop streaming /stream/channelid/13?ticket=0F12C77C17ACF5B2954257828701CFEC12758B9D&mux=matroska&transcode=1&resolution=288&acodec=AAC&vcodec=H264&scodec=NONE, muxer reported errors
dec 23 09:13:42.411 [ INFO] subscription: "HTTP" unsubscribing from "TV4"
dec 23 09:13:42.449 [ NOTICE] libav: frame I:12 Avg QP:21.68 size: 11701
dec 23 09:13:42.449 [ NOTICE] libav: frame P:267 Avg QP:23.43 size: 934
dec 23 09:13:42.449 [ NOTICE] libav: mb I I16..4: 41.5% 0.0% 58.5%
dec 23 09:13:42.449 [ NOTICE] libav: mb P I16..4: 0.8% 0.0% 0.8% P16..4: 20.5% 4.1% 1.7% 0.0% 0.0% skip:72.0%
dec 23 09:13:42.449 [ NOTICE] libav: final ratefactor: -34.36
dec 23 09:13:42.449 [ NOTICE] libav: coded y,uvDC,uvAC intra: 56.0% 15.5% 12.0% inter: 8.4% 2.3% 0.5%
dec 23 09:13:42.449 [ NOTICE] libav: i16 v,h,dc,p: 8% 73% 3% 16%
dec 23 09:13:42.449 [ NOTICE] libav: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 22% 23% 18% 6% 6% 6% 5% 8% 6%
dec 23 09:13:42.449 [ NOTICE] libav: i8c dc,h,v,p: 86% 10% 4% 1%
dec 23 09:13:42.450 [ NOTICE] libav: ref P L0: 79.1% 9.6% 11.3%

that is when using tvhguide on android.

i have tried libfdk_aac with ffmpeg and it works fine. it is just that tvheadend fails to find it it seems.
is it possible to recstrict tvheadend from using aac so that is uses something else like vorbis .
is it just me having this issue ? or is anyone elses the same problem and solved it.

thanks for your replys

RE: How do we test the new Transcoding support? - Added by Frans Hettinga almost 11 years ago

I have the same issues! I build ffmpeg my self with libfdk_aac. If i use a .WAV to transcode it to AAC it's working nice. But i get this error in tvheadend:

2014-01-17 20:32:34.063 transcode: 1:MPEG2VIDEO 720x576 > H264 480x384
2014-01-17 20:32:34.064 transcode: 2:MPEG2AUDIO > AAC
2014-01-17 20:32:34.064 subscription: "HTTP" subscribing on "RTL4", weight: 100, adapter: "STV0367 DVB-C DVB-T : DVB-C #1", network: "CAI Harderwijk", mux: "530000", provider: "CAIW Media", service: "RTL4"
2014-01-17 20:32:34.340 libav: using SAR=64/45
2014-01-17 20:32:34.345 libav: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
2014-01-17 20:32:34.347 libav: profile Constrained Baseline, level 2.1
2014-01-17 20:32:34.348 libav: 264 - core 140 r2 1ca7bb9 - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=0 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=-2 threads=4 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=25 keyint_min=2 scenecut=40 intra_refresh=0 rc_lookahead=25 rc=abr mbtree=1 bitrate=368 ratetol=1.0 qcomp=0.60 qpmin=10 qpmax=30 qpstep=4 vbv_maxrate=3670 vbv_bufsize=1835 nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00
2014-01-17 20:32:34.366 libav: Specified sample format s16p is invalid or not supported
2014-01-17 20:32:34.366 transcode: Unable to open libfdk_aac encoder

I'm using Debian Jessie!

RE: How do we test the new Transcoding support? - Added by Piotr Kuchciak over 10 years ago

I have a problem. When i want to watch tv by webGUI i see image but i have not an audio. In sys log i have this info:
2014-04-09 17:04:06.530 mpegts: 586000 - tuning on Afatech AF9033 (DVB-T) : DVB-T #1
2014-04-09 17:04:06.557 subscription: "HTTP" subscribing on "4fun.TV", weight: 100, adapter: "Afatech AF9033 (DVB-T) : DVB-T #1", network: "DVB-T_Cabel", mux: "586000", provider: "nc+", service: "4fun.TV"
2014-04-09 17:04:07.069 transcode: 1:MPEG2VIDEO 0x0 > H264 -32768x0
2014-04-09 17:04:07.071 transcode: 2:MPEG2AUDIO > AAC
2014-04-09 17:04:07.998 transcode: 1:MPEG2VIDEO 704x576 > H264 352x288
2014-04-09 17:04:08.000 transcode: 2:MPEG2AUDIO > AAC
2014-04-09 17:04:08.145 libav: using SAR=16/11
2014-04-09 17:04:08.157 libav: using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64
2014-04-09 17:04:08.168 libav: profile Constrained Baseline, level 2.1
2014-04-09 17:04:08.168 libav: 264 - core 142 r2389 956c8d8 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=0 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=-2 threads=4 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=25 keyint_min=2 scenecut=40 intra_refresh=0 rc_lookahead=25 rc=abr mbtree=1 bitrate=202 ratetol=1.0 qcomp=0.60 qpmin=10 qpmax=30 qpstep=4 vbv_maxrate=3670 vbv_bufsize=1835 nal_hrd=none filler=0 ip_ratio=1.41 aq=1:1.00
2014-04-09 17:04:08.534 libav: Specified sample_fmt is not supported.
2014-04-09 17:04:08.534 transcode: Unable to open libvo_aacenc encoder

I installed apt-get install libvo-aacenc-dev in version:
root@Synology_DS713:/# apt-cache policy libvo-aacenc-dev
libvo-aacenc-dev:
Installed: 0.1.3-1
Candidate: 0.1.3-1
Version table: *** 0.1.3-1 0
50 http://ftp.fr.debian.org/debian/ sid/main i386 Packages
100 /var/lib/dpkg/status
0.1.2-1 0
990 http://ftp.fr.debian.org/debian/ wheezy/main i386 Packages
990 http://ftp.at.debian.org/debian/ wheezy/main i386 Packages
root@Synology_DS713:/#

Still no sound. I use it on debian chroot on my synology. Please help me.
My version TVHeadend is 3.9.509

RE: How do we test the new Transcoding support? - Added by Wolfgang Ferl over 10 years ago

Geoff Geoff wrote:

Hi Alex, many thanks for your help I feel I'm getting somewhere and understand the program. Everything works ok thanks however when access a channel with DD5.1 it comes up with

Sep 01 22:27:47.556 [ ERROR] libav: Unable to set encoding parameters
Sep 01 22:27:47.556 [ ERROR] transcode: Unable to open libvo_aacenc encoder

any suggestions on this?

Did anybody got this Problem solved? Here transcoding works fine except broadcasts with DD 5.1.

(26-43/43)