Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Video Encoding > MPEG-2 Encoding

Reply
 
Thread Tools Search this Thread Display Modes
Old 23rd March 2009, 07:16   #1  |  Link
Jeremy Duncan
Didée Fan
 
Jeremy Duncan's Avatar
 
Join Date: Feb 2006
Location: Canada
Posts: 1,079
How to encode blu ray to mpeg2

How to encode blu ray to mpeg2.

First.) rip the blu ray to the pc. I use anydvd and in the anydvd settings I check get rid of trailers and only the main movie is ripped as a result.

Second.) open the tsmuxer program and add the m2ts file from the blu ray you ripped.
It's in the bdmv\stream folder where you ripped the blu ray too.
You only need the 00000.mt2s file in tsmuxer.

it will list different file types: 1 or more audio, 1 or more pgs (subtitle), and 1 video.
You only want one language because of how the file is read by powerdvd ultra.
If you choose more than one language you need to use media player classic to access the languages, powerdvd ultra will only have 1 language available.

Also subtitles are not available. They are in the pgs but there is no way I know of to get them to be a option in mpc or powerdvd ultra.

So you added the 00000.mt2s file and got a list of audio options. lets say you just want one language.

Third.) Check the ts option in the output tab.
Check where to save the ts. Some people say to change the profile but I don't and haven't.

Fourth.) Press the start muxing tab and it will make the movie into a ts file you can play with powerdvd or media player classic.
In media player classic you need to go to the options and make sure the internal filters include ac3. i just checked every internal filter option.

Fifth.) Steps 1-4 were for mpeg2. For vc1 the procedure is more tricky. I am working on a simple solution.

Notes.)
- There is no quality loss, no need to fiddle with cropping.

- The mpc says the dts is 1000 or so kb, but powerdvd says the audio is ac3 kb level. So mpc seems to have the hd audio whereas powerdvd doesn't

- To open the ts with mpc you need to select the ts file from the file tab.

Software used.)

tsmuxer
anydvd hd
mpc
________

Blu ray vc1 files.
Steps 1 and 2 are the same as before. This guide begins at step 3.

Step 3.) Demux the audio and video.

Step 4.) Install mkvtoolnix-unicode-2.6.0-setup.
Open the demuxed vc1 file that you made with tsmuxer, and add the audio you demuxed from tsmuxer.
Click start muxing, and it will make the mkv in the location you specified.

mkvtoolnix

Notes.)
A benefit in encoding the vc1 this way is it doesn't use pulldown even though you use a 60hz monitor.
I tested this with mpc and reclock.
________

Blu ray avc files

If you try to make a mkv like with vc1 the video is ugly if I use ffdshow or mpc hc video decoders, and the audio is out of sync if I skip forward.
So I choose the video I want from the ripped m2ts, and then use ts muxer to make it a "AVCHD disk".

If the video is on many m2ts files not just one, use bdinfo to get the files nessessay, then use tsmuxer to make the avshd disk.

Then to open the video you made, go to the bdmv/streams folder and it should be there.
You can open it with mpc or powerdvd. Your choice.

In some movies there is no 00000.m2ts file in the streams folder.
For these movies use bdinfo to see the files that make up your movie, as there may be not one main file but 3 or 4.
bdinfo

ffdshow works fine with the vc1 mkv. I could have used lsf if I wanted but my e6600 was taxed already using both cores.

Last edited by Jeremy Duncan; 8th April 2009 at 12:23. Reason: rule 9
Jeremy Duncan is offline   Reply With Quote
Old 23rd March 2009, 07:35   #2  |  Link
setarip_old
Registered User
 
setarip_old's Avatar
 
Join Date: Aug 2005
Posts: 16,267
Check out the following thread for a few different ways to accomplish this:

http://forum.doom9.org/showthread.ph...21#post1189321
setarip_old is offline   Reply With Quote
Old 23rd March 2009, 08:17   #3  |  Link
Jeremy Duncan
Didée Fan
 
Jeremy Duncan's Avatar
 
Join Date: Feb 2006
Location: Canada
Posts: 1,079
1 question for setarip_old,

1.) How do you set tsmuxer to include only one audio track?
2.) the fellow mentions using bdinfo and convertx with tsmuxer and that does it for him.
I'm not interested in that solution. But it does make it into a dvd and that is a good thing, no doubt. I want a 1080p mpeg2 dvd though. All I need to do is get the ac3 to mux in the solution I have.
Jeremy Duncan is offline   Reply With Quote
Old 23rd March 2009, 10:38   #4  |  Link
Audionut
Registered User
 
Join Date: Nov 2003
Posts: 1,281
1. rip disc
2. extract video or create new ts file with just the video selected.
3. open video with dgindex and index it.
4. apply your tv levels in the avs.
5. encode it.
6. load new encoded file in tsMuxer.
7. load original m2ts file with ac3
8. deselect all streams so tsMuxer only has your new video and the ac3 files checked.
8. create blu-ray structure.

You want 1080p mpeg2 at these bitrates!!
Average bitrate: Average 4000, Maximum 9000
__________________
http://www.7-zip.org/
Audionut is offline   Reply With Quote
Old 23rd March 2009, 14:49   #5  |  Link
Jeremy Duncan
Didée Fan
 
Jeremy Duncan's Avatar
 
Join Date: Feb 2006
Location: Canada
Posts: 1,079
Audionut,

Thank yuo very much for the instructions. I will try them in a few hours and then it will take about 3-5 hours once I start to finish the project. So I will not be able to tell you how it went right away but I believe your instructions will allow me to mux the audio.

For the bitrate I was thinking of average 15000 maximum 17000.
Jeremy Duncan is offline   Reply With Quote
Old 23rd March 2009, 18:49   #6  |  Link
setarip_old
Registered User
 
setarip_old's Avatar
 
Join Date: Aug 2005
Posts: 16,267
@Jeremy Duncan
Quote:
I want a 1080p mpeg2 dvd though.
Are you aware that what you are proposing is not in conformance with DVD standards and will ONLY play on your PC, not on any standalone players?

Therefore I'd ask you, what is the purpose in going through this exercise?
setarip_old is offline   Reply With Quote
Old 24th March 2009, 11:55   #7  |  Link
Jeremy Duncan
Didée Fan
 
Jeremy Duncan's Avatar
 
Join Date: Feb 2006
Location: Canada
Posts: 1,079
well i got the audio muxed.
I made my m2v using hc enc then demuxed the audio (ac3) from the m2ts then used imago to mux the ac3 to the m2v and played it with clsid mpc.
But the audio had tick sounds every few seconds. So now I'm trying different combinations to fine tune the process.
After I get it quality muxed then I will build a 1080p test disk to see what bitrate in hc enc I need to keep 1 pixel distinction in the video frame.

I read that dts needs ac3 included.
So I will test different mpeg2 compliant ts with tsmuxer muxed audio combinations to see the audio output with the d2v.
Then I will see if something else than mpl is made.
If dts or ac3 is made I will encode that d2v and then try and mux that audio output from dgindex.

Setarip_old,

Because I use ffdshow in case you didn't know. And I don't care if only a pc can play the mpg made, as I use ffdshow and that is a pc only application.
Jeremy Duncan is offline   Reply With Quote
Old 24th March 2009, 12:40   #8  |  Link
Audionut
Registered User
 
Join Date: Nov 2003
Posts: 1,281
Quote:
Originally Posted by Jeremy Duncan View Post
then used imago to mux the ac3 to the m2v
m2v is a mpeg2 video stream.

I fail to see how you muxed audio into it.

And why are you using imago?
Why use another program. In fact, why did you feel the need to use like a fist full of programs in the first place!!!

Just use tsmuxer to mux the video and audio streams. You do not need to demux the audio stream.

edit: your wasting your time with all these programs, and I fail to see why. Particularly considering it's causing you problems.
__________________
http://www.7-zip.org/
Audionut is offline   Reply With Quote
Old 24th March 2009, 12:46   #9  |  Link
Jeremy Duncan
Didée Fan
 
Jeremy Duncan's Avatar
 
Join Date: Feb 2006
Location: Canada
Posts: 1,079
I suppose you could be right, but tsmuxer only allows ts mpeg2.
I wonder if I could open the ts with mpc?

I would make the ts mpeg2 compliant then mux the ts with the audio from the m2ts then play it in mpc.
It might work. I will try it.
Jeremy Duncan is offline   Reply With Quote
Old 24th March 2009, 12:52   #10  |  Link
Audionut
Registered User
 
Join Date: Nov 2003
Posts: 1,281
Quote:
Originally Posted by Jeremy Duncan View Post
I suppose you could be right, but tsmuxer only allows ts mpeg2.
tsMuxer supports all streams compatible with blu-ray.

AVC
VC1
Mpeg2
AC3, TrueHD
DTS, DTS-MA
LPCM
WAV

Quote:
Originally Posted by Jeremy Duncan View Post
I wonder if I could open the ts with mpc?
Yes.


Quote:
Originally Posted by Jeremy Duncan View Post
I would make the ts mpeg2 compliant then mux the ts with the audio from the m2ts then play it in mpc.

What makes you think tsMuxer doesn't generate compliant streams? Why user another program!!!!

Quote:
Originally Posted by Jeremy Duncan View Post
It might work. I will try it.
I wouldn't waste my or your time if it didn't.
__________________
http://www.7-zip.org/

Last edited by Audionut; 24th March 2009 at 12:55. Reason: spelling
Audionut is offline   Reply With Quote
Old 24th March 2009, 22:34   #11  |  Link
setarip_old
Registered User
 
setarip_old's Avatar
 
Join Date: Aug 2005
Posts: 16,267
@Jeremy Duncan
Quote:
Because I use ffdshow in case you didn't know. And I don't care if only a pc can play the mpg made, as I use ffdshow and that is a pc only application.
Then your project has nothing to do with DVD - other than the possibility that you might (if small enough) your project onto DVD media, for playback on your PC.

Odd exercise, to say the least...
setarip_old is offline   Reply With Quote
Old 26th March 2009, 07:07   #12  |  Link
Jeremy Duncan
Didée Fan
 
Jeremy Duncan's Avatar
 
Join Date: Feb 2006
Location: Canada
Posts: 1,079
Setarip_old,

I'm sorry if I gave you the impression I wanted this to go on a dvd and play on a standard def tv.

No no no. I am trying to keep the pixels in the 1080p disk.

I edited the first post with the final solutions I came up with.
__________________
When I get tired during work with dvd stuff i think of River Tamm (Summer Glau's character). And the beauty that is Serenity.
Jeremy Duncan is offline   Reply With Quote
Old 26th March 2009, 14:32   #13  |  Link
Audionut
Registered User
 
Join Date: Nov 2003
Posts: 1,281
While you intentions may be good.

You need to edit the title as it's now a Rule 9 violation.
And your first post as well as there is so much nonsense there.


Quote:
Originally Posted by Jeremy Duncan View Post
Second.) open the tsmuxer program and add the m2ts file from the blu ray you ripped.
It's in the bdmv\stream folder where you ripped the blu ray too.
You only need the 00000.mt2s file in tsmuxer.
It can be any file from that folder.
You should use bdinfo or eac3to to help find which file has the main movie. Sometimes the movie is split across several files.

Quote:
Originally Posted by Jeremy Duncan View Post
it will list three file types: 1 or more dts, 1 or more ac3, 1 or more pgs.
There can be alot more than 3 file types. LPCM, AVC, VC1, MPEG2, AC3, THD, DTS, DTS-MA, PGS, just for a start.


Quote:
Originally Posted by Jeremy Duncan View Post
You only want one language because of how the file is read by powerdvd ultra.
If you choose more than one language you need to use media player classic to access the languages, powerdvd ultra will only have 1 language available.
Why use or recommend powerdvd if it has a basic limitation?

Quote:
Originally Posted by Jeremy Duncan View Post
I read online that for tsmuxer to include dts you need to also select ac3.
Garbage!!

Quote:
Originally Posted by Jeremy Duncan View Post
If you include dts then ac3 will not be a option when you playback the file, only dts will be used.
More Garbage!!


Quote:
Originally Posted by Jeremy Duncan View Post
In media player classic you need to go to the options and make sure the internal filters include ac3. i just checked every internal filter option.
Default install of MPC or standalone version has every internal filter check by default.

Quote:
Originally Posted by Jeremy Duncan View Post
Fifth.)For vc1 the procedure is more tricky.
Why? MPC includes a VC1 decoder!!

Quote:
Originally Posted by Jeremy Duncan View Post
- The mpc says the dts is 1000 or so kb, but powerdvd says the audio is ac3 kb level. So mpc seems to have the hd audio whereas powerdvd doesn't
What!! Nevermind. More garbage.
__________________
http://www.7-zip.org/
Audionut is offline   Reply With Quote
Old 27th March 2009, 02:21   #14  |  Link
Jeremy Duncan
Didée Fan
 
Jeremy Duncan's Avatar
 
Join Date: Feb 2006
Location: Canada
Posts: 1,079
Quote:
Originally Posted by Audionut View Post
While you intentions may be good.

You need to edit the title as it's now a Rule 9 violation.
And your first post as well as there is so much nonsense there.




It can be any file from that folder.
You should use bdinfo or eac3to to help find which file has the main movie. Sometimes the movie is split across several files.


I mentioned bd info at the bottom of the first post.

There can be alot more than 3 file types. LPCM, AVC, VC1, MPEG2, AC3, THD, DTS, DTS-MA, PGS, just for a start.

Your right.



Why use or recommend powerdvd if it has a basic limitation?

Lots of people own it and would like to know just because.

Garbage!!

Are you sure. Any links to backup your claim?



More Garbage!!

Not so. I made a ts with ac3 and dts and mpeg2 video with tsmuxer nd played the file in mpc and the only audio was dts.
And if you didn't know this how can you make the first claim valid that dts is available by itself?


Default install of MPC or standalone version has every internal filter check by default.
Not so. link to mpc



Why? MPC includes a VC1 decoder!!

not so. I tsed a vc1 m2ts and included audio from the m2ts and played it with mpc all internal filters checked and there was no video. Only the player shrunk to a mere strip size with no video window.

What!! Nevermind. More garbage.
Explain why this is garbage.
Here's the sample of the mpeg2 mt2s. link to sample from m2ts
Use the new tsmuxer from the tsmuxer website and make a ts with one dts one ac3, both the same language, and the mpeg2. Open it with the mpc I linked to and see if the audio even plays at default. if it does only dts audio will show.

Edit,

I just dl'ed the sample and made a new ts and played it in mpc with all the internal filters checked. dts alone won't play, dts and ac3 will play. audio shown is ac3. The bitrate is 1500 kb I think or around there.

When I make the ts from my m2ts and not the m2ts made from dgsplit the audio shows to be dts.

For some reason dgsplit affects hot the audio is seen. For instance the ac3 only ts made from the original m2ts and opened by dgindex to make a m2v shows the audio to be mpa, but from dgsplit there is no audio to be shown. So it's pointless to say that since ac3 is seen in mpc that I was wrong about only dts being shown in mpc.

And dts in the ts by itself will not play when using the dgsplit version of the m2ts.
_______
__________________
When I get tired during work with dvd stuff i think of River Tamm (Summer Glau's character). And the beauty that is Serenity.

Last edited by Jeremy Duncan; 27th March 2009 at 03:03.
Jeremy Duncan is offline   Reply With Quote
Old 27th March 2009, 20:30   #15  |  Link
Blue_MiSfit
Derek Prestegard IRL
 
Blue_MiSfit's Avatar
 
Join Date: Nov 2003
Location: Los Angeles
Posts: 5,989
Not to rain on your parade, but why re-encode a BluRay to MPEG-2?

If you're going to re-encode, you should really use something more efficient, like H.264 (x264?), unless you have a specific reason for MPEG-2 only. If you're PC-only, I can't imagine what that reason would be!

~MiSfit
__________________
These are all my personal statements, not those of my employer :)
Blue_MiSfit is offline   Reply With Quote
Old 28th March 2009, 03:16   #16  |  Link
Audionut
Registered User
 
Join Date: Nov 2003
Posts: 1,281
Quote:
Originally Posted by Jeremy Duncan View Post
Are you sure. Any links to backup your claim?
I don't rely on ***** others post on the internet. I trial for myself.

tsMuxer creates a perfectly fine file with just mpeg2 and dts. And with ac3 and dts.

Quote:
Originally Posted by Jeremy Duncan View Post
Not so. link to mpc
Sorry, I was think of MPC_HomeCinema.

http://sourceforge.net/project/showf...roup_id=170561

And more up to date files here,
http://xvidvideo.ru/

MPC is outdated.

