IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topicStart Poll

Outline · [ Standard ] · Linear+

> Suport for other containers

adicoto
post Sunday, 4 Jun 2006, 23:08
Post #1


Advanced Member
****

Group: Members
Posts: 129
Joined: 13-January 03
From: Romania
Member No.: 6



Could this be added to a future build of ST ? I am thinking to MP4, OGM and MKV.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
mironto
post Monday, 5 Jun 2006, 00:40
Post #2


ST Creator
*****

Group: Admin
Posts: 265
Joined: 12-January 03
From: Slovakia
Member No.: 2



Probably not... The basic rule is if WMP8 plays it, ST can play it as well. If not, bad luck. I have no knowledge of writing my own media player cow.gif


--------------------
Mironto, the board admin, webmaster, and the author of ST and... user posted image
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
adicoto
post Monday, 5 Jun 2006, 21:16
Post #3


Advanced Member
****

Group: Members
Posts: 129
Joined: 13-January 03
From: Romania
Member No.: 6



Yes, I know about WMP, but was just hoping.
My WMP6.4 plays MP4 files, so does ST but didn't manage to play MKV files.
WMP play wmv files, ST doesn't or plays them with errors (123,733 frames biggrin.gif , playing at 1,71 fps blink.gif

This post has been edited by adicoto: Monday, 5 Jun 2006, 21:20
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
mironto
post Monday, 5 Jun 2006, 21:39
Post #4


ST Creator
*****

Group: Admin
Posts: 265
Joined: 12-January 03
From: Slovakia
Member No.: 2



well, if you find somebody, who could write a code for player that would be possible to import through package to builder and could implement all the methods and properties I need for ST, it would be no problem at all wink.gif


--------------------
Mironto, the board admin, webmaster, and the author of ST and... user posted image
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
adicoto
post Thursday, 5 Apr 2007, 21:32
Post #5


Advanced Member
****

Group: Members
Posts: 129
Joined: 13-January 03
From: Romania
Member No.: 6



Same thing happening with those formats like the ones from the Vista support post

http://forum.mironto.sk/index.php?showtopi...&st=0&#entry603

I can confirm that when playing mkv files from ST, instead of showing frames we have seconds. Could this be related ? And have the same solution ?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
adicoto
post Monday, 4 Feb 2008, 01:19
Post #6


Advanced Member
****

Group: Members
Posts: 129
Joined: 13-January 03
From: Romania
Member No.: 6



OK, the solution can be simple, in fact it's just avoiding a complex situation. When importing frame numer, can the function import the number as an Integer and not a floating point number ? After the import it's done, you can multiply the numbers by framerate (using different methodes) and all should work fine from now. worthy.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
mironto
post Monday, 4 Feb 2008, 12:53
Post #7


ST Creator
*****

Group: Admin
Posts: 265
Joined: 12-January 03
From: Slovakia
Member No.: 2



Not quite sure what you mean. I do not import the frame number or anything, there is a parameter in WMP container that holds the current position. I can set variable in WMP container whether it should be frame number or time position.

I could be possible to always get time position (as this should work for all media files) and then recompute it to frame. But it may require massive rewriting of the code. Or maybe not, if I find some time, will have a look at it.


--------------------
Mironto, the board admin, webmaster, and the author of ST and... user posted image
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
adicoto
post Monday, 4 Feb 2008, 23:19
Post #8


Advanced Member
****

Group: Members
Posts: 129
Joined: 13-January 03
From: Romania
Member No.: 6



OK, let's try harder. I believe ST acces the splitter in a wrong manner. The splitter reports back, instead of "number of frames| (it's SUB based program, when you press the import current frame button, it will call a number, that it's usually an integer one, being a frame number) but you get somehow a value that is not an integer, rather the numer of frame divided by the framerate and it hase some 6-8 digits after the decimal point. So, into frame start and frame end columns you will get values like: 2.579 and 3,1535624 and again 4,0174583 and 4,7460833. Those values are seconds, rendered by ST from dividing the frame number to the frame rate. Tested that. So. When pressing "import current frame into subtitle" button, you must force this value to be an integer, so the values above will become 3 and 3 and again 4 and 5. After that, if you multiply this value with the framerate the subtitle will be OK. Am a little bit more clear in what I mean ?

This post has been edited by adicoto: Monday, 4 Feb 2008, 23:26

Attached thumbnail(s)
Attached Image
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
mironto
post Tuesday, 5 Feb 2008, 01:22
Post #9


ST Creator
*****

Group: Admin
Posts: 265
Joined: 12-January 03
From: Slovakia
Member No.: 2



Once again - since some containers cannot output the position in frames (even though I ask WMP to provide frames and also expect them), they output it in time (usually seconds).
As I said, I could change the routine to always get time instead of frames (which works for every container) and compute the actual frame by multiplying the time by frame rate (no need to round the time to integer first, as you would loose precision) and then round it to integer.

This is not a flaw of ST, it's WMP's "fault" that it cannot report video position in frames for all containers.


--------------------
Mironto, the board admin, webmaster, and the author of ST and... user posted image
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
adicoto
post Tuesday, 5 Feb 2008, 21:16
Post #10


Advanced Member
****

Group: Members
Posts: 129
Joined: 13-January 03
From: Romania
Member No.: 6



I never said it's ST flaw or something, just searching for a workaround. So, you can call time ? That should be even better, this is .srt format.

LE: or do that calculus you posted

This post has been edited by adicoto: Tuesday, 5 Feb 2008, 21:17
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Reply to this topicTopic OptionsStart new topic
 

Lo-Fi Version Time is now: 9. 09. 2010 - 23:49