Jump to content

Shady

Members
  • Posts

    10
  • Joined

  • Last visited

Profile Information

  • Location
    Russia

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Shady's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Oh my God I'm not so stupid, it works!! :) Manjish, thank you very much!!! So, really stable code: #NoTrayIcon #include <Video.au3> $iX = "1" $iY = "1" $iW = "1280" $iH = "720" $video = 'I:\Video\DM.avi' $hWnd= WinGetHandle("DM.avi - GOM Player") $sDevice = "AVIVideo" $file = _Video_Open($video, $hWnd, $iX, $iY, $iW, $iH, $sDevice) $dimns = _Video_Dimension($video) $getFrameRate = _Video_FrameRate($file) $getLength = _Video_Length($file, 0) MsgBox(4096, "Video Dimensions", "Width: " & $dimns[0] & @CRLF & "Height: " & $dimns[1]) MsgBox(4096, "Frames Rate", $getFrameRate) MsgBox(4096, "Length", $getLength)So, I have just one question: is it possible to get information about audio and video codecs of file? In comments of Video.au3 I haven't found any solution...
  2. Ok, please look this script: #NoTrayIcon #include <Video.au3> $iX = "1" $iY = "1" $iW = "1280" $iH = "720" $video = 'I:\dc.mpg' $hWnd= WinGetHandle("dc.mpg - GOM Player") _Video_Open($video, $hWnd, $iX, $iY, $iW, $iH) $dimns = _Video_Dimension($video) $getFrameRate = _Video_FrameRate($video) $getLength = _Video_Length($video, 0) MsgBox(4096, "Video Dimensions", "Width: " & $dimns[0] & @CRLF & "Height: " & $dimns[1]) MsgBox(4096, "Frames Rate", $getFrameRate) MsgBox(4096, "Length", $getLength) File is still open, title of window is correct but it STILL returns zeros. Where's my mistake?
  3. Manjish, yes, i've used this but nothing change. it's still returns "0". Examples: 1st script: #NoTrayIcon #include <Video.au3> $sFile = 'D:\Video\!NEW_VIDEO\AmytivilleHorror.avi' $hWnd="1280" $hWnd = "1" $iX="1" $iY="1" $iW="1280" $iH="720" $open = _Video_Open($sFile, $hWnd, $iX, $iY, $iW, $iH) $dimns=_Video_Dimension($sFile) $getFrameRate=_Video_FrameRate($sFile) $getLength=_Video_Length($sFile, 0) MsgBox(4096,"Video Dimensions","Width: "&$dimns[0] & @CRLF & "Height: "&$dimns[1]) MsgBox(4096, "Frames Rate", $getFrameRate) MsgBox(4096, "Length", $getLength)and second: #NoTrayIcon #include <Video.au3> $sFile = 'D:\Video\!NEW_VIDEO\AmytivilleHorror.avi' $hWnd="1280" $hWnd = "1" $iX="1" $iY="1" $iW="1280" $iH="720" $open = _Video_Open($sFile, $hWnd, $iX, $iY, $iW, $iH) $dimns=_Video_Dimension($sFile) $getFrameRate=_Video_FrameRate($open) $getLength=_Video_Length($sFile, 0) MsgBox(4096,"Video Dimensions","Width: "&$dimns[0] & @CRLF & "Height: "&$dimns[1]) MsgBox(4096, "Frames Rate", $getFrameRate) MsgBox(4096, "Length", $getLength) May be you will show me really stable script? ;-)
  4. Manjish, thanks, it works! But I don't understand how to get other info... I use this script: #NoTrayIcon #include <Video.au3> $sFile = 'I:\dc.mpg' $dimns=_Video_Dimension($sFile) $getFrameRate=_Video_FrameRate($sFile) $getLength=_Video_Length($sFile) MsgBox(4096,"Video Dimensions","Width: "&$dimns[0] & @CRLF & "Height: "&$dimns[1]) MsgBox(64, "Frames Rate", $getFrameRate) MsgBox(64, "Length", $getLength)Your example works but other not. 'Frames rate' and 'Length' returns 0. Can you tell me why?
  5. is there's somebody who can help me?
  6. Andreik, it will be cool if you will show me how to use this UDF
  7. It returned just one link... And I don't see anything in that thread that can help me.
  8. Hi everybody! I'm a begginer at AutoIt and I have some questions Well, I need to get techincal video information from a video formats files such as file duration, video/audio streams, frames per second, etc. Can AutoIt do this? PS I used a search but I have not found any topic with the same problem.
  9. Wow! Really cool!!
×
×
  • Create New...