Issues with MKV FLAC and AAC Audio

For help and support with issues specific to Linux/Unix
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply.

Issues with MKV FLAC and AAC Audio

Postby ulzeraj » Sat May 04, 2013 12:59 am

I'm having issues transcoding some videos to my Playstation 3. Files containing AC3 audio tracks works fine but FLAC and AAC produces a beeping noice. I've experienced with a lot of settings and combinations to no avail.
These are my specs:

Code: Select all
CPU: AMD Phenom II X4
Memory: 16GB Memory
OS: FreeBSD 9.1 x86_64
PMS: pms-generic-linux-unix-1.81.0
JRE Implementation: OpenJDK6


The target device:

Code: Select all
Rendered: Playstation 3 Slim version
Video: HDMI monitor connected through HDMI
Network: Ethernet

The Audio Output options on Audio settings has been set to Automatic and detected LPCM2 44 and LPCM2 48.


Engine:

Code: Select all
Mencoder. At least is what the filename reports while browsing PMS through my PS3.

Some info on the components:
mencoder package version: mencoder-1.1.20130308
mplayer package version: mplayer2-2.0.20130126
ffmpeg package version: ffmpeg1-1.0.5
flac package version: flac-1.2.1_3

VDPAU enabled where applicable.


Here is my PMS.conf. I've played with all the settings in the audio section. Tried enabling and disabling LPCM, AC3, and DTS to no avail. Bellow is a file generated through the java interface and some tweaks. Its as good as any other I've tried by hand:

Code: Select all
engines = mencoder,avsmencoder,mplayeraudio,ffmpegaudio,mencoderwebvideo,mplayervideodump,mplayerwebaudio,ffmpegdvrmsremux
thumbnails = true
image_thumbnails = true
network_interface = re0
port = 5001
ip_filter = 192.168.0.8
use_mplayer_for_video_thumbs = true
dvd_isos_thumbnails = true
thumbnail_seek_pos = 30
enable_archive_browsing = true
usecache = true
hide_enginenames = false
hide_empty_folders = false
hide_media_library_folder = true
folders = /storage/srv/mov,/storage/srv/snd,/storage/srv/downloaded
maxvideobuffer = 600
chapter_support = true
chapter_interval = 10
audiochannels = 2
mencoder_usepcm = true
mencoder_audiolangs = jpn,eng,pt,jpn,ger,und
mencoder_sublangs = eng,pt
uuid = 8a245e6a-f5a9-42b5-8f4b-1c11b14facb9
mencoder_path = /usr/local/bin/mencoder
ffmpeg_path = /usr/local/bin/ffmpeg1
mplayer_path = /usr/local/bin/mplayer
flac_path = /usr/local/bin/flac



Bellow is the output of the PMS when I launch it. Packages for libzen and libmediainfo doesn't seem to exist on FreeBSD although the program mediainfo exists and its installed.

