Project

General

Profile

Transcoding branch compile error

Added by Alex A almost 10 years ago

Hello, trying to compile https://github.com/john-tornblom/tvheadend/archive/transcode_v2.zip

./configure --prefix=/var/local/tvhtranscode --disable-v4l --enable-transcoding --disable-libav
Compiler:
  Using C compiler:                    cc
  Build for arch:                      armv6l

Binaries:
  Using PYTHON:                        python

Options:
  cwc:                                 yes
  v4l:                                 no
  linuxdvb:                            yes
  dvbscan:                             yes
  avahi:                               yes
  zlib:                                yes
  bundle:                              no
  libav:                               no
  transcoding:                         yes
  dvbcsa:                              no
  execinfo:                            yes
  getloadavg:                          yes
  py_gzip:                             yes
  bin_bzip2:                           yes
  ssl:                                 yes

Packages:
  openssl:                             1.0.1e
  zlib:                                1.2.7
  avahi-client:                        0.6.31

make
CC              build.linux/src/plumbing/transcode.o
/usr/src/tvheadend-transcode_v2/src/plumbing/transcode.c: In function 'transcoder_stream_create':
/usr/src/tvheadend-transcode_v2/src/plumbing/transcode.c:224:3: error: implicit declaration of function 'avcodec_alloc_context' [-Werror=implicit-function-declaration]
/usr/src/tvheadend-transcode_v2/src/plumbing/transcode.c:224:12: error: assignment makes pointer from integer without a cast [-Werror]
/usr/src/tvheadend-transcode_v2/src/plumbing/transcode.c:228:12: error: assignment makes pointer from integer without a cast [-Werror]
/usr/src/tvheadend-transcode_v2/src/plumbing/transcode.c: In function 'transcoder_stream_audio':
/usr/src/tvheadend-transcode_v2/src/plumbing/transcode.c:315:5: error: implicit declaration of function 'avcodec_open' [-Werror=implicit-function-declaration]
/usr/src/tvheadend-transcode_v2/src/plumbing/transcode.c:355:56: error: 'AV_CH_LAYOUT_STEREO' undeclared (first use in this function)
/usr/src/tvheadend-transcode_v2/src/plumbing/transcode.c:355:56: note: each undeclared identifier is reported only once for each function it appears in
/usr/src/tvheadend-transcode_v2/src/plumbing/transcode.c:355:78: error: 'AV_CH_LAYOUT_MONO' undeclared (first use in this function)
cc1: all warnings being treated as errors
Makefile:233: recipe for target 'build.linux/src/plumbing/transcode.o' failed
make: *** [build.linux/src/plumbing/transcode.o] Error 1

I've read something about changes to the libav API, but no obvious fix.
I got rid of

/usr/src/tvheadend-transcode_v2/src/plumbing/transcode.c:1136:11: error: 'AVCodec' has no member named 'encode'

by changing encode to encode2. I don't know how to fix the other ones. Using default packages for Raspbian Wheezy on RPi.


Replies (3)

RE: Transcoding branch compile error - Added by Prof Yaffle almost 10 years ago

That's basically an old fork of a no-longer-in-development version. You'd be better off trying the master branch - I doubt anyone has the interest to try to fix this version as it's not the stable build and isn't going to be.

https://github.com/tvheadend/tvheadend

RE: Transcoding branch compile error - Added by Alex A almost 10 years ago

Oh I see, good to know.
Is transcoding enabled by default now? I don't see a --configure option for it, however I see the code for it in transcoding.c.

RE: Transcoding branch compile error - Added by Prof Yaffle almost 10 years ago

Yes, although it's dependent on external libraries unless you build it with static ffmpeg. Static ffmpeg should be enabled by default in the unstable PPA builds (assuming you can use a Wheezy armhf .deb?), or else you'll need to work out how to compile locally with --enable-libffmpeg_static and ARM output.

    (1-3/3)