Web content will not stream

For help and support with PS3 Media Server in general
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply.

Re: Web content will not stream

Postby lovswr » Fri Jan 08, 2010 12:56 am

chocolateboy wrote:
lovswr wrote:Well there was no log in /tmp for ps3mencoder


That means ps3mencoder wasn't started successfully.

& whereis ps3mencoder.log returns nothing.


"whereis" and "which" only work with commands. Try:

Code: Select all
locate ps3mencoder.log


- for general file finding. You may need to update the db first:

Code: Select all
sudo updatedb


But don't bother in this case as a) the file doesn't exist yet, and b) when it does, it'll be in /tmp.

I don't know what options I should be trying to pass


Try this:

Code: Select all
ps3mencoder http://movies.apple.com/movies/wb/inception/inception-tlr2_h640w.mov -prefer-ipv4 -nocache -quiet -oac lavc -of lavf -lavfopts format=dvd -ovc lavc -lavcopts vcodec=mpeg2video:vbitrate=4096:threads=2:acodec=ac3:abitrate=128 -ofps 24000/1001 -o deleteme.mov


If it works from the command line but not from PMS, then make sure PMS has the right permissions to execute the file:

Code: Select all
chmod a+rx /path/to/ps3mencoder


Failing that, the most likely culprit is your PMS.conf...



Well I executed that entire line as one long string & it created the deleteme.mov file in /home/user-name/usr/bin
Otherwise the output is as below:
Code: Select all
/usr/bin/ps3mencoder: exec: /usr/bin/mencoder http://movies.apple.com/movies/wb/inception/inception-tlr2_h640w.mov -prefer-ipv4 -oac lavc -of lavf -lavfopts format=dvd -ovc lavc -lavcopts vcodec=mpeg2video:vbitrate=4096:threads=2:acodec=ac3:abitrate=128 -ofps 24 -o deleteme.mov -user-agent Quicktime/7.6.4
MEncoder SVN-r29237-4.4.1 (C) 2000-2009 MPlayer Team
Resolving movies.apple.com for AF_INET...
Connecting to server movies.apple.com[168.143.241.57]: 80...
Cache size set to 320 KBytes
success: format: 7  data: 0x0 - 0xb63fde

ISO: File Type Major Brand: Original QuickTime
Quicktime/MOV file format detected.
[mov] Video stream found, -vid 0
[mov] Audio stream found, -aid 1
VIDEO:  [avc1]  640x268  24bpp  23.976 fps    0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:7  fourcc:0x31637661  size:640x268  fps:23.976  ftime:=0.0417
==========================================================================
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
AUDIO: 44100 Hz, 2 ch, s16le, 96.0 kbit/6.80% (ratio: 12000->176400)
Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
** MUXER_LAVF *****************************************************************
REMEMBER: MEncoder's libavformat muxing is presently broken and can generate
INCORRECT files in the presence of B-frames. Moreover, due to bugs MPlayer
will play these INCORRECT files as if nothing were wrong!
*******************************************************************************
OK, exit.
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
VDec: vo config request - 640 x 268 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
videocodec: libavcodec (640x268 fourcc=3267706d [mpg2])
VIDEO CODEC ID: 1
AUDIO CODEC ID: 15003, TAG: 0
Writing header...
Pos:   0.0s      2f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.004 [0:0]
1 duplicate frame(s)!
[h264 @ 0xa3939f0]concealing 544 DC, 544 AC, 544 MV errors:0.084 [185:127]

Skipping frame!
Pos:  41.5s    998f ( 0%) 52.17fps Trem:   0min   0mb  A-V:0.040 [2232:127]
1 duplicate frame(s)!
Pos:  80.5s   1932f ( 0%) 40.46fps Trem:   0min   0mb  A-V:-0.008 [2736:128]
Flushing video frames.
Writing index...

Video stream: 2736.599 kbit/s  (342074 B/s)  size: 27537028 bytes  80.500 secs  1932 frames

Audio stream:  128.000 kbit/s  (16000 B/s)  size: 1289544 bytes  80.596 secs


Also I ran that command twice & NOW I have a /tmp/ps3mencoder.log file. It has that I ran that command twice, but nothing about PS3 Media Server, even though I have restarted PS3 Media Server 3 times.

I can not get any attachment to upload here, so here is my PMS.conf file

