You are here: Forums PlayStation Chat » PS3 Discussion » Linux » How to get PC to PS3 working with MediaTomb! (debian PC)   

PlayStation Universe News
Next Assassin's Creed set in Rome, on...
  Posted 57 m ago
  6 comments
Ghost Recon: Future Soldier confirmed...
  Posted 2 h 7 m ago
  6 comments
EA considering Dead Space Extraction ...
  Posted 4 h 36 m ago
  14 comments
Weekly Blu-ray releases; February 9, ...
  Posted 7 h 10 m ago
  8 comments

Linux Here you can discuss Linux and its role on PlayStation.

Quick Register
Our records show you have not yet registered to our forums. To sign up for your FREE account INSTANTLY fill out the form below!

Username: Password: Confirm Password: E-Mail: Confirm E-Mail:
  Agree to forum rules 

Reply
 
Thread Tools Display Modes
Old May 31st, 2007   #1
solinent
Master Poster
solinent is well respectedsolinent is well respectedsolinent is well respectedsolinent is well respected  Rep Power: 30
solinent's Avatar
Join Date: 18th June 2006
Age: 18
Posts: 1,866
PSN ID: solinent
solinent's Icons

Default How to get PC to PS3 working with MediaTomb! (debian PC)

For linux users on the PC.

1. Install Mediatomb
This is quite easy on debian/ubuntu, as mediatomb is in the repos. Just type into a terminal:
Code:
sudo apt-get install mediatomb
If that doesn't work, make sure you have all the repos enabled by typing sudo synaptic, then go to Settings>Repositories and then make sure all the availiable repositories are checked.

If the install goes well, you're all set to go.
For non-debian/if it doesn't go well:
First, check if there is a binary availiable for your package via http://mediatomb.cc/pages/download
If there is not, then you have to install from source. This would work by downloading a tar.gz package from www.mediatomb.cc and then using the tar command to extract it, the compile. An example:

Code:
tar xzf mediatomb-0.9.1.tar.gz
cd mediatomb-0.9.1
sudo ./configure
sudo make
sudo make install
You may get some errors when running ./configure, you need to install depenancies. That is beyond the scope of this tutorial.

If you're on debain, instead of sudo make install, do this if you want to have it installed into your add/remove and applications menu.
Code:
sudo checkinstall
2. Configure mediatomb.

This is slightly more confusing. This is how I did it (no means the "right" way)

First, I ran the command mediatomb and it created a directory in my home directory, along with a configuration file. You may need to press ctrl+c to end the task if it doesn't crash (this is good, it is already working!).

After, you should open /home/username/.mediatomb/config.xml and edit it in your favourite text editor:

Code:
cd .mediatomb
gedit config.xml
You should add
Code:
<protocolInfo extend="yes"/>
just below <server> to enable PS3.

It should autodetect, your IP, but you may have to force it. If it doesn't work, look to troubleshooting section (to be added) and if you don't use a router, then it's probably not an IP problem. I had to add ip in by myself.

The file charset and metadata charset are just the format your characters will show up. Some weird album names I have, like Ænima showed up as ?nima without doing this (the default is UTF-8 ).

This is how mine looks (with the stuff I added highlighted):
Code:
<?xml version="1.0" encoding="UTF-8"?>
<config xmlns="http://mediatomb.cc/0.9.1/config" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://mediatomb.cc/0.9.1/config http://mediatomb.cc/0.9.1/config.xsd">
  <server>
    <ip>192.168.1.102</ip>
    <name>Network Media</name>
    <protocolInfo extend="yes"/>
    <ui enabled="yes">
      <accounts enabled="no" session-timeout="30"/>
    </ui>
    <name>MediaTomb</name>
    <udn>uuid:8ed95145-55a1-49ef-9782-810284c25520</udn>
    <home>/home/adrian/.mediatomb</home>
    <webroot>/usr/share/mediatomb/web</webroot>
    <storage driver="sqlite3">
      <database-file>mediatomb.db</database-file>
    </storage>
  </server>
  <import hidden-files="no">
    <filesystem-charset>ISO-8859-1</filesystem-charset>
    <metadata-charset>ISO-8859-1</metadata-charset>
    <virtual-layout type="builtin">
      <script>/usr/share/mediatomb/js/import.js</script>
    </virtual-layout>
    <mappings>
      <extension-mimetype ignore-unknown="no">
        <map from="mp3" to="audio/mpeg"/>
        <map from="ogg" to="application/ogg"/>
        <map from="asf" to="video/x-ms-asf"/>
        <map from="asx" to="video/x-ms-asf"/>
        <map from="wma" to="audio/x-ms-wma"/>
        <map from="wax" to="audio/x-ms-wax"/>
        <map from="wmv" to="video/x-ms-wmv"/>
        <map from="wvx" to="video/x-ms-wvx"/>
        <map from="wm" to="video/x-ms-wm"/>
        <map from="wmx" to="video/x-ms-wmx"/>
        <map from="wmx" to="video/x-ms-wmx"/>
      </extension-mimetype>
      <mimetype-upnpclass>
        <map from="audio/*" to="object.item.audioItem.musicTrack"/>
        <map from="application/ogg" to="object.item.audioItem.musicTrack"/>
        <map from="video/*" to="object.item.videoItem"/>
        <map from="image/*" to="object.item.imageItem"/>
      </mimetype-upnpclass>
      <mimetype-contenttype>
        <treat mimetype="audio/mpeg" as="mp3"/>
        <treat mimetype="application/ogg" as="ogg"/>
        <treat mimetype="audio/x-flac" as="flac"/>
        <treat mimetype="image/jpeg" as="jpg"/>
      </mimetype-contenttype>
    </mappings>
  </import>
