PDA

View Full Version : How to Get 1080 or 720p MKV files bluray compliant..


jamos
12th March 2008, 22:59
Ok we all know that mkv2vob is a great program and does many things but it uses a trick just to remux the video to get it to stream to a ps3 which does save time when it works and keeps the original quality. The trick uses TSmuxer to set the AVC lvl in the header to 4.1 which SOMETIMES works with the ps3. Problem is that most 1080p mkvs are encoded with more than 4 frames per reference which bluray hardware and ps3's cannot handle. Also sometimes even 720p mkvs have stuttering or playback issues while just being remuxed. Now mkv2vob does allow you to reencode but it is mpeg2 format which increases the size normally and causes very bad streaming due to the lack of compression. So one use of the following would be to get your video streams bluray complant if your having issues with mkv2vob.

Another use for doing this is of course is to make a AVCHD disk which will play off of a DVD-9 or even a DVD-5 on a bluray AVCHD compatable playback device such as the PS3 and many standalone BD players out there. A big advantage of using AVCHD opposed to just playing a file is the ability for DTS (possibly LPCM 5.1 when TSmuxer supports it) as well as AC3. Also on a AVCHD at least on the PS3 you can have toggible subtitles.

So the optimal solution will be to reencode the video stream from the MKV using x264 encoder into a Blu-ray compliant stream. I will show doing this by using MEGUI front end, you could expireement with other programs that are simular such as Ripbot.

Let us begin our discussion..

1. Extract streams with TSMuxer
Use TSMuxer to extract Video, Audio, and optionally .srt subtitle streams from your .mkv file, We will just concentrate on the video stream here. use TSMuxer to create a .m2ts output file for the video and use the demux option for the audio stream you want.

2. Determine MKV video size with mediainfo
You want to use medioinfo to look at your .mkv now and determine the size of the video (this is critically important). If the size is anything other than 1280x720 or 1920x1080 then you will have to resize the video to one of the above resolutions. Many MKVs are cropped horizontally to save space if they are letterbox, so you must look at the resolution with mediainfo to see what the 2nd number is. if its 1280x528 for example that means that 96 borders need to be added to the top and bottom to make it compliant:
720-528=192 192/2=96 (formula using 720 or 1080 as the left number depending on your resolution, subtracting the actual height as the second number then dividing by 2 to get your border sizes). remember this number as you will have to add a addborders statement to your avs script you will be creating later.

Also if you are burining this to a dvd-5 or dvd-9 then look at the movie time length and make a note of it.



[3]Ok heres where I am going off on a tangent but if your using a dvd-5 or dvd-9 to burn with. I strongly recommend you use 720p resolution even if your source is 1080p. this is due to the limited bitrate you have to use to shrink the size down to get it to fit on a dvd-9 or dvd-5, 720p at the same bitrate as 1080p will look better. You can resize the video down to 720p in your avs script also.:)


4. Create a .AVS Script to use with MEGUI
once you have your remuxed .m2ts file you can begin with your x264 frontend which I will show using megui. the first thing you need to do is create a .avs script. A .avs script is nothing more that a text file with a .avs extension that avisynth uses to do things (avisynth should be installed when you install megui). To create a .avs script you just open notepad and type in commands. The ones I use mainly are used below and should be all you need to resize and/or add borders.

first line should look like below subtituting video.m2ts with the name of your remuxed m2ts file in step 3 above. The 23.96 framerate is standard for bluray if your video is a different framerate you may get by with using a different framerate but it will not be 100% bluray compliant.
DirectShowSource("C:\video.m2ts",fps=23.9759856527702,audio=false)
if you are just loading the video and not resizing it or adding borders then the above line is all you need. save the file as whatever name you want to give it with a .avs extension.

If you need to resize you should add the following 2nd line (again I strongly recommend you resize 1080p sources to AVCHD down to 720p).

the following is to resize a 1920x1080 video down to 720p for your 2nd line of code.
Lanczos4Resize(1280,720)

If the source is cropped and you just want to restore the borders to make it compliant then use the following code as your 2nd line. Note: The border numbers were calculated using step 2 fomula.
addborders(0,96,0,96)

If the source is cropped and you want to resize it down to 720p from lets say 1080p then you would use the following for line 2. Note: that the 528 was the original size determined by looking at the mkv with mediainfo in step 2. and the borders were calculated using step 2 fomula.
Lanczos4Resize(1280,528).addborders(0,96,0,96)

Save your file with a .avs extension.

example of a completed AVS script ready to be processed and converted to 720p adding 96 borders to top and bottom:
DirectShowSource("C:\video.m2ts",fps=23.9759856527702,audio=false)
Lanczos4Resize(1280,528).addborders(0,96,0,96)

5. Encode file with MEGUI