Code: Select all
folders = \/home\/lovswr\/public\/pms\/video
mencoder_path = \/usr\/bin\/ps3mencoder
hostname =
port = 6001
language =
thumbnails = true
thumbnail_seek_pos = 1
nbcores = 2
turbomode = false
minimized = false
hidevideosettings = false
usecache = true
charsetencoding = 850
engines = tsmuxer,mencoder,mplayeraudio,ffmpegaudio,tsmuxeraudio,vlcvideo,mplayervideodump,mplayerwebaudio,vlcaudio
autoloadsrt = true
avisynth_convertfps = true
avisynth_script = #AviSynth script is now fully customisable !\u0001#You must use the following variables (\"clip\" being the avisynth variable of the movie):\u0001#<movie>: insert the complete DirectShowSource instruction [ clip=DirectShowSource(movie, convertfps) ]\u0001#<sub>: insert the complete TextSub\/VobSub instruction if there's any detected srt\/sub\/idx\/ass subtitle file\u0001#<moviefilename>: variable of the movie filename, if you want to do all this by yourself\u0001#Be careful, the custom script MUST return the clip object\u0001<movie>\u0001<sub>\u0001return clip
transcode_block_multiple_connections = false
tsmuxer_forcefps = true
tsmuxer_preremux_pcm = false
tsmuxer_preremux_ac3 = false
audiochannels = 6
audiobitrate = 384
maximumbitrate = 0
skiploopfilter = false
enable_archive_browsing = false
mencoder_fontconfig = false
mencoder_font =
mencoder_forcefps = false
mencoder_usepcm = false
mencoder_intelligent_sync = true
mencoder_decode =
mencoder_encode = keyint=25:vqmax=5:vqmin=2
mencoder_nooutofsync = true
mencoder_audiolangs = eng,fre,jpn,ger,
mencoder_sublangs = eng,fre
mencoder_audiosublangs =
mencoder_subfribidi = false
mencoder_ass_scale = 1.0
mencoder_ass_margin = 10
mencoder_ass_outline = 1
mencoder_ass_shadow = 1
mencoder_noass_scale = 3
mencoder_noass_subpos = 2
mencoder_noass_blur = 1
mencoder_noass_outline = 1
mencoder_subcp = cp1252
mencoder_ass = true
mencoder_disablesubs = false
mencoder_yadif = false
mencoder_scaler = true
mencoder_scalex = 1280
mencoder_scaley = 720
ffmpeg = -g 1 -qscale 1 -qmin 2
tsmuxer_mux_all_audiotracks = true
hide_enginenames = true
mencoder_remux_ac3 = false
mencoder_mux_compatible = true


Also, since I moved ps3mencoder into /usr/bin I have to use sudo in front of ANY command or it tells me that I do not have permission.
lovswr
 
Posts: 31
Joined: Mon Jan 19, 2009 5:00 pm

Re: Web content will not stream

Postby chocolateboy » Fri Jan 08, 2010 2:10 am

lovswr wrote:here is my PMS.conf file


It's best to start with a clean PMS.conf, particularly when a) troubleshooting and/or b) using a new version of PMS. I doubt anyone has such a complicated setup that it takes more than a minute or two to re-enter their details. Starting with a clean slate ensures you don't get any surprises if PMS changes any defaults or renames any properties, or if you make a mistake while editing, or the file gets corrupted &c. &c.

