Skip to content
This repository has been archived by the owner on Oct 26, 2020. It is now read-only.

Sometime got stuck #12

Open
jiarongqiu opened this issue Sep 22, 2018 · 0 comments
Open

Sometime got stuck #12

jiarongqiu opened this issue Sep 22, 2018 · 0 comments

Comments

@jiarongqiu
Copy link

jiarongqiu commented Sep 22, 2018

I used the following snippet, but sometimes got stuck at some videos.
I checked the Memory and Graphics Card, neither of them is full.

	num=100000
	start=time.time()
	video_list=sorted(os.listdir(path))[:num]
	num = min(len(video_list),num)
	for video_name in video_list:
		video_path = os.path.join(path,video_name)
		print (video_path)
		loader = pynvvl.NVVLVideoLoader(device_id=0, log_level='error')
		n_frames = loader.frame_count(video_path)
		print('Number of frames:', n_frames)
	duration = time.time()-start
	print(duration,duration/num)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant