FAQ  •  Register  •  Login

Kodi / Sony BDP not playing AAC 5.1-files. FFmpeg problem?

<<

Janiporo

Streaming enthusiast

Posts: 25

Joined: Mon Mar 19, 2012 2:05 pm

Post Sat Jun 18, 2016 9:30 pm

Kodi / Sony BDP not playing AAC 5.1-files. FFmpeg problem?

I already made this (very complicated) post, but no answers, so I deleted it and made this one.

System:
-Ubuntu 14.04 with Kodi (has Serviio server on it) with compiled FFmpeg.
-Mint 17.1 with Kodi
-Sony BDP-S4100
-Sony BDP-S4500

Trying to:
-Convert AAC 5.1 --> AC3 5.1 on Serviio

What is happening on AAC files:
-Will not play at all

What is happening on all other formats:
-Everything plays just fine on every hardware / software.


So I am testing all above mentioned players and need to get Serviio to transcode AAC 5.1 to AC3 5.1. I am using Sony BDP-Sx100 -profile on everyone.

I added the proper lines to this profile in /config/profiles.xml

  Code:
<!-- transcode all surround audio types to ac3 -->
 <Video targetContainer="mpegts" targetACodec="ac3" aBitrate="320" >
 <Matches container="*" vCodec="h264" aCodec="aac" />
 </Video>


And it looks like this --> http://kuvapilvi.fi/k/ywMP.jpg

Neither Sony player or Kodi plays anything with AAC audio now, but DTS and AC3 works fine (for example), If I remove that transcode-section from the profiles.xml, everything works on every hardware / software, but now I have only stereo audio on Blu-ray players. (Fault is either the player or the amplifier)

Kodi does not play AAC-files through serviio on Sx100-profile, but on the server Kodi plays same files directly from the hard drive just fine.

If I understand correctly Kodi uses FFmpeg to play these files while playing directly from that machines hard drive. Am I correct? So if that works, why the transcoding does not?

Also tried installing FFmpeg like the following:

  Code:
sudo apt-add-repository ppa:mc3man/trusty-media
sudo apt-get update
sudo apt-get install ffmpeg gstreamer0.10-ffmpeg


Using the prementioned mc3man-install, AAC video plays in all other players transcoded, but not the newest S4500. Processor on my server machine just goes to 100% and player freezes, have to reset player by pulling the plug. That is the reason I am trying to use compiled version, If I can overcome that problem with S4500.

I compiled FFmpeg with three different ways, including Serviio own guide, and FFmpeg own guide, and then combined the two and some other, and all installations have this same problem.

"ffmpeg -version" gives out following:
  Code:
ffmpeg version N-80366-gb51d5c9 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.3)
configuration: --prefix=/home/xbmc/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/home/xbmc/ffmpeg_build/include --extra-ldflags=-L/home/xbmc/ffmpeg_build/lib --bindir=/home/xbmc/bin --enable-gpl --enable-libass --enable-libfdk-aac --enable-libmp3lame --enable-libx264 --enable-nonfree
libavutil      55. 24.100 / 55. 24.100
libavcodec     57. 46.100 / 57. 46.100
libavformat    57. 38.100 / 57. 38.100
libavdevice    57.  0.101 / 57.  0.101
libavfilter     6. 46.101 /  6. 46.101
libswscale      4.  1.100 /  4.  1.100
libswresample   2.  1.100 /  2.  1.100
libpostproc    54.  0.100 / 54.  0.100


At least I should be able to make this work with Kodi.

Btw, I also posted feature request to add Sony BDPx500 profile --> viewtopic.php?f=3&t=22122&p=109150#p109150
<<

Janiporo

Streaming enthusiast

Posts: 25

Joined: Mon Mar 19, 2012 2:05 pm

Post Wed Jun 22, 2016 6:53 pm

Re: Kodi / Sony BDP not playing AAC 5.1-files. FFmpeg proble

Since nobody is helping, I uninstalled everything running:

  Code:
rm -rf ~/ffmpeg_build ~/ffmpeg_sources ~/bin/{ffmpeg,ffprobe,ffplay,ffserver,vsyasm,x264,x265,yasm,ytasm}
sudo apt-get autoremove autoconf automake build-essential cmake libass-dev libfreetype6-dev   libmp3lame-dev libopus-dev libsdl1.2-dev libtheora-dev libtool libva-dev libvdpau-dev   libvorbis-dev libvpx-dev libx264-dev libxcb1-dev libxcb-shm0-dev mercurial texinfo zlib1g-dev



then add repo, refersh and install:

  Code:
sudo apt-add-repository ppa:mc3man/trusty-media

sudo apt-get update

sudo apt-get install ffmpeg gstreamer0.10-ffmpeg gstreamer0.10-fluendo-mp3 gstreamer0.10-gnonlin gstreamer0.10-plugins-bad-multiverse gstreamer0.10-plugins-bad gstreamer0.10-plugins-ugly totem-plugins-extra gstreamer-tools ubuntu-restricted-extras libxine1-ffmpeg gxine mencoder mpeg2dec vorbis-tools id3v2 mpg321 mpg123 libflac++6 totem-mozilla icedax tagtool easytag id3tool lame nautilus-script-audio-convert libmad0 libjpeg-progs flac faac faad sox ffmpeg2theora libmpeg2-4 uudeview flac libmpeg3-1 mpeg3-utils mpegdemux liba52-0.7.4-dev libquicktime2 frei0r-plugins firmware-crystalhd grilo-plugins-0.2 raptor2-utils
  rasqal-utils librdf-storage-postgresql librdf-storage-mysql
  librdf-storage-sqlite librdf-storage-virtuoso redland-utils slv2-jack
  libx265-79-dbg mplayer-doc netselect fping gstreamer1.0-libav
  gstreamer1.0-plugins-bad


If you get error adding repository, you need to install following:

  Code:
sudo apt-get install software-properties-common python-software-properties


Here I am now at starting point.

I did another post concerning current problem, about "not able to replay where stopped"-problem, it can be found here --> viewtopic.php?f=7&t=22142&p=109301#p109301

PS: I had to change (in profiles.xml) "mpegts" to "m2ts" so BDP-S4500 will play anything decoded. S4100 has no problems playing both.

Return to Transcoding

Who is online

Users browsing this forum: No registered users and 6 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.