Open MEGUI and next to the avisynth script entry field click on the ... button and browse for the .avs script you created in step 4 above. there should be a delay and a preview of the video should be displayed on a window. Close the preview window leaving megui still open. note: If you do not see this preview then you have done something wrong with the .avs file or there is something not right with your source. If you have issues loading a m2ts or mkv file then get CCCP codec pack (http://www.cccp-project.net/) and install it.

Choose RAWAVC in the file format dropdown on the main MEGUI window.

Choose AVCHD profile from the video profile dropdown on the main MEGUI window (if you do not see it then look at note above to put the profile in the correct area).

Now we need to determine what bitrate we are going to need to fit the video on either a dvd-5 or dvd-9 (if you are just going to stream this file or copy it to the ps3 then you can skip this step).
I use Bincsofts Bitrate calculator (http://www.bincsoft.com/?page=download) (seems more accurate then MEGUI's built in one) to determine what maximum bitrate I can use to fit on a dvd-5 or dvd-9. open the calculator and change the output size to either dvd-5 or dvd-9 then enter in the length of the movie that you determined in step 2 using mediainfo. Add at least 9 minutes to the length of the movie to account for the slightly bigger m2ts output (add additional 1 minute if also having subtitles). ie movie length is 1:30:00 so enter 1:40:00 minutes for a movie with subtitles. Now determine the sound quality by using custom and enter in the bitrate (use 630 kbits per sec. for AC3, or 1536 kbits per sec. for DTS for example). the resulting encode at XXXX (Kilobits per sec.) bitrate displayed is what you need from this take note of that number.
Now in MEGUI click the config button next to the bluray video profile and look at the bitrate entry field on the first tab. Enter the number that bincsoft calculated (most likely it will be lower than the default 8000 if using a dvd-5 or could be higher if using a dvd-9). Click ok to close the config. If it asks for you to update you can if you want.

Note: If you use MEGUI to calculate bitrate make sure to add 12 minutes to video length to get appropriate bitrate.

Then click the enqueue button next to the video profile. This will add the job to the second tab of the main MEGUI window.

Now click on the Queue tab on the main MEGUI window and click start to start the encode. This may take a while depending the speed of your computer and how much you are compressing (generally for a 2 hour movie it takes my 3ghz. core2 duo about 3 hours).

6. BD compliant video stream
You now have a .264 raw bluray compliant video stream and can use TSmuxer (with audio stream and optionally a .sup/.srt file) to either create a .ts/.m2ts file that plays on the ps3 (have to rename the .m2ts to .mpg or somthing that the ps3 likes though)

or most importantly you can use TSmuxer to create a BD structure. My tutorial here (http://forum.doom9.org/showthread.php?t=134348) shows how to do that.





Enjoy,
Jamos

to do: add links to program downloads.

bibikul
13th March 2008, 09:25
thank you for the tutorial.

cliffa
13th March 2008, 09:48
Hi, Yes thanks for this Jamos, it clears up the process, which I have dabbled with before.

One related question I have, which I didn't want to post in the tsmux thread is...

Why won't the PS3 play back an m2ts file (via UPnP streaming) containing the original unmodified 1080p Video in VC1 format from a BluRay discs that have been tsmuxed to remove the extra Audio tracks and retain just one AC3 Audio track?

The Video format is obviously OK when it is on a BluRay disc as it works on the original and on a burned BD-RE with BluRay structure.

I have another HD UPnP Media Client (Netgem 7600) that does stream the m2ts files containing the original unmodified VC-1 Video and DTS audio. I hope the PS3 gets updated to support this too.

jamos
13th March 2008, 13:40
Hi, Yes thanks for this Jamos, it clears up the process, which I have dabbled with before.

One related question I have, which I didn't want to post in the tsmux thread is...

Why won't the PS3 play back an m2ts file (via UPnP streaming) containing the original unmodified 1080p Video in VC1 format from a BluRay discs that have been tsmuxed to remove the extra Audio tracks and retain just one AC3 Audio track?

The Video format is obviously OK when it is on a BluRay disc as it works on the original and on a burned BD-RE with BluRay structure.

I have another HD UPnP Media Client (Netgem 7600) that does stream the m2ts files containing the original unmodified VC-1 Video and DTS audio. I hope the PS3 gets updated to support this too.


structure of a m2ts container is different in a bluray disk than a standalone m2ts file due to the BD popup menu interaction etc. so it must be created with BD format selected if it is to be burned onto a AVCHD.

but the ps3 should play back a m2ts file if you rename the extension to .mpg or .vob unless the bd disk it was ripped from has 5.1 avc then it still must be converted to 4.1 using x264. I have done this with serveral 1080p movies though they were all 4.1.

Glorioso
14th March 2008, 15:03
Jamos, i'm working on a two audio project, how can i make the bitrate calculation? double the bitrate in the calculator or subtract the two file size to the desired project size? 478mb each?

Thanks for this tutorial, i'll try it this weekend in my Laptop, this PC is too slow for that....:-(

jamos
14th March 2008, 16:47
Jamos, i'm working on a two audio project, how can i make the bitrate calculation? double the bitrate in the calculator or subtract the two file size to the desired project size? 478mb each?

Thanks for this tutorial, i'll try it this weekend in my Laptop, this PC is too slow for that....:-(


I would just double the bitrate in the audio portion.

Glorioso
14th March 2008, 18:23
I would just double the bitrate in the audio portion.

TSremux will accept multiple audio and subtitles, correct?

crazyfool30
14th March 2008, 18:32
Jamos, does demuxing the mkv to produce a .264 file and remuxing it into a .m2ts file make the encoding process quicker than using the .mkv in the .avs? I'm currently encoding a 2.5 hour movie from 1080p to 720p at about 6000kbs to fit on a dvd9 and the total time is going to be 27 hours! (I've got a 2.2ghz single core amd athlon processer so that might be why.)

Also, if you go to tools in megui there's a bitrate calculator that will automatically update the profile to the required bit-rate. Thought that might be useful.

crayonman
14th March 2008, 20:37
I created AVCHD disk with 1080P video using the bluray profile, but playback stutters on ps3. If reducing the quality can avoid stuttering, any recommendation?

Thanks

pelle412
15th March 2008, 11:44
Hmm, I tried create a BluRay disc following the process you laid out. When I play the disc in PowerDVD I get sound but no video. The video when played in a directshow type player plays just fine. Even PowerDVD plays the movie file itself, just not when burned to a BluRay format. I used ImgBurn to create a BluRay disc (on a DVD-R).

I have not tried to play the disc in a PS3 yet.

Atak_Snajpera
15th March 2008, 12:05
@Jamos
Here is updated formula for TSMuxer.

if audiobitrate=196608 then multiplier:=1/(size*0.008267196)/100 else
if audiobitrate=229376 then multiplier:=1/(size*0.013130252)/100 else
if audiobitrate=262144 then multiplier:=1/(size*0.010629252)/100 else
if audiobitrate=393216 then multiplier:=1/(size*0.009704969)/100 else
if audiobitrate=458752 then multiplier:=1/(size*0.013130252)/100 else
if audiobitrate=655360 then multiplier:=1/(size*0.008267196)/100 else
if audiobitrate=786432 then multiplier:=1/(size*0.009704969)/100 else
if audiobitrate=1572864 then multiplier:=1/(size*0.009704969)/100;

overhead:=1+(duration*multiplier+4.34)/100;


if copyaudiostream=0 then tempcalc:=( (size*1048576/overhead-SubtitleFileSize) /duration*8-audiobitrate)/1000;
if copyaudiostream=1 then tempcalc:=(size*1048576/overhead-AudioFileSize*1.024-SubtitleFileSize)/duration*8/1000;

Glorioso
16th March 2008, 11:35
Jamos, since SUPread cant make 720p files, how can i "burn" the subs in the video stream in the AVS script?

Atak_Snajpera
16th March 2008, 11:43
Use RipBot264

B4tm4n
16th March 2008, 12:00
Jamos, since SUPread cant make 720p files, how can i "burn" the subs in the video stream in the AVS script?


LoadPlugin(x:\path\vsfilter.dll)

textsub(x:"\path\file.ext")

Vsfilter Download (http://www.divshare.com/download/4037479-541)

http://forum.doom9.org/showthread.php?p=487989#post487989

Glorioso
16th March 2008, 12:30
LoadPlugin(x:\path\vsfilter.dll)

textsub(x:"\path\file.ext")

Vsfilter Download (http://www.divshare.com/download/4037479-541)

http://forum.doom9.org/showthread.php?p=487989#post487989

How can i have control over the size? Cann't i use fddshow?

Atak_Snajpera
16th March 2008, 12:36
Read AviSynth help

jamos
17th March 2008, 02:46
Hmm, I tried create a BluRay disc following the process you laid out. When I play the disc in PowerDVD I get sound but no video. The video when played in a directshow type player plays just fine. Even PowerDVD plays the movie file itself, just not when burned to a BluRay format. I used ImgBurn to create a BluRay disc (on a DVD-R).

I have not tried to play the disc in a PS3 yet.

I had that issue with powerdvd 7.2 and had to patch it.

jamos
17th March 2008, 02:52
Jamos, does demuxing the mkv to produce a .264 file and remuxing it into a .m2ts file make the encoding process quicker than using the .mkv in the .avs? I'm currently encoding a 2.5 hour movie from 1080p to 720p at about 6000kbs to fit on a dvd9 and the total time is going to be 27 hours! (I've got a 2.2ghz single core amd athlon processer so that might be why.)

Also, if you go to tools in megui there's a bitrate calculator that will automatically update the profile to the required bit-rate. Thought that might be useful.

You can always try to use the mkv directly if its encoded correctly then it should work and is faster. The way I have shown is my foolproof way to do it for troublesome mkv files.

I know that megui has a bitrate calculator but have always found its a bit on the high side for file sizes (they always seem to not fit as they are supposed to on a dvd selected size).

Glorioso
22nd March 2008, 11:50
Jamos, i have this file:
Video #0
Codec : AVC
Codec/Family : AVC
Codec/Info : Advanced Video Codec
Codec profile : High@L5.1
Codec settings, CABAC : Yes
PlayTime : 48s
Width : 852 pixels
Height : 720 pixels
Display Aspect ratio : 16/9
Frame rate : 23.976 fps
Chroma : 4:2:0
Interlacement : Progressive

Can i use this ratio or how can i resize it?

scissors
23rd March 2008, 08:30
Nice one jamos!

And well done the author of tsmuxer. RAw streams straight to blu ray! brilliant.

scissors
23rd March 2008, 08:32
You can always try to use the mkv directly if its encoded correctly then it should work and is faster. The way I have shown is my foolproof way to do it for troublesome mkv files.

I know that megui has a bitrate calculator but have always found its a bit on the high side for file sizes (they always seem to not fit as they are supposed to on a dvd selected size).

I wish word would get around and encodes of x264 streams in mkv were blu ray compliant, then there'd be no re-encode. That'd save me 30 hours!!!

bibikul
25th March 2008, 13:38
Jamos, how do I get a 1440/1080 mpeg2 hdv file blu-ray compliant?
1440/1080 is PAR 1:1,33 anamorphic.
A 1440/1080 stream is allready blu-ray compliant because is the AVCHD native resolution?
I would like to encode the mpg2 stream with x264 and get a small filesize and I don't know how I resized the source.

Glorioso
25th March 2008, 14:48
Jamos, i have this file:
Video #0
Codec : AVC
Codec/Family : AVC
Codec/Info : Advanced Video Codec
Codec profile : High@L5.1
Codec settings, CABAC : Yes
PlayTime : 48s
Width : 852 pixels
Height : 720 pixels
Display Aspect ratio : 16/9
Frame rate : 23.976 fps
Chroma : 4:2:0
Interlacement : Progressive

Can i use this ratio or how can i resize it?

Jamos, did u see this message?

jamos
25th March 2008, 20:24
Jamos, did u see this message?

Looks like a 4:3 video even though it says 16:9. you can add black borders to the left and right to make it 1280.

1280-852=428/2=214 borders on left and right

so your avs synth file should just have this in it


DirectShowSource("G:\movie.m2ts",fps=23.9759856527702,audio=false)
addborders(214,0,214,0)

is the play time just 48 seconds, is this just a title of some sort?

if you want to stretch it then just use the code below, it will look stretched just like watching 4:3 480i tv signal through a wide screen tv.



DirectShowSource("G:\movie.m2ts",fps=23.9759856527702,audio=false)
Lanczos4Resize(1280,720)

jamos
25th March 2008, 20:38
Jamos, how do I get a 1440/1080 mpeg2 hdv file blu-ray compliant?
1440/1080 is PAR 1:1,33 anamorphic.
A 1440/1080 stream is allready blu-ray compliant because is the AVCHD native resolution?
I would like to encode the mpg2 stream with x264 and get a small filesize and I don't know how I resized the source.

If you want to keep the same resolution just put this in

DirectShowSource("G:\movie.mpeg2",fps=23.9759856527702,audio=false)

and use the correct AVCHD compliant fps.

jamos
25th March 2008, 20:41
I wish word would get around and encodes of x264 streams in mkv were blu ray compliant, then there'd be no re-encode. That'd save me 30 hours!!!

Yes the persons making most of the mkvs have no thought on making them compliant they just care about computer playback it seems.

Glorioso
25th March 2008, 22:50
Looks like a 4:3 video even though it says 16:9. you can add black borders to the left and right to make it 1280.

1280-852=428/2=214 borders on left and right

so your avs synth file should just have this in it


DirectShowSource("G:\movie.m2ts",fps=23.9759856527702,audio=false)
addborders(214,0,214,0)

is the play time just 48 seconds, is this just a title of some sort?

if you want to stretch it then just use the code below, it will look stretched just like watching 4:3 480i tv signal through a wide screen tv.



DirectShowSource("G:\movie.m2ts",fps=23.9759856527702,audio=false)
Lanczos4Resize(1280,720)


Jamos, this is the Sample file that is just 48seconds, but when i play the file the format is 16:9...

luthan
27th March 2008, 17:23
i tried this method on a dual quad core processor server and it seemed like only 2 cores were being used.
anything out there that would utilize all cores available?

framura
1st April 2008, 14:45
Hi,

anyone tried this one?

http://www.itheater.info/jointops/guides/bd/

Seems very easy for compliant streams with only resolution difference (no need to reencode).

TIA

B4tm4n
1st April 2008, 17:03
Hi,

anyone tried this one?

http://www.itheater.info/jointops/guides/bd/

Seems very easy for compliant streams with only resolution difference (no need to reencode).

TIA

I tried this and you still get the green bar at the bottom of the screen on my PS3.
Maybe I did something wrong, well I await futher test results.

veggav
6th April 2008, 00:50
Hi all, this is my first post on this forum but i've been following all the discution about blu-ray on dvd-r single layer or double layer.

I'm here to ask if that is really correct, i've been doing all that your tutorial says James and I have a single core athlon xp 3200 and it is taking something like 25 hours for a 4GB 720p movie.

Megui shows 2 pass to complete it, here are the two commands it do:

Log for job job1

Job commandline: "C:\Program Files\megui\tools\x264\x264.exe" --pass 1 --bitrate 3414 --stats "C:\Blu-Ray\test.stats" --level 4.1 --keyint 24 --min-keyint 1 --bframes 3 --direct auto --subme 1 --partitions none --ipratio 1.1 --pbratio 1.1 --vbv-bufsize 30000 --vbv-maxrate 38000 --qcomp 0.5 --me dia --threads auto --thread-input --sar 1:1 --progress --no-psnr --no-ssim --output NUL "C:\Blu-Ray\test.avs" --mvrange 511 --aud --nal-hrd --sar 1:1
C:\Program Files\megui\tools\x264\x264.exe: unknown option -- nal-hrd

this one takes something like 4 hours

them this one takes a lot

Job commandline: "C:\Program Files\megui\tools\x264\x264.exe" --pass 2 --bitrate 3414 --stats "C:\Blu-Ray\test.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 --sar 1:1 --progress --no-psnr --no-ssim --output "D:\Cars\cars.264" "C:\Blu-Ray\test.avs" --mvrange 511 --aud --nal-hrd --sar 1:1

How can the first one have any effect if it does not have an output ?

Is that correct, it will take 25 hours for a 720p movie ? And 2-3 days for a 1080p movie ?

Thanks for your atention to my questions

Vitor

jamos
7th April 2008, 02:04
I tried this and you still get the green bar at the bottom of the screen on my PS3.
Maybe I did something wrong, well I await futher test results.

Yes it doesnt work with all bd players (ie PS3). also the resolution is just one thing to make the video BD compliant. Best to reencode even if you do not need to change the resolution.

jamos
7th April 2008, 02:05
Jamos, this is the Sample file that is just 48seconds, but when i play the file the format is 16:9...

your player is probably stretching the video for you. best just to use the 1080x720 script and stretch it to that.

DirectShowSource("G:\movie.m2ts",fps=23.9759856527702,audio=false)
Lanczos4Resize(1280,720)

jamos
7th April 2008, 02:43
Hi all, this is my first post on this forum but i've been following all the discution about blu-ray on dvd-r single layer or double layer.

I'm here to ask if that is really correct, i've been doing all that your tutorial says James and I have a single core athlon xp 3200 and it is taking something like 25 hours for a 4GB 720p movie.

Megui shows 2 pass to complete it, here are the two commands it do:

Log for job job1

Job commandline: "C:\Program Files\megui\tools\x264\x264.exe" --pass 1 --bitrate 3414 --stats "C:\Blu-Ray\test.stats" --level 4.1 --keyint 24 --min-keyint 1 --bframes 3 --direct auto --subme 1 --partitions none --ipratio 1.1 --pbratio 1.1 --vbv-bufsize 30000 --vbv-maxrate 38000 --qcomp 0.5 --me dia --threads auto --thread-input --sar 1:1 --progress --no-psnr --no-ssim --output NUL "C:\Blu-Ray\test.avs" --mvrange 511 --aud --nal-hrd --sar 1:1
C:\Program Files\megui\tools\x264\x264.exe: unknown option -- nal-hrd

this one takes something like 4 hours

them this one takes a lot

Job commandline: "C:\Program Files\megui\tools\x264\x264.exe" --pass 2 --bitrate 3414 --stats "C:\Blu-Ray\test.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 --sar 1:1 --progress --no-psnr --no-ssim --output "D:\Cars\cars.264" "C:\Blu-Ray\test.avs" --mvrange 511 --aud --nal-hrd --sar 1:1

How can the first one have any effect if it does not have an output ?

Is that correct, it will take 25 hours for a 720p movie ? And 2-3 days for a 1080p movie ?

Thanks for your atention to my questions

Vitor

the first pass saves stats in the .stats file, the second pass uses the stats to reencode.

Time sounds about right with your processor, reencoding is really cpu and memory intensive. 1080p should not take much more time than 720p. this is where the dual cores really help you as x264 uses them (either amd or intel). for me the first pass takes about 1.5 hours and the second about 3 hours for a 2 hour video with a dual core intel 6850 and 4 gigs of ram.

nick101181
9th April 2008, 01:18
I can't wait until there is a ps3 firmware that will read mkv's. I got a quick question I have some mkv's that are exactly 4.37 gigs. If I use the mkv to blu-ray with tsremuxer method all of my .m2ts files come out 4.6 gigs which is too big for a dvd-r. What's a solution to this to keep from re-encoding. also how much time would need to be cut from the credits to get it down to dvd-r size? If I only had to trim say the last 30 seconds of the credit to drop to the correct size, then I'd have no problem with that.

chiefj1254
13th April 2008, 07:28
Nick,

There's not much you can do with a 4.37GB mkv that you want to convert to bluray. The problem is that muxing to .m2ts will add extra reference data to the stream that bumps the size up a bit. If your video size on those files is not either exactly 1280x720 or 1920x1080 however, you have to add borders to the stream to make it blu-ray compliant (see janos' posts for the how-to). Since you probably have to go through this trouble anyhow, you can specify a bitrate during the conversion in meGui that will give you an output file that'll fit into that 4.37GB size when you're done. If you've already got a compliant video size, then you may still have to re-encode it through meGui, but just knock the bitrate down a little bit (be sure not to add borders). It'll take a while, but not nearly as long as when you're adding borders. And the result will fit right onto a DVD5.

chiefj1254
15th April 2008, 18:19
Actually, I have to correct myself. If your file is already 4.1 compliant, and it's DVD5 or DVD9 size AND already in a standard resolution (1920x1080 or 1280x720) then you can feed the file into tsmuxer and uncheck the "Continually insert SPS/PPS" box on the h264 video and mux video and audio directly into the Blu-Ray disk option and it should stay the same size. Give it a shot and you may get lucky. It's probably always safer to re-encode anyhow, but you may be able to avoid it on some videos.

frank
22nd April 2008, 17:09
Check the "Continually insert SPS/PPS" box
or you don't get a picture on Sony BDP S300!

This stretches the length of the stream only some 100 kByte.

nick101181
23rd April 2008, 23:39
Hello,
Whenever I load up my avs file into megui it crashes without any explanation but when I view the error report I see:

Error Signature
AppName: megui.exe AppVer: 0.2.6.1046 ModName: ivih264.dll
ModVer: 2.2.4.2 Offset: 0001e2d3

Does anyone know why megui is crashing ?

thanks

iSkywalker
29th April 2008, 08:16
Hi Jamo, Thanks for your wonderful guide. I can successfully get my mkv video with correct size playable on my PS3. I chose the default "2 pass" and took me 4 hours to encode for 2 hours movie. What did you choose for taking only 2 hours to encode?

Pyth0n
4th May 2008, 00:47
Hi Jamos, I followed your guide and I'm using latest megui version with all the updates.

I just can't get it to work right. Don't know if it's megui or if it's x264.

Here's what happening.

http://forum.doom9.org/showthread.php?p=113390

Pyth0n
5th May 2008, 20:56
How do I get those 25fps videos working?

They don't play on PS3 when I mux a 25fps to bluray structure.
How do I convert them to 24/1001fps and still keeping audio sync?

Atak_Snajpera
5th May 2008, 20:58
What did you choose for taking only 2 hours to encode?
Probably Quad Core :)

rotatorkuf
16th May 2008, 03:04
great thread

got everything working

just wondering

what is one supposed to do with pal (25fps) audio?

i can convert the video fine, but using the same audio results in desynching....is there a way to convert 25fps ac3o to 23.976 (ntsc) ac3?

some other questions

1. what's the difference between 'sa blu ray' and 'sa blu ray fast'

2. if you place different videos in the queue, with different profile configs, will they all follow their own bitrate or the last one you set?

3. how exactly do you create an avs script to account for resizing from 1080 to 720 and adding borders...e.g. a video with 1920x800 resolution

astragalos
19th May 2008, 11:43
great thread
what is one supposed to do with pal (25fps) audio?

i can convert the video fine, but using the same audio results in desynching....is there a way to convert 25fps ac3o to 23.976 (ntsc) ac3?



Nowadays is very simple to do it with eac3to . If you find, you will probably find a nice guide here or in any other video forum.

:)

