PDA

View Full Version : tsmuxer : m2ts don't ff unless mux in mkv first


survivant001
9th July 2008, 02:42
I had some trouble to get the m2ts (bluray structure) from tsmuxer to ff in the PS3.

sometime it works.. other times.. not.. So I try differents command line for the x264.. and didn't change a thing.

I found a movie that I just reencode and it was working.. so I try to remember what I did.. and I find out.

when I encode the movie with x264.. using the ps3 compatible parameters.. that don't affect the ff.

If I do that... it will not ff (sometime it starts.. but it take 2 min to start).. if I encode the movie and mux the raw directly with tsmuxer 1.84.. it won't ff.

BUT

If I mux them in a mkv first.. and input this mkv into tsmuxer.. it will works..

did that we 3 differents movies and got the same result for them.

ChuckleWorthy
9th July 2008, 09:43
I had some trouble to get the m2ts (bluray structure) from tsmuxer to ff in the PS3.
Do you get this problem when playing back off a disk or streaming to your PS3?


If I mux them in a mkv first.. and input this mkv into tsmuxer.. it will works..

What mkv muxer are you using? mkvmerge or other?

Very interesting post - thanks

Cheers
Chuckle

survivant001
9th July 2008, 13:44
playback on a external USB drive and I use the mkvmerge that came with the latest automkv build.

it after converting a movie with automkv that I found that.

Nullity
10th July 2008, 18:04
When I do my x264 encodes, I use MeGUI with the SA-Bluray profile. If you are just using x264 from the command line, this is what options it uses (just need the input/output files and set the bitrate to what you'd like):

--pass 2 --bitrate 8000 --stats "file.stats" --level 4.1 --keyint 24 --min-keyint 1 --ref 3 --mixed-refs --bframes 3
--b-rdo --bime --weightb --direct auto --subme 6 --partitions p8x8,b8x8,i4x4,i8x8 --8x8dct --ipratio 1.1 --pbratio 1.1
--vbv-bufsize 30000 --vbv-maxrate 38000 --qcomp 0.5 --me umh --threads auto --thread-input --progress --no-psnr
--no-ssim --mvrange 511 --aud --nal-hrd --sar 1:1

This produces a perfectly PS3 (and I assume blu-ray?) compliant h.264 stream. When you import it into tsmuxer, UNCHECK both "Add picture timing info" and "Continually insert SPS/PPS". They are not needed and the resulting file plays perfectly on the PS3 including fast-forward/rewind. You can import the raw .264 file directly into tsmuxer without going through mkv.

survivant001
11th July 2008, 16:31
thanks

I'll try that tonight. will see if it's make a difference

Nullity
11th July 2008, 18:15
This may be obvious without mentioning, but I wanted to point out that these are very high-quality settings - if encoding a full-length movie, it will take a while. I have an Intel Core 2 Duo E8400 CPU (3.0 GHz x 2) and 4 GB RAM and a ~2 hour movie takes somewhere around 12 hours to encode. To me, I want to preserve the quality, and the encoding time isn't too important.

survivant001
11th July 2008, 22:08
:)

that's fine.. I didn't need the command line :) I already have one.. the problem was what to do after the encoding done.

Nullity
11th July 2008, 22:30
:)

that's fine.. I didn't need the command line :) I already have one.. the problem was what to do after the encoding done.

Ah, well, what to do after encoding can change a bit depending on the encoding options used. "Add picture timing info" and/or "Continually insert SPS/PPS" might be needed in your case, you may have to do some trial and error.

For example, using the PS3 profile, you still need at least "Add picture timing info", and according to your first post, this is what you're using. However, I would suggest switching to the SA-Bluray profile as it is even more compatible with the PS3 than the PS3 specific profile is (and encoding times between these 2 are the same).

survivant001
12th July 2008, 15:01
I try wihtout theses settings.. and it working perfectly


insertSEI, contSPS

if we mux the movie.264 + ac3 without that.. it will play perfectly.. and will support ff and rw.

just for your info.. the command are from ripbot and automkv

ripbot : 2th pass is :
--pass 2 --bitrate 1024 --stats ".stats" --level 4.1 --sar 1:1 --aud --nal-hrd --vbv-bufsize 15000 --vbv-maxrate 25000 --filter 0,0 --ref 3 --mixed-refs --bframes 3 --b-rdo --bime --weightb --direct auto --subme 6 --trellis 1 --analyse p8x8,b8x8,i4x4,i8x8 --8x8dct --me umh --threads auto --thread-input --progress --no-psnr --no-ssim --output "video.264"

automkv 2th pass is :
--pass 2 --bitrate 1024 --stats ".stats" --progress --keyint 24 --bframes 3 --qpmin 7 --qpmax 51 --no-psnr --mixed-refs --trellis 1 --ref 3 --filter 0,0 --subme 6 --direct auto --vbv-bufsize 14000 --vbv-maxrate 25000 --me umh --no-ssim --level 4.1 --weightb --b-rdo --bime --partitions p8x8,b8x8,i4x4,i8x8 --8x8dct --threads auto --thread-input --aud --nal-hrd --aq-mode 0 --aq-strength 0.00 --sar 1:1 --output "movie.264"

survivant001
14th July 2008, 13:54
Oups.. I got a test that didn't work yesterday.

I have a mkv. I reencode the audio from that mkv -> audio.ac3. I Import the mkv into tsmuxer, remove the audio track.. and import the new one. If I remove the both settings.. the movie won't ff.

I try with only insertSEI and it didn't work either.

I will try to extract the video from the mkv and import that.. without the both setting.. and do another test.. extract the video.. and mux it within a new mkv with the new audio track.

champion
26th January 2010, 11:59
if you working still on it or anybody who reads this; you have to create bluray disk on tsremux. clpi & mlps file needed for ff and rw.

it's not concerned with insertSEI or contSPS.