#13 ScanOrder return empty value

closed
General (13)
5
2012-01-04
2012-01-02
Gianni
No

Hi and sorry for English
I 'm trying to get Scan Order Type (Top/Lower/None), but I never get any value back.
I can get ScanType (Progressive or Interlaced)

I'm Using MediaInfo.dll from vb6.

This code works for ScanType:
GetScanType = bstr(MediaInfo_Get(m_Handle, MediaInfo_Stream_Video, m_StreamVideo, StrPtr("ScanType/String"), MediaInfo_Info_Text, 0))
but this don't work for ScanOrder
GetScanOrder = bstr(MediaInfo_Get(m_Handle, MediaInfo_Stream_Video, m_StreamVideo, StrPtr("ScanOrder/String"), MediaInfo_Info_Text, 0))

m_Handle=file Handle
m_StreamVideo=number of stream

Thanks for help
Gianni

Discussion

  • Gianni
    Gianni
    2012-01-02

    Forgot Bstr function:

    Private Function bstr(Ptr As Long) As String
    ' convert a C wchar* to a Visual Basic string

    Dim l As Long

    l = lstrlenW(Ptr)
    bstr = String$(l, vbNullChar)

    RtlMoveMemory ByVal StrPtr(bstr), ByVal Ptr, l * 2

    End Function

     
  • code seems correct (BTW, for a computer programmer, it is better not to use "/String" fields)
    Is there something in official GUI about scan order, for the file you are testing?

     
    • status: open --> pending
     
  • Gianni
    Gianni
    2012-01-03

    Hi and thanks for reply.

    I am using DV files
    With the official Gui I get this report:

    Formato : AVI
    Formato/Informazioni : Audio Video Interleave
    Format_Commercial_IfAny : DVCPRO
    Dimensione : 55,9 Mb
    Durata : 16s 200ms
    Modalità bitRate generale : Costante
    BitRate totale : 28,9 Mbps
    Creato con : Matrox MQSink Filter . Format: 6. Build: 2.0.0.275

    Video
    ID : 0
    Formato : DV
    Format_Commercial_IfAny : DVCPRO
    Codec ID : dvsd
    Codec ID/Consiglio : Sony
    Durata : 16s 200ms
    Modalità : Costante
    BitRate : 24,4 Mbps
    Larghezza : 720 pixel
    Altezza : 576 pixel
    AspectRatio : 4:3
    Modalità FrameRate : Costante
    FrameRate : 25,000 fps
    Standard : PAL
    ColorSpace : YUV
    ChromaSubsampling : 4:2:0
    BitDepth/String : 8 bits
    Tipo di scansione : Interlacciato
    Bit/(Pixel*Frame) : 2.357
    Dimensione della traccia : 55,6 Mb (99%)

    Thanks for help
    Gianni

     
    • status: pending --> closed
     
  • "ScanOrder/String" is empty in your output, so the behavior of your code is the expected one (empty string, meaning "no info").

     
  • Gianni
    Gianni
    2012-01-04

    This means that I can't have Scan Order info from DV File?

    Thanks for help
    Gianni

     
  • Gianni
    Gianni
    2012-01-04

    Thanks for Help I will

    Best Regards
    Gianni