zrevai / ps3mediaserver

Automatically exported from code.google.com/p/ps3mediaserver
2 stars 0 forks source link

[Video] MKfifo issue with Mencoder on OSX #213

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Play the file 
2.
3.

What is the expected output? What do you see instead?
The file should play, but SOMETIMES it doesn't play and say DATA IS CORRUPTED

What version of the product are you using? On what operating system?
PSM 1.03, OSX Leopard 10.5.6, 100Mbps wired network

If you are transcoding a media file, which engine are you using (mencoder, 
avisynth/mencoder, 
tsmuxer?)
MEncoder

If the media file is in error (or does not play flawlessly), what are the codec 
informations of this 
file (you can use following program: mediainfo.sourceforge.net) ? 
XviD with subtitles

Please provide any additional information below and PLEASE JOIN debug.log file 
!!
[Thread-569] TRACE 14:56:34.697 Starting transcode of House MD - 121 - Three 
Stories - 
hdtv-lol.avi
[Thread-570] DEBUG 14:56:34.715 Received on socket: Host: 10.0.1.199:5001
[Thread-570] DEBUG 14:56:34.715 Received on socket: User-Agent: UPnP/1.0 
DLNADOC/1.50
[Thread-570] DEBUG 14:56:34.715 Received on socket: Content-Length: 909
[Thread-570] DEBUG 14:56:34.715 Received on socket: Content-Type: text/xml; 
charset="utf-
8"
[Thread-570] DEBUG 14:56:34.715 Received on socket: SOAPACTION: 
"urn:schemas-upnp-
org:service:ContentDirectory:1#Browse"
[Thread-570] INFO  14:56:34.715 HTTP: upnp/control/content_directory / 0-0
[Thread-570] DEBUG 14:56:34.715 Wrote on socket: HTTP/1.1 200 OK
[Thread-570] DEBUG 14:56:34.715 Wrote on socket: CONTENT-TYPE: text/xml; 
charset="utf-8"
[Thread-570] DEBUG 14:56:34.715 Searching for objectId: 0$0$5$1$0 with children 
option: 
false
[Thread-570] DEBUG 14:56:34.715 Wrote on socket: Server: Mac OS X-i386-10.5.6 
UPnP/1.0, 
PMS
[Thread-570] DEBUG 14:56:34.715 Wrote on socket: Content-Length: 1060
[Thread-570] DEBUG 14:56:34.715 Wrote on socket: 
[Thread-570] DEBUG 14:56:34.715 Close Connection
[mkfifo] INFO  14:56:34.716 Starting mkfifo -m 777 
/tmp/javaps3media/mencoder1232556994699
[osx/mencoder] INFO  14:56:34.773 Starting /Applications/PS3 Media 
Server.app/Contents/Resources/Java/osx/mencoder -ss 0 -quiet 
/Volumes/Zoidberg/MEDIA/House S01/House MD - 121 - Three Stories - hdtv-lol.avi 
-quiet -
quiet -oac lavc -of mpeg -mpegopts 
format=mpeg2:muxrate=500000:vbuf_size=1194:abuf_size=64 -ovc lavc -channels 6 -
lavdopts debug=0:threads=2 -lavcopts 
autoaspect=1:vcodec=mpeg2video:acodec=ac3:abitrate=384:threads=2:keyint=1:vqscal
e=1:vq
min=2 -subcp cp1252 -alang fre,jpn,ger,eng -font 
/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/fonts/Lucida
SansReg
ular.ttf -subfont-text-scale 3 -subfont-outline 1 -subfont-blur 1 -subpos 98 
-quiet -quiet -
sid 100 -quiet -quiet -ofps 24000/1001 -sub /Volumes/Zoidberg/MEDIA/House 
S01/House 
MD - 121 - Three Stories - hdtv-lol.srt -mc 0.1 -af lavcresample=48000 -srate 
48000 -o 
/tmp/javaps3media/mencoder1232556994699
[osx/mencoder] INFO  14:56:34.780 Reading pipe: 
/tmp/javaps3media/mencoder1232556994699
[osx/mencoder] DEBUG 14:56:34.780 Opening file 
/tmp/javaps3media/mencoder1232556994699 for reading...
java.io.FileNotFoundException: /tmp/javaps3media/mencoder1232556994699 (No such 
file or 
directory)
    at java.io.RandomAccessFile.open(Native Method)
    at java.io.RandomAccessFile.<init>(RandomAccessFile.java:212)
    at java.io.RandomAccessFile.<init>(RandomAccessFile.java:98)
    at net.pms.io.PipeProcess.getInputStream(PipeProcess.java:117)
    at net.pms.io.ProcessWrapperImpl.run(ProcessWrapperImpl.java:94)