Your conf is invalid/corrupt in at least two ways.

  1. it refers to AviSynth, which is Windows software (although there's an experimental version available for Linux)
  2. it doesn't refer to mencoderwebvideo

Also: if you copied that PMS.conf from your Vista box, it might have Windows line endings, which might not hurt, but it certainly won't help.

Try this:

  • Quit PMS
  • Delete PMS.conf
  • Restart PMS and re-enter your settings
  • Move MEncoder Web to the top of the "Video Web Streaming Engines"
  • Save your settings
  • Quit PMS
  • Add mencoder_path = \/path\/to\/ps3mencoder to PMS.conf
  • Restart PMS

Also, since I moved ps3mencoder into /usr/bin I have to use sudo in front of ANY command or it tells me that I do not have permission.


For starters, it shouldn't be in /usr/bin. The usual place to put an unpackaged binary is either in ~/bin, or, if you want to make it available to other users or applications on your system, /usr/local/bin. The sudo thing - I don't know. It's certainly nothing to do with ps3mencoder. The only thing I can think is that you set the permissions/ownership of /usr/bin as well as/instead of setting the permissions of ps3mencoder (which is another reason not to put it in /usr/bin - you should never use sudo unless you have to). Also, if you have to be root to execute files in /usr/bin, that would explain why PMS flags mencoder (/usr/bin/mencoder) as unavailable.

Try this:

Code: Select all
sudo chmod 755 /usr/bin # fix permissions
mkdir ~/bin
sudo mv /usr/bin/ps3mencoder ~/bin
sudo chown lovswr:lovswr ~/bin/ps3mencoder # or whatever your username is
chmod 755 ~/bin/ps3mencoder


Then edit the definition of PATH in your ~/.bashrc or ~/.bash_profile (or ~/.zshrc &c.) so that it includes your bin directory e.g. (in bash):

Code: Select all
export PATH="/home/lovswr/bin:$PATH"


Then reload the file to update your path:

Code: Select all
source ~/.bashrc


Then add the ps3mencoder path to PMS.conf:

Code: Select all
mencoder_path = \/home\/lovswr\/bin\/ps3mencoder


Also, make sure you're using the latest version of ps3mencoder (download the .exe in the bin directory on Windows and the Perl script in the src directory on other platforms), as I'm still updating it.
Last edited by chocolateboy on Sun Jan 31, 2010 11:33 pm, edited 2 times in total.
chocolateboy
Project Member
 
Posts: 2577
Joined: Wed Sep 16, 2009 10:05 am

Re: Web content will not stream

Postby pocho » Fri Jan 08, 2010 5:23 am

I hope you all get this worked out as the procedure is over the top for me as to what to do. Hopefully someone will create some type of .exe file for us Joe6packs to install without much fiddling to do.
pocho
 
Posts: 20
Joined: Thu Dec 10, 2009 1:43 am

Re: Web content will not stream

Postby lovswr » Sat Jan 09, 2010 3:46 am

Well chocolateboy I did everything that you advised & now everything (web streaming, subtitles, DTS re-encoded to LPCM 5/1 <-- this sounds great!) works except for quicktime (i.e. mov files).
Whenever I try to look at a *.mov file I don't get any errors or anything, it just does not play & my ps3 stays at a black screen. Note that if I just go to any of these files on my ubuntu box, they play just fine when I double click them (Totem Movie Player 2.28.2 is my default player). Alas, I did update my database & I still cannot locate the ps3mencoder log. It is not in /tmp.
lovswr
 
Posts: 31
Joined: Mon Jan 19, 2009 5:00 pm

Re: Web content will not stream

Postby chocolateboy » Sat Jan 09, 2010 4:15 am

lovswr wrote:everything [...] works except for quicktime (i.e. mov files). [...] Note that if I just go to any of these files on my ubuntu box, they play just fine


Are you talking about playing local .mov files? Have you tried disabling ps3mencoder and retrying those files? You can disable the ps3mencoder wrapper by putting a # at the beginning of the PMS.conf line e.g.

Code: Select all
# mencoder_path = \/path\/to\/ps3mencoder


(Make sure you quit PMS before you edit PMS.conf.) If you disable it and the problem persists, then it's nothing to do with ps3mencoder (or this thread). If you want to test .mov web streaming, try one of the Apple trailer feeds I posted earlier.

I did update my database


"locate" only locates files that existed when the database was last updated, not files created since then. If the file didn't exist when updatedb last ran, then it won't be in the database. By default, it's updated once a day, usually around 7AM on my system:

Code: Select all
man updatedb


I still cannot locate the ps3mencoder log.


(I'm assuming you have the latest version of ps3mencoder.) /tmp is cleared every time you reboot. If PMS hasn't used mencoder since you last rebooted, then the logfile won't exist. If you're sure it's used mencoder, and mencoder_path points to ps3mencoder, and the logfile still doesn't exist, then the error will be in the PMS debug log.
Last edited by chocolateboy on Sun Jan 23, 2011 11:00 am, edited 1 time in total.
chocolateboy
Project Member
 
Posts: 2577
Joined: Wed Sep 16, 2009 10:05 am

Re: Web content will not stream

Postby lovswr » Sat Jan 09, 2010 4:42 am

Yes I was referring to streaming .MOV files. I have a folder with several quicktime (MOV) movie trailers & if I just go to that folder on this PC (the same one that PS3 Media Server is installed on) then those files work just fine. However, that is all moot. I downloaded the ps3mencoder from 6 jan, & rebooted this machine. The Apple trailers that you provided in the link before, started working. Then PS3 Media Sever just crashed.

I did get one more thing to work also. Now when I check /tmp there is a ps3mencoder.log. It listed that I was streaming the the quicktime files, but nothing about the crash but when I checked debug.log in the PD3 Media Server folder I got the following. Although there is a statement below about ps3mencoder having an error 137 & to check the log file, as I stated above, the ps3mencoder.log file had no mentions of errors or the crash.

Code: Select all
[Thread-4] INFO  22:31:15.293 Forcing shutdown of all active processes
[Thread-4] DEBUG 22:31:15.293 Forcing shutdown of process java.lang.UNIXProcess@16c1227
[Thread-4] DEBUG 22:31:15.294 Killing the Unix process: 4139
[/home/lovswr/public/bin/ps3mencoder] DEBUG 22:31:15.378 EOF
[/home/lovswr/public/bin/ps3mencoder] TRACE 22:31:15.378 Process /home/lovswr/public/bin/ps3mencoder has a return code of 137! Maybe an error occured... check the log file
[/home/lovswr/public/bin/ps3mencoder] INFO  22:31:15.379 Stopping process: mkfifo
[/home/lovswr/public/bin/ps3mencoder] DEBUG 22:31:15.380 Killing the Unix process: 4134
[Thread-4] DEBUG 22:31:15.380 "kill -9 4139" successful !
[Thread-4] DEBUG 22:31:15.381 Forcing shutdown of process java.lang.UNIXProcess@4e7958
[Thread-4] DEBUG 22:31:15.381 Killing the Unix process: 4249
[Timer-3] DEBUG 22:31:15.477 Buffered Space: 49991680 bytes / inputs: 0
[Thread-4] DEBUG 22:31:15.479 "kill -9 4249" successful !
[Thread-4] INFO  22:31:15.479 Stopping server on host 192.168.1.122 and port 6001...
[Thread-60] DEBUG 22:31:15.500 kill: No such process
lovswr
 
Posts: 31
Joined: Mon Jan 19, 2009 5:00 pm

Re: Web content will not stream

Postby chocolateboy » Sat Jan 09, 2010 5:07 am

lovswr wrote:I downloaded the ps3mencoder from 6 jan, & rebooted this machine.


There's no need to reboot. It's not WIndows :-)

when I checked debug.log in the PD3 Media Server folder I got the following.


There's not enough context. Quit PMS. Delete the debug.log. Restart PMS, and try to reproduce the crash. If it happens again, attach both logs, zipped, and I'll take a look.

there is a statement below about ps3mencoder having an error 137 & to check the log file


That's a PMS message, presumably meant to be viewed in the Traces tab. The logfile it's referring to is the debug.log.
chocolateboy
Project Member
 
Posts: 2577
Joined: Wed Sep 16, 2009 10:05 am

Re: Web content will not stream

Postby ps3taker » Sat Jan 09, 2010 1:49 pm

Hi All,

When I run ps3mencoder (3,905,331 bytes) via cmd in Windows Vista I get the following:

Can't locate PAR/Heavy.pm in @INC (@INC contains: CODE(0x1673794) C:\strawberry\perl\vendor\lib .) at -e line 345.

Would you be able to kindly recompile this to eliminate this problem for me.

Kind regards

PS: After installing Strawberry Perl I get this when running ps3mencoder
C:\Program Files\PS3 Media Server\win32\ps3mencoder.exe: exec: mencoder.exe
MEncoder Sherpya-SVN-r28311-4.2.5 (C) 2000-2009 MPlayer Team
CPU: Intel(R) Core(TM)2 Duo CPU T5800 @ 2.00GHz (Family: 6, Model: 15, Step
ping: 13)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
No file given
Exiting... (error parsing command line)
C:\Program Files\PS3 Media Server\win32\ps3mencoder.exe: ERROR: can't exec mencoder.exe :
ps3taker
 
Posts: 1
Joined: Sat Jan 09, 2010 10:30 am

Re: Web content will not stream

Postby chocolateboy » Sat Jan 09, 2010 7:49 pm

I've just uploaded a new version of the .exe and of the Perl script here.

This version has a few changes.

  • It now supports a configuration file. Save it as ps3mencoder.conf (or ps3mencoder.yml if you prefer) in the same directory as your PMS.conf e.g. C:\Program Files\PS3 Media Server\ on Windows. ps3mencoder still works without it, but you'll need it if you want to stream Apple trailers.
  • The ps3mencoder logfile (ps3mencoder.log) is now stored in the current directory. If you test it from the command line, the logfile will be in your current directory. When invoked by PMS, the logfile will be in the PMS working directory i.e. alongside the debug.log.

Linux (or Mac OS X) users may need to install an additional Perl module (YAML). The README contains detailed installation instructions for all platforms.

If you've installed Strawberry Perl and no longer need it, you can uninstall it.
Last edited by chocolateboy on Sun Jan 10, 2010 12:47 am, edited 2 times in total.
chocolateboy
Project Member
 
Posts: 2577
Joined: Wed Sep 16, 2009 10:05 am

Re: Web content will not stream

Postby drani » Sun Jan 10, 2010 12:37 am

hi,
is necessary mencoder path in pms.conf? as last version, or need remove it?
thanks
drani
 
Posts: 3
Joined: Wed Jan 06, 2010 2:05 pm

PreviousNext

Return to General Help and Support

Who is online

Users browsing this forum: geb724, Google [Bot], Majestic-12 [Bot] and 23 guests