13
$\begingroup$

I'm using Mathematica 12.1 on windows 10 (Microsoft Windows [Version 10.0.16299.1686])

When going to the Help file about VideoPlay I tried the standard example and it crashes the Kernel.

For me it's easy to simulate I just use:

stream = VideoStream["ExampleData/Caminandes.mp4"]
Dynamic[stream["CurrentFrame"]]
VideoPlay[stream]

The errors I get:

enter image description here

enter image description here

When using another piece of code:

stream = VideoStream["ExampleData/bullfinch.mkv"]
Panel@Column[{
   Dynamic[stream["CurrentFrame"]],
   Slider[
    Dynamic[QuantityMagnitude[stream["Position"], 
      "Seconds"], (stream["Position"] = #) &], {0, 
     QuantityMagnitude[stream["Duration"], "Seconds"]}],
    Button[
    Dynamic[If[stream["Status"] === "Playing", "Pause", "Play"]],
    If[stream["Status"] === "Playing", VideoPause[stream], 
     VideoPlay[stream]]
    ]
   }, Alignment -> Center]

I can scroll through the frames but pressing Play will result in the same errors. Using 1 or 2 monitors doesn't make a difference.

Any thoughts?

$\endgroup$
7
  • $\begingroup$ Same on macOS. I reported it an hour ago. $\endgroup$
    – Szabolcs
    Mar 19 '20 at 10:05
  • 1
    $\begingroup$ Same on Windows, filed a report 2 hours ago. $\endgroup$ Mar 19 '20 at 10:13
  • $\begingroup$ Should I file a report also? $\endgroup$
    – Lou
    Mar 19 '20 at 10:17
  • 2
    $\begingroup$ This bug is being fixed via paclet update. $\endgroup$
    – ilian
    Mar 19 '20 at 13:48
  • 2
    $\begingroup$ Many components are in paclet form, but the kernel, FE, runtime library and some other libraries cannot currently be updated in this way. I think that would be a desirable feature. $\endgroup$
    – ilian
    Mar 19 '20 at 18:09
14
$\begingroup$

This bug has been fixed by a paclet update.

This would be applied automatically whenever the functionality is used in a new kernel (as long as the paclet manager has updated its local site index, which typically happens once per session).

To force an immediate installation, evaluate

PacletSiteUpdate /@ PacletSites[];

PacletInstall["FFmpegTools"]

which should result in FFmpegTools version 1.0.1 being installed.

$\endgroup$
2
  • $\begingroup$ Is version 12.1 available across all product lines including WolframOne / WolframDesktop not just Mathematica? $\endgroup$
    – user13892
    Mar 19 '20 at 19:39
  • $\begingroup$ The 12.1 versions of these should be available soon, they are currently in the QA pipeline for final release $\endgroup$
    – ilian
    Mar 19 '20 at 19:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.