[osx/mencoder] TRACE 14:56:34.781 java.io.FileNotFoundException: 
/tmp/javaps3media/mencoder1232556994699 (No such file or directory)
[osx/mencoder] TRACE 14:56:34.787   at java.io.RandomAccessFile.open(Native 
Method)
[osx/mencoder] TRACE 14:56:34.787   at 
java.io.RandomAccessFile.<init>(RandomAccessFile.java:212)
[osx/mencoder] TRACE 14:56:34.787   at 
java.io.RandomAccessFile.<init>(RandomAccessFile.java:98)
[osx/mencoder] TRACE 14:56:34.787   at 
net.pms.io.PipeProcess.getInputStream(PipeProcess.java:117)
[osx/mencoder] TRACE 14:56:34.787   at 
net.pms.io.ProcessWrapperImpl.run(ProcessWrapperImpl.java:94)
[Thread-569] DEBUG 14:56:40.823 Wrote on socket: Content-Type: video/mpeg
[Thread-569] DEBUG 14:56:40.824 Wrote on socket: Connection: keep-alive
[Thread-569] DEBUG 14:56:40.824 Wrote on socket: Server: Mac OS X-i386-10.5.6 
UPnP/1.0, 
PMS
[Thread-569] DEBUG 14:56:40.824 Wrote on socket: Content-Length: 0
[Thread-569] DEBUG 14:56:40.824 Wrote on socket: 
[Thread-569] DEBUG 14:56:40.824 Close Connection

Original issue reported on code.google.com by shay...@gmail.com on 21 Jan 2009 at 5:14

GoogleCodeExporter commented 9 years ago
different symptoms but same cause: mencoder / mkfifo mechanism issue

Original comment by ps3mediaserver@gmail.com on 21 Jan 2009 at 6:16

GoogleCodeExporter commented 9 years ago

Original comment by ps3mediaserver@gmail.com on 21 Jan 2009 at 6:16

GoogleCodeExporter commented 9 years ago
(Wrote about this in the OS X support issue, feel free to delete that comment. 
I'm
assuming leftover instances of mencoder/mplayer are because of this error as 
well)

It's maybe obvious but this manifests itself with mplayer as well.

[Thread-1495] TRACE 19:29:58.570 Starting transcode of 01 Intro.m4a
[mkfifo] INFO  19:29:58.571 Starting mkfifo -m 777
/tmp/javaps3media/mplayer_aud1232562598570
[osx/mplayer] INFO  19:29:58.671 Starting /Applications/PS3 Media
Server.app/Contents/Resources/Java/osx/mplayer /Volumes/CRYPT1/pub/Music/Snoop
Dogg/The Chronicalz/01 Intro.m4a -prefer-ipv4 -af channels=2 -srate 44100 -vo 
null
-ao pcm:waveheader:fast:file=/tmp/javaps3media/mplayer_aud1232562598570 -quiet
[osx/mplayer] INFO  19:29:58.675 Reading pipe: 
/tmp/javaps3media/mplayer_aud1232562598570
[osx/mplayer] DEBUG 19:29:58.675 Opening file
/tmp/javaps3media/mplayer_aud1232562598570 for reading...
java.io.FileNotFoundException: /tmp/javaps3media/mplayer_aud1232562598570 (No 
such
file or directory)
    at java.io.RandomAccessFile.open(Native Method)
    at java.io.RandomAccessFile.<init>(RandomAccessFile.java:212)
    at java.io.RandomAccessFile.<init>(RandomAccessFile.java:98)
    at net.pms.io.PipeProcess.getInputStream(PipeProcess.java:117)
    at net.pms.io.ProcessWrapperImpl.run(ProcessWrapperImpl.java:94)
[osx/mplayer] TRACE 19:29:58.676 java.io.FileNotFoundException:
/tmp/javaps3media/mplayer_aud1232562598570 (No such file or directory)
[osx/mplayer] TRACE 19:29:58.679    at java.io.RandomAccessFile.open(Native 
Method)
[osx/mplayer] TRACE 19:29:58.680    at
java.io.RandomAccessFile.<init>(RandomAccessFile.java:212)
[osx/mplayer] TRACE 19:29:58.680    at
java.io.RandomAccessFile.<init>(RandomAccessFile.java:98)
[osx/mplayer] TRACE 19:29:58.683    at
net.pms.io.PipeProcess.getInputStream(PipeProcess.java:117)
[osx/mplayer] TRACE 19:29:58.683    at
net.pms.io.ProcessWrapperImpl.run(ProcessWrapperImpl.java:94)

Original comment by tsangb...@gmail.com on 21 Jan 2009 at 7:28

GoogleCodeExporter commented 9 years ago
Yes this a known issue. I'm currently testing a build that could fix this once 
and
for all.

Original comment by robinmul...@gmail.com on 22 Jan 2009 at 12:00

GoogleCodeExporter commented 9 years ago
Yes, still having MEncoder crashes with just about all .mkv files

Original comment by wefly...@yahoo.com on 8 Feb 2009 at 6:17

GoogleCodeExporter commented 9 years ago
This should have been fixed a while ago.

Original comment by robinmul...@gmail.com on 5 Apr 2009 at 6:22