grew
28th May 2008, 23:07
Just wanted to say thanks for this guide.. Just finished a couple of encodes... My comp is a bit slower than your though and it took almost 10 hours each for the encoding.... thanks again

lithiumus
23rd June 2008, 02:12
@Jamos
Here is updated formula for TSMuxer.

if audiobitrate=196608 then multiplier:=1/(size*0.008267196)/100 else
if audiobitrate=229376 then multiplier:=1/(size*0.013130252)/100 else
if audiobitrate=262144 then multiplier:=1/(size*0.010629252)/100 else
if audiobitrate=393216 then multiplier:=1/(size*0.009704969)/100 else
if audiobitrate=458752 then multiplier:=1/(size*0.013130252)/100 else
if audiobitrate=655360 then multiplier:=1/(size*0.008267196)/100 else
if audiobitrate=786432 then multiplier:=1/(size*0.009704969)/100 else
if audiobitrate=1572864 then multiplier:=1/(size*0.009704969)/100;

overhead:=1+(duration*multiplier+4.34)/100;


if copyaudiostream=0 then tempcalc:=( (size*1048576/overhead-SubtitleFileSize) /duration*8-audiobitrate)/1000;
if copyaudiostream=1 then tempcalc:=(size*1048576/overhead-AudioFileSize*1.024-SubtitleFileSize)/duration*8/1000;

