kristinbranson / JAABA

Janelia Animal Behavior Detector
Other
76 stars 30 forks source link

Error when opening movie #335

Closed xneven closed 4 years ago

xneven commented 4 years ago

Hello, I'm trying out JAABA for the first time. I've specified the experiment directory containing my video and trx.mat file, however, after the missing perframe files are successfully generated and matlab tries to open the video i get the following error:

image

A bit of the error message is missing at the top because this freezes matlab and I can't scroll up, I have to kill the process to try again.

I've tried using .mov and .avi formats, which doesn't make a difference. I generated my own trx.mat files because I am using tracking data from the new multianimal DeepLabCut, for which the createfromDeepLabCut function in APT has not been updated, so perhaps errors in my trx.mat might be responsible?

mkabra commented 4 years ago

Part of the error message is clipped. Can you send that? Most likely the problem is due to missing codecs on the machine. Can you open the movie using Matlab's VideoReader function ( https://www.mathworks.com/help/matlab/ref/videoreader.html) which is the underlying function that JAABA uses to open the video in most cases?

Mayank

On Fri, Jul 24, 2020 at 11:46 PM xneven notifications@github.com wrote:

Hello, I'm trying out JAABA for the first time. I've specified the experiment directory containing my video and trx.mat file, however, after the missing perframe files are successfully generated and matlab tries to open the video i get the following error:

[image: image] https://urldefense.com/v3/__https://user-images.githubusercontent.com/66742593/88422018-73103880-cde1-11ea-9245-0925b02634ca.png__;!!Eh6p8Q!Uy7jI0F2Q0HuJIxVF4_JEHxMrNnhldeA25vTK51MDT7SbT7KtpKiqhPoe2HhfxZDBpk$

A bit of the error message is missing at the top because this freezes matlab and I can't scroll up, I have to kill the process to try again.

I've tried using .mov and .avi formats, which doesn't make a difference. I generated my own trx.mat files because I am using tracking data from the new multianimal DeepLabCut, for which the createfromDeepLabCut function in APT has not been updated, so perhaps errors in my trx.mat might be responsible?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://urldefense.com/v3/__https://github.com/kristinbranson/JAABA/issues/335__;!!Eh6p8Q!Uy7jI0F2Q0HuJIxVF4_JEHxMrNnhldeA25vTK51MDT7SbT7KtpKiqhPoe2Hh8kL_bXM$, or unsubscribe https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AAJNKY2LDMBTWZGSMJ3ELYTR5HFY5ANCNFSM4PG6O6DQ__;!!Eh6p8Q!Uy7jI0F2Q0HuJIxVF4_JEHxMrNnhldeA25vTK51MDT7SbT7KtpKiqhPoe2Hhe9ff7NU$ .

mkabra commented 4 years ago

Oh you did mention why the error message is clipped. Never mind about that. Try out the VideoReader function and maybe send a sample video.

On Mon, Jul 27, 2020 at 2:42 PM Mayank Kabra mayank.kabra@gmail.com wrote:

Part of the error message is clipped. Can you send that? Most likely the problem is due to missing codecs on the machine. Can you open the movie using Matlab's VideoReader function ( https://www.mathworks.com/help/matlab/ref/videoreader.html) which is the underlying function that JAABA uses to open the video in most cases?

Mayank

On Fri, Jul 24, 2020 at 11:46 PM xneven notifications@github.com wrote:

Hello, I'm trying out JAABA for the first time. I've specified the experiment directory containing my video and trx.mat file, however, after the missing perframe files are successfully generated and matlab tries to open the video i get the following error:

[image: image] https://urldefense.com/v3/__https://user-images.githubusercontent.com/66742593/88422018-73103880-cde1-11ea-9245-0925b02634ca.png__;!!Eh6p8Q!Uy7jI0F2Q0HuJIxVF4_JEHxMrNnhldeA25vTK51MDT7SbT7KtpKiqhPoe2HhfxZDBpk$

A bit of the error message is missing at the top because this freezes matlab and I can't scroll up, I have to kill the process to try again.

I've tried using .mov and .avi formats, which doesn't make a difference. I generated my own trx.mat files because I am using tracking data from the new multianimal DeepLabCut, for which the createfromDeepLabCut function in APT has not been updated, so perhaps errors in my trx.mat might be responsible?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://urldefense.com/v3/__https://github.com/kristinbranson/JAABA/issues/335__;!!Eh6p8Q!Uy7jI0F2Q0HuJIxVF4_JEHxMrNnhldeA25vTK51MDT7SbT7KtpKiqhPoe2Hh8kL_bXM$, or unsubscribe https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AAJNKY2LDMBTWZGSMJ3ELYTR5HFY5ANCNFSM4PG6O6DQ__;!!Eh6p8Q!Uy7jI0F2Q0HuJIxVF4_JEHxMrNnhldeA25vTK51MDT7SbT7KtpKiqhPoe2Hhe9ff7NU$ .

xneven commented 4 years ago

Thanks that seemed to be the issue because Ubuntu no longer uses gstreamer0.10-ffmpeg. Solved it by renaming libstdc++.so.6 in rootMATLABfolder/.../sys/os/glnxa64/ to something else like libstdc++.so.6.old so that MATLAB is forced to use Linux defaults :)