chaoyuaw / pytorch-coviar

Compressed Video Action Recognition
https://www.cs.utexas.edu/~cywu/projects/coviar/
GNU Lesser General Public License v2.1
503 stars 127 forks source link

Could not allocate video parser context #36

Open salt-fly opened 5 years ago

salt-fly commented 5 years ago

Hi! I am facing this error when training,Could not allocate video parser context , Decoding video failed. Kindly please guide me.

image

kinglong1 commented 5 years ago

qq 20190114221301

Dear friend, I have faced the same problem as you. "Decoding video failed" and "Could not allocate video parser context". I wonder if you have solved those two problems. Could you just give me some help? Thank you very much.

hanzhs commented 5 years ago

I solved this problem. The data loader was not successfully installed, so that the video can not be loaded. I followed the instruction Modify setup.py to use your FFmpeg path (${FFMPEG_INSTALL_PATH}). but I found that if i use the default setting in setup.py, the problem solved.

SmartLiam commented 5 years ago

I solved this problem. The data loader was not successfully installed, so that the video can not be loaded. I followed the instruction Modify setup.py to use your FFmpeg path (${FFMPEG_INSTALL_PATH}). but I found that if i use the default setting in setup.py, the problem solved.

that means you did not ./install.sh?

SkySailing commented 5 years ago

1.setup.py里面的地址不用更改,直接安装,就可以解决

Could not allocate video parser context , Decoding video failed
SkySailing commented 5 years ago

对格式转换那一句

ffmpeg -i input.mp4 -c:v -c:v mpeg4 -f rawvideo output.mp4

error:

[NULL @ 0x2425480] Unable to find a suitable output format for 'mpeg4'
mpeg4: Invalid argument

解决部分:去掉一个-c:v

ffmpeg -i v_YoYo_g05_c01.avi  -c:v mpeg4 -f rawvideo output4raw.mp4