Hey Atak,

I just wanted to confirm what this formula was... does it calculate the overhead that tsmuxer places on a video stream?

Atak_Snajpera
24th June 2008, 00:30
if audiobitrate=196608 then multiplier:=1/(size*0.008267196)/100 else
if audiobitrate=229376 then multiplier:=1/(size*0.013130252)/100 else
if audiobitrate=262144 then multiplier:=1/(size*0.010629252)/100 else
if audiobitrate=393216 then multiplier:=1/(size*0.009704969)/100 else
if audiobitrate=458752 then multiplier:=1/(size*0.013130252)/100 else
if audiobitrate=655360 then multiplier:=1/(size*0.008267196)/100 else
if audiobitrate=786432 then multiplier:=1/(size*0.0067640693)/100 else // FIX: Becaude REAL DTS bitrate is 737kbps instead of 768kbps
if audiobitrate=1572864 then multiplier:=1/(size*0.009704969)/100; // <- Broken

overhead:=1+(duration*multiplier+4.34)/100;


if copyaudiostream=0 then tempcalc:=( (size*1048576/overhead-SubtitleFileSize) /duration*8-audiobitrate)/1000;
if copyaudiostream=1 then tempcalc:=(size*1048576/overhead-AudioFileSize*1.024-SubtitleFileSize)/duration*8/1000;

