Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. MCI QUESTION!!! Is it different file extension name and codec?

MCI QUESTION!!! Is it different file extension name and codec?

Scheduled Pinned Locked Moved C / C++ / MFC
questionhelptutoriallounge
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    AmissU
    wrote on last edited by
    #1

    Hello. I'm trouble in MCI T-T this is my video spec.

    General
    Complete name : C:\Users\Administrator\Desktop\abdd\abc.avi
    Format : AVI
    Format/Info : Audio Video Interleave
    File size : 5.66 MiB
    Duration : 1mn 22s
    Overall bit rate : 577 Kbps
    Writing application : Lavf53.32.100

    Video
    ID : 0
    Format : AVC
    Format/Info : Advanced Video Codec
    Format profile : Baseline@L3.0
    Format settings, CABAC : No
    Format settings, ReFrames : 1 frame
    Format settings, GOP : M=1, N=3
    Codec ID : H264
    Duration : 1mn 22s
    Bit rate : 575 Kbps
    Width : 320 pixels
    Height : 240 pixels
    Display aspect ratio : 4:3
    Frame rate : 12.000 fps
    Color space : YUV
    Chroma subsampling : 4:2:0
    Bit depth : 8 bits
    Scan type : Progressive
    Bits/(Pixel*Frame) : 0.623
    Stream size : 5.63 MiB (100%)

    when I open this video. originally my code is...

    MCI_ANIM_OPEN_PARMS *mciOpen = new MCI_ANIM_OPEN_PARMS;
    mciOpen->lpstrDeviceType = _T("AVIVideo"); //장치 타입 설정

    but It doesn't work. This file extension name is .avi. so I thought this lpstrDevicetype is also Avi. but It has matter. so now my changed code is...

    MCI_ANIM_OPEN_PARMS *mciOpen = new MCI_ANIM_OPEN_PARMS;
    mciOpen->lpstrDeviceType = _T("MPEGVideo");

    It work!!! 1. Is it different file extension name and codec(for lpstrDeviceType) ? 2. I think my codec is lavf53.32.100 in ffmpeg, doesn't it? so how to put code lpstrDeviceType ? MPEGVideo2, MPEGVideo4, MPEGVideo, FFMPEG?? I can't choose the lpstrDeviceType. help me plz!

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups