The encoder 'aac' is experimental

Need help? Post your questions here.

Moderator: moderators

The encoder 'aac' is experimental

Postby Paegus » Fri Aug 11, 2017 9:24 am

Problem Description:
Code: Select all
When trying to stream videos I receive an error about the aac encoder being experimental despite ffmpeg version no longer requiring that... according to the internets.

Troubleshooting Steps:
Code: Select all
Added -strict 2 to the transcoder lines, but the log lines do not reflect this even after a restart.
Replacing /home/subsonic/transcoders/ffmpeg with a script:

    /usr/bin/ffmpeg -strict 2 "${@}"

still comes up with the message.
It's almost like it's running it's own script somewhere else and the transcoding lines are completely ignored.

Playback Application and version:
Code: Select all
Version 60.0.3112.90 (Official Build) (64-bit)

Subsonic Version:
Code: Select all
6.1.1 (build fc853b) – May 31, 2017

Server Version:
Code: Select all
jetty-6.1.x, java 1.7.0_95, HSQLDB, Linux (230.2 MB / 334.5 MB)

Hardware Platform:
Code: Select all
Ubuntu 16.04.2 LTS

Java Memory Limit:
Code: Select all
1024

Output from ffmpeg -i:
Code: Select all
ffmpeg -i /storage/Videos/squash.avi
ffmpeg version 2.8.11-0ubuntu0.16.04.1 Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609
  configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv
  libavutil      54. 31.100 / 54. 31.100
  libavcodec     56. 60.100 / 56. 60.100
  libavformat    56. 40.101 / 56. 40.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 40.101 /  5. 40.101
  libavresample   2.  1.  0 /  2.  1.  0
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.101 /  1.  2.101
  libpostproc    53.  3.100 / 53.  3.100
Input #0, avi, from '/storage/Videos/squash.avi':
  Duration: 01:38:02.96, start: 0.000000, bitrate: 2018 kb/s
    Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (XVID / 0x44495658), yuv420p, 720x304 [SAR 1:1 DAR 45:19], 1625 kb/s, 23.98 fps, 23.98 tbr, 23.98 tbn, 23.98 tbc
    Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, 5.1(side), fltp, 384 kb/s
At least one output file must be specified

Last ten log file lines:
Code: Select all
[2017-08-11 21:03:57,038] WARN FFmpegHlsSession-1162777338 - Timed out for segment 0
[2017-08-11 21:03:59,224] INFO FFmpegHlsSession-1162777338 - Starting ffmpeg for hls: /home/subsonic/transcode/ffmpeg -i /storage/Videos/squash.avi -s 416x176 -c:v libx264 -c:a aac -b:v 145k -maxrate 200k -b:a 64k -bufsize 256k -map 0:0 -map 0:1 -ac 2 -preset superfast -v error -force_key_frames expr:gte(t,n_forced*10) -start_number 0 -hls_time 10 -hls_list_size 0 -hls_segment_filename /home/subsonic/hls/1162777338/%d.ts /home/subsonic/hls/1162777338/out.m3u8
[2017-08-11 21:03:59,731] INFO InputStreamReaderThread - (FFmpegHlsSession) [aac @ 0x24eeac0] The encoder 'aac' is experimental but experimental codecs are not enabled, add '-strict -2' if you want to use it.
[2017-08-11 21:04:01,226] WARN FFmpegHlsSession-1162777338 - Timed out for segment 0
[2017-08-11 21:04:05,432] INFO FFmpegHlsSession-1162777338 - Starting ffmpeg for hls: /home/subsonic/transcode/ffmpeg -i /storage/Videos/squash.avi -s 416x176 -c:v libx264 -c:a aac -b:v 145k -maxrate 200k -b:a 64k -bufsize 256k -map 0:0 -map 0:1 -ac 2 -preset superfast -v error -force_key_frames expr:gte(t,n_forced*10) -start_number 0 -hls_time 10 -hls_list_size 0 -hls_segment_filename /home/subsonic/hls/1162777338/%d.ts /home/subsonic/hls/1162777338/out.m3u8
[2017-08-11 21:04:05,967] INFO InputStreamReaderThread - (FFmpegHlsSession) [aac @ 0x1b5fac0] The encoder 'aac' is experimental but experimental codecs are not enabled, add '-strict -2' if you want to use it.
[2017-08-11 21:04:07,437] WARN FFmpegHlsSession-1162777338 - Timed out for segment 0
[2017-08-11 21:06:05,431] INFO FFmpegHlsSession-1162777338 - Killing ffmpeg
[2017-08-11 21:08:05,011] INFO PodcastService - Starting scheduled Podcast refresh.
[2017-08-11 21:08:05,013] INFO PodcastService - Completed scheduled Podcast refresh.
Paegus
 
Posts: 3
Joined: Fri Aug 11, 2017 9:09 am

Re: The encoder 'aac' is experimental

Postby hmarionx » Fri Aug 11, 2017 12:18 pm

Have the same problem a couple of weeks ago.
The problem is the avconv build in the Ubuntu package.
Try remove the ffmpeg symlink in /var/subsonic/transcode and download a binary with static build here https://johnvansickle.com/ffmpeg/ (depend of your arch)
Extract the binary ffmpeg and put it in the folder /var/subsonic/transcode

Hope this helps !
hmarionx
 
Posts: 3
Joined: Thu Jul 27, 2017 11:17 am

Re: The encoder 'aac' is experimental

Postby Paegus » Fri Aug 11, 2017 10:09 pm

Awesome, that worked perfectly.

Thanks for the help.
Paegus
 
Posts: 3
Joined: Fri Aug 11, 2017 9:09 am


Return to Help

Who is online

Users browsing this forum: No registered users and 22 guests