View Full Version : PS3muxer - Remux MKV to M2TS for play on Sony PlayStation3
clark15b
30th July 2009, 10:22
Dear friends, I wish to present to you a new very simple program which will remux mkv file with h.264 video and AC3/DTS/LPCM/AAC audio to a M2TS file which is playable on the Sony PlayStation3.
Windows setup (Win32): http://tsdemuxer.googlecode.com/files/ps3muxer_setup_130.exe
Ubuntu 10.04 package (32bit): http://tsdemuxer.googlecode.com/files/ps3muxer_1.30-ubuntu1_i386.deb
Ubuntu 9.04 package (64bit): http://tsdemuxer.googlecode.com/files/ps3muxer_1.30-ubuntu1_amd64.deb
Mac OS X Snow Leopard 10.6.4 package (Intel 32bit): http://tsdemuxer.googlecode.com/files/ps3muxer_130.dmg
Microsoft Visual C++ 2008 Redistributable Package: http://www.microsoft.com/downloads/details.aspx?FamilyID=9b2da534-3e03-4391-8a4d-074b9f2bc1bf&displaylang=en
Homepage: http://ps3muxer.org/
PShare homepage: http://ps3muxer.org/pshare.html (http://ps3muxer.org/)
- No video transcoding;
- Audio transcoding if track codec differs from AC3;
- Use of the delay and fps information from the MKV container;
- Multi-audio (You can choose more than one audio track);
- External audio tracks;
- Batch processing;
- Video codecs: h.264, VC-1, MPEG-2 (PS3 will show only h.264 and it is possible MPEG2);
- Audio codecs: AC3, DTS, AAC, MP3, LPCM (for AC3 transcoding it is not required);
- Possibility of manual updating of language and delay of tracks;
- Possibility of splitting a file into parts;
- Possibility of changing a h.264 profile and AC3 bitrate;
- Windows and Linux support (QT GUI);
- Free source code;
- Compressed MKV files remuxing - new 2-pass mode.
The program uses mkvextract for audio extraction, ffmpeg for audio transcoding, tsMuxeR for M2TS muxing.
For film viewing on PS3 it is better to use DLNA media server TVersity (You can copy file to internal HDD).
http://s1.softpedia-static.com/base_img/softpedia_free_award_f.gif (http://www.softpedia.com/get/Multimedia/Video/Other-VIDEO-Tools/PS3Muxer.shtml)
Manual
1)Start the program and push «open» button.
http://k4vv.com/snapshot/ps3muxer_main.png
2)Select MKV source file.
http://k4vv.com/snapshot/ps3muxer_open.png
3)Choose video and audio tracks (use «Ctrl» button for multi-selection). You can update language, delay, and split chunk size. Then press «Start Muxing» button.
http://k4vv.com/snapshot/ps3muxer_main_ac3_rus.png
4)Enjoy
http://k4vv.com/snapshot/ps3muxer_remux.png
setarip_old
31st July 2009, 18:50
Hi!The program uses mkvextract for audio extraction, ffmpeg for audio transcoding, tsMuxeR for M2TS muxing.Can't you use "tsMuxeR" to demux/extract the audiostream - and thereby reduce the number of programs involved in the conversion?
No video transcoding... Video codecs: h.264, VC-1, MPEG-2 (PS3 will show only h.264 and it is possible MPEG2)If no video transcoding is done, what does your GUI do with MKVs containing VC-1 videostreams?
clark15b
1st August 2009, 10:34
setarip_old
Hi.
Can't you use "tsMuxeR" to demux/extract the audiostream - and thereby reduce the number of programs involved in the conversion?
I can, but mkvextract it is more convenient (I can set output file name).
If no video transcoding is done, what does your GUI do with MKVs containing VC-1 videostreams?
Nothing, for this purpose there are other programs: mkv2vob, multiAVCHD.
I never met VC-1 in BDR/HDDVDrip, only in remux.
Video transcoding too slow, nobody will wait... download h.264.
clark15b
3rd August 2009, 11:33
UPDATE is available.
Version 1.22:
- localization fix;
- message box when abort process;
- optimization of audio track extraction (one pass for several files);
clark15b
27th August 2009, 11:18
UPDATE is available.
Version 1.23:
- batch processing.
mofle
4th September 2009, 20:18
Any chance of getting it compiled for Mac? QT is available on Mac too.
clark15b
15th September 2009, 14:30
mofle
I know, but i have not Mac :(
I will build Mac version when there will be a possibility.
mofle
19th September 2009, 09:23
How difficult is it to build it?
Is it something that I could do?
If yes, how?
clark15b
22nd September 2009, 09:22
mofle
I don`t know :(
I think it is not easy.
You need this:
http://qt.nokia.com/downloads/sdk-mac-os-cpp
and this:
http://tsdemuxer.googlecode.com/files/ps3muxer_src.tar.gz
Install QT4 and unpack my source, then open QT project in "QT Creator" and press F5 button.
clark15b
22nd September 2009, 09:25
UPDATE is available.
Version 1.24:
- Localization fix
- New QT runtime in Windows version
- New tsMuxer version in Ubuntu package
clark15b
30th September 2009, 12:14
UPDATE is available.
Version 1.25:
- Show video track FPS;
- Possibility of changing a FPS;
- Possibility of changing a h.264 profile to 4.1 in GUI.
clark15b
20th October 2009, 12:42
UPDATE is available.
Version 1.26:
- Possibility of changing a AC3 bitrate in GUI;
- New QT runtime in Windows version;
- New mkvextract in Windows version;
- Append zlib1.dll to the Windows setup (Windows 7 fix).
pio011
27th October 2009, 16:57
Thanks for this tool! Great! ButI have some questions:
1) It would be great, if you could manually add audiotracks (which are not included in the .mkv) and then remux it.
2.) before this feature is added, I only use ps3muxer for showing me the audio delay in the .mkv. I use this value for tsmuxer, to have sync audio. Is the audio delay in ps3muxer correct to use it in tsmuxer?
Thank you!
clark15b
2nd November 2009, 08:55
Thanks for this tool! Great! ButI have some questions:
1) It would be great, if you could manually add audiotracks (which are not included in the .mkv) and then remux it.
2.) before this feature is added, I only use ps3muxer for showing me the audio delay in the .mkv. I use this value for tsmuxer, to have sync audio. Is the audio delay in ps3muxer correct to use it in tsmuxer?
Thank you!
Thanks, I will try to make it in next release.
Yes, the audio delay in ps3muxer is correct to use it in tsmuxer.
clark15b
2nd November 2009, 15:03
UPDATE is available.
Version 1.27:
- External audio tracks.
clark15b
21st January 2010, 13:29
UPDATE is available.
Version 1.28:
- Using detected in container fps when muxing;
- QT 4.6.0.
ljpp
3rd March 2010, 17:16
Any chance for a 64bit Ubuntu package?:thanks:
clark15b
9th April 2010, 12:22
Any chance for a 64bit Ubuntu package?:thanks:
I will try.
UPDATE is available.
Version 1.28.1:
- ffmpeg 8 Apr 2010 build;
- QT 4.6.1.
clark15b
14th April 2010, 16:00
Any chance for a 64bit Ubuntu package?:thanks:
Try this package: http://tsdemuxer.googlecode.com/files/ps3muxer_1.2-ubuntu1_amd64.deb
clark15b
18th June 2010, 15:24
Mac OS X Snow Leopard 10.6.4 version (Intel 32bit) - http://tsdemuxer.googlecode.com/files/ps3muxer.dmg
Qt Framework for Mac OS X - http://qt.nokia.com/downloads/qt-for-open-source-cpp-development-on-mac-os-x
kenguru2005
26th June 2010, 12:22
Mac version under 10.6.4 not working. Crashes with start.
Dyld Error Message:
Library not loaded: QtGui.framework/Versions/4/QtGui
Referenced from: /Applications/Encoder/ps3muxer.app/Contents/MacOS/ps3muxer
Reason: image not found
clark15b
2nd July 2010, 15:34
kenguru2005
Thanks, i included a Qt Framework into package.
Now it`s working.
kenguru2005
2nd July 2010, 15:47
I thank YOU.
musictrivianut
17th July 2010, 03:22
First, great program. I've been using it like made the last few days.
I don't know if you are still developing or even taking requests, but an option to delete the input file, assuming the conversion completes successfully, would be a big plus.
And if not, I thank you anyhow for making this available to all of us.
setarip_old
17th July 2010, 06:43
@clark15b
I'm probably overlooking something but, would you please explain what your GUI/program is capable of that cannot be directly accomplished by just tsMuxeR/GUI?
Thank you.
musictrivianut
17th July 2010, 12:04
@clark15b
I'm probably overlooking something but, would you please explain what your GUI/program is capable of that cannot be directly accomplished by just tsMuxeR/GUI?
Thank you.
Batch processing. tsMuxeR doesn't do that, at least, not that I have found. There may be other things, but that's the big one for me right now.
dr9553
8th September 2010, 20:52
I get an error from ffmpeg whenever i try to use ps3muxer to convert the dts audio to ac3
Extracting track 2 with the CodecID 'A_DTS' to the file '/var/folders/Dm/DmnTQlSXEhWpnmslTUljdU+++TI/-Tmp-/Movie_track_2.dts'. Container format: Digital Theater System (DTS)
OK
Encoding audio track 2 to AC3 (approximately 10-20 min for 8Gb movie)...
%path%/ffmpeg -y -v 0 -i /var/folders/Dm/DmnTQlSXEhWpnmslTUljdU+++TI/-Tmp-/Movie_track_2.dts -ab 384k /var/folders/Dm/DmnTQlSXEhWpnmslTUljdU+++TI/-Tmp-/Movie_track_2_encoded.ac3
FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard
Mac OSX universal build for ffmpegX
configuration: --enable-memalign-hack --enable-mp3lame --enable-gpl --disable-vhook --disable-ffplay --disable-ffserver --enable-a52 --enable-xvid --enable-faac --enable-faad --enable-amr_nb --enable-amr_wb --enable-pthreads --enable-x264
libavutil version: 49.0.0
libavcodec version: 51.9.0
libavformat version: 50.4.0
built on Apr 15 2006 04:58:19, gcc: 4.0.1 (Apple Computer, Inc. build 5250)
Stream mapping:
Stream #0.0 -> #0.0
Error while opening codec for output stream #0.0 - maybe incorrect parameters such as bit_rate, rate, width or height
FAIL (1)
Total time: 274 sec
It extracts the file fine but cant convert it for some reason.
Any ideas?
grancuco
16th October 2010, 09:40
@dr9553:
I wanted to answer sooner but had to wait 5 days before I could post after signing up.
Anyway I got the same error and solved it by replacing the provided ffmpeg with the newer version from mac ports.
1. sudo port install ffmpeg (providing you've got mac ports installed)
2. open package contents of ps3muxer (/Applications/Ps3Muxer -> Open Package Contents)
3. replace ffmpeg in the ps3muxer package (Contents/MacOS/) with the one from /opt/local/bin
And now you're ready to go!
Good luck!
clark15b
20th October 2010, 15:59
First, great program. I've been using it like made the last few days.
I don't know if you are still developing or even taking requests, but an option to delete the input file, assuming the conversion completes successfully, would be a big plus.
And if not, I thank you anyhow for making this available to all of us.
'remove_tmp_files=false' in ps3muxer.cfg
clark15b
20th October 2010, 16:03
@clark15b
I'm probably overlooking something but, would you please explain what your GUI/program is capable of that cannot be directly accomplished by just tsMuxeR/GUI?
Thank you.
- transcoding audio to AC3 if need;
- detection fps;
- detection audio delay.
- batch processing.
clark15b
20th October 2010, 16:04
@dr9553:
I wanted to answer sooner but had to wait 5 days before I could post after signing up.
Anyway I got the same error and solved it by replacing the provided ffmpeg with the newer version from mac ports.
1. sudo port install ffmpeg (providing you've got mac ports installed)
2. open package contents of ps3muxer (/Applications/Ps3Muxer -> Open Package Contents)
3. replace ffmpeg in the ps3muxer package (Contents/MacOS/) with the one from /opt/local/bin
And now you're ready to go!
Good luck!
Thank you!
clark15b
20th October 2010, 16:11
My new mini-project: http://ps3muxer.org/pshare.html
PlayStation3 as Set-top box for watching multicast IPTV (udpxy for multicasting needed).
PShare mipsel build for DD-WRT/OpenWRT soon here: http://code.google.com/p/tsdemuxer/downloads/list (some bugs still).
clark15b
22nd October 2010, 10:25
pshare 0.0.1 sources: http://tsdemuxer.googlecode.com/files/pshare_0.0.1_src.tar.gz
pshare 0.0.1 mipsel build for DD-WRT: http://tsdemuxer.googlecode.com/files/pshare_0.0.1_mipsel.ipk
pshare 0.0.1 Ubuntu 10.04 IA-32: http://tsdemuxer.googlecode.com/files/pshare_0.0.1-ubuntu1_i386.deb
Homepage: http://ps3muxer.org/pshare.html
Downloads: http://code.google.com/p/tsdemuxer/downloads/list
SVN: 'svn co https://tsdemuxer.googlecode.com/svn/trunk/pshare'
dr9553
5th November 2010, 19:11
@dr9553:
I wanted to answer sooner but had to wait 5 days before I could post after signing up.
Anyway I got the same error and solved it by replacing the provided ffmpeg with the newer version from mac ports.
1. sudo port install ffmpeg (providing you've got mac ports installed)
2. open package contents of ps3muxer (/Applications/Ps3Muxer -> Open Package Contents)
3. replace ffmpeg in the ps3muxer package (Contents/MacOS/) with the one from /opt/local/bin
And now you're ready to go!
Good luck!
Thanks! worked perfect! one less step in my mkv to m2ts process... now if the ps3 just supported mkv it would be a 0 step process :)
provolino
6th November 2010, 13:13
Hi Clark and thanks for your great tool :)
Anyway PS3muxer is not able to convert mkv files created with latest version of MKVToolnix giving error "Matroska parse error: invalid H264 NAL unit size. NAL unit truncated".
Take a look here:
http://www.bunkus.org/videotools/mkvtoolnix/faq.html#header_removal_compression
It seems to be a missing feature of tsmuxer, I don't know if you can replace it inside your tool.
provolino
7th November 2010, 20:04
I did more investigation about the issue:
if I remux the non-working MKV with MKVToolnix 4.0.0 then your tool is able to handle it correctly and m2ts conversion works fine
this is because the "header removal compression" feature has been included in MKVToolnix 4.1.0
the best way to fix all that is to have an update from tsmuxer developers, in the meanwhile you could add a "remux with 4.0.0" step in your GUI before m2ts conversion (it just takes a few minutes)
BTW I want to thank you again for PS3Muxer, it's the only ps3 conversion tool that give me no troubles with audio/video sync ;)
clark15b
29th November 2010, 09:42
provolino
Thanks, but i can't find "remux with 4.0.0" in tsMuxeR GUI.
What option is added by the tsMuxeR GUI if enabled "remux with 4.0.0"?
bloom
1st December 2010, 07:52
Hi there,
I have a new MACBook (1 month old) and have Snow Leopard 10.6.4 version running to have MKV format movies to run on PS3.
I have tried various frame rates but am struggling.
I only get audio after conversion and None video. completely blank (black screen).
I am a beginner so I would really appreciate some details steps in getting me going.
Thanks alot.
below is a copy of what is going on in the muxer window
Muxing to MPEG2-TS stream (approximately 5 min for 8Gb movie)...
MUXOPT --no-pcr-on-video-pid --new-audio-pes --vbr --vbv-len=500
V_MPEG4/ISO/AVC, "/the test movie.mkv", insertSEI, contSPS, track=1, lang=und, fps=23.976
A_AC3, "/the test movie.mkv", track=2, lang=eng
%path%/tsMuxeR /var/folders/l0/l01DlhUdFQ8STeOjTi-Pv++++TI/-Tmp-/the test movie.meta //the test movie.m2ts
SmartLabs tsMuxeR. Version 1.10.6 http://www.smlabs.net
Decoding H264 stream (track 1): Profile: High@5.1 Resolution: 1920:1080p Frame rate: 23.976
H.264 stream does not contain fps field. Muxing fps=23.976
H264 bitstream changed: insert nal unit delimiters
H264 bitstream changed: insert pict timing and buffering period SEI units
Decoding AC3 stream (track 2): Bitrate: 448Kbps Sample Rate: 48KHz Channels: 6
B-pyramid level 1 detected. Shift DTS to 2 frames
H264 bitstream changed: insert SPS/PPS units
Processed 76739 video frames
Mux successful complete.
Muxing time: 3 min 14 sec
OK
clark15b
16th December 2010, 13:37
bloom
Full HD movie must have ReFrames<=5 or black screen on PS3
jethro
16th December 2010, 23:28
Is it possible to add subtitles support?
ExSport
30th December 2010, 13:38
Good try but it is not necessary to transcode DTS for PS3.
If you know PS3MediaServer, it can remux everyting on the fly directly to PS3, including DTS.
http://ps3mediaserver.org/forum/
http://code.google.com/p/ps3mediaserver/
clark15b
24th January 2011, 17:17
ExSport
PS3 is not support DTS in M2TS files - only AC3.
DTS only from DVD and Blu-Ray.
PS3MediaServer transcode DTS to AC3 on fly.
--------------
UPDATE is available.
Version 1.29:
- 2-pass mode for remux compressed MKV from new mkvtoolnix (http://forum.doom9.org/showthread.php?p=1455669#post1455669)
- fps detection fix
- last ffmpeg and mkvtoolnix build for Windows
Downloads here: http://ps3muxer.org/
clark15b
4th February 2011, 16:38
Version 1.29 for Mac OS X 10.6.4:
http://tsdemuxer.googlecode.com/files/ps3muxer_129.dmg
- 2-pass mode
- last ffmpeg build ('-ab' fix)
ExSport
7th February 2011, 16:22
PS3 is not support DTS in M2TS files - only AC3.
DTS only from DVD and Blu-Ray.
PS3MediaServer transcode DTS to AC3 on fly.
You are totally wrong.
PS3MediaServer uses hack that DTS is packed in LPCM 2.0 stream so if receiver with DTS support is connected it is played and detected as DTS(PS3 shows audio stream as PCM 2.0)
This way PS3 accepts DTS and pass it untouched to external receiver. When "non hacked" DTS stream is sent to PS3, it is blocked due to missing license(DTS licensed from physical media only on PS3)
provolino
8th February 2011, 14:08
Thanks Clark for mkvtoolnix fix, I'll give you a feedback soon
P.S.
Do I have to select the 2-pass option manually or the tools will detect if it's needed by itself?
provolino
11th February 2011, 18:42
Tested with an mkv compressed with latest version of mkvtoolnix, it works fine using 2-pass option :)
I think the audio/video splitting is a good workaround, at least until SmartLabs will release an update for tsMuxeR to fix that
A little suggestion:
is it possible to make the 2-pass option automatic? I mean make PS3Muxer able to identify the type of MKV and automatically select 2-pass option if needed
clark15b
15th February 2011, 16:57
ExSport
So, what if i watch on TV - LPCM over HDMI?
provolino
Thanks!
I still don't know how detect compression :(
--------------------
Version 1.30
- Delay detection fix
http://ps3muxer.org/
clark15b
16th February 2011, 14:14
A little suggestion:
is it possible to make the 2-pass option automatic? I mean make PS3Muxer able to identify the type of MKV and automatically select 2-pass option if needed
I did it, download 1.30 version again: http://ps3muxer.org/
ExSport
16th February 2011, 17:29
ExSport
So, what if i watch on TV - LPCM over HDMI?
Don't understand what you exactly mean with it.
If you mean what happen when you will send DTS audio masked as LPCM 2.0 stream to TV directly, then it will make distorted noise I suppose. But if you will send it via HDMI to receiver(some TV support it), then it will be played as DTS.
I am using 3 DLNA renderers at home: PS3 and two Pan TV
PS3 can send this hacked audio stream to receiver without problems but for TV where I don't have receiver I am using these renderer specific parameters so PS3MediaServer knows DTS is not supported so it is transcoded to PCM.
#Does the media renderer supports DTS in a mpeg file ?
MuxDTSToMpeg=false
#Does the media renderer supports DTS wrapped into LPCM in a mpeg file ?
WrapDTSIntoPCM=false
#Does the media renderer supports LPCM in a mpeg file ?
MuxLPCMToMpeg=true
clark15b
17th February 2011, 12:09
Don't understand what you exactly mean with it.
If you mean what happen when you will send DTS audio masked as LPCM 2.0 stream to TV directly, then it will make distorted noise I suppose. But if you will send it via HDMI to receiver(some TV support it), then it will be played as DTS.
I am using 3 DLNA renderers at home: PS3 and two Pan TV
PS3 can send this hacked audio stream to receiver without problems but for TV where I don't have receiver I am using these renderer specific parameters so PS3MediaServer knows DTS is not supported so it is transcoded to PCM.
#Does the media renderer supports DTS in a mpeg file ?
MuxDTSToMpeg=false
#Does the media renderer supports DTS wrapped into LPCM in a mpeg file ?
WrapDTSIntoPCM=false
#Does the media renderer supports LPCM in a mpeg file ?
MuxLPCMToMpeg=true
Thanks, I know how it works. This is a bad method for many people. It doesn't work for me because my PS3, receiver and TV doesn't understand DTS stream wrapped into LPCM.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.