does it calculate the overhead that tsmuxer places on a video stream?
Yes it does.

1ellis2345
24th June 2008, 13:31
Hi,

Thanks for the tutorial, i followed it to the letter but i'm still getting the green bar at the bottom of the screen. I used the calculations as described in the tutorial and when i checked the resulting video on my pc the borders have been added, but when i burn it to disc and put it in the ps3 no luck, green bar.

Can anyone help, please?

Atak_Snajpera
24th June 2008, 18:56
Use RipBot264 and make sure you set 1920x... or 1280x... resolution.

lithiumus
27th June 2008, 03:34
Yes it does.

Thanks this is really helpful! BTW, what do you mean by "broken"? Is that number inaccurate for DTS 1536bit streams? To verify these numbers could I mux the streams and use the resulting sizes to plug into the equation? I assume yes? Thanks again.

robbyrob
5th July 2008, 06:24
Hi, Yes thanks for this Jamos, it clears up the process, which I have dabbled with before.

One related question I have, which I didn't want to post in the tsmux thread is...

Why won't the PS3 play back an m2ts file (via UPnP streaming) containing the original unmodified 1080p Video in VC1 format from a BluRay discs that have been tsmuxed to remove the extra Audio tracks and retain just one AC3 Audio track?

The Video format is obviously OK when it is on a BluRay disc as it works on the original and on a burned BD-RE with BluRay structure.

I have another HD UPnP Media Client (Netgem 7600) that does stream the m2ts files containing the original unmodified VC-1 Video and DTS audio. I hope the PS3 gets updated to support this too.

for the PS3 to play the m2ts file via stream for example with Tversity you have to rename the extension and take of the s. so for example instead of yourmovie.m2ts it would be yourmovie.m2t

if you are just going to burn to disk or make bluray structure you dont have to rename..


BTW thanks for this!! i needed this bad!!

u the man!

robbyrob
5th July 2008, 23:59
ok i have one small question on this...

1. i used the formula to calculate the addborders script thing is when the conversion was complete i used mediainfo and it said it was compliant. 1280x720. now when I put it on the Ps3 it worked perfect. no green lines but it was not full screen. does it have to be full screen? just wondering because I thought we were adding the border to make the video full screen but i could be wrong..

2. second question is that after I made the .avs script and loaded into Medgui everything went good. i entered the bitrate with the calculations, beautiful. i noticed once i clicked on Enqueue it gave me 2 jobs to do. I clicked start and was pretty happy when I saw that it would only take 1.5 hours. After the first job went through it told me that the file already existed do i want to overwrite? I said yes and then it encoded for another 2 hours. is this normal? to get 2 jobs after pressing enqueue? It was a video that had to be resized so I am not sure if that had to do with it?


other than that man once again thanks for this because regardless of anything it played and didnt have the green line like my previous attempt!!

Atak_Snajpera
6th July 2008, 00:11
if audiobitrate=196608 then multiplier:=1/(size*0.008267196)/100 else
if audiobitrate=229376 then multiplier:=1/(size*0.013130252)/100 else
if audiobitrate=262144 then multiplier:=1/(size*0.010629252)/100 else
if audiobitrate=393216 then multiplier:=1/(size*0.009704969)/100 else
if audiobitrate=458752 then multiplier:=1/(size*0.013130252)/100 else
if audiobitrate=655360 then multiplier:=1/(size*0.008267196)/100 else
if audiobitrate=786432 then multiplier:=1/(size*0.0067640693)/100 else // FIX: Becaude REAL DTS bitrate is 737kbps instead of 768kbps
if audiobitrate=1572864 then multiplier:=1/(size*0.0044642857)/100; // <- Fixed

overhead:=1+(duration*multiplier+4.34)/100;


if copyaudiostream=0 then tempcalc:=( (size*1048576/overhead-SubtitleFileSize) /duration*8-audiobitrate)/1000;
if copyaudiostream=1 then tempcalc:=(size*1048576/overhead-AudioFileSize*1.024-SubtitleFileSize)/duration*8/1000;

.....

robbyrob
6th July 2008, 01:41
ok i was reading and now i understand that the 2 jobs are the 2 passes.. pretty much just wanted to know about the full screen deal with the adding borders.

robbyrob
6th July 2008, 01:55
I can't wait until there is a ps3 firmware that will read mkv's. I got a quick question I have some mkv's that are exactly 4.37 gigs. If I use the mkv to blu-ray with tsremuxer method all of my .m2ts files come out 4.6 gigs which is too big for a dvd-r. What's a solution to this to keep from re-encoding. also how much time would need to be cut from the credits to get it down to dvd-r size? If I only had to trim say the last 30 seconds of the credit to drop to the correct size, then I'd have no problem with that.

i REALLY would love for PS3 to let us use MKV files. :) that would make our lives much easier, but then again I did read somewhere were Sony was trying to be one of the leaders in trying to stop Piracy so I doubt they give that feature. Hopefully but i am not holding my breath. I did read somewhere were u could install Linux on the PS3 and use I believe is VLC to play Mkv.

Mordred
28th July 2008, 18:14
Just wanted to say thanks to Jamos because this guide is great.

I am however having a strange problem. I'm getting some odd stuttering on my output files. The stuttering occurs about once a second or so and is noticeable on my PS3 and when I play the files on my PC.

I did a lot of investigation and followed the procedure in this thread to the letter and I now know where it's going wrong, but I don't know why, or how to fix it.

I'm starting with an MKV, I demux to .264 using tsMuxerGUI. I then remux the .264 to .m2ts using tsMuxerGUI so that MeGUI can properly tell the length of the file. I then reencode to AVC and get stuttering.

However, if I don't do the intermediary remux from .264 to .m2ts MeGUI can reencode to AVC without any stuttering at all. The problem is that MeGUI can't tell what the playtime of the file is so the output is some random length either too short or too long. The video that is there, plays back perfectly however.

Any suggestions? Is there something else I can remux the .264 to that MeGUI can properly tell the length of? I think it might be a bug in the .m2ts muxing that tsMuxerGUI has, but I don't know.

Mordred
29th July 2008, 05:19
Playing with this a little more on my 1 minute sample files I got the re-encode to work perfectly if instead of demuxing first I just used the original .mkv in the .avs I passed to MeGUI. The resultant .264 file played perfectly fine. I'm currently trying a re-encode of a full length movie to make sure it still works perfectly.

In looking at this guide it says the reason to demux to the elemental streams is that DirectShow sometimes has problems with .mkv files. What problems are those?

Mordred
29th July 2008, 22:01
Playing with this a little more on my 1 minute sample files I got the re-encode to work perfectly if instead of demuxing first I just used the original .mkv in the .avs I passed to MeGUI. The resultant .264 file played perfectly fine. I'm currently trying a re-encode of a full length movie to make sure it still works perfectly.

In looking at this guide it says the reason to demux to the elemental streams is that DirectShow sometimes has problems with .mkv files. What problems are those?Well my computer crashed about an hour into the encode, so apparently that's the problem it has with MKVs. Hopefully someone has some ideas/suggestions for me.

alc0re
5th December 2008, 10:59
I have a question about overhead when muxing an audio file (dts or ac3) and an h264 video file to Bluray structure (m2ts) using TSMuxer. There's a formula posted in this thread but I have no idea how to use it.

All I'm looking to do is figure out what bitrate my video needs to be re-encoded at to fit on a DVD9 after transcoding and resizing to 720p. Jamos said in that post to just add 6 minutes to total length of movie in the bitrate calc, but I want to be more exact than that.

Are there any programs/bitrate calcs out there that use that formula posted by Atak that I can input some numbers in and it will tell me the bitrate needed? None of the bitrate calcs I saw support M2TS container. If not, can someone tell me what I need to do to use Atak's formula?

Thanks...

laserfan
5th December 2008, 16:53
...can someone tell me what I need to do to use Atak's formula?Use RipBot264 instead of MeGUI?

alc0re
5th December 2008, 20:20
I have grown fond of MeGUI. Not that RipBot isn't a great program. After I posted I installed RipBot and found that I can use it to calculate the bitrate for me and drop that bitrate into MeGUI.

jamos
1st January 2009, 16:22
I have grown fond of MeGUI. Not that RipBot isn't a great program. After I posted I installed RipBot and found that I can use it to calculate the bitrate for me and drop that bitrate into MeGUI.

megui can calculate bitrate also but is not as accurate.

jamos
1st January 2009, 16:22
Probably Quad Core :)

quad core i7 now:devil:

