Code hang when dealing with a .avi video
Open
@awolant is already working on this.
Since Sep 3, 2021.
enhancement
Video
- Dominant language
- C++
- Stars
- 5.8k
- Forks
- 678
- Avg merge
- 3d 1h
- Merged PRs (30d)
- 27
Description
Hi,
We are encountering a problem when processing a .avi video.
Could you please help us?
We have uploaded the video to google drive: https://drive.google.com/file/d/10W1T9nkW1oxxQmdV0cURBgpOD5e5nT6y/view?usp=sharing.
Code:
from nvidia.dali import pipeline_def
import nvidia.dali.fn as fn
@pipeline_def
def video_pipe(filenames):
videos = fn.readers.video(device="gpu", filenames=filenames,
sequence_length=sequence_length, shard_id=0, num_shards=1)
return videos
if __name__ == '__main__':
batch_size = 1
sequence_length = 8
video_files = [
'./IamLegendII_eat_h_nm_np1_le_goo_8.avi']
n_iter = 6
pipe = video_pipe(batch_size=batch_size, num_threads=2,
device_id=0, filenames=video_files, seed=123456)
pipe.build()
for i in range(n_iter):
pipe_out = pipe.run() # code will hang in this line
sequences_out = pipe_out[0].as_cpu().as_array()
print(sequences_out.shape)
This code hanged in pipe_out = pipe.run().
The python=3.8, cuda=10.1, and dali=1.5.0. We also tried cuda=11.1 and the problem still remains.
We are looking forward to your help and appreciate your hard work!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.