Bug #6254
No audio when transcoding to AAC
0%
Description
Hello,
I am using HTS Tvheadend 4.3.0~pre+202302241122-0~built202302241317~gitd1366a066~ubuntu18.04.1 on several root servers.
Due to limited mobile data volume I want to transcode video and audio to a lower bitrate.
Video transcoding is working fine but currently I can only use "copy" for the audio streams.
No matter which codec profiles I want to use for the audio transcoding to AAC 56k (or any other) no sound seems to be transcoded. The audio stream in VLC is empty, using all kinds of different settings. Tried this for different networks and on different servers.
Switching back to "copy" the original audio is working.
Log:
2023-03-03 12:34:23.223 spawn: Executing "/usr/bin/ffmpeg"
2023-03-03 12:34:25.339 transcode: 0003: 02:H264: > Using profile SD400neu
2023-03-03 12:34:25.339 transcode: 0003: 01:AAC: > Using profile 64k AAC Audio
2023-03-03 12:34:25.551 libav: AVCodecContext: using SAR=1/1
2023-03-03 12:34:25.551 libav: AVCodecContext: using cpu capabilities: MMX2 SSE2Fast LZCNT SSSE3 SSE4.2 AVX
2023-03-03 12:34:25.552 libav: AVCodecContext: profile High, level 3.0
I know this worked before and I have no clue what causes this behaviour. I have no stream filters applied.
Would be thankful for any help on this.
History
Updated by saen acro almost 2 years ago
@ Di Bo
remove limit of zero audio streams.
Install official version.
Updated by Di Bo almost 2 years ago
I installed HTS Tvheadend 4.3-2100~gd1366a066 (latest official build?) now on three different machines as described here [https://tvheadend.org/projects/tvheadend/wiki/AptRepositories]. The problem persists. No audio transcoding / empty audio stream on all networks, devices and channels on all servers. Set the limit of zero audio streams (automatic setting) higher. No change. All codecs should be installed. Is this a mistake on my side or can someone reproduce this?
Updated by Di Bo almost 2 years ago
What do you mean? The "no limit" standard value is zero, but as I said before even setting to a higher number makes no change. There is still no audio on all machines I tested when the sound is supposed to be transcoded.
Updated by Goncalo Luiz over 1 year ago
Did this ever get anywhere? I am getting the same exact problem.
I've tried all combination: only thing that works is "copy" on the audio codec. Everything else results in a no audio output.
I am on 4.3.0~pre+202304020018-0~built202304021716~gita10f7ea44~ubuntu20.04.1
Updated by Goncalo Luiz over 1 year ago
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'http://tvheadend:9981/stream/channel/bf53b2938890d1e764ff395aa19412a2?
ticket=981870640c540c54ca1d22fce443697f25bdff48':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1iso6mp41
encoder : Lavf58.29.100
Duration: 00:00:00.04, start: 0.080017, bitrate: N/A
Stream #0:0[0x1](und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(progressive), 910x512 [SAR 1:1 DAR 455:256], 25.01 fps, 25.01 tbr, 16384 tbn (default)
Metadata:
handler_name : VideoHandler
vendor_id : [0][0][0][0]
Just to add some information: the ffprobe output above shows that the audio stream isn't even being delivered
Updated by saen acro over 1 year ago
Goncalo Luiz wrote:
I am on 4.3.0~pre+202304020018-0~built202304021716~gita10f7ea44~ubuntu20.04.1
not official version ask person who build it.
Updated by Goncalo Luiz over 1 year ago
saen acro wrote:
Goncalo Luiz wrote:
I am on 4.3.0~pre+202304020018-0~built202304021716~gita10f7ea44~ubuntu20.04.1
not official version ask person who build it.
Where can I get the official version for Ubuntu 20.04 ?
Updated by Goncalo Luiz over 1 year ago
Goncalo Luiz wrote:
saen acro wrote:
Goncalo Luiz wrote:
I am on 4.3.0~pre+202304020018-0~built202304021716~gita10f7ea44~ubuntu20.04.1
not official version ask person who build it.
Where can I get the official version for Ubuntu 20.04 ?
I installed this one via
add-apt-repository ppa:mamarley/tvheadend-git
apt-get update
apt-get -yqq install tvheadend
following the instructions here https://tvheadend.org/projects/tvheadend/wiki/AptRepositories linked from https://tvheadend.readthedocs.io/en/latest/install_tvheadend/
Updated by Goncalo Luiz over 1 year ago
I was eventually able to do it (it's hard with https://doozer.io/ being down, and the unstable file descriptors referring to unexacting files), but with version 4.3-2115~ga10f7ea44 this problem is not present.
Updated by Goncalo Luiz over 1 year ago
I spoke to soon.
The problem isn't present when the original audio track is `MPEG2AUDIO` but it still doesn't work if the original track is `AAC`:
Apr 07 19:40:31 run[11605]: 2023-04-07 19:40:31.409 [ INFO] transcode: 0014: 01:H264: ==> Using profile H264 [email protected] Apr 07 19:40:31 run[11605]: 2023-04-07 19:40:31.410 [ INFO] transcode: 0014: 02:MPEG2AUDIO: ==> Using profile Flac Audio Level 4 Apr 07 19:40:31 run[11605]: 2023-04-07 19:40:31.412 [ INFO] transcode: 0014: 03:AC3: ==> Using profile Flac Audio Level 4
this works. Ffprobe shows
Stream #0:0(eng): Video: h264 (High), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 1k tbn (default) Stream #0:1(nar): Audio: flac, 48000 Hz, stereo, s16 (default) Stream #0:2(eng): Audio: flac, 48000 Hz, stereo, s16 (default) Stream #0:3(eng): Subtitle: dvb_subtitle (default)
but this
Apr 07 19:40:42 run[11605]: 2023-04-07 19:40:42.356 [ INFO] transcode: 0015: 01:H264: ==> Using profile H264 [email protected] Apr 07 19:40:42 run[11605]: 2023-04-07 19:40:42.357 [ INFO] transcode: 0015: 02:AAC: ==> Using profile Flac Audio Level 4
Does not. FFprobe shows:
Duration: N/A, start: 1.061000, bitrate: N/A Stream #0:0(eng): Video: h264 (High), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 1k tbn (default)
So the audio track magically disappears.
I believe `4.3-2115~ga10f7ea44` is an official version, so is anyone able to help ?
Thanks
Updated by Goncalo Luiz over 1 year ago
I spoke to soon.
The problem isn't present when the original audio track is `MPEG2AUDIO` but it still doesn't work if the original track is `AAC`:
Apr 07 19:40:31 run[11605]: 2023-04-07 19:40:31.409 [ INFO] transcode: 0014: 01:H264: ==> Using profile H264 [email protected] Apr 07 19:40:31 run[11605]: 2023-04-07 19:40:31.410 [ INFO] transcode: 0014: 02:MPEG2AUDIO: ==> Using profile Flac Audio Level 4 Apr 07 19:40:31 run[11605]: 2023-04-07 19:40:31.412 [ INFO] transcode: 0014: 03:AC3: ==> Using profile Flac Audio Level 4
this works. Ffprobe shows
Stream #0:0(eng): Video: h264 (High), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 1k tbn (default) Stream #0:1(nar): Audio: flac, 48000 Hz, stereo, s16 (default) Stream #0:2(eng): Audio: flac, 48000 Hz, stereo, s16 (default) Stream #0:3(eng): Subtitle: dvb_subtitle (default)
but this
Apr 07 19:40:42 run[11605]: 2023-04-07 19:40:42.356 [ INFO] transcode: 0015: 01:H264: ==> Using profile H264 [email protected] Apr 07 19:40:42 run[11605]: 2023-04-07 19:40:42.357 [ INFO] transcode: 0015: 02:AAC: ==> Using profile Flac Audio Level 4
Does not. FFprobe shows:
Duration: N/A, start: 1.061000, bitrate: N/A Stream #0:0(eng): Video: h264 (High), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 1k tbn (default)
So the audio track magically disappears.
I believe `4.3-2115~ga10f7ea44` is an official version, so is anyone able to help ?
A possible variance is that the example that works has multiple audio sources in english, the one that doesn't work has only one audio track in portuguese. I wonder if this makes a difference.
In both cases, using `COPY` for the audio transcoding, produces working audio outputs.
Thanks
Updated by Di Bo over 1 year ago
Hi.
"Good" to hear I am not the only one with this problem.
As I said before I tried all kinds of inofficial and official recent builds on different hardware and the no audio transcoding problem occurs on all of them.
I know this worked earlier but I cannot remember up to which version.
So if anyone finds out what causes this please share it here.
Updated by Goncalo Luiz over 1 year ago
Di Bo wrote:
Hi.
"Good" to hear I am not the only one with this problem.
As I said before I tried all kinds of inofficial and official recent builds on different hardware and the no audio transcoding problem occurs on all of them.I know this worked earlier but I cannot remember up to which version.
So if anyone finds out what causes this please share it here.
Do you have it for all streams ? I find it intriguing that for some streams it works, for others the audio tracks are simply supressed.
The only pattern I noticed so far was the format of the source audio: if the source audio is MPEG2AUDIO it works well, if it is AAC, the audio track disappears.
Are you seeing the same ?