Code: Select all
20:46:33.994 [main] DEBUG o.a.c.c.ConfigurationUtils - ConfigurationUtils.locate(): base is null, name is /usr/local/mediaserver/PMS.conf
20:46:33.998 [main] DEBUG o.a.c.c.DefaultFileSystem - Could not locate file /usr/local/mediaserver/PMS.conf at null: no protocol: /usr/local/mediaserver/PMS.conf
20:46:33.998 [main] DEBUG o.a.c.c.ConfigurationUtils - Loading configuration from the absolute path /usr/local/mediaserver/PMS.conf
20:46:34.001 [main] DEBUG o.a.c.c.PropertiesConfiguration - Base path set to file:///usr/local/mediaserver/PMS.conf
20:46:34.012 [main] DEBUG o.a.c.c.PropertiesConfiguration - FileName set to PMS.conf
20:46:34.012 [main] DEBUG o.a.c.c.PropertiesConfiguration - Base path set to /usr/local/mediaserver
20:46:33,901 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy]
20:46:33,901 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
20:46:33,901 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.xml]
20:46:33,902 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Setting up default configuration.
20:46:34,076 |-INFO in ch.qos.logback.core.joran.action.DefinePropertyAction - About to instantiate property definer of type [net.pms.logging.DebugLogPathDefiner]
20:46:34,077 |-INFO in ch.qos.logback.core.joran.action.DefinePropertyAction - Popping property definer for property named [debugLogPath] from the object stack
20:46:34,078 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
20:46:34,079 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [console]
20:46:34,110 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.FileAppender]
20:46:34,111 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [debug.log]
20:46:34,115 |-INFO in ch.qos.logback.core.FileAppender[debug.log] - File property is set to [/usr/local/mediaserver/debug.log]
20:46:34,116 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]
20:46:34,117 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [debug.log.10MB]
20:46:34,128 |-INFO in ch.qos.logback.core.rolling.FixedWindowRollingPolicy@106caf16 - Will use zip compression
20:46:34,134 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[debug.log.10MB] - Active log file name: /usr/local/mediaserver/debug.log
20:46:34,134 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[debug.log.10MB] - File property is set to [/usr/local/mediaserver/debug.log]
20:46:34,135 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [org.apache] to WARN
20:46:34,135 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [httpclient.wire] to WARN
20:46:34,135 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to DEBUG
20:46:34,135 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [console] to Logger[ROOT]
20:46:34,135 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [debug.log] to Logger[ROOT]
20:46:34,135 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration.
20:46:34,135 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@671381e7 - Registering current configuration as safe fallback point
INFO  2013-05-03 20:46:34.137 [main] GUI environment not available
INFO  2013-05-03 20:46:34.137 [main] Switching to console mode
INFO  2013-05-03 20:46:34.138 [main] Starting PS3 Media Server 1.81.0
INFO  2013-05-03 20:46:34.138 [main] by shagrath / 2008-2013
INFO  2013-05-03 20:46:34.138 [main] http://ps3mediaserver.org
INFO  2013-05-03 20:46:34.138 [main] https://github.com/ps3mediaserver/ps3mediaserver
INFO  2013-05-03 20:46:34.138 [main]
INFO  2013-05-03 20:46:34.138 [main] Build: e260e7339 (2013-04-21)
INFO  2013-05-03 20:46:34.139 [main] Java: 1.6.0_32-Sun Microsystems Inc.
INFO  2013-05-03 20:46:34.139 [main] OS: FreeBSD amd64 9.1-RELEASE
INFO  2013-05-03 20:46:34.139 [main] Encoding: UTF-8
INFO  2013-05-03 20:46:34.139 [main] Memory: 682 MB
INFO  2013-05-03 20:46:34.139 [main]
INFO  2013-05-03 20:46:34.139 [main] Working directory: /usr/local/mediaserver
INFO  2013-05-03 20:46:34.143 [main] Temp directory: /tmp/ps3mediaserver
INFO  2013-05-03 20:46:34.143 [main] Logging config file: /usr/local/mediaserver/logback.headless.xml
INFO  2013-05-03 20:46:34.143 [main] debug.log: /usr/local/mediaserver/debug.log
INFO  2013-05-03 20:46:34.143 [main]
INFO  2013-05-03 20:46:34.143 [main] Profile directory: /usr/local/mediaserver
INFO  2013-05-03 20:46:34.143 [main] Profile path: /usr/local/mediaserver/PMS.conf
INFO  2013-05-03 20:46:34.144 [main] Profile permissions: r-
INFO  2013-05-03 20:46:34.144 [main] Profile name: chariot.spindrift.realm
INFO  2013-05-03 20:46:34.144 [main]
WARN  2013-05-03 20:46:34.179 [main] Error loading libzen: Unable to load library 'zen': Shared object "libzen.so" not found, required by "java"
INFO  2013-05-03 20:46:34.179 [main] Loading MediaInfo library
INFO  2013-05-03 20:46:34.182 [main] Error loading MediaInfo library: Unable to load library 'mediainfo': Shared object "libmediainfo.so" not found, required by "java"
INFO  2013-05-03 20:46:34.182 [main] Make sure you have libmediainfo and libzen installed
INFO  2013-05-03 20:46:34.182 [main] The server will now use the less accurate ffmpeg parsing method
INFO  2013-05-03 20:46:34.184 [main] Loading renderer configurations from /usr/local/mediaserver/renderers
INFO  2013-05-03 20:46:34.185 [main] Loading configuration file: AirPlayer.conf
INFO  2013-05-03 20:46:34.194 [main] Loading configuration file: Android.conf
INFO  2013-05-03 20:46:34.196 [main] Loading configuration file: Bravia4500.conf
INFO  2013-05-03 20:46:34.198 [main] Loading configuration file: Bravia5500.conf
INFO  2013-05-03 20:46:34.201 [main] Loading configuration file: BraviaEX.conf
INFO  2013-05-03 20:46:34.205 [main] Loading configuration file: BraviaHX.conf
INFO  2013-05-03 20:46:34.208 [main] Loading configuration file: DirecTVHR.conf
INFO  2013-05-03 20:46:34.211 [main] Loading configuration file: DLinkDSM510.conf
INFO  2013-05-03 20:46:34.213 [main] Loading configuration file: FreeboxHD.conf
INFO  2013-05-03 20:46:34.215 [main] Loading configuration file: FreecomMusicPal.conf
INFO  2013-05-03 20:46:34.217 [main] Loading configuration file: iPad-iPhone.conf
INFO  2013-05-03 20:46:34.221 [main] Loading configuration file: Kuro.conf
INFO  2013-05-03 20:46:34.223 [main] Loading configuration file: LGST600.conf
INFO  2013-05-03 20:46:34.226 [main] Loading configuration file: N900.conf
INFO  2013-05-03 20:46:34.228 [main] Loading configuration file: OPPOBDP83.conf
INFO  2013-05-03 20:46:34.229 [main] Loading configuration file: OPPOBDP93.conf
INFO  2013-05-03 20:46:34.231 [main] Loading configuration file: Panasonic.conf
INFO  2013-05-03 20:46:34.234 [main] Loading configuration file: Philips.conf
INFO  2013-05-03 20:46:34.236 [main] Loading configuration file: PhilipsPFL.conf
INFO  2013-05-03 20:46:34.241 [main] Loading configuration file: PS3.conf
INFO  2013-05-03 20:46:34.247 [main] Loading configuration file: PopcornHour.conf
INFO  2013-05-03 20:46:34.248 [main] Loading configuration file: Realtek.conf
INFO  2013-05-03 20:46:34.250 [main] Loading configuration file: Samsung-SMT-G7400.conf
INFO  2013-05-03 20:46:34.256 [main] Loading configuration file: SamsungAllShare.conf
INFO  2013-05-03 20:46:34.257 [main] Loading configuration file: SamsungWiseLink.conf
INFO  2013-05-03 20:46:34.259 [main] Loading configuration file: Showtime3.conf
INFO  2013-05-03 20:46:34.261 [main] Loading configuration file: SMP-N100.conf
INFO  2013-05-03 20:46:34.263 [main] Loading configuration file: SonyBluray.conf
INFO  2013-05-03 20:46:34.265 [main] Loading configuration file: Streamium.conf
INFO  2013-05-03 20:46:34.267 [main] Loading configuration file: WDTVLive.conf
INFO  2013-05-03 20:46:34.268 [main] Loading configuration file: WMP.conf
INFO  2013-05-03 20:46:34.270 [main] Loading configuration file: XBMC.conf
INFO  2013-05-03 20:46:34.271 [main] Loading configuration file: XBOX360.conf
INFO  2013-05-03 20:46:34.273 [main] Loading configuration file: YamahaRXA1010.conf
INFO  2013-05-03 20:46:34.274 [main] Loading configuration file: YamahaRXV671.conf
INFO  2013-05-03 20:46:34.274 [main] Checking MPlayer font cache. It can take a minute or so.
INFO  2013-05-03 20:46:34.397 [main] Done!
INFO  2013-05-03 20:46:34.401 [main] Searching for plugins in /usr/local/mediaserver/plugins
INFO  2013-05-03 20:46:34.402 [main] No plugins found
INFO  2013-05-03 20:46:34.413 [main] Registering transcoding engine: FFmpeg Audio
INFO  2013-05-03 20:46:34.416 [main] Registering transcoding engine: MEncoder
INFO  2013-05-03 20:46:34.417 [main] Registering transcoding engine: FFmpeg
INFO  2013-05-03 20:46:34.417 [main] Registering transcoding engine: VLC
INFO  2013-05-03 20:46:34.418 [main] Registering transcoding engine: MPlayer Audio
INFO  2013-05-03 20:46:34.418 [main] Registering transcoding engine: FFmpeg Web Video
INFO  2013-05-03 20:46:34.418 [main] Registering transcoding engine: MEncoder Web
INFO  2013-05-03 20:46:34.418 [main] Registering transcoding engine: MPlayer Video Dump
INFO  2013-05-03 20:46:34.418 [main] Registering transcoding engine: MPlayer Web
INFO  2013-05-03 20:46:34.419 [main] Registering transcoding engine: tsMuxeR
INFO  2013-05-03 20:46:34.419 [main] Registering transcoding engine: Audio High Fidelity
INFO  2013-05-03 20:46:34.419 [main] Registering transcoding engine: VLC Audio Streaming
INFO  2013-05-03 20:46:34.420 [main] Registering transcoding engine: VLC Video Streaming
INFO  2013-05-03 20:46:34.420 [main] Registering transcoding engine: dcraw Thumbnailer
INFO  2013-05-03 20:46:34.425 [main] Using address /192.168.0.100 found on network interface: name:re0 (re0)
INFO  2013-05-03 20:46:34.425 [main] Created socket: /192.168.0.100:5001
INFO  2013-05-03 20:46:34.475 [main] Using database located at: /usr/local/mediaserver/database
INFO  2013-05-03 20:46:34.661 [main] A tiny cache admin interface is available at: http://192.168.0.100:5001/console/home
INFO  2013-05-03 20:46:34.667 [main] Checking shared folder: /storage/srv/mov
INFO  2013-05-03 20:46:34.667 [main] Checking shared folder: /storage/srv/snd
INFO  2013-05-03 20:46:34.667 [main] Checking shared folder: /storage/srv/downloaded
INFO  2013-05-03 20:46:34.716 [main] Using the following UUID configured in PMS.conf: 8a245e6a-f5a9-42b5-8f4b-1c11b14facb9
INFO  2013-05-03 20:46:34.969 [main] The server should now appear on your renderer
INFO  2013-05-03 20:46:35.625 [New I/O server worker #1-1] Access granted to /192.168.0.8 by rule: 192.168.0.8
INFO  2013-05-03 20:46:35.632 [pool-4-thread-1] Checking IP: 192.168.0.8 for Playstation 3
INFO  2013-05-03 20:46:35.734 [pool-4-thread-1] Renderer Playstation 3 found on this address: 192.168.0.8
INFO  2013-05-03 20:46:35.746 [pool-4-thread-1] Process ping has a return code of 77! Maybe an error occurred... check the log file
INFO  2013-05-03 20:46:36.198 [New I/O server worker #1-4] Checking shared folder: /storage/srv/mov



Now the mediainfo output for one of the videos which is outputing the beeping noise. Notice that if I fire mplayer from the server running PMS I can play the video just fine eliminating the possibility of a problem with mplayer. I don't know how to test mencoder.

Code: Select all
General
Unique ID                                : 56462564977762254939855748121062998155 (0x2A7A4B61E94C826BE0996D0F55B7008B)
Complete name                            : /storage/srv/mov/movies/Kara No Kyoukai/[Coalgirls]_Kara_no_Kyoukai_1_-_Overlooking_View_(1920x1080_Blu-ray_FLAC)_[AE5E739C].mkv
Format                                   : Matroska
Format version                           : Version 2
File size                                : 2.13 GiB
Duration                                 : 50mn 9s
Overall bit rate mode                    : Variable
Overall bit rate                         : 6 089 Kbps
Movie name                               : Kara no Kyoukai 1 - Overlooking View
Encoded date                             : UTC 2011-02-24 15:58:09
Writing application                      : mkvmerge v3.4.0 ('Rapunzel') gebaut am May 15 2010 05:00:31
Writing library                          : libebml v0.8.0 + libmatroska v0.9.0
Attachment                               : Yes / Yes / Yes / Yes / Yes / Yes / Yes / Yes / Yes / Yes / Yes / Yes / Yes

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L5.0
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 11 frames
Codec ID                                 : V_MPEG4/ISO/AVC
Duration                                 : 50mn 9s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Variable
Frame rate                               : 23.976 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Title                                    : H.264
Writing library                          : x264 core 112
Encoding settings                        : cabac=1 / ref=12 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=10 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=-2 / threads=12 / sliced_threads=0 / nr=0 / decimate=0 / interlaced=0 / constrained_intra=0 / bframes=12 / b_pyramid=1 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=240 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=16.0 / qcomp=0.60 / qpmin=3 / qpmax=51 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
Language                                 : Japanese
Default                                  : Yes
Forced                                   : No
Color primaries                          : BT.709-5, BT.1361, IEC 61966-2-4, SMPTE RP177
Transfer characteristics                 : BT.709-5, BT.1361
Matrix coefficients                      : BT.709-5, BT.1361, IEC 61966-2-4 709, SMPTE RP177

Audio
ID                                       : 2
Format                                   : FLAC
Format/Info                              : Free Lossless Audio Codec
Codec ID                                 : A_FLAC
Duration                                 : 50mn 9s
Bit rate mode                            : Variable
Channel(s)                               : 6 channels
Sampling rate                            : 48.0 KHz
Bit depth                                : 24 bits
Title                                    : FLAC 5.1
Writing library                          : libFLAC 1.2.1 (UTC 2007-09-17)
Language                                 : Japanese
Default                                  : Yes
Forced                                   : No

Text #1
ID                                       : 3
Format                                   : ASS
Codec ID                                 : S_TEXT/ASS
Codec ID/Info                            : Advanced Sub Station Alpha
Compression mode                         : Lossless
Title                                    : Styled Subs [gg-TakaJun]
Language                                 : English
Default                                  : Yes
Forced                                   : No

Text #2
ID                                       : 4
Format                                   : ASS
Codec ID                                 : S_TEXT/ASS
Codec ID/Info                            : Advanced Sub Station Alpha
Compression mode                         : Lossless
Title                                    : Styled Subs [Retail]
Language                                 : English
Default                                  : No
Forced                                   : No

Menu
00:00:00.000                             : en:00:00:00.000
00:02:21.850                             : en:00:02:21.850
00:04:13.837                             : en:00:04:13.837
00:14:00.131                             : en:00:14:00.131
00:18:30.276                             : en:00:18:30.276
00:25:14.430                             : en:00:25:14.430
00:29:16.672                             : en:00:29:16.672
00:37:25.910                             : en:00:37:25.910
00:43:21.182                             : en:00:43:21.182
00:47:26.677                             : en:00:47:26.677
00:49:02.565                             : en:00:49:02.565



I've already tried setting the audio options to L+R and the volume to the default position. Interestingly setting max channels to 6 only gives me a "1" on audio options even with DTS enabled. Also changing the volume also changes the tone of the noise.

Many thanks in advance.
ulzeraj
 
Posts: 2
Joined: Sat May 04, 2013 12:18 am

Re: Issues with MKV FLAC and AAC Audio

Postby ulzeraj » Fri Jul 19, 2013 6:59 pm

I haven't given up yet on this setup. Recently I've noticed that the "tsmuxer" binary contained on the tarball doesn't run without the Linux emulation kernel module.

Is this a situation where I'll need to install the whole Linux base just to run tsmuxer? Can I run those file with it?

I would be happy if I could just transcode them to AAC (which is working now) to the PS3.
ulzeraj
 
Posts: 2
Joined: Sat May 04, 2013 12:18 am


Return to Linux/Unix Support

Who is online

Users browsing this forum: Yahoo [Bot] and 7 guests