</config>
At this point, save the file, and close it. Then run mediatomb via a terminal, and if it gives you an error message, post it here and I'll see what I can do. Google is your friend (mediatomb is more obscure though, the official website is helpful though).

3. Tweaking

If it runs fine, it should give you an ip that will look similar to this: 192.168.1.102:49152 or this: 127.0.0.1:49152

The second one is me guessing what will happen if you don't have a router. It should guess your IP, but it comes with an error, you may need to enter it manually.

Now, ctrl+click that IP in the terminal, and it should open your browser with a mediatomb page that'll allow you to tweak it. It's pretty weird, so I'll guide you through it.

First, click Filesystem at the top, then navigate to where your media is. Click on the folder that you want, then click this button at the right: [img=http://mediatomb.cc/images/add_as_autoscan.png] It'll come up with a dialog, so enter what you want, and then continue. It should pop up with a message saying that it is scanning. Wait for it to complete, then go click on "Database". Then click on "Audio". If it isn't named Audio, it is the directory that's not called "PC directory".

Now, browse to find your files, make adjustments, and you're set to go.

Finally, go to your PS3, click "scan for media devices" if it isn't there already, and you should be good to go.

Troubleshooting

- If your IP address is not found, or you get an error like that, go to your router's address in your browser (default for linksys WRT54G is http://192.168.1.1
). Default password is admin, with no username. Some other routers it is username admin, password nothing. In the case of my router, it said starts at "Starting IP Address: 192.168.1.100" and I tried 101, didn't work, then I tried 102, and it worked well.
- Otherwise post here. I didn't encouter any other issues.

Annoyances I encoutered, and could not fix --

After every track name there is an asterisk. I have no idea why this is.
No album art shows up. This one is probably because no other Upnp devices support album art, so it may be in the svn builds.
__________________
PSN ID: solinent | I accept all friend requests! |
*insert generic quote about the ps3 taking over including bold for maximum effect (colors and size changes also apply)*

Last edited by solinent; June 1st, 2007 at 01:06 AM.
  Reply With Quote solinent is offline
Old June 1st, 2007   #2
anjiru0009
Veteran
anjiru0009 is well respectedanjiru0009 is well respectedanjiru0009 is well respectedanjiru0009 is well respected  Rep Power: 25
anjiru0009's Avatar
Join Date: 30th November 2006
Age: 25
Posts: 807
anjiru0009's Icons

Default

Great write up im going to give it a try later one question what app do you reccomend to do video conversions??? Oh one for 64 bit cpu's would be great.
__________________


  Reply With Quote anjiru0009 is offline
Old June 1st, 2007   #3
solinent
Master Poster
solinent is well respectedsolinent is well respectedsolinent is well respectedsolinent is well respected  Rep Power: 30
solinent's Avatar
Join Date: 18th June 2006
Age: 18
Posts: 1,866
PSN ID: solinent
solinent's Icons

Default

Quote:
Originally Posted by anjiru0009 View Post
Great write up im going to give it a try later one question what app do you reccomend to do video conversions??? Oh one for 64 bit cpu's would be great.
Well I haven't really done any since I started using linux as I'm quite the newbie myself.

I'm pretty sure there's one out there called Mencoder and you can use ffmpeg directly via the commandline.

ffmpeg examples

http://ps3wiki.qj.net/index.php/Usin...eo_for_the_PS3
__________________
PSN ID: solinent | I accept all friend requests! |
*insert generic quote about the ps3 taking over including bold for maximum effect (colors and size changes also apply)*
  Reply With Quote solinent is offline
Old June 2nd, 2007   #4
anjiru0009
Veteran
anjiru0009 is well respectedanjiru0009 is well respectedanjiru0009 is well respectedanjiru0009 is well respected  Rep Power: 25
anjiru0009's Avatar
Join Date: 30th November 2006
Age: 25
Posts: 807
anjiru0009's Icons

Default

Quote:
Originally Posted by solinent View Post
Well I haven't really done any since I started using linux as I'm quite the newbie myself.

I'm pretty sure there's one out there called Mencoder and you can use ffmpeg directly via the commandline.

ffmpeg examples

http://ps3wiki.qj.net/index.php/Usin...eo_for_the_PS3
Thanks im going to look into it also, Hopefully their is x86 support. I mean I have had this amd 64 for like a year and a half and still have yet to see one benefit.
__________________


  Reply With Quote anjiru0009 is offline
Old June 5th, 2007   #5
solinent
Master Poster
solinent is well respectedsolinent is well respectedsolinent is well respectedsolinent is well respected  Rep Power: 30
solinent's Avatar
Join Date: 18th June 2006
Age: 18
Posts: 1,866
PSN ID: solinent
solinent's Icons

Default

Quote:
Originally Posted by anjiru0009 View Post
Thanks im going to look into it also, Hopefully their is x86 support. I mean I have had this amd 64 for like a year and a half and still have yet to see one benefit.
x86 means 32 bit archetecture. x64 means 64 bits I believe.

You should install x86 version of linux on your AMD 64 if you aren't an advanced user who can't compile everything for themselves, and even then there's more problems with x64 versions.

x64 is only necessary when you have a large amount of memory and you use it all (server applications).
__________________
PSN ID: solinent | I accept all friend requests! |
*insert generic quote about the ps3 taking over including bold for maximum effect (colors and size changes also apply)*
  Reply With Quote solinent is offline
