-
Notifications
You must be signed in to change notification settings - Fork 654
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VLC doesn't play video with Dokan #34
Comments
I guess you have a read issue. |
OS calls create file, that calls get file information and returns 0. I want to stress that the video file DOES play with Media Player Classic. Thanks! |
Calls does not seems to be specials, are you sure of the data returned by your implementation ? |
Yes. As I said, it does work with a different player. Just not with VLC. UPDATE: Sometimes, this error pops up:
|
Still looks like a read error. I do not think it is a dokan issue and I do not have your code, so I cannot help you more :( |
The problem is that there is no error \ exception in the code. The OS doesn't request an offset that exceeds the file's size or receives something smaller than the size of readBytes.. The question is, whether there is some metadata that the OS requests but Dokan doesn't supply to the OS? Can there be a callback that is needed in this situation, but Dokan doesn't implement at all? |
Nop, |
Yeah, I know that the explorer process requests FindFiles for the directory, and then GetFileInformation for each file & also ReadFile to get the thumbnails.. and it works. UPDATE: Also, I just noticed that when you try to customize a folder and change it from "General items" to "Pictures", explorer.exe crashes. |
On my filesystem, I noticed that VLC choked and failed to play the file properly if the contents are not given to it fast enough. Is that your case? In my app, I fetch contents from a remote site, but cache them. After the contents are cached, VLC is happy (from the network is too slow in some videos at least). If your filesystem can't be very fast, try with a video with a very low resolution and bitrate, so it needs to read as little as possible. Just to confirm. |
Hi! Thanks! |
Well, my filesystem "just" maps remote files locally, but when it is downloaded, it is saved in a cache, so next access to the same file is much faster. If you were doing some kind of filesystem where you (for example) show the contents of compressed archives as a tree, then you probably don't have caching as an option, because it could duplicate a lot of data. |
I have made a test with last Dokan/Mirror release on Win8.1 and It worked :( There is a big chance that @suy is right 😃 ! |
@Liryna , I'm using Win7 64bit.
(Drive E is local). |
Mapping at every call of ReadFile does not make it faster, it even make it slower. |
I tried that as well:
and it didn't help :( |
Please try using the mirror.exe and your video file. If you still fail please provide the video file and tell us which version of vlc player you use. If you don't fail using the mirror, you can investigate what you are doing different. |
I just noticed that the DokanNet repository was updated. |
Everything works with the new version of DokanNet! Hurray! |
I'm using Dokan 0.7.3 on Windows 10, and I'm having the same issue. I can play a song using Windows Media Player but VLC gives an error message. I can view a photo using Paint and Windows Photo Viewer but VLC gives an error message. Please give me some insights, thanks a lot |
VLC logs should help you. |
I have just tried it with mirror, it also fails with VLC, but succeeds with windows media player |
@Liryna I think there's something new in Windows 10 that you need to investigate. Because even mirror has the same issue. At your own time, test mirror on Windows and try playing media |
@bryanbabel you need to investigate on this discussion and special about how shlatchz have resolved it. |
Overlapped read problem? |
I encountered the problem too, with the latest Dokany and DokanNet. Any solutions? |
I had the same problem this week (I was using 1.4.0.1000 and 1.5.1.1000 on Windows 7). An mkv file would sometimes play in vlc, but usually failed (other types like mp4 played ok, but not an mkv file). sysinternals Process Monitor showed INVALID_PARAMETER on ReadFile. The mirror sample worked. In the mirror sample, CreateFile returns NotADirectory if you try to open a file as a directory, but my code did not. Adding this check to my code seems to have resolved the problem. |
I had the same problem this week |
See the issue opened in stackoverflow.
Thanks.
The text was updated successfully, but these errors were encountered: