Giter Site home page Giter Site logo

Comments (6)

benlyyan avatar benlyyan commented on August 22, 2024

hi, Teja
Try mgsam = mgvideosample(mg,[2,2]) without 'Sampling' to see if error again

from mgt.

shockmonger avatar shockmonger commented on August 22, 2024

Hi!
This time im getting this:
mgsam = mgvideosample(mg,[2,2]);
_sampling video_
Warning: No video frames were written to this file. The file may be invalid.

In VideoWriter/close (line 267)
In VideoWriter/delete (line 202)
In mgvideosample (line 19)
Undefined function or variable 'progmeter'.

Error in mgvideosample (line 42)
progmeter(i,numf);

from mgt.

benlyyan avatar benlyyan commented on August 22, 2024

I run it ok.But your question is important...
try to see if function progmeter is in you MGT. If not, add it
to see what's wrong, you can check if mg.video.obj.CurrentTime = 0, if not, set it 0. Try it again.
if still errors, try to run mgsam = mgvideosample(mg,[2,2],'newvideo.avi');
Please tell the results later

from mgt.

benlyyan avatar benlyyan commented on August 22, 2024

It could be something like if you reuse sampled mg to down sample it again without giving sampled video new name, matlab can not read videoframe from the sampled video, since the function by default initiate new vieo named samplevideo.avi again.

from mgt.

shockmonger avatar shockmonger commented on August 22, 2024

the problem seems to be with progmeter, as you said, although the progmeter
error comes only when i remove the 'sampling' argument from the function.

I tried to run passing the 'newvideo.aiv' also, but it didn't work, neither
with 'newvideo.avi'.

Tried setting current time to 0 also, it just seems to reset itself after i
run the function, and produces the same error. Is it a dependency problem
on some libraries? I'll try to look into it more as well.

On Mon, Jun 13, 2016 at 2:40 PM, benlyyan [email protected] wrote:

It could be something like if you reuse sampled mg to down sample it again
without giving sampled video new name, matlab can not read videoframe from
the sampled video, since the function by default initiate new vieo named
samplevideo.avi again.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#15 (comment), or mute
the thread
https://github.com/notifications/unsubscribe/ADOZjf8uX8t5jdaL4D0mvUJhxzYHJN_3ks5qLU_RgaJpZM4I0IE_
.

from mgt.

benlyyan avatar benlyyan commented on August 22, 2024

It should be nothing to do with progmeter. Other functions like mgvideocrop, mgvideoadjust, etc have progmeter called inside. You can simply run other functions(mgvideocrop) to see if progmeter has problem. I see that the problem is VideoWriter failing to write.
I will be IMV tomorrow, if you are free sometime, we can check it.

from mgt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.