Old June 5th, 2007   #6
SpEnTBoY
Apprentice
SpEnTBoY has a solid reputation  Rep Power: 20
Join Date: 5th June 2007
Location: SK, Canada
Age: 36
Posts: 68
Gender: Male
PSN ID: SpEnTBoY
SpEnTBoY's Icons

Default

Great write up! I tried to compile the svn release but ran into snag after snag so I just compiled the latest stable (running on Mandriva 2007.1) works like a charm.

It's painfully evident however that I need to organize my available media content


Now if I could only get some video transcoded properly that would work on the PS3 and not suck. I've tried a ton of different options including using the link you provided to see if it would work for transcoding some existing avi's I have. I can get video _sometimes_ but never any audio (even using liblame).

Anyway ... more digging to be done but thanks for the tutorial on this!! I'll post if I ever find a solid video transcode line for mencoder or ffmpeg.

  Reply With Quote SpEnTBoY is offline
Old June 6th, 2007   #7
solinent
Master Poster
solinent is well respectedsolinent is well respectedsolinent is well respectedsolinent is well respected  Rep Power: 30
solinent's Avatar
Join Date: 18th June 2006
Age: 18
Posts: 1,866
PSN ID: solinent
solinent's Icons

Default

Quote:
Originally Posted by SpEnTBoY View Post
Great write up! I tried to compile the svn release but ran into snag after snag so I just compiled the latest stable (running on Mandriva 2007.1) works like a charm.

It's painfully evident however that I need to organize my available media content


Now if I could only get some video transcoded properly that would work on the PS3 and not suck. I've tried a ton of different options including using the link you provided to see if it would work for transcoding some existing avi's I have. I can get video _sometimes_ but never any audio (even using liblame).

Anyway ... more digging to be done but thanks for the tutorial on this!! I'll post if I ever find a solid video transcode line for mencoder or ffmpeg.

I got a MPEG4 AVC, but couldn't get MP4Box to work. This the Mencoder command I used:
Code:
mencoder INPUT -ovc x264 -oac faac -x264encopts subq=6:pass=1:bitrate=1000:bframes=3:partitions=p8x8,b8x8,i4x4:weight_b:threads=auto:nopsnr:nossim:frameref=3:mixed_refs:bime:brdo:level_idc=41:direct_pred=auto:trellis=1 -o "OUTPUT.avi"
You may want to change the bitrate, and obviously the INPUT and output name.

MP4box should work, but I have no idea how.
__________________
PSN ID: solinent | I accept all friend requests! |
*insert generic quote about the ps3 taking over including bold for maximum effect (colors and size changes also apply)*
  Reply With Quote solinent is offline
Old June 6th, 2007   #8
SpEnTBoY
Apprentice
SpEnTBoY has a solid reputation  Rep Power: 20
Join Date: 5th June 2007
Location: SK, Canada
Age: 36
Posts: 68
Gender: Male
PSN ID: SpEnTBoY
SpEnTBoY's Icons

Default

I'll give that a shot. So far everything I've tried has failed I've posted som of my other failures using ffmpeg but I like mencoder more ... I just could not get a handle on the whole x264options string ... I still don't understand it which means I'll have some reading to do

Either way I'll post my results and if this works .... I've got a lot of files I can play around with now. For me this is the better solution to putting a larger HD in the machine itself, much rather use a media server.

Thanks solinent!!
  Reply With Quote SpEnTBoY is offline
Old June 6th, 2007   #9
solinent
Master Poster
solinent is well respectedsolinent is well respectedsolinent is well respectedsolinent is well respected  Rep Power: 30
solinent's Avatar
Join Date: 18th June 2006
Age: 18
Posts: 1,866
PSN ID: solinent
solinent's Icons

Default

Quote:
Originally Posted by SpEnTBoY View Post
I'll give that a shot. So far everything I've tried has failed I've posted som of my other failures using ffmpeg but I like mencoder more ... I just could not get a handle on the whole x264options string ... I still don't understand it which means I'll have some reading to do

Either way I'll post my results and if this works .... I've got a lot of files I can play around with now. For me this is the better solution to putting a larger HD in the machine itself, much rather use a media server.

Thanks solinent!!

I couldn't get ffmpeg to install. I only tried for like a minute, so when I get back to my other computer I'll see if I can use ffmpeg.

