View Full Version : AVCHDCoder - Blu-ray, MKV, M2TS, etc to AVCHD encoder. From input to ISO. Easy to use
Pages :
1
2
[
3]
4
5
6
7
8
9
10
twazerty
26th June 2009, 14:14
Thanks for the new version and the calculator.
A few things to add to the avchdcoder list:
- use BDSup2Sub instead of TSMuxer (crashes on some subs) for resizing subs
I can use BDSup2Sub directly without commandline but I can figure out how to resize.
- don't delete AUXDATA folder of output (6 HW and 2 SW players need it. only 2, but probably 0 now (samsung firmware updates) require it to be deleted) (http://forum.doom9.org/showthread.php?t=146339)
I have a Samsung BD-P1500 myself and lots of people do have this player. Haven't got any complaints it didn't work on other players. Only on some software players it doesn't work but thats no problem because I aim on Standalone players. I have 2 options for now. Pure AVCHD structure without JAR folders etc. or the way like I did it for now. Just no AUXDATA folder.
- if input fps = ~23.976 add this to avs: AssumeFPS(24000/1001) so the output is the same as input (eac3to and possibly 24p HW issues)
Okay I will fix this in next release.
- add to end of the avs: ConvertToYV12() (x264 only accepts YV12 and some decoders use other colorspaces)
Okay I will fix this too
- possible issue with current directshowsource(fps=23.9759856527702) some decoders may not like the unusual framerate (23.976 is safe)
Okay but will audio stay synchronized?
- custom size can't go below 1000 MB
Was a last minute change. Changelog should be 1000MB instead of 250MB.
- 1 MB = 1,000,000 bytes is technically correct but unusual outside of some HDDs/ISPs and other than CCE 2.7+ I've never seen it used in encoding
I think it is the clearest way to enter sizes. Entering the wrong size is almost not possible now. For example. USB sizes. Windows gives you the size in bytes. (At properties window)
- also is there a reason for the comma in the custom size, I have a feeling this is why it can't go below 1000 MB
At my system it is a dot. That is system dependant. In the USA you write 1 million dollars as: 1,000,000 but in europe yow write: 1.000.000. It depends on which version of windows you use.
Also in the next version of the calc do you plan on adding custom size in MB? Adding custom time in HH:MM:SS format?
And what are the current sizes in MiB of the current coder/calc sizes?
Custom and HH:MM:SS will be added. First version is to see if people like it.
Current sizes are:
DVD = 4700372992.0; (DVD+R because it is smaller then DVD-R)
DVDDL = 8543666176.0;
BD25 = 23283064365.0;
BD50 = 46566128730.0;
USB4 = 4000000000.0;
setarip_old
26th June 2009, 19:27
@twazerty
Perhaps you can enlighten me, as I must be doing something wrong.
I've now used your program two different times, both times set to "Save to folder" (No menu, single movie) - and both times the program generates a "Completed" message after the two encoding passes - without performing the required muxing (Although it creates an empty folder).
Please advise.
twazerty
26th June 2009, 20:07
@twazerty
Perhaps you can enlighten me, as I must be doing something wrong.
I've now used your program two different times, both times set to "Save to folder" (No menu, single movie) - and both times the program generates a "Completed" message after the two encoding passes - without performing the required muxing (Although it creates an empty folder).
Please advise.
Strange. It works perfectly here. (Empty folder will be created before actual conversion)
Converted a mkv and a m2ts for double check. I think something is going on with a filename. What is your source filename?
It took me hours to found out how to read mpls files. I am still not getting close but the following app does exactly what I need: http://forums.sagetv.com/forums/showthread.php?t=41722 It gives me the chapters from a mpls file. And I will use mediainfo to read chapters from mkv files.
setarip_old
26th June 2009, 20:51
The filename was "00000.m2ts"...
turbojet
26th June 2009, 21:40
A simple fix (http://forum.doom9.org/showthread.php?p=1298581#post1298581) for something on the list.
A few things to add to the avchdcoder list:
- use BDSup2Sub instead of TSMuxer (crashes on some subs) for resizing subs
I can use BDSup2Sub directly without commandline but I can figure out how to resize.
bdsup2sub.jar <input> <output> /res:720
input and output can have wildcards, output extension defines if it's .sup or .sub
- don't delete AUXDATA folder of output (6 HW and 2 SW players need it. only 2, but probably 0 now (samsung firmware updates) require it to be deleted)
I have a Samsung BD-P1500 myself and lots of people do have this player. Haven't got any complaints it didn't work on other players. Only on some software players it doesn't work but thats no problem because I aim on Standalone players. I have 2 options for now. Pure AVCHD structure without JAR folders etc. or the way like I did it for now. Just no AUXDATA folder.
Wouldn't you rather have it fixed before people complain?
I'll admit outside of by far the most popular software player (PowerDVD) the players aren't very common but it's a one-size fits many more (all?) output.
- if input fps = ~23.976 add this to avs: AssumeFPS(24000/1001) so the output is the same as input (eac3to and possibly 24p HW issues)
Okay I will fix this in next release.
- add to end of the avs: ConvertToYV12() (x264 only accepts YV12 and some decoders use other colorspaces)
Okay I will fix this too
- possible issue with current directshowsource(fps=23.9759856527702) some decoders may not like the unusual framerate (23.976 is safe)
Okay but will audio stay synchronized?
Ya technically directshowsource is changing the video framerate by default but no one will ever notice it, these ensure same input/output framerate.
- custom size can't go below 1000 MB
Was a last minute change. Changelog should be 1000MB instead of 250MB.
- 1 MB = 1,000,000 bytes is technically correct but unusual outside of some HDDs/ISPs and other than CCE 2.7+ I've never seen it used in encoding
I think it is the clearest way to enter sizes. Entering the wrong size is almost not possible now. For example. USB sizes. Windows gives you the size in bytes. (At properties window)
Are you planning on allowing below 1000 MB? It would help in some scenarios.
I can understand the USB limit, I'm coming from a different angle thinking half a DVD5 is 2240 MB, I guess I'll have to get used to 2348 MB
Current sizes are:
DVD = 4700372992.0; (DVD+R because it is smaller then DVD-R)
DVDDL = 8543666176.0;
BD25 = 23283064365.0;
BD50 = 46566128730.0;
USB4 = 4000000000.0;
Physical limit for DVD5/9 hopefully the calc is a little low to prevent oversizing. The BD25 (25025314816) and BD50 (50050629632) look a little short but is that to prevent oversizing?
twazerty
26th June 2009, 21:59
Physical limit for DVD5/9 hopefully the calc is a little low to prevent oversizing. The BD25 (25025314816) and BD50 (50050629632) look a little short but is that to prevent oversizing?
Sizes are in bytes. Don't have blu-ray myself. I told somebody to check with ImgBurn the disc size for BD25. 25025314816 came up so I used that value. For BD50 I doubled the value. It is not for oversizing because my formula can't be oversized. It is always correct. There is 1 oversizing correction of 14kbps. See wikipedia for sizes: wiki (http://en.wikipedia.org/wiki/Blu-ray_Disc#Technical_specifications) They are the same as my sizes.
Are you planning on allowing below 1000 MB? It would help in some scenarios.
I can understand the USB limit, I'm coming from a different angle thinking half a DVD5 is 2240 MB, I guess I'll have to get used to 2348 MB
Yes I change it. Needs some other changes otherwise you get strange results at bar in AVCHDCoder.
Wouldn't you rather have it fixed before people complain?
I'll admit outside of by far the most popular software player (PowerDVD) the players aren't very common but it's a one-size fits many more (all?) output.
I do get complaints when I "fix" it. As soon as the latest firmware for Samsung BD-P1500 allows BD on DVD then I fix it because there are many people that do have this player.
Just before you posted a reply I found a way to have Blu-Ray folder input. It was so obvious I couldn't find it. Just eac3to. I know eac3to is a powerful machine but this powerful: WOW.
turbojet
27th June 2009, 04:26
I do get complaints when I "fix" it. As soon as the latest firmware for Samsung BD-P1500 allows BD on DVD then I fix it because there are many people that do have this player.
Some one or a few people confirmed on this forum or avs that the latest 2.4 firmware plays with AUXDATA
< BD-P1500 Firmware Ver 2.4 > (http://www.samsung.com/us/support/download/supportDownDetail.do?group=audiovideo&type=blu_ray&subtype=blu_raydiscplayers&model_nm=BD-P1500&language=&cate_type=all&mType=FM&dType=D&vType=&cttID=1954170&prd_ia_cd=03020100&disp_nm=BD-P1500&model_cd=&menu=download&menu2=detail)
Date: Apr.16, 2009
This Firmware update provides the following benefits:
1. Improves playback compatibility of some movie titles.
Have you tried it?
Samsung BD-2500 is also confirmed working with AUXDATA with
< BD-P2500 Firmware Ver 2.5 > (http://www.samsung.com/us/support/download/supportDownDetail.do?group=audiovideo&type=blu_ray&subtype=blu_raydiscplayers&model_nm=BD-P2500&language=&cate_type=all&mType=FM&dType=D&vType=&cttID=2043504&prd_ia_cd=03020100&disp_nm=BD-P2500&model_cd=&menu=download&menu2=detail)
Date: Apr. 22, 2009
This Firmware update provides the following benefits:
1. Improves playback compatibility of some movie titles
That leaves 2 samsung players that have 2 untested firmwares:
< BD-P1600 Firmware Ver 1.03 > (http://www.samsung.com/us/support/download/supportDownDetail.do?group=audiovideo&type=blu_ray&subtype=blu_raydiscplayers&model_nm=BD-P1600&language=&cate_type=all&mType=FM&dType=D&vType=&cttID=2333837&prd_ia_cd=03020100&disp_nm=BD-P1600&model_cd=&menu=download&menu2=detail)
Date: JUNE. 23. 2009
This Firmware update provides the following benefits:
1. Improves playback compatibility of some movie titles
< BD-P2500 Firmware Ver 2.5 > (http://www.samsung.com/us/support/download/supportDownDetail.do?group=audiovideo&type=blu_ray&subtype=blu_raydiscplayers&model_nm=BD-P2550&language=&cate_type=all&mType=FM&dType=D&vType=&cttID=2043526&prd_ia_cd=03020100&disp_nm=BD-P2550&model_cd=&menu=download&menu2=detail)
Date: Apr. 22, 2009
This Firmware update provides the following benefits:
1. Improves playback compatibility of some movie titles.
Samsung 3600 and 4600 I haven't heard reports of but they also have recent firmwares with the same note:
1. Improves playback compatibility of some movie titles
rendez2k
27th June 2009, 09:39
I think I'm missing something here. I've tried two different MKV files and both have failed. The whole video encoding step is getting missed out each time. Any ideas? Is there a log file somewhere?
Edit: Just seen the installation guide on the website so running through those basic checks now.
twazerty
27th June 2009, 14:57
Some one or a few people confirmed on this forum or avs that the latest 2.4 firmware plays with AUXDATA
< BD-P1500 Firmware Ver 2.4 > (http://www.samsung.com/us/support/download/supportDownDetail.do?group=audiovideo&type=blu_ray&subtype=blu_raydiscplayers&model_nm=BD-P1500&language=&cate_type=all&mType=FM&dType=D&vType=&cttID=1954170&prd_ia_cd=03020100&disp_nm=BD-P1500&model_cd=&menu=download&menu2=detail)
I read a post it didn't work but I give it a shot and it works. Needs some more testen. If tests complete I will "fix" it. I am also working on Blu-ray input and I am running on a problem. When I ask eac3to for playlist information it doesn't give me all playlists but when I ask information of a playlist directly I can get information of all playlists. What should I do?
Also another problem. When I have seamless branching discs can I demux it with tsMuxer so I have a 1 correct file?
Edit: Some more questions:
- if input fps = ~23.976 add this to avs: AssumeFPS(24000/1001)
check.
But what if input is 25fps? or 29.976? or 50fps? or 59.9?
And if I add AssumeFPS can I change this:
DirectShowsource("[sourcefile]",fps="[sourcefps]",audio=false)
to
DirectShowsource("[sourcefile]",audio=false)
??
setarip_old
27th June 2009, 17:34
The problem I described to you in Post #102 here is certainly the result of folder/filename protocol in AVCHDCoder.
In the "Settings", I set the default output folder to "E:\Test.
I then go through the steps of "Input", "Streams", and "Output".
In "Output", I select the "Auto" radiobutton for filename - and the program generates (without the quotes) "E:\Test/" instead of "E:\Test\"...
twazerty
27th June 2009, 18:00
The problem I described to you in Post #102 here is certainly the result of folder/filename protocol in AVCHDCoder.
In the "Settings", I set the default output folder to "E:\Test.
I then go through the steps of "Input", "Streams", and "Output".
In "Output", I select the "Auto" radiobutton for filename - and the program generates (without the quotes) "E:\Test/" instead of "E:\Test\"...
Very annoying. My installer gives forward slashes, windows works with both and what java does is unknown :P anyway I ran through my programm and replaced everything with backslashes. Hopefully I missed nothing.
setarip_old
27th June 2009, 18:19
Glad to hear I wasn't doing anything wrong and, instead, was able to help you track down a bug ;>}
You say:And I will use mediainfo to read chapters from mkv files.And again, I would ask you - You're already using "tsMuxeR" with your GUI and "tsMuxeR" already automatically extracts the chapter information from MKVs, so why don't you use "tsMuxeR" to retrieve the MKV chapter information?
twazerty
27th June 2009, 18:57
Glad to hear I wasn't doing anything wrong and, instead, was able to help you track down a bug ;>}
You say:And again, I would ask you - You're already using "tsMuxeR" with your GUI and "tsMuxeR" already automatically extracts the chapter information from MKVs, so why don't you use "tsMuxeR" to retrieve the MKV chapter information?
Never knew tsMuxeR can read that information via commandline. Again I am working with my eyes closed :)
Edit:
Now I use mediainfo for extracting info out from:
wmvhd, mkv and m2ts.
Is it safe to use tsMuxeR to extract stream info from mkv? or is it better to use mediainfo for that?
I mean the stream information itself instead of chapters.
setarip_old
27th June 2009, 19:16
@twazertyNever knew tsMuxeR can read that information via commandline. Again I am working with my eyes closedNow you've gone and hurt my feelings (Just kidding).
See my posts #24 and #65 in this thread about chapters.
For information available from "tsMuxeR" commandline see:
http://forum.doom9.org/showthread.php?t=142559
turbojet
27th June 2009, 23:00
I read a post it didn't work but I give it a shot and it works. Needs some more testen. If tests complete I will "fix" it. I am also working on Blu-ray input and I am running on a problem. When I ask eac3to for playlist information it doesn't give me all playlists but when I ask information of a playlist directly I can get information of all playlists. What should I do?
I've noticed that too but it has always given enough playlists to do the job in the few times I've used it. Is that the case with your tests? If so, if more then one playlist is detected the user could be given a selection to choose one from.
Also another problem. When I have seamless branching discs can I demux it with tsMuxer so I have a 1 correct file?
It can be done very unconventionally like BD-Rebuilder does it, but conventionally (just demux by mpls) has given me bad results each time. Manually I just use eac3to and it's worked for me every time. But it takes a lot longer to demux every thing then tsmuxer so I only use it for seamless branching.
Edit: Some more questions:
- if input fps = ~23.976 add this to avs: AssumeFPS(24000/1001)
check.
But what if input is 25fps? or 29.976? or 50fps? or 59.9?
25, 29.97, 50, 59.94 come out of directshowsource with the original framerate if fps= is used so it's not an issue.
Also I gave you the wrong avisynth function it should be AssumeFPS(24000,1001)
And if I add AssumeFPS can I change this:
DirectShowsource("[sourcefile]",fps="[sourcefps]",audio=false)
to
DirectShowsource("[sourcefile]",audio=false)
??
I can't say for sure but I do notice that directshowsource misidentifies the fps of some streams if fps isn't used. I'd keep it in there just to be safe.
twazerty
28th June 2009, 15:53
Now languages will be read from m2ts files,
chapters will be entered in gui for mkv and m2ts files. I use both mediainfo and tsMuxer for proper detections of streams. I only use tsMuxer for languages and chapters.
Now I am working on Seamless branching discs. I ran into some trouble. Eac3to doesn't allow me to demux to a folder I want. It demuxes them in the root of eac3to which is impossible since AVCHDCoder is in Program Files without admin rights. Only option is to use tsMuxer for demuxing.
TsMuxer gives me more flexability and it will be much easier to implement. Also there is only 1 implementation needed. Saves me lots of time.
turbojet
28th June 2009, 17:00
Sounds great.
That's a strange issue are you trying both individual demuxing (eac3to 1) 1:C:\chapters.txt 2:C:\video.264 3:C:\audio.ac3) and demux to mkv (eac3to 1) C:\video_audio.mkv) ?
Recently there has been some reports of BD-Rebuilder having a skip in the audio on 2 seamless branching videos, might be related to tsmuxer trickery.
Also some updates, additions I thought of:
- change pause/resume button to pause when running, resume when paused
- change start button to stop when running
- group start/stop and pause/resume buttons
- group delete job and delete all buttons
- either change to mkv x264 output or use x264 --aud with .264 output (requires nal_hrd x264) (iirc there's some problems with seeking and lack of --aud with m2ts muxed from 264 files on certain players)
- use AssumeFPS(30000,1001) with Directshowsource(fps=29.97) and 60000,1001 with fps=59.94, the fps difference is so small eac3to and dgavcindex don't detect it but large enough to mess up ivtc
- show x264 FPS in progress bar
- use a few shades lighter orange in progress bar so the text is more legible
- x264 advanced options or override file (that reads only --b-adapt (change both passes) --deblock --subme --me --partitions --vaq --psy-rd --trellis --b-pyramid(?) --ref 1-4 only)
- individual update exe and tools system (upload exe\tools to update site for example megui)
- on loading input demux a little bit of the subs (10 seconds?) with tsmuxer and tag signifigantly smaller ones (forced)
- add more stream languages
- alphabetize stream languages but have a common section at the top like tsmuxer does (concerning USA\CA: zho is a lot more common then chi for chinese, fra is a lot more common then fre for french)
- identify tff/bff interlacing with mediainfo and adjust x264 accordingly (requires x264_nal_hrd x264, rarely needed)
- add ivtc video option for 29.97 fps that uses tfm().tdecimate() or telecide().decimate() and removes x264 --tff/--bff, result is 23.976 (rarely needed)
- add ivtc video option for 25 fps that uses tfm().tdecimate(25) or telecide().decimate(25) and removes x264 --tff/--bff if applicable, result is 24.00 fps (rarely needed)
- identify pulldown (mediainfo?) and use tsmuxer delpulldown (rarely needed)
twazerty
28th June 2009, 18:35
Please keep in mind AVCHDCoder points to users without much knowledge. Technical video options will be added but has no high priority. Technical improvements will be done and also GUI improvements will be done. I'll do some more research. Also opening Blu-ray folders work now.
- show x264 FPS in progress bar
- use a few shades lighter orange in progress bar so the text is more legible
I think x264 fps in progressbar is a nice feature. Recently I switched to another java Look and Feel and it doesn't allow me to change color of the bar. The text color can be changed. I am running into some other problems with the Queue tab and I have plans of rebuilding the queue tab. Maybe I leave the appearance roughly the same but it is also possible I build a totally different Queue. This is what I have in my mind since a couple of weeks:
http://i39.tinypic.com/5kn8d4.jpg
I think I go for a version without tabs. When you click on a item the information will shop up.
turbojet
28th June 2009, 19:41
Please keep in mind AVCHDCoder points to users without much knowledge. Technical video options will be added but has no high priority. Technical improvements will be done and also GUI improvements will be done. I'll do some more research. Also opening Blu-ray folders work now.
I see, once the advanced options (actually lack of psy-trellis is the only thing I'm really concerned about) are added, framerates are fixed and BDSup2sub is used this will probably be the app I use first when encoding AVCHD. I like the simplicity yet the power of it.
I think x264 fps in progressbar is a nice feature. Recently I switched to another java Look and Feel and it doesn't allow me to change color of the bar. The text color can be changed. I am running into some other problems with the Queue tab and I have plans of rebuilding the queue tab. Maybe I leave the appearance roughly the same but it is also possible I build a totally different Queue. This is what I have in my mind since a couple of weeks:
http://i39.tinypic.com/5kn8d4.jpg
I think I go for a version without tabs. When you click on a item the information will shop up.
That looks like nice is there a porgress bar color that makes the reading more legible?
twazerty
28th June 2009, 20:05
I see, once the advanced options (actually lack of psy-trellis is the only thing I'm really concerned about) are added, framerates are fixed and BDSup2sub is used this will probably be the app I use first when encoding AVCHD. I like the simplicity yet the power of it.
That looks like nice is there a porgress bar color that makes the reading more legible?
Nibus look and feel doesn't allow me changing the colors. Only the text inside a progressbar can be changed.
setarip_old
28th June 2009, 20:47
@twazertyI use both mediainfo and tsMuxer for proper detections of streams. I only use tsMuxer for languages and chapters.
Now I am working on Seamless branching discs... Only option is to use tsMuxer for demuxing.
TsMuxer gives me more flexability and it will be much easier to implement. Also there is only 1 implementation needed. Saves me lots of time.Glad to see you now understand the flexibility and value of "tsMuxeR" for use in so many aspects of your GUI ;>}
twazerty
28th June 2009, 21:23
@twazertyGlad to see you now understand the flexibility and value of "tsMuxeR" for use in so many aspects of your GUI ;>}
:)
This will be my final design of my new Queue Tab unless you guys have some great idea's:
http://i39.tinypic.com/2w688it.jpg
setarip_old
29th June 2009, 01:45
Looks fine to me ;>}
What does the "67%" (To the right of "CPU Priority:Low") represent? Did you omit a label for it?
juGGaKNot
29th June 2009, 15:13
* Borders will be added automatically.
* Iso will created for you so it is ready to burn.
What apps do you use for this and what cmd line ?
autocrop i guess and for the iso ?
cheers.
twazerty
29th June 2009, 15:48
What apps do you use for this and what cmd line ?
autocrop i guess and for the iso ?
cheers.
No I have created my own bordersmodule. I use mediainfo to retrieve video width and video height. Then I add borders until I get the right resolution of 1920x1080 or 1280x720. The bordermodule gives me the addBorders function for avisynth.
When conversion is done, ImgBurn will pop and the iso will be created.
juGGaKNot
29th June 2009, 19:47
No I have created my own bordersmodule. I use mediainfo to retrieve video width and video height. Then I add borders until I get the right resolution of 1920x1080 or 1280x720. The bordermodule gives me the addBorders function for avisynth.
When conversion is done, ImgBurn will pop and the iso will be created.
Hmm i could do this with ffmpeg and a simple formula, can you release the bordersmodule ?
K so imgburn for iso, is this cli ? or "pop up" as in run ?
twazerty
29th June 2009, 20:13
Hmm i could do this with ffmpeg and a simple formula, can you release the bordersmodule ?
K so imgburn for iso, is this cli ? or "pop up" as in run ?
It pops up when running. It will be launched via cli. The border module isn't much more then basic math. Resolutions like 1916x816 are also accepted and borders will be added to all 4 sides. Here is the code for the addborders:
public String getBorders(String xIn, String yIn){
int xI = Integer.parseInt(xIn);
int yI = Integer.parseInt(yIn);
int xBorderTotaal;
int yBorderTotaal;
int xLeft = 0;
int xRight = 0;
int yTop = 0;
int yBottom = 0;
String addBorders;
if(xI == 720 && (yI == 576 || yI == 480)){
}
//720p specs
else if(xI > 720 && xI <=1280){
//totaal aantal pixels bijvoegen
xBorderTotaal = 1280-xI;
yBorderTotaal = 720-yI;
//aantal pixels aan alle kanten verdelen
xLeft = (int) (xBorderTotaal / 2);
xRight = (int) (xBorderTotaal / 2);
yTop = (int) (yBorderTotaal / 2);
yBottom = (int) (yBorderTotaal / 2);
//aantal aanpassen aan juiste afmetingen
if((xLeft + xI + xRight) != 1280){
if((xLeft + xI + xRight) > 1280){
xRight--;
}else{
xRight++;
}
}
//aantal aanpassen aan juiste afmetingen
if((yTop + yI + yBottom) != 720){
if((yTop + yI + yBottom) > 720){
yTop--;
}else{
yBottom++;
}
}
}
//1080p specs
else if(xI > 1280 && xI <= 1920){
xBorderTotaal = 1920-xI;
yBorderTotaal = 1080-yI;
xLeft = (int) (xBorderTotaal / 2);
xRight = (int) (xBorderTotaal / 2);
yTop = (int) (yBorderTotaal / 2);
yBottom = (int) (yBorderTotaal / 2);
if((xLeft + xI + xRight) != 1920){
if((xLeft + xI + xRight) > 1920){
xRight--;
}else{
xRight++;
}
}
if((yTop + yI + yBottom) != 1080){
if((yTop + yI + yBottom) > 1080){
yTop--;
}else{
yBottom++;
}
}
}
addBorders = "addborders(" + xLeft + "," + yTop + "," + xRight + "," + yBottom + ")";
return addBorders;
}
Also resolutions like 1919x1079 are accepted.
If you want I can make a cli java app where you can enter a videofile and the addBorders will come out.
setarip_old
29th June 2009, 23:04
@twazerty
Again, regarding your pending final design, what does the "67%" (To the right of "CPU Priority:Low") represent? Did you omit a label for it?
Atak_Snajpera
29th June 2009, 23:07
My very limited inteligence tells me that 67% means total progress. However it should be 72% (434/600). Mystery :)
setarip_old
29th June 2009, 23:28
@Atak_Snajpera
Hi!
Or it could be an indicator of the remaining percentage of the current pass - But why speculate?
I'd just as soon wait for a definitive response from the author, "twazerty"...
twazerty
30th June 2009, 00:40
The images you saw were not operational. it were only sketches :)
The 67% bar supposed to be the progress of the queue. And the other bar near the disc information supposed to be the progress for the disc. But I think there were to many progress bars and tweaked the design a little bit. This is the result:
http://i39.tinypic.com/2dvn70l.jpg
As you see each item in the queue gets a status: (Completed) when 1 disc is 100% complete, (Converting) indicates it is converted at the moment. At Details Selected disc you now see which item is currently converted.
When a disc conversion is completed the selected item in the queue list will change and the information will be loaded below.
The current version is almost 100% working. Added a Abort functionality (Can the word "Stop" also be used?) and the pause/resume button works more natural. Jobs can be moved up or down. The whole set up works more natural now and information will be refreshed every 500 milliseconds. This looks fast but is very slow actually. Also this new design is very easy to change. My old version was a disaster if you look at the code (:P) also my old design didn't refresh the information like it should.
setarip_old
30th June 2009, 01:20
@twazerty
1) I concur with removing that "disc progress" bar for the sake of clarity.
2) Although "Stop", "Terminate", and "Abort" are fairly synonymous, I believe "Abort" most clearly indicates the finality and loss of previous data...
BTW - The word is "AUTOMATICALLY", not "AUTOMATICLY" ;>}
twazerty
30th June 2009, 02:41
@twazerty
1) I concur with removing that "disc progress" bar for the sake of clarity.
2) Although "Stop", "Terminate", and "Abort" are fairly synonymous, I believe "Abort" most clearly indicates the finmality and loss of previous data...
BTW - The word is "AUTOMATICALLY", not "AUTOMATICLY" ;>}
Seriously need to install the english spell checker(With dutch I ain't going to get far :)). Just kidding. I need to put it in Miscrosoft Word. Then I found the stupid misspellings because AUTOMATICALLY is a word I always write wrong.
setarip_old
30th June 2009, 04:12
If you want to write it right, don't automatically wrongly write automaticly, right? ;>}
twazerty
1st July 2009, 16:39
If you want to write it right, don't automatically wrongly write automaticly, right? ;>}
:p
I am working on the interlaced feature now but I have the feeling the interlaced video will be treated as progressive as input and interlaced as output. The source is a interlaced video.
--pass 1 --bitrate 24000 --stats [stats] --level 4.1 --keyint 24 --min-keyint 2 --bframes 3 --weightb --direct auto --subme 2
--partitions none --ipratio 1.1 --pbratio 1.1 --vbv-bufsize 9000 --vbv-maxrate 24000 --me dia --threads auto --thread-input
--sar 1:1 --progress --no-ssim --interlaced --output NUL [avs input]
What is wrong with the above?
Also tried the following but resulted in a progressive output:
--pass 1 --interlaced --bitrate 24000 --stats [stats] --level 4.1 --keyint 24 --min-keyint 2 --bframes 3 --weightb --direct auto --subme 2
--partitions none --ipratio 1.1 --pbratio 1.1 --vbv-bufsize 9000 --vbv-maxrate 24000 --me dia --threads auto --thread-input
--sar 1:1 --progress --no-ssim --output NUL [avs input]
When I place --interlaced after [stats] first pass fails????
twazerty
2nd July 2009, 12:13
I think I fixed the problem but another problem occured. ffdshow wont show up with the following avisynth script:
DirectShowsource("C:\Users\Twan\Documents\AVCHDCoder\Temp\SBD1 - item 1\joined.264",fps=23.976,audio=false)
AssumeFPS(24000,1001)
ConvertToYV12()
When I extract a mpls for a seamless branching disc I get a 264 stream. But ffdshow is not starting. What to do?
Edit: Now it starts encoding but it took 4 minutes to start. And after seconds of encoding it stops. :(
twazerty
5th July 2009, 00:00
New version has lots of improvements. I will fix what I find and some features are not added for 100% yet. This is the changelog for upcoming version:
Fixed - Language was not shown for all m2ts files
Fixed - back/forward slash problem ( / and \ )
Fixed - When output resolution is 1280x720 and subtitles source was srt or ass the subsettings were incorrect
Fixed - When output is 720p and subtitles are srt or ass the subtitles have the 1080p sizes.
Fixed - Better audio detection
Fixed - Inconsistent videocodec names (VC-1 and WVC1 for example)
Fixed - Missing AUXDATA folder (All Samsung Players need latest firmware now !!!)
Fixed - Bitrate indication bar was not working properly.(Incorrect bitrate)
Fixed - When deleting last item from disc the bitrate was not calculated again.
Fixed - Resize function was inside avs file when it was not neccecary
Fixed - Conversion crashes when no fps was found in source. (will now be set to 23.976 if no fps was found)
Upgraded - New Queue tab.
Added - Blu-ray folder input (Playlist detection via eac3to). Seamless Branching Discs are supported too.
Added - Donate button to the about screen
Added - Move items up or down
Added - Right mouse menu to queue. (Move Up/Down, Delete temp files and remove option)
Added - Chapters will be taken from source file and they will be shown at chapters tab
Added - AssumeFPS(24000,1001) if fps = 23.976, AssumeFPS(30000,1001) if fps = 29.97, AssumeFPS(60000,1001) if fps = 59.94
Added - ConvertToYV12()
Added - Progressive/interlaced indication
Added - WMA9 support
Added - Interlaced support (No conversion to progressive video yet)
Added - dut and nld points to Dutch, fra and fre points to French, ger and deu points to German for Language detection
Added - added languages to the language selection: Bulgarian, Czech, Danisch, Greek, Hungarian, Croatian, Romanian, Slovanian
Added - Shortcut to Open file. (Ctrl+O or File --> Open file...)
Added - Shortcut to Open folder. (Ctrl+I or File --> Open folder...)
Added - Shortcut to default output folder (Ctrl+U or Options --> Open default output folder)
Added - Log functionality
setarip_old
5th July 2009, 22:30
Fixed - back/forward slash problem ( / and \ )
Added - Chapters will be taken from source file and they will be shown at chapters tabThank you for acting on these suggested fixes/changes ;>}
I'm looking forward to this new release!
turbojet
8th July 2009, 05:57
Impressive changelog, do you plan on displaying x264 fps in the queue window?
Also have you looked at fixing 720p sub resizing by using BDSup2Sub since tsmuxer can't resize some streams currently?
Other things I'd be really interested in seeing are the dts encoding (requires surcode and just eac3to <audio input> --768) and the psy-trellis x264 option (--psy-rd 1.0:0-1.5)
Edit: also I don't know if you noticed but latest mediainfo can parse bluray and give languages and chapter info, it's considerably quicker then eac3to for this.
twazerty
8th July 2009, 18:21
Impressive changelog, do you plan on displaying x264 fps in the queue window?
Also have you looked at fixing 720p sub resizing by using BDSup2Sub since tsmuxer can't resize some streams currently?
Other things I'd be really interested in seeing are the dts encoding (requires surcode and just eac3to <audio input> --768) and the psy-trellis x264 option (--psy-rd 1.0:0-1.5)
Edit: also I don't know if you noticed but latest mediainfo can parse bluray and give languages and chapter info, it's considerably quicker then eac3to for this.
On the moment I finished blu-ray reading via eac3to a new MediaInfo came out with mpls support. But I am not satisfied with the blu-ray support. Not as flexible as eac3to readings. I haven't added BDSup2Sup yet. I don't see why dts encoding is a nice addition. Maybe I'll add it later because it is not that important? Or maybe you have a good example when it is useful. "--psy-rd 1.0:0-1.5" where in the x264 commandline code should it be added? I noticed when it has an incorrect order it doesn't work. I think I will add fps in queue tab somewhere.
turbojet
8th July 2009, 18:56
On the moment I finished blu-ray reading via eac3to a new MediaInfo came out with mpls support. But I am not satisfied with the blu-ray support. Not as flexible as eac3to readings.
OK, I haven't had a chance to play with it much but wanted to make you aware of it if you weren't already.
I haven't added BDSup2Sup yet.
OK this would help a lot, bringing my personal success rate of resizing 720p subs from about 75% to 100%
I don't see why dts encoding is a nice addition. Maybe I'll add it later because it is not that important?
Reduces audio by about 750 kbps to use for video while still keeping DTS which I can tell a very noticeable difference from AC3 on certain soundtracks.
I left out the output in the eac3to line. this works: eac3to "<input>" "<output>" -768
Also a quick check of these registry keys signify if DTS encoding is possible or not, could be useful for disabling\enabling DTS encoding:
x86: HKEY_LOCAL_MACHINE\SOFTWARE\Minnetonka Audio Software\SurCode DVD DTS
x64: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Minnetonka Audio Software\SurCode DVD DTS
Or maybe you have a good example when it is useful. "--psy-rd 1.0:0-1.5" where in the x264 commandline code should it be added? I noticed when it has an incorrect order it doesn't work. I think I will add fps in queue tab somewhere.
Should work anywhere in the command line but '0-1.5' is a range in this case, not an exact parameter. A gui option would be nice, however the ability to use an override file that adds parameters to the x264 line for advanced users works just as well and gives more flexibility. You can double up x264 parameters and the last one gets used.
EDIT: Does the last post in this thread (http://forums.sun.com/thread.jspa?threadID=352783&start=15&tstart=0) help get the PID for killing only processes AVCHDcoder launches?
EDIT2: I ran into the same issue (http://forum.doom9.org/showthread.php?p=1300414#post1300414) setarip_old ran into and I think I've narrowed it down to the number of subs kept. When keeping 1 sub tsmuxer muxes to temp directory but using 0, 2, 3, 4 subs everything works fine. Could you take a look into this?
Also had what I consider a little bit of an undersize with using 3 subs (1 forced), it ended up as 4451 MB. With 1 sub it ended up as 4468 MB, with 0 subs it ended up 4475 MB. I did a little testing of subs overhead and on 3 different movies ranging from 1.5-3 hours the overhead range was 20-35% of the sub sizes (40 MB of subs = 8-14 MB overhead). As more subs were added the percentage decreased, I tried up to 4 subs. What are you using for subs overhead?
twazerty
10th July 2009, 15:40
EDIT2: I ran into the same issue (http://forum.doom9.org/showthread.php?p=1300414#post1300414) setarip_old ran into and I think I've narrowed it down to the number of subs kept. When keeping 1 sub tsmuxer muxes to temp directory but using 0, 2, 3, 4 subs everything works fine. Could you take a look into this?
Added a m2ts and selected 1 sup stream. The result: 100% succes. Folder is written in destination folder with the right files. The temp folder contains everything it should contain. Muxing of an item is ALWAYS performed in temp directory. After that a new folder will be created in destination folder and the muxed files of the items will be moved to the destination. Works like a charm here.
Also had what I consider a little bit of an undersize with using 3 subs (1 forced), it ended up as 4451 MB. With 1 sub it ended up as 4468 MB, with 0 subs it ended up 4475 MB. I did a little testing of subs overhead and on 3 different movies ranging from 1.5-3 hours the overhead range was 20-35% of the sub sizes (40 MB of subs = 8-14 MB overhead). As more subs were added the percentage decreased, I tried up to 4 subs. What are you using for subs overhead?
When I started testing in the past I found 35%. (At the time only 1 subtitles was possible). Did you test with the same movie and settings? Else your values are not valid. I'll add the solution when I know if your values are correct. I think it won't be added to next release. This change can cause lots of problems calculating bitrate if I don't do it right.
BobZhome
11th July 2009, 22:52
I feel foolish asking this, but for some reason the output tab is not selectable. I tried loading in a few different MKV files, but none of them will let me select the output tab. Where am I going wrong?
:helpful:
twazerty
12th July 2009, 01:25
I feel foolish asking this, but for some reason the output tab is not selectable. I tried loading in a few different MKV files, but none of them will let me select the output tab. Where am I going wrong?
:helpful:
You need to hit the add button to add the item to the disc :)
twazerty
12th July 2009, 17:02
A simple fix (http://forum.doom9.org/showthread.php?p=1298581#post1298581) for something on the list.
bdsup2sub.jar <input> <output> /res:720
input and output can have wildcards, output extension defines if it's .sup or .sub
Added BDSup2Sub for testing but it is hard to use. BDSup2Sub gives me zero response if conversion is completed. BDSub2Sub messes with the framerate. (Can be fixed by adding the fps function to the commandline) And because it is java it is very unreliable via commandline. Mostly you need to add javaw -jar or java -jar but that doesn't work for me. But on some systems this doesn't work: cmd: BDSub2Sup.jar input output /res:720
But on my system this doesn't work: cmd: java -jar BDSub2Sup.jar input output /res:720
I think I have a solution to catch when conversion is completed but the other problems remain. The fps function works little different the mediainfo/tsMuxer so need to convert those.
Edit: Ran into another problem today. I was testing and noticed that the converted video played to slow. Length and audio are ok but playback is to slow and everything is out of sync immediately. Very large gap. Input: 1080i 29.970 fps and the converted video: 1080i 29.970 fps. I think the this is the problem: AssumeFPS(30000,1001) but I need to test some more.
Seems to be a specific problem with the movie.
turbojet
13th July 2009, 06:32
Added a m2ts and selected 1 sup stream. The result: 100% succes. Folder is written in destination folder with the right files. The temp folder contains everything it should contain. Muxing of an item is ALWAYS performed in temp directory. After that a new folder will be created in destination folder and the muxed files of the items will be moved to the destination. Works like a charm here.
I repeated the issue 3 times but I rebooted and it worked ok with 1 sub and the same source, strange.
When I started testing in the past I found 35%. (At the time only 1 subtitles was possible). Did you test with the same movie and settings? Else your values are not valid. I'll add the solution when I know if your values are correct. I think it won't be added to next release. This change can cause lots of problems calculating bitrate if I don't do it right.
The same source was one of the 3 sources I tested but it could use more testing. Thinking it was something about using a certain file size for each sub I ran it again without the forced sub and it was also 4451 MB. While I don't think 30 MB is a substantial undersize when aiming for 4480 MB, if you had 10 subs and undersizing 24 MB each, that's quite substantial.
Added BDSup2Sub for testing but it is hard to use. BDSup2Sub gives me zero response if conversion is completed. BDSub2Sub messes with the framerate. (Can be fixed by adding the fps function to the commandline) And because it is java it is very unreliable via commandline. Mostly you need to add javaw -jar or java -jar but that doesn't work for me. But on some systems this doesn't work: cmd: BDSub2Sup.jar input output /res:720
But on my system this doesn't work: cmd: java -jar BDSub2Sup.jar input output /res:720
I think I have a solution to catch when conversion is completed but the other problems remain. The fps function works little different the mediainfo/tsMuxer so need to convert those.
I haven't had a problem using the full path to java.exe which you should be able to get from querying HKLM\SOFTWARE\Classes\jarfile\shell\open\command and instead of javaw.exe use java.exe
Edit: Ran into another problem today. I was testing and noticed that the converted video played to slow. Length and audio are ok but playback is to slow and everything is out of sync immediately. Very large gap. Input: 1080i 29.970 fps and the converted video: 1080i 29.970 fps. I think the this is the problem: AssumeFPS(30000,1001) but I need to test some more.
Seems to be a specific problem with the movie.
Have you tried removing pulldown when demuxing with tsmuxer or eac3to?
twazerty
13th July 2009, 10:54
Have you tried removing pulldown when demuxing with tsmuxer or eac3to?
How to remove pulldown with tsMuxer?
Tested with somebody else and he said it also didn't work with BD-Rebuilder. Same problem. The next problem is worser. Most WMVHD files get terrible out of sync (not all). At the end 10 minutes or so. Almost the same problem as with the interlaced problem.
Input: WMVHD with WMA Pro 10 @ 29.970 fps 1920x1080. (3 Hour movie)
Output: H264 with AC3 448 kbps @ 29.970 fps 1920x1080p
AVCHDCoder converts the wma to ac3. When I play the AC3 and the source file it is in sync. So audio is 100% ok. When conversion is done I get a file that is not ok. Fps and resolution are ok. The length of the video is also 3 hours. It looks like everything is ok but it gets out of sync immediately. Very strange because both files have the same length. But there is another thing that is strange. The output h264 is too small. Something is wrong with x264 and/or avisynth.
This is what I do:
19:08:57 Creating AVS file: DirectShowsource("input.WMV",fps=29.970,audio=false)
19:08:57 Creating AVS file: AssumeFPS(30000,1001)
19:08:57 Creating AVS file: ConvertToYV12()
19:08:57 Creating AVS file: addborders(0,140,0,140)
and then my usual x264 commands. This problem is almost the same as the other. So I think to problem is not the source file.
Edit: Noticed something. The muxed video repeats it self at the end. I saw the same video 3 times in 2 minutes time.
Looks like the converted video is too short because it play's faster then the source. But it is not too short at the same time.
Atak_Snajpera
13th July 2009, 18:13
Try this
DirectShowsource("F:\Films WMVHD\The.Da.Vinci.Code.1080p.NLsubs.MrBlueEyes.WMV",audio=false)
AssumeFPS(24000,1001)
or
DirectShowsource("F:\Films WMVHD\The.Da.Vinci.Code.1080p.NLsubs.MrBlueEyes.WMV",convertfps=true,audio=false)
AssumeFPS(24000,1001)
setarip_old
13th July 2009, 18:39
@twazertyHow to remove pulldown with tsMuxer?
Once again, from the link I previously gave you to the translated documentation for "tsMuxeR" here:
http://forum.doom9.org/showpost.php?p=1209880&postcount=1
delPulldown - For video streams. Deletes pulldown flags of the track. Attention! When using delPulldown usually a new value fps is required, different from values in the stream. For example, if the stream has fps=29.97, after setting delPulldown you have to input fps=23.976.
twazerty
15th July 2009, 23:46
Try this
DirectShowsource("input.WMV",audio=false)
AssumeFPS(24000,1001)
or
DirectShowsource("input.WMV",convertfps=true,audio=false)
AssumeFPS(24000,1001)
Didn't solve the problem :(
@setarip_old
Try to make a fix tomorrow. Need to try it.
Another question. I am looking for a commandline application to convert 2 and 6 ch AAC to FLAC or AC3. Found different tools but I don't know what they do (faac, faad and enc_aacplus).
I have another solution: dbPoweramp can do what I want but I prefer another application because after 30 day trial you need a licenced copy of dbPoweramp in order to use the commandline (What AVCHDCoder uses)
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.