Hi all, I am a hobbiest programmer and currently trying to learn Delphi.
I found a great free DLL that is a wrapper for DirectShow to make your own Media Player. Its at:
http://www.sagura.com/
(Note: I doubt that this DLL will work with any other programming language than Delphi - I tried it with Lazarus/FreePascal which is attempting to be Delphi compatible and it wouldn't work, so i doubt it will work for VB or C).
Anyways - with only a small program I was able to write a player for AVI, WMV, Mpeg, RM, VOB etc - and remember, I am just learning Delphi - so its a powerful DLL.
My one problem is when I try to play an unencrypted VOB its always reports that the frame size is 720x576, regardless of what the real size is. (Actually I have the same problem with Windows Media Player and most movies play with the width being 'squashed'). Anyone have any ideas? I have checked all the threads in this section and could not find a similar reference - so apologies if it has been answerred elsewhere.
Thanks in advance
Brosco
+ Reply to Thread
Results 1 to 7 of 7
-
-
I suspect all your VOB files are 720x576. But some should be displayed with a 4:3 aspect ratio and others with a 16:9 aspect ratio.
-
You're in Australia, so for PAL 720x576 is correct and the most common(you should be able to have 704x576, 352x576 and 352x288 available to you as well, though, and the possibility for NTSC sizes).
There ought to be a (how do you say it in ProgrammerSpeak?)~port/pin/flag for aspect ratio (and maybe "TV system") as well as size. What other metadata "fields" does it report?
Scott -
The Sequence Header in the MPEG video gives the info you want. Just parse "00 00 01 B3" (in HEX, of course). The next 12 bits give you the HOR SIZE and next 12 bits after that give you the VER SIZE.
I'm not sure what the format of the data is (MSB or LSB first), but simple experimenting can give you that.ICBM target coordinates:
26° 14' 10.16"N -- 80° 16' 0.91"W -
Thank you all. Since this was my first attempt at playing with a DVD it never occurred to me that the mpeg width & height would be different to the aspect ratio required. I guess I better do some more searching on explanations of dvd formats.
But while I'm searching could you answer one more question? If my VOB is 720x576 and the aspect ration is 16/9 - should I therefore play it at 720x405? Or is that too simplistic and I'm missing something else?
Thanks again to all that responded. -
Originally Posted by Brosco
To be more correct, the 16:9 image is contained in the center 704x576 subsection of the 720x480 frame. But if you just ignore that and scale the entire frame you'll be close enough. -
Thanks again to for the help and very quick responses - it is truly appreciated.
Similar Threads
-
DVD-lab frame size
By Burig in forum Authoring (DVD)Replies: 4Last Post: 17th Oct 2011, 11:27 -
A Question On How To Calculate Frame Size When Resizing Vid for DVD
By hydrophonicaudio in forum Newbie / General discussionsReplies: 13Last Post: 21st Feb 2011, 07:53 -
Frame Size
By kamranj in forum Newbie / General discussionsReplies: 18Last Post: 9th Jan 2011, 18:59 -
Trying to find the DVD ripper with the biggest frame size
By True Colors in forum DVD RippingReplies: 2Last Post: 18th Apr 2010, 22:01 -
Frame size to use for editing 16:9 footage extracted from a DVD
By jason1123 in forum EditingReplies: 8Last Post: 16th Mar 2010, 20:05