Slow transcoding from a 100Mbps wired WHS share

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.

Slow transcoding from a 100Mbps wired WHS share

Postby r0l4n » Fri Oct 09, 2009 7:29 pm

Hi:

I'm using a first generation MacBook 2Ghz with 2GB RAM running Snow Leopard 10.6.1. For some reason, mencoder_mt is no longer using both cores, cpu usage never goes above 100% for that process, very much like mencoder, and as a result, no transcoding of 720p .mkv possible.

I tried reinstalling the app, rebuilding, latest svn version, enabling and disabling multicore support, etc. No luck.

Is anybody experiencing the same thing? I checked out r359 to see whether it is a system issue or the build itself, and it seems to be the system, as the situation is the same. Could it be Java 1.6?

Thanks.

[UPDATE]: The problem seems to be related to the fact that I'm transcoding from a Windows share, although the network throughput is apparently high enough. See posts below.
Last edited by r0l4n on Wed Oct 14, 2009 6:40 pm, edited 3 times in total.
r0l4n
 
Posts: 5
Joined: Fri Oct 09, 2009 6:58 pm

Re: mencoder_mt no longer multi threaded?

Postby r0l4n » Fri Oct 09, 2009 7:57 pm

I've tried setting 4 cores as stated in http://ps3mediaserver.org/forum/viewtopic.php?f=7&t=3610#p17042 without improvement.
r0l4n
 
Posts: 5
Joined: Fri Oct 09, 2009 6:58 pm

Re: mencoder_mt no longer multi threaded?

Postby cheule » Sat Oct 10, 2009 1:04 am

Keep poking around with your settings I'd say. I have been using r356 for months, and it definitely uses multiple cores. I did have problems with getting both cores up to 100% utilization, but after setting it to 4 cores, I've got both cores maxed out, and 1080p files are transcoding with external subs (which to me was the holy grail of transcoding).

I'd say make sure you have the correct engine set, and by all means use r356 over the release... it has a ton of fixes in it.
cheule
 
Posts: 134
Joined: Wed Jun 24, 2009 4:18 am

Re: mencoder_mt no longer multi threaded?

Postby r0l4n » Sat Oct 10, 2009 11:38 am

Thanks cheule. I've been playing around quite a while, even got Java 1.5 installed in Snow Leopard to run PS3, with the same results. I got r356 and it's not using both cores either. I'd say, at this point, that the mencoder_mt binary has some problem with Snow Leopard, at least with mine. I've read in the forum that vc-1 streams are not taking advantage of multithreaded execution, but the files I'm playing with are h264.

I include a piece of debug.log in case it can help somebody troubleshooting. I just played Band.Of.Brothers.e01.720p for some seconds and stopped it:
Code: Select all
...
[New I/O server worker #1-2] DEBUG 12:29:09.439 Opened handler on socket /192.168.1.157:62503 // Playstation 3
[New I/O server worker #1-2] DEBUG 12:29:09.440 Handler infos: HTTP/1.1 : GET : get/0$0$1$1/thumbnail0000mhq-band.of.brothers.e01.currahee.720p.x264.mkv
[New I/O server worker #1-2] DEBUG 12:29:09.440 Received on socket: Accept-Encoding: identity
[New I/O server worker #1-2] DEBUG 12:29:09.440 Received on socket: Connection: Keep-Alive
[New I/O server worker #1-2] DEBUG 12:29:09.440 Received on socket: Host: 192.168.1.167:5001
[New I/O server worker #1-2] DEBUG 12:29:09.440 Received on socket: transferMode.dlna.org: Interactive
[New I/O server worker #1-2] DEBUG 12:29:09.440 Received on socket: User-Agent: PLAYSTATION 3
[New I/O server worker #1-2] INFO  12:29:09.440 HTTP: get/0$0$1$1/thumbnail0000mhq-band.of.brothers.e01.currahee.720p.x264.mkv / 0-0
[New I/O server worker #1-2] DEBUG 12:29:09.441 Searching for objectId: 0$0$1$1 with children option: false
[New I/O server worker #1-2] DEBUG 12:29:09.441 Available Content-Length: 13000
[osx/mencoder] INFO  12:29:09.443 Starting /Applications/PS3 Media Server.app/Contents/Resources/Java/osx/mencoder -ss 0 -quiet /Volumes/Videos/Band.Of.Brothers/mhq-band.of.brothers.e02.day.of.days.720p.x264.mkv -quiet -quiet -oac lavc -of mpeg -quiet -quiet -mpegopts format=mpeg2:muxrate=500000:vbuf_size=1194:abuf_size=64 -ovc lavc -channels 2 -lavdopts debug=0:threads=4 -lavcopts autoaspect=1:vcodec=mpeg2video:acodec=ac3:abitrate=384:threads=4:keyint=1:vqscale=1:vqmin=2:vrc_maxrate=60000:vrc_buf_size=1835 -subcp cp1252 -subfont /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/fonts/LucidaSansRegular.ttf -subfont-text-scale 3 -subfont-outline 1 -subfont-blur 1 -subpos 98 -quiet -quiet -sid 100 -quiet -quiet -ofps 24000/1001 -sub /Volumes/Videos/Band.Of.Brothers/mhq-band.of.brothers.e02.day.of.days.720p.x264.srt -mc 0 -noskip -af lavcresample=48000 -srate 48000 -o - -really-quiet -msglevel all=-1
[New I/O server worker #1-2] DEBUG 12:29:09.453 Sent to socket: Accept-Ranges: bytes
[New I/O server worker #1-2] DEBUG 12:29:09.454 Sent to socket: Connection: keep-alive
[New I/O server worker #1-2] DEBUG 12:29:09.454 Sent to socket: Content-Length: 13000
[New I/O server worker #1-2] DEBUG 12:29:09.454 Sent to socket: Content-Type: image/jpeg
[New I/O server worker #1-2] DEBUG 12:29:09.454 Sent to socket: Expires: Wed, 03 Feb 2010 04:15:49 GMT
[New I/O server worker #1-2] DEBUG 12:29:09.454 Sent to socket: Server: Mac_OS_X-i386-10.6.1, UPnP/1.0, PMS/1.20
[New I/O server worker #1-2] DEBUG 12:29:09.454 Sent to socket: TransferMode.DLNA.ORG: Interactive
[osx/mencoder] INFO  12:29:09.584 Attaching thread: osx/mencoder
[Timer-34] DEBUG 12:29:09.584 Buffered Space: 0 bytes / inputs: 0
[Thread-313] DEBUG 12:29:09.600 Stream with high frequencies VQ coding
[Thread-313] DEBUG 12:29:09.626 [ac3 @ 0x201c600]No channel layout specified. The encoder will guess the layout, but it might be incorrect.
[Thread-313] DEBUG 12:29:09.711 [h264 @ 0x1047800]Cannot parallelize deblocking type 1, decoding such frames in sequential order
[Timer-34] DEBUG 12:29:11.584 Buffered Space: 831488 bytes / inputs: 0
[Thread-311] INFO  12:29:11.665 Destroying buffer
[Thread-312] INFO  12:29:11.665 Destroying buffer
[Timer-34] DEBUG 12:29:13.585 Buffered Space: 1028096 bytes / inputs: 0
[New I/O server worker #1-1] DEBUG 12:29:15.545 Suspend Read: readCount=0 / writeCount=1468416
[Timer-34] DEBUG 12:29:15.585 Buffered Space: 1546239 bytes / inputs: 1
[Timer-34] DEBUG 12:29:17.585 Buffered Space: 2095103 bytes / inputs: 1
[Timer-34] DEBUG 12:29:19.585 Buffered Space: 2676735 bytes / inputs: 1
[Timer-34] DEBUG 12:29:21.585 Buffered Space: 3383295 bytes / inputs: 1
...


Note the [Thread-313] DEBUG 12:29:09.711 [h264 @ 0x1047800]Cannot parallelize deblocking type 1, decoding such frames in sequential order.

This is the output of another different file, also in h264:
Code: Select all
...
[New I/O server worker #1-2] DEBUG 12:34:08.404 Searching for objectId: 0$0$8 with children option: false
[New I/O server worker #1-2] DEBUG 12:34:08.408 Sent to socket: Content-Length: 992
[New I/O server worker #1-2] DEBUG 12:34:08.408 Sent to socket: Content-Type: text/xml; charset="utf-8"
[New I/O server worker #1-2] DEBUG 12:34:08.408 Sent to socket: Server: Mac_OS_X-i386-10.6.1, UPnP/1.0, PMS/1.20
[New I/O server worker #1-1] DEBUG 12:34:08.417 Opened handler on socket /192.168.1.157:62462 // Playstation 3
[New I/O server worker #1-1] DEBUG 12:34:08.417 Handler infos: HTTP/1.0 : HEAD : get/0$0$8$0/Star.Wars.Episode.I.The.Phantom.Menace.1999.720p.HDTV.x264.INTERNAL-hV.mkv
[New I/O server worker #1-1] DEBUG 12:34:08.417 Received on socket: Accept-Encoding: identity
[New I/O server worker #1-1] DEBUG 12:34:08.417 Received on socket: Cache-Control: no-cache
[New I/O server worker #1-1] DEBUG 12:34:08.418 Received on socket: Connection: close
[New I/O server worker #1-1] DEBUG 12:34:08.418 Received on socket: Host: 192.168.1.167:5001
[New I/O server worker #1-1] DEBUG 12:34:08.418 Received on socket: User-Agent: PLAYSTATION 3
[New I/O server worker #1-1] INFO  12:34:08.418 HTTP: get/0$0$8$0/Star.Wars.Episode.I.The.Phantom.Menace.1999.720p.HDTV.x264.INTERNAL-hV.mkv / 0-0
[New I/O server worker #1-1] DEBUG 12:34:08.418 Searching for objectId: 0$0$8$0 with children option: false
[New I/O server worker #1-1] DEBUG 12:34:08.418 Asked stream chunk [0-0] timeseek: 0.0 of Star.Wars.Episode.I.The.Phantom.Menace.1999.720p.HDTV.x264.INTERNAL-hV.mkv and player MEncoder
[New I/O server worker #1-1] TRACE 12:34:08.418 Starting transcode/remux of Star.Wars.Episode.I.The.Phantom.Menace.1999.720p.HDTV.x264.INTERNAL-hV.mkv
[New I/O server worker #1-1] DEBUG 12:34:08.418 Searching an audio track with lang: eng
[New I/O server worker #1-1] DEBUG 12:34:08.419 Matched audio track: Audio: AC3 / lang: eng / ID: 0
[New I/O server worker #1-1] DEBUG 12:34:08.422 Found subtitles track : Sub: Embedded / lang: eng / ID: 0 / FILE: -
[New I/O server worker #1-1] DEBUG 12:34:08.422 Searching a subtitle track with lang: eng
[New I/O server worker #1-1] DEBUG 12:34:08.423 Matched sub track : Sub: Embedded / lang: eng / ID: 0 / FILE: -
[osx/mencoder_mt] INFO  12:34:08.432 Starting /Applications/PS3 Media Server.app/Contents/Resources/Java/osx/mencoder_mt -ss 0 -quiet /Volumes/Videos/Star.Wars/Star.Wars.Episode.I.The.Phantom.Menace.1999.720p.HDTV.x264.INTERNAL-hV.mkv -quiet -quiet -oac copy -of mpeg -quiet -quiet -mpegopts format=mpeg2:muxrate=500000:vbuf_size=1194:abuf_size=64 -ovc lavc -channels 2 -lavdopts debug=0:threads=4 -lavcopts autoaspect=1:vcodec=mpeg2video:acodec=ac3:abitrate=256:threads=4:keyint=1:vqscale=1:vqmin=2:vrc_maxrate=60000:vrc_buf_size=7000 -subcp cp1252 -subfont /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/fonts/LucidaSansRegular.ttf -subfont-text-scale 3 -subfont-outline 1 -subfont-blur 1 -subpos 98 -quiet -quiet -sid 0 -quiet -quiet -ofps 25 -quiet -quiet -lavdopts fast -mc 0 -noskip -af lavcresample=48000 -srate 48000 -o - -really-quiet -msglevel all=-1
[osx/mencoder_mt] INFO  12:34:08.552 Attaching thread: osx/mencoder_mt
[Timer-41] DEBUG 12:34:08.553 Buffered Space: 0 bytes / inputs: 0
[Thread-376] DEBUG 12:34:08.588 Using SSE optimized IMDCT transform
[Thread-376] DEBUG 12:34:08.596 Using MMX optimized resampler
[Timer-41] DEBUG 12:34:10.553 Buffered Space: 5539840 bytes / inputs: 0
[Timer-41] DEBUG 12:34:12.553 Buffered Space: 10993664 bytes / inputs: 0
[New I/O server worker #1-1] DEBUG 12:34:14.535 Ready to Stop: true
[New I/O server worker #1-1] DEBUG 12:34:14.536 Sent to socket: Accept-Ranges: bytes
[New I/O server worker #1-1] DEBUG 12:34:14.536 Sent to socket: Connection: keep-alive
[New I/O server worker #1-1] DEBUG 12:34:14.536 Sent to socket: Content-Type: video/mpeg
[New I/O server worker #1-1] DEBUG 12:34:14.536 Sent to socket: Server: Mac_OS_X-i386-10.6.1, UPnP/1.0, PMS/1.20
[New I/O server worker #1-2] DEBUG 12:34:14.539 Opened handler on socket /192.168.1.157:62461 // Playstation 3
[New I/O server worker #1-2] DEBUG 12:34:14.539 Handler infos: HTTP/1.0 : GET : get/0$0$8$0/Star.Wars.Episode.I.The.Phantom.Menace.1999.720p.HDTV.x264.INTERNAL-hV.mkv
[New I/O server worker #1-2] DEBUG 12:34:14.539 Received on socket: Accept-Encoding: identity
[New I/O server worker #1-2] DEBUG 12:34:14.539 Received on socket: Cache-Control: no-cache
[New I/O server worker #1-2] DEBUG 12:34:14.540 Received on socket: Connection: close
[New I/O server worker #1-2] DEBUG 12:34:14.540 Received on socket: Host: 192.168.1.167:5001
[New I/O server worker #1-2] DEBUG 12:34:14.540 Received on socket: User-Agent: PLAYSTATION 3
[New I/O server worker #1-2] INFO  12:34:14.540 HTTP: get/0$0$8$0/Star.Wars.Episode.I.The.Phantom.Menace.1999.720p.HDTV.x264.INTERNAL-hV.mkv / 0-0
[New I/O server worker #1-2] DEBUG 12:34:14.540 Searching for objectId: 0$0$8$0 with children option: false
[New I/O server worker #1-2] DEBUG 12:34:14.540 Asked stream chunk [0-0] timeseek: 0.0 of Star.Wars.Episode.I.The.Phantom.Menace.1999.720p.HDTV.x264.INTERNAL-hV.mkv and player MEncoder
[New I/O server worker #1-2] DEBUG 12:34:14.540 Ready to Stop: false
[New I/O server worker #1-2] DEBUG 12:34:14.543 Sent to socket: Accept-Ranges: bytes
[New I/O server worker #1-2] DEBUG 12:34:14.544 Sent to socket: Connection: keep-alive
[New I/O server worker #1-2] DEBUG 12:34:14.544 Sent to socket: Content-Type: video/mpeg
[New I/O server worker #1-2] DEBUG 12:34:14.544 Sent to socket: Server: Mac_OS_X-i386-10.6.1, UPnP/1.0, PMS/1.20
[New I/O server worker #1-2] DEBUG 12:34:14.544 Ready to Stop: true
[New I/O server worker #1-1] DEBUG 12:34:14.547 Opened handler on socket /192.168.1.157:62460 // Playstation 3
[New I/O server worker #1-1] DEBUG 12:34:14.547 Handler infos: HTTP/1.1 : GET : get/0$0$8$0/Star.Wars.Episode.I.The.Phantom.Menace.1999.720p.HDTV.x264.INTERNAL-hV.mkv
[New I/O server worker #1-1] DEBUG 12:34:14.547 Received on socket: Accept-Encoding: identity
[New I/O server worker #1-1] DEBUG 12:34:14.548 Received on socket: Connection: Keep-Alive
[New I/O server worker #1-1] DEBUG 12:34:14.548 Received on socket: Host: 192.168.1.167:5001
[New I/O server worker #1-1] DEBUG 12:34:14.548 Received on socket: TimeSeekRange.dlna.org: npt=0.000-
[New I/O server worker #1-1] DEBUG 12:34:14.548 Received on socket: transferMode.dlna.org: Streaming
[New I/O server worker #1-1] DEBUG 12:34:14.548 Received on socket: User-Agent: PLAYSTATION 3
[New I/O server worker #1-1] INFO  12:34:14.548 HTTP: get/0$0$8$0/Star.Wars.Episode.I.The.Phantom.Menace.1999.720p.HDTV.x264.INTERNAL-hV.mkv / 0-0
[New I/O server worker #1-1] DEBUG 12:34:14.548 Searching for objectId: 0$0$8$0 with children option: false
[New I/O server worker #1-1] DEBUG 12:34:14.548 Asked stream chunk [0-0] timeseek: 0.0 of Star.Wars.Episode.I.The.Phantom.Menace.1999.720p.HDTV.x264.INTERNAL-hV.mkv and player MEncoder
[New I/O server worker #1-1] DEBUG 12:34:14.548 Ready to Stop: false
[New I/O server worker #1-1] DEBUG 12:34:14.551 Sent to socket: Accept-Ranges: bytes
[New I/O server worker #1-1] DEBUG 12:34:14.551 Sent to socket: Connection: keep-alive
[New I/O server worker #1-1] DEBUG 12:34:14.551 Sent to socket: Content-Type: video/mpeg
[New I/O server worker #1-1] DEBUG 12:34:14.551 Sent to socket: Server: Mac_OS_X-i386-10.6.1, UPnP/1.0, PMS/1.20
[New I/O server worker #1-1] DEBUG 12:34:14.551 Sent to socket: TransferMode.DLNA.ORG: Streaming
[Timer-41] DEBUG 12:34:14.553 Buffered Space: 14125055 bytes / inputs: 1
[New I/O server worker #1-1] DEBUG 12:34:14.711 Ready to Stop: true
[New I/O server worker #1-2] DEBUG 12:34:14.716 Opened handler on socket /192.168.1.157:62459 // Playstation 3
[New I/O server worker #1-2] DEBUG 12:34:14.716 Handler infos: HTTP/1.1 : GET : get/0$0$8$0/Star.Wars.Episode.I.The.Phantom.Menace.1999.720p.HDTV.x264.INTERNAL-hV.mkv
[New I/O server worker #1-2] DEBUG 12:34:14.716 Received on socket: Accept-Encoding: identity
[New I/O server worker #1-2] DEBUG 12:34:14.716 Received on socket: Connection: Keep-Alive
[New I/O server worker #1-2] DEBUG 12:34:14.716 Received on socket: Host: 192.168.1.167:5001
[New I/O server worker #1-2] DEBUG 12:34:14.716 Received on socket: TimeSeekRange.dlna.org: npt=0.000-
[New I/O server worker #1-2] DEBUG 12:34:14.717 Received on socket: transferMode.dlna.org: Streaming
[New I/O server worker #1-2] DEBUG 12:34:14.717 Received on socket: User-Agent: PLAYSTATION 3
[New I/O server worker #1-2] INFO  12:34:14.717 HTTP: get/0$0$8$0/Star.Wars.Episode.I.The.Phantom.Menace.1999.720p.HDTV.x264.INTERNAL-hV.mkv / 0-0
[New I/O server worker #1-2] DEBUG 12:34:14.717 Searching for objectId: 0$0$8$0 with children option: false
[New I/O server worker #1-2] DEBUG 12:34:14.717 Asked stream chunk [0-0] timeseek: 0.0 of Star.Wars.Episode.I.The.Phantom.Menace.1999.720p.HDTV.x264.INTERNAL-hV.mkv and player MEncoder
[New I/O server worker #1-2] DEBUG 12:34:14.717 Ready to Stop: false
[New I/O server worker #1-2] DEBUG 12:34:14.720 Sent to socket: Accept-Ranges: bytes
[New I/O server worker #1-2] DEBUG 12:34:14.720 Sent to socket: Connection: keep-alive
[New I/O server worker #1-2] DEBUG 12:34:14.720 Sent to socket: Content-Type: video/mpeg
[New I/O server worker #1-2] DEBUG 12:34:14.720 Sent to socket: Server: Mac_OS_X-i386-10.6.1, UPnP/1.0, PMS/1.20
[New I/O server worker #1-2] DEBUG 12:34:14.720 Sent to socket: TransferMode.DLNA.ORG: Streaming
[Timer-41] DEBUG 12:34:16.554 Buffered Space: 8267775 bytes / inputs: 1
[Timer-41] DEBUG 12:34:18.555 Buffered Space: 8187903 bytes / inputs: 1
[Timer-41] DEBUG 12:34:20.554 Buffered Space: 8404991 bytes / inputs: 1
[Timer-41] DEBUG 12:34:22.555 Buffered Space: 10117119 bytes / inputs: 1
[Timer-41] DEBUG 12:34:24.556 Buffered Space: 13760511 bytes / inputs: 1
[New I/O server worker #1-2] DEBUG 12:34:25.736 Ready to Stop: true
[New I/O server worker #1-1] DEBUG 12:34:25.823 Opened handler on socket /192.168.1.157:62458 // Playstation 3
[New I/O server worker #1-1] DEBUG 12:34:25.823 Handler infos: HTTP/1.1 : GET : get/0$0$8$0/thumbnail0000Star.Wars.Episode.I.The.Phantom.Menace.1999.720p.HDTV.x264.INTERNAL-hV.mkv
[New I/O server worker #1-1] DEBUG 12:34:25.823 Received on socket: Accept-Encoding: identity
[New I/O server worker #1-1] DEBUG 12:34:25.823 Received on socket: Connection: Keep-Alive
[New I/O server worker #1-1] DEBUG 12:34:25.823 Received on socket: Host: 192.168.1.167:5001
[New I/O server worker #1-1] DEBUG 12:34:25.823 Received on socket: transferMode.dlna.org: Interactive
[New I/O server worker #1-1] DEBUG 12:34:25.823 Received on socket: User-Agent: PLAYSTATION 3
[New I/O server worker #1-1] INFO  12:34:25.823 HTTP: get/0$0$8$0/thumbnail0000Star.Wars.Episode.I.The.Phantom.Menace.1999.720p.HDTV.x264.INTERNAL-hV.mkv / 0-0
[New I/O server worker #1-1] DEBUG 12:34:25.823 Searching for objectId: 0$0$8$0 with children option: false
[New I/O server worker #1-1] DEBUG 12:34:25.824 Available Content-Length: 63899
[New I/O server worker #1-1] DEBUG 12:34:25.848 Sent to socket: Accept-Ranges: bytes
[New I/O server worker #1-1] DEBUG 12:34:25.848 Sent to socket: Connection: keep-alive
[New I/O server worker #1-1] DEBUG 12:34:25.848 Sent to socket: Content-Length: 63899
[New I/O server worker #1-1] DEBUG 12:34:25.848 Sent to socket: Content-Type: image/jpeg
[New I/O server worker #1-1] DEBUG 12:34:25.848 Sent to socket: Expires: Wed, 03 Feb 2010 04:21:05 GMT
[New I/O server worker #1-1] DEBUG 12:34:25.848 Sent to socket: Server: Mac_OS_X-i386-10.6.1, UPnP/1.0, PMS/1.20
[New I/O server worker #1-1] DEBUG 12:34:25.848 Sent to socket: TransferMode.DLNA.ORG: Interactive
[Timer-41] DEBUG 12:34:26.555 Buffered Space: 41887744 bytes / inputs: 0
[Thread-384] INFO  12:34:28.238 Stopping process: osx/mencoder_mt
[Thread-384] DEBUG 12:34:28.239 Killing the Unix process: 4789
[Thread-377] INFO  12:34:28.247 Error consuming stream of spawned process:Stream closed
[Thread-385] INFO  12:34:28.254 Destroying buffer
[osx/mencoder_mt] DEBUG 12:34:28.445 EOF
[Thread-384] DEBUG 12:34:28.447 "kill -9 4789" successful !
[Thread-384] INFO  12:34:28.447 Destroying buffer
[Thread-384] INFO  12:34:29.029 Destroying buffer
...
r0l4n
 
Posts: 5
Joined: Fri Oct 09, 2009 6:58 pm

Re: mencoder_mt no longer multi threaded?

Postby cheule » Sat Oct 10, 2009 3:43 pm

I'm in a rush at the moment, so I haven't looked over your logs. But I just wanted to assure you that I am using a stock Snow Leopard install (Isn't that Java 1.6?) and I am transcoding over multiple cores, 100% usage (when I selected 4 cores, with 2 I was getting 60% or so).

I am using Mac Mini Intel 2009, Core Duo 2 2.0ghz, with Stock Snow Leopard, PMS r356. This is with all MKVs (90% of which are h264).

Will look into it more for you when I have some time.
cheule
 
Posts: 134
Joined: Wed Jun 24, 2009 4:18 am

Re: mencoder_mt no longer multi threaded?

Postby r0l4n » Mon Oct 12, 2009 6:59 pm

I found the issue: the speed of my Windows Home Server shares. I have my movies in a duplicated share in a WHS and the transfer rate is so slow that it can't even keep up with the transcoding. It's unbelievable, how can it be so slow, around 10Mbps top on a 100Mbps network setup... At least is relieving the fact that I finally spotted the cause.

Thanks cheule for your time.
r0l4n
 
Posts: 5
Joined: Fri Oct 09, 2009 6:58 pm

Re: mencoder_mt no longer multi threaded?

Postby cheule » Tue Oct 13, 2009 1:46 am

Glad you found the culprit. Sorry I couldn't nail it down for you, but perhaps at least my reassurances that it wasn't the MT engine sent you down the right path. Good luck on speeding up your file server.
cheule
 
Posts: 134
Joined: Wed Jun 24, 2009 4:18 am

Re: mencoder_mt no longer multi threaded?

Postby r0l4n » Tue Oct 13, 2009 5:23 pm

Thanks ;)

I managed to speed up reading from the shares, but mencoder seems not to optimize fetching data from them. When I copy a file from the Share to the local machine via Finder, I get speeds of over 8MB/s, which is great for a 100Mbps network. When I transcode a file from a Share to a local file (or even /dev/null) the transfer rate seems to be the bottleneck (although it never goes above 2MB/s), as mencoder_mt never goes above 130% cpu usage, and transcoding the same file using the same options from the local volume gets a CPU usage well over 170%. So first I managed to get MacOSX to read from shares quickly, now I have to find out why meconder is lazy fetching data from the Shares. Is it maybe a latency issue? Buffering? I'm doing some research on mencoder parameters, without luck so far. Any help is very appreciated :roll:
r0l4n
 
Posts: 5
Joined: Fri Oct 09, 2009 6:58 pm


Return to Mac OS X Support

Who is online

Users browsing this forum: asvoren, Bing [Bot] and 1 guest