Quote:
Originally Posted by Jeremy Duncan View Post
Here's the sample of the mpeg2 mt2s. link to sample from m2ts
Use the new tsmuxer from the tsmuxer website and make a ts with one dts one ac3, both the same language, and the mpeg2. Open it with the mpc I linked to and see if the audio even plays at default. if it does only dts audio will show.

Works fine with MPC_HomeCinema. It takes a second or 2 to switch between audio formats, but it works.

Quote:
Originally Posted by Jeremy Duncan View Post
For some reason dgsplit affects hot the audio is seen. For instance the ac3 only ts made from the original m2ts and opened by dgindex to make a m2v shows the audio to be mpa, but from dgsplit there is no audio to be shown. So it's pointless to say that since ac3 is seen in mpc that I was wrong about only dts being shown in mpc.

And dts in the ts by itself will not play when using the dgsplit version of the m2ts.
_______
dgsplit does not affect anything. I've just tried all the scenarios you described and had no problems.

If you have a genuine problem you should raise the issue with neuron2.
__________________
http://www.7-zip.org/

Last edited by Guest; 28th March 2009 at 07:31. Reason: rule 4
Audionut is offline   Reply With Quote
Old 28th March 2009, 19:55   #17  |  Link
Jeremy Duncan
Didée Fan
 
Jeremy Duncan's Avatar
 
Join Date: Feb 2006
Location: Canada
Posts: 1,079
Quote:
Originally Posted by Audionut View Post
I don't rely on ***** others post on the internet. I trial for myself.

tsMuxer creates a perfectly fine file with just mpeg2 and dts. And with ac3 and dts.
Your right. I don't know how I did it before but I try it now and it works.


Sorry, I was think of MPC_HomeCinema.

http://sourceforge.net/project/showf...roup_id=170561

And more up to date files here,
http://xvidvideo.ru/

MPC is outdated.


Ok.


Works fine with MPC_HomeCinema. It takes a second or 2 to switch between audio formats, but it works.


yes, I open the dgsplit made file with no extension and was able to chose different audio.

dgsplit does not affect anything. I've just tried all the scenarios you described and had no problems.

yes this is true.

If you have a genuine problem you should raise the issue with neuron2.
Thank you very much for your time.
__________________
When I get tired during work with dvd stuff i think of River Tamm (Summer Glau's character). And the beauty that is Serenity.
Jeremy Duncan is offline   Reply With Quote
Old 28th March 2009, 20:06   #18  |  Link
Jeremy Duncan
Didée Fan
 
Jeremy Duncan's Avatar
 
Join Date: Feb 2006
Location: Canada
Posts: 1,079
Quote:
Originally Posted by Audionut View Post
MPC includes a VC1 decoder!!
I tried the vc1 blu ray Baraka using ffdshows vc1 decoders and the libavcodec had artifacts and the wmv one didn't but both codecs stuttered badly.

After going through the process for vc1 the first post shows there was no stutering.
I checked the codec and it was the same wmv on that showed stuttering before.

So the program that changes the vc1 to avi seems to make the picture stable.
__________________
When I get tired during work with dvd stuff i think of River Tamm (Summer Glau's character). And the beauty that is Serenity.
Jeremy Duncan is offline   Reply With Quote
Old 28th March 2009, 21:08   #19  |  Link
Blue_MiSfit
Derek Prestegard IRL
 
Blue_MiSfit's Avatar
 
Join Date: Nov 2003
Location: Los Angeles
Posts: 5,989
If you simply rip the VC-1 BluRay stream to an MKV file, Media Player Classic HC will play it perfectly. The WMV Decoder DMO will do perfectly fast decoding.

~MiSfit
__________________
These are all my personal statements, not those of my employer :)
Blue_MiSfit is offline   Reply With Quote
Old 28th March 2009, 21:31   #20  |  Link
setarip_old
Registered User
 
setarip_old's Avatar
 
Join Date: Aug 2005
Posts: 16,267
@Jeremy Duncan

I believe you'll discover that if you now use the most current versions (1.8.34 or 1.8.35) of tsMuxer, your perceived VC-1 playback problems will have disappeared, without having to go through the machinations you've ennumerated...
setarip_old is offline   Reply With Quote
Reply

Tags
blu ray, mpeg2

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

Forum Jump


All times are GMT +1. The time now is 00:53.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.