Transcode OpenSuse 13.1
Added by Martin Preiss almost 11 years ago
Hi,
can't make TVheadend use Transcode on OpenSuse 13.1.
I compiled ffmpeg, x264, faac etc... but still getting this error:
2014-01-28 22:38:26.129 libav: muxrate VBR,
2014-01-28 22:38:26.129 libav: pcr every 2 pkts, sdt every 200, pat/pmt every 40 pkts
2014-01-28 22:38:26.130 webui: Stop streaming /stream/channel/c3db681f5b00dedbfdebb65655b87f94?mux=mpegts&acodec=aac&vcodec=H264&transcode=1&resolution=384, muxer reported errors
2014-01-28 22:38:26.130 subscription: "HTTP" unsubscribing from "Nova"
2014-01-28 22:38:26.135 transcode: Unable to find H264 encoder
2014-01-28 22:38:26.135 transcode: 1:MPEG2VIDEO > Passthrough
2014-01-28 22:38:26.137 transcode: 2:MPEG2AUDIO > AAC
ffmpeg:
ffmpeg version N-60222-g5846d8a Copyright (c) 2000-2014 the FFmpeg developers
built on Jan 28 2014 20:57:31 with gcc 4.8 (SUSE Linux)
configuration: --enable-gpl --enable-version3 --enable-shared --enable-nonfree --enable-postproc --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib
libavutil 52. 63.100 / 52. 63.100
libavcodec 55. 49.101 / 55. 49.101
libavformat 55. 28.100 / 55. 28.100
libavdevice 55. 7.100 / 55. 7.100
libavfilter 4. 1.101 / 4. 1.101
libswscale 2. 5.101 / 2. 5.101
libswresample 0. 17.104 / 0. 17.104
libpostproc 52. 3.100 / 52. 3.100
As well when trying to ./configure again from git, even that libavcodec = 55.49.101 it says fail.
Any ideas?
Replies (6)
RE: Transcode OpenSuse 13.1 - Added by Prof Yaffle almost 11 years ago
Dunno about OpenSuse, but 'buntu needs libavcodec-extra-53 or similar, which includes libx264 as the encoding library. There's also libx264-dev, which I think may include the same.
RE: Transcode OpenSuse 13.1 - Added by Martin Preiss almost 11 years ago
So I managed to solve the problem with h264. U need to use specific ffmpeg release. In my case i used 1.2.5, the latest GIT of ffmpeg doesn't work, because it's libavcodec is higher then 55.0.0. So you need something between 52.49 and 55.0.0.0 as is requested. Unfortunately now the problem switched from h264 to AAC and i'm in same problem just with AAC. Which was working before...
2014-01-29 09:47:25.520 libav: Specified sample format s16p is invalid or not supported
2014-01-29 09:47:25.520 transcode: Unable to open libfdk_aac encoder
version of:
ffmpeg 1.2.5
configuration: --enable-libfdk_aac --enable-nonfree --enable-libx264 --enable-gpl --enable-version3
libavutil 52. 18.100 / 52. 18.100
libavcodec 54. 92.100 / 54. 92.100
libavformat 54. 63.104 / 54. 63.104
libavdevice 54. 3.103 / 54. 3.103
libavfilter 3. 42.103 / 3. 42.103
libswscale 2. 2.100 / 2. 2.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 2.100 / 52. 2.100
fdk-aac 0.1.3
tvheadend latest git 3.9~
RE: Transcode OpenSuse 13.1 - Added by Martin Preiss almost 11 years ago
So I made success that transcoding is working with this versions:
tvheadend: version 3.9.379~g6f1b17e-dirty
libav - 0.8.9
libavcodec 53.35.0
libavutil 51.22.1
libavformat 53.21.1
libswscale 2.1.0
with
faac
all other combinations: ffmpeg 1.2.5, ffmpeg 2.0.3, ffmpeg-latest-git, libav 9.10, fdk_aac
are not working and will not find aac encoder even it was compiled and it is in system (in ffmpeg 1.2.5 and libav 9.10 fdk_aac)
or
it will not find h264 coder even it was compiled and it is working (ffmpeg 2.0.3, ffmpeg-latest)
So it's working. But the quality of sound is horrible, it's breaking, clicky etc...
RE: Transcode OpenSuse 13.1 - Added by Mark Kirkpatrick almost 11 years ago
I built with a new~ish copy of ffmpeg I updated the transcode.c to use ffmpeg audio4 calls and fixed some other depreciated buffer stuff.
Packages:
openssl 1.0.1
zlib 1.2.3.4
libcurl 7.22.0
liburiparser 0.7.5
avahi-client 0.6.30
libavcodec 55.45.103
libavutil 52.58.101
libavformat 55.22.100
libswscale 2.5.101
But --
2014-01-29 10:57:48.787 [ INFO]:mpegts: 177000 - tuning on HDHomeRun ATSC 1015C1F0-0 : ATSC #0
2014-01-29 10:57:48.789 [ INFO]:subscription: "HTTP" subscribing on "WJBK-DT", weight: 100, adapter: "HDHomeRun ATSC 1015C1F0-0 : ATSC #0", network: "Local Channels", mux: "177000", provider: "<N/A>", service: "WJBK-DT"
2014-01-29 10:57:49.022 [ INFO]:transcode: 1:MPEG2VIDEO 1280x720 > H264 1024x576
2014-01-29 10:57:49.023 [ INFO]:transcode: 2:AC3 > AAC
2014-01-29 10:57:49.279 [ ERROR]:transcode: Unable to decode video (-22)
2014-01-29 10:57:50.113 [WARNING]:transcode: Detected framedrop in audio
2014-01-29 10:57:50.113 [ ERROR]:transcode: Unable to decode audio return (-22)
2014-01-29 10:57:50.113 [ ERROR]:transcode: Unable to decode audio len (0)
2014-01-29 10:58:09.024 [WARNING]:webui: Stop streaming /stream/channel/f5645cfdcf5a85fc238329f9d9f13b01?mux=mpegts&acodec=aac&vcodec=H264&transcode=1&resolution=576, timeout waiting for packets
Can anyone decipher what -22 is ? from ffmpeg avcodec_decode_video2 and avcodec_decode_audio4 these are on the decode side not the encode side.
I have plex plug-in calling and it seems so close ....
RE: Transcode OpenSuse 13.1 - Added by Mark Kirkpatrick almost 11 years ago
Sorry, i has firware updated the hdhomerun but not fixed the libraries to match, now I have decodes , and a mux problem that i can persue.
Jan 29 11:45:31 mediacenter tvheadend6183: thread: created thread 140694572218112 [tcp_server_start / 0x4653e0(0x7ff628001d10)]
Jan 29 11:45:31 mediacenter tvheadend6183: service: WJBK-DT si 0x7ff5e00018c0 weight -1 prio -1 error 0
Jan 29 11:45:31 mediacenter tvheadend6183: service: WJBK-DT si 0x7ff5e0001880 weight 0 prio 0 error 0
Jan 29 11:45:31 mediacenter tvheadend6183: subscription: "HTTP" subscribing on "WJBK-DT", weight: 100, adapter: "HDHomeRun ATSC 1015C1F0-0 : ATSC #0", network: "Local Channels", mux: "177000", provider: "<N/A>", service: "WJBK-DT"
Jan 29 11:45:32 mediacenter tvheadend6183: webui: Start streaming /stream/channel/f5645cfdcf5a85fc238329f9d9f13b01?mux=mpegts&acodec=aac&vcodec=H264&transcode=1&resolution=576
Jan 29 11:45:32 mediacenter tvheadend6183: libav: muxrate VBR,
Jan 29 11:45:32 mediacenter tvheadend6183: libav: pcr every 2 pkts, sdt every 200, pat/pmt every 40 pkts
Jan 29 11:45:32 mediacenter tvheadend6183: webui: Stop streaming /stream/channel/f5645cfdcf5a85fc238329f9d9f13b01?mux=mpegts&acodec=aac&vcodec=H264&transcode=1&resolution=576, muxer reported errors
Jan 29 11:45:32 mediacenter tvheadend6183: libav: Failed to write mpegts trailer
Jan 29 11:45:32 mediacenter tvheadend6183: subscription: "HTTP" unsubscribing from "WJBK-DT"
Jan 29 11:47:30 mediacenter tvheadend6183: libav: Failed to write frame
Jan 29 11:47:30 mediacenter tvheadend6183: webui: Stop streaming /stream/channel/f5645cfdcf5a85fc238329f9d9f13b01?mux=mpegts&acodec=aac&vcodec=H264&transcode=1&resolution=576, muxer reported errors
RE: Transcode OpenSuse 13.1 - Added by Mark Kirkpatrick almost 11 years ago
The failed to write frame is were it's at, possibly due to AVFrame type changes that I made for audio4 support, I'll keep looking