Closed jappolack closed 7 years ago
Hi, could you please give me a little more info, for example, the file path you are using. This error typically occurs when there are spaces in the file path.
Hi aharmer, I'm very new on this new pathtrackr package. My video doesn't split too, but I think I'm writing the codes erroneuosly. What are the differences among filepath, dirpath and Pathfile? can you give me an example please? also how do I know if I instaled the package right? The folder is build, but nothing on it.
Hi,
I use the following command
splitVideo("mice.mp4",30,640,360)
and put the mice.mp4 file inside the file with the .R files
Jennifer
On Tue, May 23, 2017 at 11:46 PM, SamuelAguilar notifications@github.com wrote:
Hi aharmer, I'm very new on this new pathtrackr package. My video doesn't split too, but I think I'm writing the codes erroneuosly. What are the differences among filepath, dirpath and Pathfile? can you give me an example please? also how do I know if I instaled the package right? The folder is build, but nothing on it.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/aharmer/pathtrackr/issues/3#issuecomment-303609771, or mute the thread https://github.com/notifications/unsubscribe-auth/AUQziJa0tgRfPxKaiESpAQOnfa-aMzmBks5r86f8gaJpZM4Njn1T .
--
Jennifer Polack Professor of Computer Science University of Mary Washington 1301 College Ave. Fredericksburg, VA 22401 http://www.jenpolack.com/ (540)654-1318
Hi Jennifer, In the splitVideo function you should specify the full file path, not just the file name, e.g. "full/path/to/your/file.mp4", in the appropriate format for your platform. This is because splitVideo makes an external call to ffmpeg, which requires the full path name and cannot directly communicate with R to get your current working directory. Hope this helps.
Hi Samuel, In the splitVideo function, you specify the full path to your video file itself, e.g. filepath = "full/path/to/your/file.mp4", in the appropriate format for your platform. Once you have split your video and created the jpegs in the new directory, you specify the path to your new directory in the trackPath function, e.g. dirpath = "full/path/to/your/newdirectory".
Hi,
I use the following command
splitVideo("Users/jennifer-polack-wahladmin/Desktop/pathtrackr-master/R/mice.mp4",30,640,-1)
and it still did not give out the images. I split the images in another program and tried to just use trackpath trackPath("Users/jennifer-polack-wahladmin/Desktop/pathtrackr-master/R/mice/",169,95,30,2,.5) Error in jpeg::readJPEG(file.list[1]) : unable to open NA
but I don't think the images were named correctly the folder so I couldn't track the path. Is there anyway you can check to see if the following video even works?
mice.mp4 https://drive.google.com/file/d/0BwQgVQoP7tfWQ0VoSzZGUzlkWE0/view?usp=drive_web
On Wed, May 24, 2017 at 5:49 PM, aharmer notifications@github.com wrote:
Hi Jennifer, In the splitVideo function you should specify the full file path, not just the file name, e.g. "full/path/to/your/file.mp4", in the appropriate format for your platform. This is because splitVideo makes an external call to ffmpeg, which requires the full path name and cannot directly communicate with R to get your current working directory. Hope this helps.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/aharmer/pathtrackr/issues/3#issuecomment-303861645, or mute the thread https://github.com/notifications/unsubscribe-auth/AUQziGAipnHF_EKd6pwDnED24F4Vla5Nks5r9KYBgaJpZM4Njn1T .
--
Jennifer Polack Professor of Computer Science University of Mary Washington 1301 College Ave. Fredericksburg, VA 22401 http://www.jenpolack.com/ (540)654-1318
Hi Jennifer, you should have a "/" in front of "Users", that should solve your file path problem. I was able to split your video without any issues and attempt some tracking. However, your video is not really suitable for using pathtrackr. First, there are huge changes in lighting from visible light to infrared. Second, there is very low contrast between the animal and the background. And third, the direction of contrast between the animal and bg is not consistent (i.e. sometimes lighter and sometimes darker). So I am afraid you will not get very reliable results. We are working on a v2 of the package that will handle some of these issues, but there are sections of your video that I do not think any tracking software will be able to handle. Best of luck.
Thank you I have talk with the biologist and he is either going to get black mice or black bedding and then maintain either the infrared or light on. I really appreciate your help. On Thu, May 25, 2017 at 6:09 PM aharmer notifications@github.com wrote:
Hi Jennifer, you should have a "/" in front of "Users", that should solve your file path problem. I was able to split your video without any issues and attempt some tracking. However, your video is not really suitable for using pathtrackr. First, there are huge changes in lighting from visible light to infrared. Second, there is very low contrast between the animal and the background. And third, the direction of contrast between the animal and bg is not consistent (i.e. sometimes lighter and sometimes darker). So I am afraid you will not get very reliable results. We are working on a v2 of the package that will handle some of these issues, but there are sections of your video that I do not think any tracking software will be able to handle. Best of luck.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/aharmer/pathtrackr/issues/3#issuecomment-304138125, or mute the thread https://github.com/notifications/unsubscribe-auth/AUQziHfm3bGV4-ZCHmkPHwuvZ7M9DlGXks5r9fwLgaJpZM4Njn1T .
--
Jennifer Polack Professor of Computer Science University of Mary Washington 1301 College Ave. Fredericksburg, VA 22401 http://www.jenpolack.com/ (540)654-1318
Just a quick note, in my case the video didn't split but it was because I specified a larger xpix value than the video actually was. Maybe add an error message when that happens? Thanks for the work!
Thanks Antoine, I'll add that at the next update. Glad you're finding it useful.
I have a mp4 video and it creates the directory but does not split the video, does anyone have any suggestions.