deank
25th March 2009, 11:40
Take a look here (http://forum.doom9.org/showthread.php?p=1265246#post1265246). I posted this small tool as I'm using it from time to time to create compliant output to use with multiAVCHD.

And if you resize 1920x800 to 1280x720 the aspect ratio will be wrong. You need this:

1) resize 1920x800 -> 1280x534
2) addborders(0,93,0,93) to make 1280x534 -> 1280x720 with top and bottom borders of 93 pixels each.

Dean

deank
25th March 2009, 14:40
You need to keep the original aspect.

Your input file is 1920x800 and you need to convert it to width of 1280.

1920/1280 = 1.5
800 / 1.5 = 533.3(3) and rounding up to next = 534

Then to make equal borders: 720 - 534 = 186 and each border will be 186/2 = 93 pixels... so you'll get

534 + 93 + 93 = 720 for you new 1280x720 resolution.

If your clip is: orgWIDTH x orgHEIGHT and your desired one has newWIDTH

then the new file will be:

newWIDTH x ( orgHEIGHT / (orgWIDTH / newWIDTH) )

or in your case:

1280 x ( 800 / ( 1920 / 1280) ) -> 1280 x ( 800 / 1.5 ) -> 1280 x 534

Sometime ago I posted a simple avs script to get this done if your input file has horisontal resolution of 1920 or 1280:


filename="D:\Movie.mkv"
resizeTO = 1280

directshowsource(filename,audio=false)

myheight = (width()==1920) ? 1080 : 720
bordersize=int( (myheight-height() )/2 )
AddBorders(0, bordersize, 0, bordersize)

x=last
x= (resizeTO==1920) ? x.LanczosResize( 1920, 1080) : x.LanczosResize( 1280, 720)
return x


It will be faster if resizing is done before adding borders, but it is just a sample.


Dean

rapscallion
25th March 2009, 15:17
Thanks for clarifying dean ! Any idea why the long encode times ~20hrs+ ?

deank
25th March 2009, 15:48
I have no idea what options/profiles you use.

I'm currently trying my uncropMKV (http://forum.doom9.org/showthread.php?t=145905) tool to reencode 1920x1080 full-frame video back to 1920x1080 but with lower Profile/Level and different frame-ref-cound and my x264 says 4hrs for 120 000 frames.

When reencoding 1280x... it usually takes just 2 hours. And I do one pass only.

It also depends on your CPU/OS.

rapscallion
25th March 2009, 16:42
All options/profiles are as in Jamos post #1. (and in my first post above)
WinXP SP3, Intel Core duo 2.44, 2 gb ram.

deank
25th March 2009, 16:54
I'm using 32bit Vista on a Dell Inspiron 1720 laptop with Intel Core2 Duo T8300@2.4GHz with 2GB of RAM.

Currently x264 is encoding and I'm doing tenths of other things on the same machine and I'll never get such times as 20hrs.

deank
25th March 2009, 17:53
It is because of missing parameter in x264 command line... where do you get this? MeGUI? Or your avs script has some unnecessary cropping.

You need to have something like:

--partitions p8x8,b8x8,i4x4,i8x8

rapscallion
25th March 2009, 18:29
Yes, from the Megui error log, after processing the "stats" file.

Here's my avs script, per Jamos instructions (and your change) :

DirectShowSource("d:\encodes\file.x264\file.m2ts",fps=23.9759856527702,audio=false)

Lanczos4Resize(1280,534).addborders(0,93,0,93)

deank
25th March 2009, 18:32
It seems that I wrote all these posts in vain... or you didn't take time to read carefully.

If your file is 1280x528 - did you try to calculate border sizes?!

720 - 528 = 192 / 2 = 96

So you need to change your addborders to

addborders(0,96,0,96)

And I don't understand you would you use Lanczos4Resize(1280,528) if your file is already 1280x528.

deank
25th March 2009, 18:45
You're not bothering me but your wasting your time with reencoding.

Yes, you asked about 1920x800 and it will be 1280x534 NOT 1280x528.

I don't know where did you get this 528 and why is this Resize in your avisynth script.

Check your cropping/resize settings in megui avisynth script creator.

Just use:


DirectShowSource("d:\download_current\file.x264\file.m2ts",fps=23.9759856527702,audio=false)
Lanczos4Resize(1280,534)
addborders(0,93,0,93)


or you can use this:


filename="d:\download_current\file.x264\file.m2ts"
resizeTOx = 1280
resizeTOy = 720

directshowsource(filename,audio=false)
newHEIGHT= int( height() / (width() / resizeTOx) )
LanczosResize( resizeTOx, newHEIGHT)
bordersize=int( (resizeTOy - newHEIGHT ) / 2 )
AddBorders(0, bordersize, 0, bordersize)


You may also want to disable ALL pre/post processing settings in you ffdshow (if you use it).

rapscallion
25th March 2009, 21:14
Dean...you're going way beyond my capability, but I do thank you for the effort.

This is my first venture into AVCHD, MKS conversion.
I was following ALL the steps in Jamos' post #1, at the start of this thread., and using the same programs.

I'm re encoding because he stated it was necessary when:
1. The original file is a 1080p. mkv
2. and I want to convert to a AVCHD , 720p
3. The original file is over 9gb and I want it to fit on a DVD9.

My first post above, #65, was prompted by the change in the interface description of MEGUI since his post. Some things didn't match so I was looking for clarification.

deank
26th March 2009, 13:36
Firstly Jamos, a great tutorial...Thanks.

I do have a few questions re a 1hr46m, 9.1gb, mkv movie :

