russellhq
19th May 2008, 09:48
As the title suggets, I am trying to stream my media collection to the PS3 from my linux box using Mediatomb.
I've setup Mediatomb (compiled from source, what a task!) and have it interacting with the PS3 i.e. can stream divx movies in avi containers no problems.
My next project is to stream my mkv files, these contain 720p .h264 video and ac3 audio.
Using Mediatomb, you can change the mimetype of mkv files on the fly and also you have an option to use a transcoder to convert them to a suitable format. The transcoder uses 3 arguments and uses a FIFO output file to do the streaming:
agent: program/script used to transcode
%1 : input file (this is the file on the box)
%2 : outfile (this is the file streamed to the PS3)
I tried a basic script to use ffmpeg to conver the mkv files to mpeg2
exec ffmpeg -i %1 -vcodec mpeg2video -sameq -acodec mp2 b 192000 -ar 44100 -ac 2 -f dvd - > %2
The code above is from memory but it went somthing like that, I wanted to make something compatible that would work hence the downsampling of the audio and use of mpeg2video.
What I would like to do is copy the streams as they are and mux them into a suitable container that the PS3 supports.
As I understand it the PS3 (XMB Player if that's what it's called) can play h264 level 4.1 and AC3 audio. From what I have read, it is likely that most of my mkv files are level 5.1 and need changed to 4.1. This can be done via a simple hex edit.
What I would like to know is would it be possible to use Mediatomb and the FIFO set-up and create a script that would take the input file from mediatomb (the mkv), change it to lvl 4.1 then output it to something that the PS3 could read?
I had imagined something like this:
#
use a program like mvkextract to demux to 2 fifo files
then use a program like tsmuxer to mux the files while changing 5.1 to 4.1 back to one compatible file that is also a fifo that will then be read back into Mediatomb.
My goals are:
1) Stream my HD media on my Linux box to my PS3
My Limitations are:
Slow Linux box cannot perform realtime transcoding
My workaround
repackage the files on the fly via FIFO to work with Mediatomb
I'm a total newbie on Linux so I hope that made sense and hope someone can help!
Thanks,
Russell
I've setup Mediatomb (compiled from source, what a task!) and have it interacting with the PS3 i.e. can stream divx movies in avi containers no problems.
My next project is to stream my mkv files, these contain 720p .h264 video and ac3 audio.
Using Mediatomb, you can change the mimetype of mkv files on the fly and also you have an option to use a transcoder to convert them to a suitable format. The transcoder uses 3 arguments and uses a FIFO output file to do the streaming:
agent: program/script used to transcode
%1 : input file (this is the file on the box)
%2 : outfile (this is the file streamed to the PS3)
I tried a basic script to use ffmpeg to conver the mkv files to mpeg2
exec ffmpeg -i %1 -vcodec mpeg2video -sameq -acodec mp2 b 192000 -ar 44100 -ac 2 -f dvd - > %2
The code above is from memory but it went somthing like that, I wanted to make something compatible that would work hence the downsampling of the audio and use of mpeg2video.
What I would like to do is copy the streams as they are and mux them into a suitable container that the PS3 supports.
As I understand it the PS3 (XMB Player if that's what it's called) can play h264 level 4.1 and AC3 audio. From what I have read, it is likely that most of my mkv files are level 5.1 and need changed to 4.1. This can be done via a simple hex edit.
What I would like to know is would it be possible to use Mediatomb and the FIFO set-up and create a script that would take the input file from mediatomb (the mkv), change it to lvl 4.1 then output it to something that the PS3 could read?
I had imagined something like this:
#
use a program like mvkextract to demux to 2 fifo files
then use a program like tsmuxer to mux the files while changing 5.1 to 4.1 back to one compatible file that is also a fifo that will then be read back into Mediatomb.
My goals are:
1) Stream my HD media on my Linux box to my PS3
My Limitations are:
Slow Linux box cannot perform realtime transcoding
My workaround
repackage the files on the fly via FIFO to work with Mediatomb
I'm a total newbie on Linux so I hope that made sense and hope someone can help!
Thanks,
Russell