That Mencoder command will give you a AVC avi, you need to use a program like MP4Box to make it a mp4 (no conversion, shouldn't take very long)
__________________
PSN ID: solinent | I accept all friend requests! |
*insert generic quote about the ps3 taking over including bold for maximum effect (colors and size changes also apply)*
  Reply With Quote solinent is offline
Old June 7th, 2007   #10
SpEnTBoY
Apprentice
SpEnTBoY has a solid reputation  Rep Power: 20
Join Date: 5th June 2007
Location: SK, Canada
Age: 36
Posts: 68
Gender: Male
PSN ID: SpEnTBoY
SpEnTBoY's Icons

Default

Quote:
Originally Posted by solinent View Post
I couldn't get ffmpeg to install. I only tried for like a minute, so when I get back to my other computer I'll see if I can use ffmpeg.

That Mencoder command will give you a AVC avi, you need to use a program like MP4Box to make it a mp4 (no conversion, shouldn't take very long)
No chance there's one for Linux? I don't have any windows machines ... I'll see what I can find ... I think I saw "source" somewhere

For posterity here's my pre and post AVI file reads:

Before:
RIFF (little-endian) data, AVI, 400 x 300, ~30 fps, video: FFMpeg MPEG-4, audio: MPEG-1 Layer 1 or 2 (stereo, 22050 Hz)

After using your command(same file):
RIFF (little-endian) data, AVI, 400 x 300, ~30 fps, video: X.264, audio: (stereo, 22050 Hz)

I still get the "unsupported" but need to find something similar to MP4Box to convert to mp4 under Linux
  Reply With Quote SpEnTBoY is offline
Old June 7th, 2007   #11
solinent
Master Poster
solinent is well respectedsolinent is well respectedsolinent is well respectedsolinent is well respected  Rep Power: 30
solinent's Avatar
Join Date: 18th June 2006
Age: 18
Posts: 1,866
PSN ID: solinent
solinent's Icons

Default

Quote:
Originally Posted by SpEnTBoY View Post
No chance there's one for Linux? I don't have any windows machines ... I'll see what I can find ... I think I saw "source" somewhere

For posterity here's my pre and post AVI file reads:

Before:
RIFF (little-endian) data, AVI, 400 x 300, ~30 fps, video: FFMpeg MPEG-4, audio: MPEG-1 Layer 1 or 2 (stereo, 22050 Hz)

After using your command(same file):
RIFF (little-endian) data, AVI, 400 x 300, ~30 fps, video: X.264, audio: (stereo, 22050 Hz)

I still get the "unsupported" but need to find something similar to MP4Box to convert to mp4 under Linux
MP4Box IS a linux app, go do a "apt-get install gpac" and you should have it. GPAC is the program surrounding MP4Box and a bunch of other utilities.

I'm on a linux comp, not my comp, but I'll see if I can get a ffmpeg command to work, or MP4Box.
__________________
PSN ID: solinent | I accept all friend requests! |
*insert generic quote about the ps3 taking over including bold for maximum effect (colors and size changes also apply)*
  Reply With Quote solinent is offline
Old June 7th, 2007   #12
SpEnTBoY
Apprentice
SpEnTBoY has a solid reputation  Rep Power: 20
Join Date: 5th June 2007
Location: SK, Canada
Age: 36
Posts: 68
Gender: Male
PSN ID: SpEnTBoY
SpEnTBoY's Icons

Default

I'm running this all on Mandriva .. I do however have MP4Box installed but can't seem to get it working on any avi file, although I'm sure it's the way I'm trying to use it:

Code:
# MP4Box -add myfile.avi myfile.mp4
Error importing myfile.avi: Feature Not Supported

I checked and it _should_ be supported:

# MP4Box -h format
Suppported raw formats and file extensions:
NHNT .media .nhnt .info
NHML .nhml (opt: .media .info)
MPEG-1-2 Video .m1v .m2v
MPEG-4 Video .cmp .m4v
H263 Video .263 .h263
AVC/H264 Video .h264 .h26L .264 .26L
JPEG Images .jpg .jpeg
PNG Images .png
MPEG 1-2 Audio .mp3, .m1a, .m2a
ADTS-AAC Audio .aac
AMR(WB) Audio .amr .awb
EVRC Audio .evc
SMV Audio .smv

Supported containers and file extensions:
AVI .avi
MPEG-2 PS .mpg .mpeg .vob .vcd .svcd
MPEG-2 TS .ts .m2t
QCP .qcp
OGG .ogg
ISO-Media files no extension checking

Supported text formats:
SRT Subtitles .srt
SUB Subtitles .sub
GPAC Timed Text .ttxt
QuickTime TeXML Text .xml (cf QT documentation)

Supported Scene formats:
MPEG-4 XMT-A .xmt .xmta .xmt.gz .xmta.gz
MPEG-4 BT .bt .bt.gz
VRML .wrl .wrl.gz
X3D-XML .x3d .x3d.gz
X3D-VRML .x3dv .x3dv.gz
MacroMedia Flash .swf (very limitted import support only)


I'll keep trying stuff
  Reply With Quote SpEnTBoY is offline
Old June 7th, 2007   #13
solinent
Master Poster
solinent is well respectedsolinent is well respectedsolinent is well respectedsolinent is well respected  Rep Power: 30
solinent's Avatar
Join Date: 18th June 2006
Age: 18
Posts: 1,866
PSN ID: solinent
solinent's Icons

Default

Quote:
Originally Posted by SpEnTBoY View Post
I'm running this all on Mandriva .. I do however have MP4Box installed but can't seem to get it working on any avi file, although I'm sure it's the way I'm trying to use it:

Code:
# MP4Box -add myfile.avi myfile.mp4
Error importing myfile.avi: Feature Not Supported

I checked and it _should_ be supported:

# MP4Box -h format
Suppported raw formats and file extensions:
NHNT .media .nhnt .info
NHML .nhml (opt: .media .info)
MPEG-1-2 Video .m1v .m2v
MPEG-4 Video .cmp .m4v
H263 Video .263 .h263
AVC/H264 Video .h264 .h26L .264 .26L
JPEG Images .jpg .jpeg
PNG Images .png
MPEG 1-2 Audio .mp3, .m1a, .m2a
ADTS-AAC Audio .aac
AMR(WB) Audio .amr .awb
EVRC Audio .evc
SMV Audio .smv

Supported containers and file extensions:
AVI .avi
MPEG-2 PS .mpg .mpeg .vob .vcd .svcd
MPEG-2 TS .ts .m2t
QCP .qcp
OGG .ogg
ISO-Media files no extension checking

Supported text formats:
SRT Subtitles .srt
SUB Subtitles .sub
GPAC Timed Text .ttxt
QuickTime TeXML Text .xml (cf QT documentation)

Supported Scene formats:
MPEG-4 XMT-A .xmt .xmta .xmt.gz .xmta.gz
MPEG-4 BT .bt .bt.gz
VRML .wrl .wrl.gz
X3D-XML .x3d .x3d.gz
X3D-VRML .x3dv .x3dv.gz
MacroMedia Flash .swf (very limitted import support only)


I'll keep trying stuff
I think you have to export the audio and video seperately, and then put them in the same file. I read a post about it being a feature that's up and coming for you to do what you're trying.

I've installed MPlayer and MEncoder and MP4box on this comp now (compiled, took awhile), and converting a test video. Almost done, will show you my results. If it turns out good, maybe I'll make a GUI app for gnome? I have no experience programming linux stuff though, but it'd be fun. Maybe just a bash script to start up right?

Something that deletes the temp files and encodes all files straight, without you seeing what happens. Simply something like this I would make:

PS3convert INPUT OUPUT -b BITRATE

edit:
GOT IT TO WORK!

Pretty easy.
Code:
MP4Box -aviraw video file.avi
MP4Box -aviraw audio file.avi
mv file_audio.raw file_audio.aac
MP4Box -add file_audio.aac -add file_video.h264 finaloutput.mp4
EDIT: Will post new topic.
__________________
PSN ID: solinent | I accept all friend requests! |
*insert generic quote about the ps3 taking over including bold for maximum effect (colors and size changes also apply)*

Last edited by solinent; June 7th, 2007 at 04:20 AM.
  Reply With Quote solinent is offline
Old June 7th, 2007   #14
SpEnTBoY
Apprentice
SpEnTBoY has a solid reputation  Rep Power: 20
Join Date: 5th June 2007
Location: SK, Canada
Age: 36
Posts: 68
Gender: Male
PSN ID: SpEnTBoY
SpEnTBoY's Icons

Default

SWEET!! ... ok I'm going to borrow that and do some testing. Let me know if you want to put something together or if you just want to do a shell script idea. I've done a few small apps but mostly perl based CLI stuff. It's one of those things that could easily be over dome ... but like you said it could be fun

ttys sol'
  Reply With Quote SpEnTBoY is offline
Old June 7th, 2007   #15
solinent
Master Poster
solinent is well respectedsolinent is well respectedsolinent is well respectedsolinent is well respected  Rep Power: 30
solinent's Avatar
Join Date: 18th June 2006
Age: 18
Posts: 1,866
PSN ID: solinent
solinent's Icons

Default

Quote:
Originally Posted by SpEnTBoY View Post
SWEET!! ... ok I'm going to borrow that and do some testing. Let me know if you want to put something together or if you just want to do a shell script idea. I've done a few small apps but mostly perl based CLI stuff. It's one of those things that could easily be over dome ... but like you said it could be fun

ttys sol'
Your welcome. I don't have my ps3, so if you're unable to get it to work, I'd ask that you download a mp4 file that I created (gran turismo hd vid) and try it out.

PS3 is at another house

EDIT: I created a new thread outlining all the steps I took.
__________________
PSN ID: solinent | I accept all friend requests! |
*insert generic quote about the ps3 taking over including bold for maximum effect (colors and size changes also apply)*
  Reply With Quote solinent is offline
Old June 7th, 2007   #16
SpEnTBoY
Apprentice
SpEnTBoY has a solid reputation  Rep Power: 20
Join Date: 5th June 2007
Location: SK, Canada
Age: 36
Posts: 68
Gender: Male
PSN ID: SpEnTBoY
SpEnTBoY's Icons

Default

Yeah so far I'm getting no love. MP4Box keeps failing on me:

Code:
# MP4Box -add filename.aac -add filename.h264 filename.mp4
*** buffer overflow detected ***: MP4Box terminated
======= Backtrace: =========
/lib/i686/libc.so.6(__chk_fail+0x41)[0xb7c84f91]
/lib/i686/libc.so.6(__strcpy_chk+0x43)[0xb7c84493]
MP4Box[0x804e650]
[0x69706d79]
======= Memory map: ========
08048000-0806c000 r-xp 00000000 fc:00 8904726    /usr/bin/MP4Box
0806c000-0806e000 rw-p 00024000 fc:00 8904726    /usr/bin/MP4Box
0806e000-08be7000 rw-p 0806e000 00:00 0          [heap]
b732a000-b73f4000 rw-p b732a000 00:00 0
b73f4000-b74be000 rw-p b7814000 00:00 0
b75d1000-b769b000 rw-p b75d1000 00:00 0
b7775000-b7806000 rw-p b7775000 00:00 0
b786f000-b7879000 r-xp 00000000 fc:00 4258905    /lib/libgcc_s-4.1.2.so.1
b7879000-b787a000 rw-p 0000a000 fc:00 4258905    /lib/libgcc_s-4.1.2.so.1
b7897000-b7928000 rw-p b7897000 00:00 0
b7928000-b79b9000 rw-p b799f000 00:00 0
b79c0000-b79c1000 rw-p b79c0000 00:00 0
b79c1000-b79c3000 r-xp 00000000 fc:00 4258838    /lib/libdl-2.4.so
b79c3000-b79c5000 rw-p 00001000 fc:00 4258838    /lib/libdl-2.4.so
b79c5000-b79d5000 r-xp 00000000 fc:00 4258847    /lib/i686/libpthread-2.4.so
b79d5000-b79d7000 rw-p 0000f000 fc:00 4258847    /lib/i686/libpthread-2.4.so
b79d7000-b79da000 rw-p b79d7000 00:00 0
b79da000-b7b25000 r-xp 00000000 fc:00 8745188    /usr/lib/libcrypto.so.0.9.8
b7b25000-b7b3a000 rw-p 0014b000 fc:00 8745188    /usr/lib/libcrypto.so.0.9.8
b7b3a000-b7b3d000 rw-p b7b3a000 00:00 0
b7b3d000-b7b7c000 r-xp 00000000 fc:00 8745189    /usr/lib/libssl.so.0.9.8
b7b7c000-b7b80000 rw-p 0003e000 fc:00 8745189    /usr/lib/libssl.so.0.9.8
b7b80000-b7ba5000 r-xp 00000000 fc:00 4258841    /lib/i686/libm-2.4.so
b7ba5000-b7ba7000 rw-p 00024000 fc:00 4258841    /lib/i686/libm-2.4.so
b7ba7000-b7cd0000 r-xp 00000000 fc:00 4258828    /lib/i686/libc-2.4.so
b7cd0000-b7cd1000 r--p 00129000 fc:00 4258828    /lib/i686/libc-2.4.so
b7cd1000-b7cd3000 rw-p 0012a000 fc:00 4258828    /lib/i686/libc-2.4.so
b7cd3000-b7cd6000 rw-p b7cd3000 00:00 0
b7cd6000-b7ce8000 r-xp 00000000 fc:00 4258871    /lib/libz.so.1.2.3
b7ce8000-b7ce9000 rw-p 00011000 fc:00 4258871    /lib/libz.so.1.2.3
b7ce9000-b7f6d000 r-xp 00000000 fc:00 8872054    /usr/lib/libgpac-0.4.3-DEV.so
b7f6d000-b7f72000 rw-p 00284000 fc:00 8872054    /usr/lib/libgpac-0.4.3-DEV.so
b7f72000-b7f75000 rw-p b7f72000 00:00 0
b7f8f000-b7f90000 rw-p b7f8f000 00:00 0
b7f91000-b7f92000 rw-p b7f91000 00:00 0
b7f92000-b7faa000 r-xp 00000000 fc:00 4258823    /lib/ld-2.4.so
b7faa000-b7fab000 r--p 00017000 fc:00 4258823    /lib/ld-2.4.so
b7fab000-b7fac000 rw-p 00018000 fc:00 4258823    /lib/ld-2.4.so
bff28000-bff63000 rw-p bff28000 00:00 0          [stack]
bfffe000-bffff000 r-xp bfffe000 00:00 0
Aborted
I think I'll try building it myself and see what happens ... I'm using an RPM binary for MP4Box right now. I'll look for the other thread ... do you have a link to your file?

  Reply With Quote SpEnTBoY is offline
Old June 7th, 2007   #17
solinent
Master Poster
solinent is well respectedsolinent is well respectedsolinent is well respectedsolinent is well respected  Rep Power: 30
solinent's Avatar
Join Date: 18th June 2006
Age: 18
Posts: 1,866
PSN ID: solinent
solinent's Icons

Default

I got a weird error until I built it myself.

Also, for some reason, checkinstall always failed.

I made a script, and no the file is too big, it would take a couple hours for me to upload on my very bad connection (upload speed is like 50kBps)

I don't want to use my bandwidth either. If you can't build MP4Box, then I'll give you the file.

I made a shell script, which should work (format is PS3convert INPUT.avi OUTPUT bitrate)
OUTPUT shouldn't have the .mp4 part, just a name. So I would use

PS3convert granturismo.wmv PS3granturismo 2000

to convert a video with an output name of PS3granturismo.mp4 and 2000 bitrate. I'll look into adding tags and such.

Code:
#!/bin/sh
echo "EXECUTING COMMAND: mencoder $1 -ovc x264 -oac faac -x264encopts subq=6:pass=1:bitrate=$3:bframes=3:partitions=p8x8,b8x8,i4x4:weight_b:threads=auto:nopsnr:nossim:frameref=3:mixed_refs:bime:brdo:level_idc=41:direct_pred=auto:trellis=1 -o "$2.avi""

echo "Now converting to AVC.  This will take the most time."

mencoder $1 -ovc x264 -oac faac -x264encopts subq=6:pass=1:bitrate=$3:bframes=3:partitions=p8x8,b8x8,i4x4:weight_b:threads=auto:nopsnr:nossim:frameref=3:mixed_refs:bime:brdo:level_idc=41:direct_pred=auto:trellis=1 -o "$2.avi"

echo "Now converting avi to MP4, due to limitations."
MP4Box -aviraw video $2.avi
MP4Box -aviraw audio $2.avi
mv $2_audio.raw $2_audio.aac
MP4Box -add $2_audio.aac -add $2_video.h264 $2.mp4
__________________
PSN ID: solinent | I accept all friend requests! |
*insert generic quote about the ps3 taking over including bold for maximum effect (colors and size changes also apply)*
  Reply With Quote solinent is offline
Old June 7th, 2007   #18
SpEnTBoY
Apprentice
SpEnTBoY has a solid reputation  Rep Power: 20
Join Date: 5th June 2007
Location: SK, Canada
Age: 36
Posts: 68
Gender: Male
PSN ID: SpEnTBoY
SpEnTBoY's Icons

Default

Works like a charm!! ... now I have a whack of files that need to be converted thanks for all the help! FINALLY I can convert my existing avi files to something I can use see.

I'll probably hack something together like you did for a script too although I'm not sure what I'd really change or add other than aspect info and bitrate which you've already popped in.

I'm just going to add cheap hard drives to an existing machine now and use mediatomb instead of putting a bigger drive in the PS3 ... very happy!!
  Reply With Quote SpEnTBoY is offline
Old June 8th, 2007   #19
solinent
Master Poster
solinent is well respectedsolinent is well respectedsolinent is well respectedsolinent is well respected  Rep Power: 30
solinent's Avatar
Join Date: 18th June 2006
Age: 18
Posts: 1,866
PSN ID: solinent
solinent's Icons

Default

Quote:
Originally Posted by SpEnTBoY View Post
Works like a charm!! ... now I have a whack of files that need to be converted thanks for all the help! FINALLY I can convert my existing avi files to something I can use see.

I'll probably hack something together like you did for a script too although I'm not sure what I'd really change or add other than aspect info and bitrate which you've already popped in.

I'm just going to add cheap hard drives to an existing machine now and use mediatomb instead of putting a bigger drive in the PS3 ... very happy!!
Great!

Just wondering -- is your PS3 connected via a router or just a ethernet cable.

I can't seem to play video encoded by our script over mediatomb, probably because my router is sending a weak connection to my PS3 upstairs.

Hmm, will look and see if I have a problem with my PS3 (running folding at home for quite a few days, maybe I need to let it cool down?).
__________________
PSN ID: solinent | I accept all friend requests! |
*insert generic quote about the ps3 taking over including bold for maximum effect (colors and size changes also apply)*
  Reply With Quote solinent is offline
Old June 8th, 2007   #20
SpEnTBoY
Apprentice
SpEnTBoY has a solid reputation  Rep Power: 20
Join Date: 5th June 2007
Location: SK, Canada
Age: 36
Posts: 68
Gender: Male
PSN ID: SpEnTBoY
SpEnTBoY's Icons

Default

Quote:
Originally Posted by solinent View Post
Great!

Just wondering -- is your PS3 connected via a router or just a ethernet cable.

I can't seem to play video encoded by our script over mediatomb, probably because my router is sending a weak connection to my PS3 upstairs.

Hmm, will look and see if I have a problem with my PS3 (running folding at home for quite a few days, maybe I need to let it cool down?).
I can play it but sometimes I have to select the file that says "unsupported", click on the triangle button and select play from there. After that it's recognized and starts playing right away

I have a pretty crazy home network actually but ... my one internal network is pretty flat and I don't limit any traffic on that network. Basically all the machines go through a firewall but for the internal network it acts more like a switch.

As soon as I create a file I manually add it through mediatomb and so far they all have played. When I get home I'll see if the audio issue gets fixed for me too.

As a note ... I grabbed that latest SVN release of mediatomb and then added your changes to the config file
  Reply With Quote SpEnTBoY is offline
Old June 8th, 2007   #21
SpEnTBoY
Apprentice
SpEnTBoY has a solid reputation  Rep Power: 20
Join Date: 5th June 2007
Location: SK, Canada
Age: 36
Posts: 68
Gender: Male
PSN ID: SpEnTBoY
SpEnTBoY's Icons

Default

Here's my config (just in case anything is different):
Code:
<?xml version="1.0" encoding="UTF-8"?>
<config xmlns="http://mediatomb.cc/0.9.2/config" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://mediatomb.cc/0.9.2/config http://mediatomb.cc/0.9.2/config.xsd">
        <server>
          <protocolInfo extend="yes"/>
    <ui enabled="yes">
      <accounts enabled="no" session-timeout="30"/>
    </ui>
    <name>SpEnT LiVe MeDiA</name>
    <udn>uuid:0143f253-496c-4b71-899d-3b44a5a8aac7</udn>
    <home>/home/lonny/.mediatomb</home>
    <webroot>/usr/local/share/mediatomb/web</webroot>
    <storage driver="sqlite3">
      <database-file>mediatomb.db</database-file>
    </storage>
  </server>
  <import hidden-files="no">
        <filesystem-charset>ISO-8859-1</filesystem-charset>
        <metadata-charset>ISO-8859-1</metadata-charset>
    <scripting script-charset="UTF-8">
      <common-script>/usr/local/share/mediatomb/js/common.js</common-script>
      <playlist-script>/usr/local/share/mediatomb/js/playlists.js</playlist-script>
      <virtual-layout type="builtin">
        <import-script>/usr/local/share/mediatomb/js/import.js</import-script>
      </virtual-layout>
    </scripting>
    <mappings>
      <extension-mimetype ignore-unknown="no">
        <map from="mp3" to="audio/mpeg"/>
        <map from="ogg" to="application/ogg"/>
        <map from="asf" to="video/x-ms-asf"/>
        <map from="asx" to="video/x-ms-asf"/>
        <map from="wma" to="audio/x-ms-wma"/>
        <map from="wax" to="audio/x-ms-wax"/>
        <map from="wmv" to="video/x-ms-wmv"/>
        <map from="wvx" to="video/x-ms-wvx"/>
        <map from="wm" to="video/x-ms-wm"/>
        <map from="wmx" to="video/x-ms-wmx"/>
        <map from="wmx" to="video/x-ms-wmx"/>
        <map from="m3u" to="audio/x-mpegurl"/>
        <map from="pls" to="audio/x-scpls"/>
      </extension-mimetype>
      <mimetype-upnpclass>
        <map from="audio/*" to="object.item.audioItem.musicTrack"/>
        <map from="application/ogg" to="object.item.audioItem.musicTrack"/>
        <map from="video/*" to="object.item.videoItem"/>
        <map from="image/*" to="object.item.imageItem"/>
      </mimetype-upnpclass>
      <mimetype-contenttype>
        <treat mimetype="audio/mpeg" as="mp3"/>
        <treat mimetype="application/ogg" as="ogg"/>
        <treat mimetype="audio/x-flac" as="flac"/>
        <treat mimetype="image/jpeg" as="jpg"/>
        <treat mimetype="audio/x-mpegurl" as="playlist"/>
        <treat mimetype="audio/x-scpls" as="playlist"/>
      </mimetype-contenttype>
    </mappings>
  </import>
</config>
  Reply With Quote SpEnTBoY is offline
Old June 9th, 2007   #22
solinent
Master Poster
solinent is well respectedsolinent is well respectedsolinent is well respectedsolinent is well respected  Rep Power: 30
solinent's Avatar
Join Date: 18th June 2006
Age: 18
Posts: 1,866
PSN ID: solinent
solinent's Icons

Default

Quote:
Originally Posted by SpEnTBoY View Post
Here's my config (just in case anything is different):
Code:
<?xml version="1.0" encoding="UTF-8"?>
<config xmlns="http://mediatomb.cc/0.9.2/config" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://mediatomb.cc/0.9.2/config http://mediatomb.cc/0.9.2/config.xsd">
        <server>
          <protocolInfo extend="yes"/>
    <ui enabled="yes">
      <accounts enabled="no" session-timeout="30"/>
    </ui>
    <name>SpEnT LiVe MeDiA</name>
    <udn>uuid:0143f253-496c-4b71-899d-3b44a5a8aac7</udn>
    <home>/home/lonny/.mediatomb</home>
    <webroot>/usr/local/share/mediatomb/web</webroot>
    <storage driver="sqlite3">
      <database-file>mediatomb.db</database-file>
    </storage>
  </server>
  <import hidden-files="no">
        <filesystem-charset>ISO-8859-1</filesystem-charset>
        <metadata-charset>ISO-8859-1</metadata-charset>
    <scripting script-charset="UTF-8">
      <common-script>/usr/local/share/mediatomb/js/common.js</common-script>
      <playlist-script>/usr/local/share/mediatomb/js/playlists.js</playlist-script>
      <virtual-layout type="builtin">
        <import-script>/usr/local/share/mediatomb/js/import.js</import-script>
      </virtual-layout>
    </scripting>
    <mappings>
      <extension-mimetype ignore-unknown="no">
        <map from="mp3" to="audio/mpeg"/>
        <map from="ogg" to="application/ogg"/>
        <map from="asf" to="video/x-ms-asf"/>
        <map from="asx" to="video/x-ms-asf"/>
        <map from="wma" to="audio/x-ms-wma"/>
        <map from="wax" to="audio/x-ms-wax"/>
        <map from="wmv" to="video/x-ms-wmv"/>
        <map from="wvx" to="video/x-ms-wvx"/>
        <map from="wm" to="video/x-ms-wm"/>
        <map from="wmx" to="video/x-ms-wmx"/>
        <map from="wmx" to="video/x-ms-wmx"/>
        <map from="m3u" to="audio/x-mpegurl"/>
        <map from="pls" to="audio/x-scpls"/>
      </extension-mimetype>
      <mimetype-upnpclass>
        <map from="audio/*" to="object.item.audioItem.musicTrack"/>
        <map from="application/ogg" to="object.item.audioItem.musicTrack"/>
        <map from="video/*" to="object.item.videoItem"/>
        <map from="image/*" to="object.item.imageItem"/>
      </mimetype-upnpclass>
      <mimetype-contenttype>
        <treat mimetype="audio/mpeg" as="mp3"/>
        <treat mimetype="application/ogg" as="ogg"/>
        <treat mimetype="audio/x-flac" as="flac"/>
        <treat mimetype="image/jpeg" as="jpg"/>
        <treat mimetype="audio/x-mpegurl" as="playlist"/>
        <treat mimetype="audio/x-scpls" as="playlist"/>
      </mimetype-contenttype>
    </mappings>
  </import>
</config>
Yeah I determined it was just my connection. I started the video, and then I let it stay at the black screen for like 1 minute, and it started playing. It was buffering I guess, definitely due to my linksys router (my internet connection doesn't get through! only 2mb/8mb connection! So I am streaming a HD video at like 2mb/s or 2/8mB/s which is pretty low (125kB/s). My bitrate is higher than that, and that's probably the reason. Thanks for posting your config anyways though

EDIT: btw, I'll add you on PSN
__________________
PSN ID: solinent | I accept all friend requests! |
*insert generic quote about the ps3 taking over including bold for maximum effect (colors and size changes also apply)*
  Reply With Quote solinent is offline
Old June 9th, 2007   #23
SpEnTBoY
Apprentice
SpEnTBoY has a solid reputation  Rep Power: 20
Join Date: 5th June 2007
Location: SK, Canada
Age: 36
Posts: 68
Gender: Male
PSN ID: SpEnTBoY
SpEnTBoY's Icons

Default

Re PSN ... cool I sent the request a little while ago but I'm on my PSP doing a remote session to the PS3 downstairs again while I'm waiting for this transcode lol
  Reply With Quote SpEnTBoY is offline
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian Live/Install CD Now Available. HydraQuest Linux 5 January 17th, 2007 11:21 PM
Another Linux -Debian Live- available on PS3 [-Z-] PS3 Discussion 0 January 17th, 2007 08:28 PM
ps3 HDD working yet DEViANCE PS3 Discussion 10 November 18th, 2006 01:42 AM
My PC isn't working with my PSP! MajesticEdge PS1, PS2 & PSP Discussion 9 November 28th, 2005 07:58 PM
Working PS3 at E3! Schmeh PS3 Discussion 44 February 3rd, 2005 10:38 PM


All times are GMT +1. The time now is 08:01 PM.


vBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright PSU.com