{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/C3D/issues/38","labels_url":"https://api.github.com/repos/facebook/C3D/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/facebook/C3D/issues/38/comments","events_url":"https://api.github.com/repos/facebook/C3D/issues/38/events","html_url":"https://github.com/facebook/C3D/issues/38","id":112587891,"number":38,"title":"The mean file returned by compute_volume_mean_from_list.bin is empty","user":{"login":"vignesh10","id":11994658,"avatar_url":"https://avatars.githubusercontent.com/u/11994658?v=3","gravatar_id":"","url":"https://api.github.com/users/vignesh10","html_url":"https://github.com/vignesh10","followers_url":"https://api.github.com/users/vignesh10/followers","following_url":"https://api.github.com/users/vignesh10/following{/other_user}","gists_url":"https://api.github.com/users/vignesh10/gists{/gist_id}","starred_url":"https://api.github.com/users/vignesh10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vignesh10/subscriptions","organizations_url":"https://api.github.com/users/vignesh10/orgs","repos_url":"https://api.github.com/users/vignesh10/repos","events_url":"https://api.github.com/users/vignesh10/events{/privacy}","received_events_url":"https://api.github.com/users/vignesh10/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-21T13:29:24Z","updated_at":"2015-10-22T16:13:17Z","closed_at":null,"body":"I am trying to compute the mean volume of the dataset HMDB-51 and I run this code:\r\n\r\nGLOG_logtostderr=1 ../../build/tools/compute_volume_mean_from_list.bin c3d_finetuning_HMDB51/train2.lst 16 128 171 1 hmdb51_train_mean.binaryproto 10\r\n\r\nMy train.lst looks like this:\r\n\r\nc3d_finetuning_HMDB51/data/April_09_brush_hair_u_nm_np1_ba_goo_0.avi 1 0\r\nc3d_finetuning_HMDB51/data/April_09_brush_hair_u_nm_np1_ba_goo_0.avi 17 0\r\nc3d_finetuning_HMDB51/data/April_09_brush_hair_u_nm_np1_ba_goo_0.avi 33 0\r\nc3d_finetuning_HMDB51/data/April_09_brush_hair_u_nm_np1_ba_goo_0.avi 49 0\r\n\r\n\r\nI1021 15:24:30.223497 28438 compute_volume_mean_from_list.cpp:53] using dropping rate 10\r\nI1021 15:24:30.223736 28438 compute_volume_mean_from_list.cpp:80] Starting Iteration\r\nE1021 15:24:30.296300 28438 compute_volume_mean_from_list.cpp:112] Processed 2872 files.\r\nI1021 15:24:30.296344 28438 compute_volume_mean_from_list.cpp:119] Write to hmdb51_train_mean.binaryproto\r\n\r\n\r\nI get an output file hmdb51_train_mean.binaryproto  which is of size 10Bytes.\r\n\r\nI have checked the 2 suggestions related to issue-30:\r\n1. The correctness of the relative paths\r\n2. Opencv and ffmpeg compiles with the --enable-shared flag on. \r\n\r\nI have tried both and yet the same empty file is returned. \r\n\r\nP.S: I do not have any other problems with the code. I am able to extract the features as well. \r\n\r\nThanks in advance!\r\n"},"comment":{"url":"https://api.github.com/repos/facebook/C3D/issues/comments/150275091","html_url":"https://github.com/facebook/C3D/issues/38#issuecomment-150275091","issue_url":"https://api.github.com/repos/facebook/C3D/issues/38","id":150275091,"user":{"login":"dutran","id":2883574,"avatar_url":"https://avatars.githubusercontent.com/u/2883574?v=3","gravatar_id":"","url":"https://api.github.com/users/dutran","html_url":"https://github.com/dutran","followers_url":"https://api.github.com/users/dutran/followers","following_url":"https://api.github.com/users/dutran/following{/other_user}","gists_url":"https://api.github.com/users/dutran/gists{/gist_id}","starred_url":"https://api.github.com/users/dutran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dutran/subscriptions","organizations_url":"https://api.github.com/users/dutran/orgs","repos_url":"https://api.github.com/users/dutran/repos","events_url":"https://api.github.com/users/dutran/events{/privacy}","received_events_url":"https://api.github.com/users/dutran/received_events","type":"User","site_admin":false},"created_at":"2015-10-22T16:13:17Z","updated_at":"2015-10-22T16:13:17Z","body":"Yes, your mean file is empty because of IO error.\r\n1. You may want to check you relative location (path to files), if the files are existed. If possible convert them to absolutely paths to make less confused.\r\n2. If 1 is correct, then it may be the case your OpenCV is not compiled with ffmpeg thus It does not have appropriate codec to read your video files. In that case, you can re-compile ffmpeg, then opencv with --enable-shared flag is ON "}}