Skip to content
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

Windows10, Resource temporarily unavailable #133

Open
Leadrive opened this issue Jan 10, 2021 · 5 comments
Open

Windows10, Resource temporarily unavailable #133

Leadrive opened this issue Jan 10, 2021 · 5 comments

Comments

@Leadrive
Copy link

Hi,
I tested the video-to-image.go example in Windows 10,
https://github.com/flutter/plugins/blob/master/packages/video_player/video_player/example/assets/Butterfly-209.mp4

this video will report Resource temporarily unavailable error.
the tests-sample.mp4 will work ok.

@3d0c
Copy link
Owner

3d0c commented Jan 10, 2021

I have tested your example right now and everything works fine. May be it's a codec issue. Check what encoders your library supported and try different ones.

@Leadrive
Copy link
Author

Leadrive commented Jan 10, 2021

Sorry I don't know how to change the codec.

I follow the ReadMe
./configure --prefix=/usr/local/ffmpeg --enable-shared
make
make install

and copy the all the dll files to example directory.

After run video-to-image, it will report Resource temporarily unavailable.

I search the issues, change Decode()=>Decode2()
it will work with tests-sample.mp4, but did not work for other videos.

		frame, ret = ist.CodecCtx().Decode2(pkt)
		if ret < 0 {
			fmt.Printf("Unexpected error - %s\n", gmf.AvError(ret))
			break
		}

		frames, err = gmf.DefaultRescaler(swsctx, []*gmf.Frame{frame})
		if err != nil {
			fmt.Printf("Error scaling - %s\n", err)
			break
		}

I tested it in Windows7, it take error.
the same code and same videos, In Ubuntu 18.02, it work fine.

@3d0c
Copy link
Owner

3d0c commented Jan 10, 2021

Well, possible issue might be the wrong destination path (in terms of Windows), default output path is ./tmp this is linux specific.

@Leadrive
Copy link
Author

thanks your reply.
run with tests-sample.mp4, In the ./tmp path, it have the many result image files.

@debugger-zhang
Copy link

I now found the potential issue, see here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants