顯示具有 video 標籤的文章。 顯示所有文章
顯示具有 video 標籤的文章。 顯示所有文章

2020年11月4日 星期三

C# Windows Media Player control COM component failed to play ANY video files

I have fixed the issue which .NET win form failed to play video file with COM component windows media player control.
The error was raised while wmp control invokes d3d9.dll ( Direct 3D 9 runtime ) because I checked out in the windows event manager : 

Faulting application name: WindowsFormsApp1.exe, version: 1.0.0.0, time stamp: 0xf57ea874
Faulting module name: D3D9.DLL, version: 10.0.17763.1075, time stamp: 0x3cad74b1
Exception code: 0xc0000005
Fault offset: 0x000479ff
Faulting process id: 0x1d94
Faulting application start time: 0x01d6b2c1a4facaac
Faulting application path: C:\Users\A30336\OneDrive\Project\Jack Yeh\YehProject\WindowsFormsApp1\WindowsFormsApp1\bin\Debug\WindowsFormsApp1.exe
Faulting module path: C:\Windows\SYSTEM32\D3D9.DLL
Report Id: 004f8352-5e8b-4cda-a346-b278d57514db
Faulting package full name: 
Faulting package-relative application ID: 
And this error resembles the below issue : media player won't play any video file.

Link you gave me assumes i have access violation which i dont.

Besides windows media player, everything else works, games, 3d modeling software to name a few.

I was able to transfer DLL files from another computer and it fixed the problem.

I had to use Unlocker to delete original once and then place good once inside and reboot.

How ever, upon checking checksum of both and comparing them, they were identical.

I am clueless what went wrong and what fixed it because everytime my computer restarts, system is being restored to its original state. I did disabled that feature while i was replacing DLL's

Not sure what to conclude here.


At first, I supposed the DirectX is broken. or wrong linked library for media player control. I can play video file with Windows Media Player but it failed to play in my win form program media player control. So I downloaded latest DirectX redistribution :

DirectX RunTime_Jun2010_redist
Despite it doesn't help. I kept googling and then I got a clue here.

I downloaded and installed the DX Setup app you referenced. The installer reported that it was successful. I restarted my PC, and I still get the same d3d9.dll errors on *any* DX9 app. It turns out, however, I have found the problem. This problem has existed since Win7 was released. d3d9.dll (6.x-10.x) is brittle and poorly written apps can screw with it, causing subsequent dx9 apps to crash. In my case, it was one of the ASUS motherboard monitoring apps that came with my motherboard. Once this app was stopped (it ran fine), other dx9 apps started working perfectly. This was a constant problem for me because I had the monitoring app running on startup.

Solved : I guessed the issue came from wrong file invoking link or broken DLL files. So that I tried to reinstall display chip drivers which contains all the Direct3D or and other related DLLs. My display chip is AMD Radeon HD 8500M/8700M family. So that I checked the AMD website and downloaded , then installed AMD Radeon™ Software Adrenalin 2020 Edition.
I restarted computer. And open my .NET win form program to play video file with WMP COM component. Eventually it works.

2017年10月23日 星期一

iPad 上的剪輯建議


建議的APP


  1.  iMovie 讓你用最直覺的方式編輯影片
  2. Clips 可以讓你加特效讓影片更有趣
  3. 威力導演以時間軸形式更方便編輯影片(Android+PC)
  4. Quik 快速替你生成一支專屬你的影片

GoPro 推出了 Quik 這套影片編輯 App,當然,就算不是 GoPro 的影片也能使用 Quik 編輯。Quik 有個功能相當神奇,只要使用者從臉書、Goolge 相簿、或是GoPro 中挑選出自己喜歡的相片、影片,Quik 就會自動幫忙生成一套影片,而且還會加入特效、音樂,還讓影片跟著音樂的節奏播放。此外,使用者也可以手動加入特效、文字,或是拖曳剪輯影片。
  1. Splice 自動同步背景音樂與影片速度
Splice 具備影片時間軸的設計,方便讓使用者快速找到想要的片段,當然也能加入其他片段,使之結合成一支影片。而編輯功能也相當齊全,包含了可以添加文字,並附有多種字體可以選擇,讓文字更加顯眼、吸引人;可加入背景音樂,而且神奇的是,Splice 會自動同步影片跟音樂的節奏,讓影片的速度跟上音樂的拍子;加入過場特效,能讓影片變得更順暢,而且使用者還可以自訂過場特效的速度。

  1. 小影具備齊全功能還可美肌錄影
  2. Magisto 用人工智慧幫你製做短片
只要選擇你想要加入變成影片的照片、影片,Magisto 就能自動幫你生成一部短片,最少只要5張照片,你就能擁有一部影音俱全的影片了。至於 Magisto 是如何決定排列順序呢?其實背後倚賴的就是人工智慧系統,藉由人工智慧去分析你的照片及影片哪些有關聯、哪些適合放在開場等等。你還可以自己加入更多照片或影片,甚至是配樂,都可讓你的成果變得更好,同時,你還能添加不同風格,增添影片的味道,像是聖誕節、度假風等等,配合你的影片主題。

  1. Adobe Premiere Clip 可選擇專業濾鏡
  2. Instashot 提供豐富貼圖插入影片
  3. Musemage 有七大拍攝模式還可美顏

以下為mobile內容擷取,原連結於網頁置頂處。 huan1029 2017-08-01 17:44  #21以下手機排版請見諒!

用ipad剪輯影片或是修圖,最大目的是圖個便利性吧
Ex, 外出旅遊多天閒暇時;行動電源隨插即充等。小弟是因為這些原因打算入手。

回到樓主的剪輯生活影片,小弟目前只用SE拍攝與剪輯(搭配穩定器),imovie我也用不習慣,簡單剪輯建議用用看Splice,其實蠻夠用的!
附上影片參考:1080p 拍攝,傷眼請見諒
https://youtu.be/CRohf2fFF20
(僅限很陽春的剪輯,和電腦版的軟體還是有很大差異的)


至於檔案讀取,建議入手記憶卡轉lighting的讀卡機(若擔心相容性,就入手原廠,不過只有單一種卡型),
小弟目前外出拍攝也是這樣處理相機中的照片,然後用手機版陽春的PS作簡單後製處理。
附上Flickr參考:皆為JEPG後製處理,傷眼請見諒
https://www.flickr.com/photos/moran1029

另外我也想請教其他前輩們,關於ipad版本的PS或LR和電腦版會不會差很多呢?(撇除素材插件)

airsmario
2017-08-01 18:06  #23

Lightroom iPad修正的樣式可以同步到桌機的Lightroom上,
iPad版的修改細項比較少,舉例說像色調調色就沒有很完整,
但能夠兩端同步顯示最後編修的狀況是特色。

PS我推薦最近出的affinity photo,支援PS圖層跟樣式,有不亞於桌機版的氣勢。
比起Adobe那種翻白眼分拆版PS的,這好用多了。star.

2017-08-01 19:44  #25
私訊連結
我也是為了編輯4K影片,本週日才剛入手iPad 10.5吋,我只要簡單編輯並不是專業用途,
但要能跑很順的4K剪輯電腦真的不便宜,至少iPad Pro可以滿足我的小小需求喔!

share303
2017-08-01 22:17  #28
私訊連結

建議大大可以學adobe after effect, premier或是威力導演,這些才是專業的製片軟體,也建議用電腦做會比較快喔 (起碼有外掛還有範本套用)~

按摩六郎
2017-08-01 23:04  #29
私訊連結
我就是因為想要出遊時方便使用剪接編輯影片,然後上傳到youtube跟朋友分享,才改買10.5吋256GB的ipad pro
因為我的拍攝工具都是iphone,iphone自動會把我拍好的照片影片放到icloud,ipad直接讀取就可以編輯了。
等於我可以拍攝到編輯到輸出還有上傳都在ios內完成(要在iphone內一機完成也是可以,就畫面小)

xincong
家庭或生活紀錄影片
很適合 因為 iMovie夠用
專業影片 則需筆電 較適合

光是多工這項
除非ios11 解決多工問題
否則 小弟濁見是 有滑鼠比較方便快速