Audio High Fidelity Engine is broken for OSX

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

Audio High Fidelity Engine is broken for OSX

Postby macaudioguy » Wed Jan 25, 2012 10:18 pm

Hi,

The Audio High Fidelity Engine is broken for OSX. Message is "Data is corrupted" when trying to play 96/24 flac from the video section. Also 48khz 24 bit files need to be recognized by the High Fidelity Engine since the PS3 will not play 24 bit files unless under the video section.

Thanks

Here is the log

Code: Select all
New I/O server worker #1-3] INFO  15:10:25.275 Starting transcode/remux of 01 515 AM.flac
[mkfifo] DEBUG 15:10:25.286 Starting mkfifo -m 777 /var/folders/wm/wmT4fPdLF9eUOTIDcPygTU+++TM/-Tmp-/ps3mediaserver/mplayer_aud1327525825276
[mkfifo] DEBUG 15:10:25.319 Unix process ID (mkfifo): 1569
[osx/mplayer] DEBUG 15:10:25.386 Starting "/Applications/PS3 Media Server.app/Contents/Resources/Java/osx/mplayer" "/Users/testacct/Desktop/Shangri-La (96-24)/01 515 AM.flac" -prefer-ipv4 -nocache -af channels=2 -quiet -quiet -vo null -ao pcm:waveheader:fast:file=/var/folders/wm/wmT4fPdLF9eUOTIDcPygTU+++TM/-Tmp-/ps3mediaserver/mplayer_aud1327525825276 -quiet -quiet -quiet
[osx/mplayer] DEBUG 15:10:25.417 Reading pipe: /var/folders/wm/wmT4fPdLF9eUOTIDcPygTU+++TM/-Tmp-/ps3mediaserver/mplayer_aud1327525825276
[Thread-38] DEBUG 15:10:25.426 Fontconfig error: Cannot load default config file
[osx/mplayer] DEBUG 15:10:25.493 Attaching thread: osx/mplayer
[Thread-41] DEBUG 15:10:25.495 MPlayer SB17 (C) 2000-2011 MPlayer Team
[Thread-41] DEBUG 15:10:25.495 Custom build by SubJunk, http://www.spirton.com
[Thread-41] DEBUG 15:10:25.496
[Thread-41] DEBUG 15:10:25.496 Terminal type `xterm-color' is not defined.
[Thread-41] DEBUG 15:10:25.496
[Thread-41] DEBUG 15:10:25.496 Playing /Users/testacct/Desktop/Shangri-La (96-24)/01 515 AM.flac.
[Thread-41] DEBUG 15:10:25.496 Audio only file format detected.
[Thread-41] DEBUG 15:10:25.496 Load subtitles in /Users/testacct/Desktop/Shangri-La (96-24)/
[Thread-41] DEBUG 15:10:25.496 ==========================================================================
[Thread-41] DEBUG 15:10:25.497 Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
[Thread-41] DEBUG 15:10:25.497 AUDIO: 96000 Hz, 2 ch, s32le, 2971.0 kbit/48.36% (ratio: 371373->768000)
[Thread-41] DEBUG 15:10:25.497 Selected audio codec: [ffflac] afm: ffmpeg (FFmpeg FLAC audio)
[Thread-41] DEBUG 15:10:25.497 ==========================================================================
[Thread-41] DEBUG 15:10:25.497 [AO PCM] File: /var/folders/wm/wmT4fPdLF9eUOTIDcPygTU+++TM/-Tmp-/ps3mediaserver/mplayer_aud1327525825276 (WAVE)
[Thread-41] DEBUG 15:10:25.497 PCM: Samplerate: 96000Hz Channels: Stereo Format s32le
[Thread-41] DEBUG 15:10:25.497 [AO PCM] Info: Faster dumping is achieved with -benchmark -vc null -vo null -ao pcm:fast
[Thread-41] DEBUG 15:10:25.498 [AO PCM] Info: To write WAVE files use -ao pcm:waveheader (default).
[Thread-41] DEBUG 15:10:25.498 AO: [pcm] 96000Hz 2ch s32le (4 bytes per sample)
[Thread-41] DEBUG 15:10:25.498 Video: no video
[Thread-41] DEBUG 15:10:25.498 Starting playback...
[osx/mplayer] DEBUG 15:10:25.498 Unix process ID (/Applications/PS3 Media Server.app/Contents/Resources/Java/osx/mplayer): 1570
[Thread-43] DEBUG 15:10:29.992 Stopping Unix process 1570: osx/mplayer
[Thread-43] DEBUG 15:10:29.993 Stopping Unix process 1569: mkfifo
[Thread-38] DEBUG 15:10:29.993
[Thread-38] DEBUG 15:10:29.993
[Thread-38] DEBUG 15:10:29.995 MPlayer interrupted by signal 15 in module: play_audio
[Thread-38] DEBUG 15:10:29.995 Error consuming stream of spawned process: Bad file descriptor
[Thread-51] WARN  15:10:39.993 Sending kill -14 to the Unix process: 1570
[Thread-51] DEBUG 15:10:40.035 Successfully sent kill -14 to the Unix process: 1570
[Thread-18] DEBUG 15:12:40.710 Sending ALIVE...
Last edited by Raptor399 on Wed Jan 25, 2012 10:27 pm, edited 1 time in total.
Reason: Edited for code fragments
macaudioguy
 
Posts: 10
Joined: Wed Jan 25, 2012 10:06 pm

Re: Audio High Fidelity Engine is broken for OSX

Postby Raptor399 » Wed Jan 25, 2012 10:30 pm

I see you're using MPlayer-SB17; I have just now uploaded MPlayer-SB22.
Does that work better for you?
Raptor399
Project Member
 
Posts: 1916
Joined: Thu Mar 10, 2011 12:06 am

Re: Audio High Fidelity Engine is broken for OSX

Postby macaudioguy » Thu Jan 26, 2012 4:53 am

Same error messages in log, also tried adding the new mencoder with the same result "Data is corrupt"
macaudioguy
 
Posts: 10
Joined: Wed Jan 25, 2012 10:06 pm

Re: Audio High Fidelity Engine is broken for OSX

Postby Raptor399 » Thu Jan 26, 2012 8:13 am

macaudioguy wrote:Same error messages in log, also tried adding the new mencoder with the same result "Data is corrupt"

You could try running the command line that is being logged in Terminal; it might give more informative output.
Something like this:
Code: Select all
"/Applications/PS3 Media Server.app/Contents/Resources/Java/osx/mplayer" "/Users/testacct/Desktop/Shangri-La (96-24)/01 515 AM.flac" -prefer-ipv4 -nocache -af channels=2 -vo null -ao pcm:waveheader:fast:file=test.wav
Raptor399
Project Member
 
Posts: 1916
Joined: Thu Mar 10, 2011 12:06 am

Re: Audio High Fidelity Engine is broken for OSX

Postby macaudioguy » Thu Jan 26, 2012 3:52 pm

Ran from the terminal - log was identical. Seems to just sit there with zero bytes in the pipe. Running the command to a file like in your example works fine, file is correct and can be played from the finder. Looks like the pipe maybe isn't working correctly? Older version of PMS on OSX have never worked with the High Fidelity Audio Engine but they used tsmuxer to produce a fake video from fake.jpg and muxed in the audio. Is this still the process after we can get this first step to work?
macaudioguy
 
Posts: 10
Joined: Wed Jan 25, 2012 10:06 pm

Re: Audio High Fidelity Engine is broken for OSX

Postby macaudioguy » Thu Jan 26, 2012 4:21 pm

Another idea - it's almost like the pipe has been opened by mplayer and PMS times out waiting for something else to happen?
macaudioguy
 
Posts: 10
Joined: Wed Jan 25, 2012 10:06 pm

Re: Audio High Fidelity Engine is broken for OSX

Postby macaudioguy » Fri Jan 27, 2012 6:44 pm

Anything else I can do to help get this working?

Also, I have some suggestions of how to improve the Audio High Fidelity Engine(AHFE):
1. Option to allow all flac files to be played using the AHFE so all music could be played from the video tab
2. Option to use folder.jpg album art as the image instead of using fake.jpg
3. Option to downsample everything to 48khz(for those using the optical output) using the SOX high quality sample rate converter (open source binaries are available) - this is much better than using mplayer to downsample plus it supports 24bit and does not truncate to 16bit

I can help if required - I am a programmer but not a java programmer.
macaudioguy
 
Posts: 10
Joined: Wed Jan 25, 2012 10:06 pm

Re: Audio High Fidelity Engine is broken for OSX

Postby macaudioguy » Mon Jan 30, 2012 5:33 pm

Just tried 1.50.1 - I think this is the problem - /resources/images/fake.jpg: No such file or directory

Here is the log:

Code: Select all
[New I/O server worker #1-1] INFO  10:22:39.406 Starting transcode/remux of 01 Band on the Run.flac
[mkfifo] DEBUG 10:22:39.426 Starting mkfifo -m 777 /var/folders/wm/wmT4fPdLF9eUOTIDcPygTU+++TM/-Tmp-/ps3mediaserver/1327940559410tsmuxerout.ts
[mkfifo] DEBUG 10:22:39.451 Unix process ID (mkfifo): 3264
[mkfifo] DEBUG 10:22:39.477 Starting mkfifo -m 777 /var/folders/wm/wmT4fPdLF9eUOTIDcPygTU+++TM/-Tmp-/ps3mediaserver/1327940559409fakevideo
[mkfifo] DEBUG 10:22:39.491 Starting mkfifo -m 777 /var/folders/wm/wmT4fPdLF9eUOTIDcPygTU+++TM/-Tmp-/ps3mediaserver/1327940559409videoout
[mkfifo] DEBUG 10:22:39.509 Unix process ID (mkfifo): 3265
[mkfifo] DEBUG 10:22:39.511 Unix process ID (mkfifo): 3266
[osx/ffmpeg] DEBUG 10:22:39.692 Starting "/Applications/PS3 Media Server.app/Contents/Resources/Java/osx/ffmpeg" -t 313.0 -loop_input -i /resources/images/fake.jpg -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -me_range 4 -f h264 -vcodec libx264 -an -y /var/folders/wm/wmT4fPdLF9eUOTIDcPygTU+++TM/-Tmp-/ps3mediaserver/1327940559409fakevideo
[Thread-53] DEBUG 10:22:39.720 ffmpeg version 0.9.1, Copyright (c) 2000-2012 the FFmpeg developers
[Thread-53] DEBUG 10:22:39.720   built on Jan 15 2012 09:53:42 with gcc 4.2.1 (Apple Inc. build 5666) (dot 3)
[Thread-53] DEBUG 10:22:39.720   configuration: --enable-gpl --enable-version3 --enable-nonfree --disable-doc --disable-debug --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-libfreetype --cc=/usr/bin/gcc-4.2 --disable-vda --disable-devices --disable-ffplay --disable-ffserver --disable-ffprobe --disable-shared --enable-static --prefix=/tmp/i386/target
[Thread-53] DEBUG 10:22:39.720   libavutil    51. 32. 0 / 51. 32. 0
[Thread-53] DEBUG 10:22:39.720   libavcodec   53. 42. 4 / 53. 42. 4
[Thread-53] DEBUG 10:22:39.721   libavformat  53. 24. 2 / 53. 24. 2
[Thread-53] DEBUG 10:22:39.721   libavdevice  53.  4. 0 / 53.  4. 0
[Thread-53] DEBUG 10:22:39.721   libavfilter   2. 53. 0 /  2. 53. 0
[Thread-53] DEBUG 10:22:39.721   libswscale    2.  1. 0 /  2.  1. 0
[Thread-53] DEBUG 10:22:39.721   libpostproc  51.  2. 0 / 51.  2. 0
[Thread-53] DEBUG 10:22:39.721 -loop_input is deprecated, use -loop 1
[Thread-53] DEBUG 10:22:39.721 Note, both loop options only work with -f image2
[Thread-53] DEBUG 10:22:39.721 /resources/images/fake.jpg: No such file or directory
[osx/ffmpeg] DEBUG 10:22:39.722 Attaching thread: osx/ffmpeg
[osx/ffmpeg] DEBUG 10:22:39.723 Unix process ID (/Applications/PS3 Media Server.app/Contents/Resources/Java/osx/ffmpeg): 3267
[osx/ffmpeg] INFO  10:22:39.723 Process /Applications/PS3 Media Server.app/Contents/Resources/Java/osx/ffmpeg has a return code of 1! Maybe an error occurred... check the log file
[mkfifo] DEBUG 10:22:39.743 Starting mkfifo -m 777 /var/folders/wm/wmT4fPdLF9eUOTIDcPygTU+++TM/-Tmp-/ps3mediaserver/1327940559409flacaudio
[mkfifo] DEBUG 10:22:39.757 Starting mkfifo -m 777 /var/folders/wm/wmT4fPdLF9eUOTIDcPygTU+++TM/-Tmp-/ps3mediaserver/1327940559409audioout
[mkfifo] DEBUG 10:22:39.776 Unix process ID (mkfifo): 3269
[mkfifo] DEBUG 10:22:39.777 Unix process ID (mkfifo): 3268
[osx/flac] DEBUG 10:22:39.958 Starting "/Applications/PS3 Media Server.app/Contents/Resources/Java/osx/flac" --output-name=/var/folders/wm/wmT4fPdLF9eUOTIDcPygTU+++TM/-Tmp-/ps3mediaserver/1327940559409flacaudio -d -f -F "/Users/audiotest/Desktop/PMS/01 Band on the Run.flac"
[osx/flac] DEBUG 10:22:40.006 Attaching thread: osx/flac
[Thread-60] DEBUG 10:22:40.006
[Thread-60] DEBUG 10:22:40.007 flac 1.2.1, Copyright (C) 2000,2001,2002,2003,2004,2005,2006,2007  Josh Coalson
[Thread-60] DEBUG 10:22:40.007 flac comes with ABSOLUTELY NO WARRANTY.  This is free software, and you are
[Thread-60] DEBUG 10:22:40.007 welcome to redistribute it under certain conditions.  Type `flac' for details.
[Thread-60] DEBUG 10:22:40.007
[osx/flac] DEBUG 10:22:40.015 Unix process ID (/Applications/PS3 Media Server.app/Contents/Resources/Java/osx/flac): 3270
[osx/tsMuxeR] DEBUG 10:22:40.058 Starting "/Applications/PS3 Media Server.app/Contents/Resources/Java/osx/tsMuxeR" /var/folders/wm/wmT4fPdLF9eUOTIDcPygTU+++TM/-Tmp-/ps3mediaserver/pms-tsmuxer.meta /var/folders/wm/wmT4fPdLF9eUOTIDcPygTU+++TM/-Tmp-/ps3mediaserver/1327940559410tsmuxerout.ts
[osx/tsMuxeR] DEBUG 10:22:40.085 Reading pipe: /var/folders/wm/wmT4fPdLF9eUOTIDcPygTU+++TM/-Tmp-/ps3mediaserver/1327940559410tsmuxerout.ts
[Thread-64] DEBUG 10:22:47.563 Stopping Unix process 3271: osx/tsMuxeR
[New I/O server worker #1-1] ERROR 10:22:47.562 There is no inputstream to return for 01 Band on the Run.flac [Audio High Fidelity]
[Thread-64] DEBUG 10:22:47.566 Stopping Unix process 3264: mkfifo
[Thread-64] DEBUG 10:22:47.568 Stopping Unix process 3267: osx/ffmpeg
[Thread-64] DEBUG 10:22:47.570 Stopping Unix process 3270: osx/flac
[Thread-18] DEBUG 10:25:32.116 Sending ALIVE...
[Thread-18] DEBUG 10:28:36.178 Sending ALIVE...
Last edited by Raptor399 on Tue Jan 31, 2012 8:43 am, edited 1 time in total.
Reason: Edited for code fragments
macaudioguy
 
Posts: 10
Joined: Wed Jan 25, 2012 10:06 pm

Re: Audio High Fidelity Engine is broken for OSX

Postby macaudioguy » Mon Jan 30, 2012 7:37 pm

Here is the solution - hopefully someone can recompile the source code for osx.
I added /resources/images/fake.jpg to the root and it works!
"/resources/images/fake.jpg" should be a path to the resource within the application not to the root of the drive

Here is the source code that needs to be changed:
String ffmpegLPCMextract[] = new String[]{configuration.getFfmpegPath(), "-t", "" + params.timeend, "-loop_input", "-i", "/resources/images/fake.jpg", "-qcomp", "0.6", "-qmin", "10", "-qmax", "51", "-qdiff", "4", "-me_range", "4", "-f", "h264", "-vcodec", "libx264", "-an", "-y", ffVideoPipe.getInputPipe()};

Another issue is that mplayer needs to be disabled under audio file engines or it intercepts tsmuxer, order of the engines does not seem to matter - haven't figured this out yet.
macaudioguy
 
Posts: 10
Joined: Wed Jan 25, 2012 10:06 pm

Re: Audio High Fidelity Engine is broken for OSX

Postby Raptor399 » Tue Jan 31, 2012 8:42 am

That is correct. Thanks for the analysis!
Fix committed.
Raptor399
Project Member
 
Posts: 1916
Joined: Thu Mar 10, 2011 12:06 am

Next

Return to Mac OS X Support

Who is online

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