1. Am I correct to assume that to resize a video from 1920x800 to 1280x720 that no borders are necessary (can't do negative borders) ??
My avs file :
"DirectShowSource("d:\video.m2ts",fps=23.9759856527702,audio=false)
Lanczos4Resize(1280,720)"


No. We discussed it already.


My first post above, #65, was prompted by the change in the interface description of MEGUI since his post. Some things didn't match so I was looking for clarification.

The ONLY change you need is with the AVS script you posted - nothing else.

you said it is

DirectShowSource("d:\video.m2ts",fps=23.9759856527702,audio=false)
Lanczos4Resize(1280,720)

Replace it with:

DirectShowSource("d:\video.m2ts",fps=23.9759856527702,audio=false)
Lanczos4Resize(1280,534)
addborders(0,93,0,93)

HOW hard that can be?

rapscallion
26th March 2009, 15:45
Dean,
No, it's not hard and I did make the change to the avs script, the first time you posted it. I did a typo by accident with the 528, because that happenned to be the number in jamos' post example.

When I corrected it, AND downloaded newer presets/profiles >Here< (http://forum.doom9.org/showthread.php?t=139765) I was able to choose "x264:standalone-avc-hd" which is the correct profile, not the "standalone blu-ray" profile I mentioned I my first post.

Running Megui in "normal" or "below normal" priority, job1 (stats file) took 3.5 hrs, job2 (264 file) took 7 hrs .

Thus, total time=10.5 hrs. Better than the original estimate, under a different profile, which was ~20hrs.
Still seems quite long, but as long as it works. (I still have to remuxe to a avchd structure w/the audio, of course.) Whew !

rapscallion
6th May 2009, 17:04
first line should look like below subtituting video.m2ts with the name of your remuxed m2ts file in step 3 above. The 23.96 framerate is standard for bluray if your video is a different framerate you may get by with using a different framerate but it will not be 100% bluray compliant.

DirectShowSource("C:\video.m2ts",fps=23.9759856527702,audio=false)

I have a mkv source movie that has a framerate of 24fps , that I'm muxing to a avchd dvd9.

My question is- do I change the 23.97xx in the avisynth script to exactly 24 or leave it as Jamos' example above ? (my understanding in doing a search is that 24fps is also blu-ray compliant so I'm a little confused here)

deank
6th May 2009, 17:09
:p me again :)

Yes, you shoud use the exact framerate - as in your case: 24.000, otherwise you may have some audio sync problems at the end of the video (about 7 seconds in 2hr video).

rapscallion
6th May 2009, 17:34
Thanks Dean !! (aka me again :))

mike26
14th September 2009, 11:57
got this file i wanna convert to 1280x720 in meguide

what line do i put in the avs script

Format profile : High@L4.0
Muxing mode : Container profile=Unknown@4.0
Duration : 1h 34mn
Bit rate : 5 861 Kbps
Nominal bit rate : 5 991 Kbps
Width : 1 920 pixels
Height : 816 pixels

G_M_C
14th September 2009, 12:58
got this file i wanna convert to 1280x720 in meguide

what line do i put in the avs script

Format profile : High@L4.0
Muxing mode : Container profile=Unknown@4.0
Duration : 1h 34mn
Bit rate : 5 861 Kbps
Nominal bit rate : 5 991 Kbps
Width : 1 920 pixels
Height : 816 pixels

Damn,

1) Look for the AviSynth part of this forum.
2) Install avisynth (or if allready installed) look for Avisynth in the start-menu
3) Switch on the installed manual
4) Use brain for some calculations
5) set appropriate commands
6) Launch script in Vdub to see if it works.
7) If not try again, if it does -> encode.

In short learn to do these very very basic things yourself, and show some effort, as opposed to none.

And last: Where did you get those MKV's from exactly ?

Psst deank:



[B]DirectShowSource(blablah, fps=23.9759856527702,blahblah)
[...]


Why not set fps=24000/1001 ? Much simpler ;)

mike26
14th September 2009, 14:28
Damn,

1) Look for the AviSynth part of this forum.
2) Install avisynth (or if allready installed) look for Avisynth in the start-menu
3) Switch on the installed manual
4) Use brain for some calculations
5) set appropriate commands
6) Launch script in Vdub to see if it works.
7) If not try again, if it does -> encode.

In short learn to do these very very basic things yourself, and show some affort, as opposed to none.

And last: Where did you get those MKV's from exactly ?

Psst deank:



Why not set fps=24000/1001 ? Much simpler ;)

the mkv files are recordings from my sat box

i know how to resize up to 720p when example it look like this
Lanczos4Resize(1280,528).addborders(0,96,0,96)

but how do i resize down:confused:

rapscallion
14th September 2009, 14:38
See post #66 on the previous pg

Guest
14th September 2009, 14:40
the mkv files are recordings from my sat box What sat box produces MKV files?

deank
14th September 2009, 14:46
Psst deank:
Why not set fps=24000/1001 ? Much simpler ;)

Well, it was in raspcallion's post and avisynth setting, that's why I quoted/used the floating number and not 24000/1001 :)

rapscallion
14th September 2009, 15:35
Psst deank:

Why not set fps=24000/1001 ? Much simpler ;)


...and, of course, I used it because it was in post #1/tutorial of this thread, started by Jamos.

deank
14th September 2009, 16:02
[hidden]

G_M_C
14th September 2009, 16:36
What sat box produces MKV files?

The same sat box that produces cropped images @ 1920 x 816 apparently ;)

@ mike26

The reason why I responded the way I did, is because it is very useful to learn how to script basic things in AviSynth. If you want to do more than this one time encode, I really really can recommend to try this simple thing for yourself. If you get to know these basic things, you'll be better off in the end, count on it.

Guest
14th September 2009, 22:59
@mike26

You need to clarify your answer on the source of the files or a strike can follow.

@all
No further discussion until the rule 6 concern is clarified.

mike26
15th September 2009, 10:01
as i sayd. is my satbox
Dreambox to be exactly that save it to mkv file, dreambox is like an linux pc but for television.but i have filled my hdd and wanna make it bluray complient.!

G_M_C
15th September 2009, 10:50
as i sayd. is my satbox
Dreambox to be exactly that save it to mkv file, dreambox is like an linux pc but for television.but i have filled my hdd and wanna make it bluray complient.!

Dont let the box crop. LEt it just save to a compliant resolution (1280 x 720, 1920 x 1440 or 1920 x 1080). Streams like that can be muxed into BD (AVCHD) directly. No reencoding required.

Now you need to reeencode. If your HDD is full, you'd better learn how to script avisynth and use x264 asap. There is a lot to be found around this board about this subject. There have been many people that have done stuff exactly like you want to do now (me included) And i for one am quite shure i've posted x264 commandlines and explinations how to get to bd compliant settings/streams, and how it works. So basically .... :search: .

mike26
15th September 2009, 11:01
Dont let the box crop. LEt it just save to a compliant resolution (1280 x 721, 1920 x 1440 or 1920 x 1080). Streams like that can be muxed into BD (AVCHD) directly. No reencoding required.

Now you need to reeencode. If your HDD is full, you'd better learn how to script avisynth and use x264 asap. There is a lot to be found around this board about this subject. There have been many people that have done stuff exactly like you want to do now (me included) And i for one am quite shure i've posted x264 commandlines and explinations how to get to bd compliant settings/streams, and how it works. So basically .... :search: .

thx for the answer ill try to make it work

rapscallion
15th September 2009, 15:31
Uh, I hate to point out the obvious, but that's what the 1st post in this thread ia all about.:rolleyes: