transcode to h264 instead of mpeg2

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.

transcode to h264 instead of mpeg2

Postby cputoaster » Sun Jul 12, 2009 3:30 pm

Hi, I am trying to stream over internet. This works fine through a virtual lan adapter. I would like to have the best possible quality for a certain bandwidth. The server is well equipped (quad core i7 920, 2,67Ghz 6GB ram, dual intel-SSDs) and can transcode an iso to x264 with very high quality with 50fps. Is there any way to change the mencoder options to transcode to x264 instead of mpeg2 for streaming??

info:
1- your computer specs (cpu, memory) and the precise server version you're using
Core i7 920, 4x2.6Ghz, 6GB RAM
Ubuntu Jaunty Linux xxxx 2.6.28-11-server #42-Ubuntu SMP Fri Apr 17 02:45:36 UTC 2009 x86_64 GNU/Linux
PMS 1.10.5

2- the network connection you are using for streaming your files (wifi, homeplugs, ethernet 100Mbits, or gigabit)
server 100mbps -> internet 25mbps -> router -> ethernet -> 802.11n -> ethernet -> PS3

3- detailed infos on what's not working

Transcoding to anything else then mpeg2

4- if you're transcoding some videos, which engine are you using ? (mencoder, avisynth/mencoder, tsmuxer)

mencoder

5- a debug.log file excerpt, or you can zip the whole file. this file can be found in the application directory, or if you have UAC and Vista activated, likely found in the Windows temp directory
6- if you are streaming to anything other than a PS3, please mention it
Last edited by cputoaster on Sun Jul 12, 2009 4:04 pm, edited 1 time in total.
cputoaster
 
Posts: 5
Joined: Sun Jul 12, 2009 3:02 pm

Re: transcode to h264 instead of mpeg2

Postby meskibob » Sun Jul 12, 2009 3:54 pm

If you know of an free/open H264 encoder that can encode the file to memory and then stream it, then you may be in luck. AFAIK there isn't one, otherwise shagrath would probably already be using it...
I provide NO application support via PM or email, so please post your question to the forum per the Forum Rules.
meskibob
Moderator
 
Posts: 4739
Joined: Mon Jan 19, 2009 4:11 pm

Re: transcode to h264 instead of mpeg2

Postby cputoaster » Sun Jul 12, 2009 4:08 pm

So mencoder when used with -ovc x264 does not have the same output modes then with -ovc lavc? I was assuming it was just using a named pipe on the filesystem, which was used regardless of the codec.
cputoaster
 
Posts: 5
Joined: Sun Jul 12, 2009 3:02 pm

Re: transcode to h264 instead of mpeg2

Postby shagrath » Sun Jul 12, 2009 9:36 pm

high quality and real time h264 encoding is a bit... optimistic :)
shagrath
Project Lead
 
Posts: 2664
Joined: Wed Jan 14, 2009 1:39 pm

Re: transcode to h264 instead of mpeg2

Postby cputoaster » Mon Jul 13, 2009 4:06 pm

Just from a little test, this here (just a test):

mencoder -chapter 3-3 -dvd-device MyTest.iso dvd://1 -oac copy -ovc x264 -x264encopts subq=6:partitions=all:8x8dct:me=umh:frameref=5:bframes=3:b_pyramid:weight_b:threads=auto:bitrate=5000 -o test.avi

(encoding speed always > 45fps)

seems to be superior to this (from the debug.log):

mencoder -chapter 3-3 -ss 0 -dvd-device MyTest.iso dvd://1 -oac copy -of mpeg -lavfopts format=asf -mpegopts format=mpeg2:muxrate=500000:vbuf_size=1194:abuf_size=64:vaspect=16/9 -ovc lavc -channels 6 -lavdopts debug=0:threads=8 -lavcopts autoaspect=1:vcodec=mpeg2video:acodec=ac3:abitrate=640:threads=8:keyint=25:vqmax=5:vqmin=2:vrc_maxrate=5000:vrc_buf_size=1835 -subcp cp1252 -fribidi-charset cp1252 -subfont /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf -subfont-text-scale 3 -subfont-outline 1 -subfont-blur 1 -subpos 98 -aid 128 -subdelay 20000 -ofps 25 -af lavcresample=48000 -srate 48000 -o test2.mpeg

(encoding speed always > 175fps)

What would be the needed fps to be viable for streaming?
Last edited by cputoaster on Mon Jul 13, 2009 4:37 pm, edited 1 time in total.
cputoaster
 
Posts: 5
Joined: Sun Jul 12, 2009 3:02 pm

Re: transcode to h264 instead of mpeg2

Postby ExSport » Mon Jul 13, 2009 4:37 pm

Sorry but not all people here have CORE i7 ;) Also your encode is DVD = 720x480....so it means HD 720p or 1080p is impossible ;) Because that MPEG2 is only solution...
ExSport
 
Posts: 2161
Joined: Mon Jan 19, 2009 5:40 pm

Re: transcode to h264 instead of mpeg2

Postby cputoaster » Mon Jul 13, 2009 4:41 pm

ExSport wrote:Sorry but not all people here have CORE i7 ;) Also your encode is DVD = 720x480....so it means HD 720p or 1080p is impossible ;) Because that MPEG2 is only solution...


sure, but machines do tend to get faster with time anyway ;-). I am just asking because it would make this particular case (low-bandwidth internet streaming of standard definition material) nicer with only some configuration change in the mencoder call. I guess your answers mean that this cannot be configured over the PMS.conf file then.
cputoaster
 
Posts: 5
Joined: Sun Jul 12, 2009 3:02 pm


Return to General Help and Support

Who is online

Users browsing this forum: Bing [Bot] and 20 guests