visit-dav / visit

VisIt - Visualization and Data Analysis for Mesh-based Scientific Data
https://visit.llnl.gov
BSD 3-Clause "New" or "Revised" License
445 stars 117 forks source link

Un-available movie encodings don't give a good error message #2119

Open aowen87 opened 5 years ago

aowen87 commented 5 years ago

Trying out different movie encodings, and ones that aren't supported or aren't available on the machine, VisIt doesn't give a good error message, and does not generate static images for later encoding. This happens for AVI, DIVX, MPEG 4, SWF, WMV: This message prints in a popup:VisIt could not interpret the script to create your movie so no movie was generated. This messages is printed in the cli terminal:Traceback (most recent call last): File "", line 17, in File "/home/biagas2/Branches/trunk/Build//bin/makemovie.py", line 2275, in GenerateFrames self.tmpDir = self.CreateTemporaryDirectory() File "/home/biagas2/Branches/trunk/Build//bin/makemovie.py", line 1693, in CreateTemporaryDirectory if self.formatInfo[fmt][self.FMT_ENCODER] != None:KeyError: '' For 'Streaming movie' option, img2sm is not available on my machine, but VisIt gives a very informative message and static images are created for hand-encoding later.

-----------------------REDMINE MIGRATION----------------------- This ticket was migrated from Redmine. As such, not all information was able to be captured in the transition. Below is a complete record of the original redmine ticket.

Ticket number: 2113 Status: Pending Project: VisIt Tracker: Bug Priority: High Subject: Un-available movie encodings don't give a good error message Assigned to: - Category: - Target version: - Author: Kathleen Biagas Start: 01/12/2015 Due date: % Done: 0% Estimated time: Created: 01/12/2015 06:46 pm Updated: 02/17/2015 04:33 pm Likelihood: 3 - Occasional Severity: 3 - Major Irritation Found in version: 2.8.2 Impact: Expected Use: OS: All Support Group: Any Description: Trying out different movie encodings, and ones that aren't supported or aren't available on the machine, VisIt doesn't give a good error message, and does not generate static images for later encoding. This happens for AVI, DIVX, MPEG 4, SWF, WMV: This message prints in a popup:VisIt could not interpret the script to create your movie so no movie was generated. This messages is printed in the cli terminal:Traceback (most recent call last): File "", line 17, in File "/home/biagas2/Branches/trunk/Build//bin/makemovie.py", line 2275, in GenerateFrames self.tmpDir = self.CreateTemporaryDirectory() File "/home/biagas2/Branches/trunk/Build//bin/makemovie.py", line 1693, in CreateTemporaryDirectory if self.formatInfo[fmt][self.FMT_ENCODER] != None:KeyError: '' For 'Streaming movie' option, img2sm is not available on my machine, but VisIt gives a very informative message and static images are created for hand-encoding later.

Comments:

rusu24edward commented 4 years ago

Perhaps we should only present the encoding options that are available on the user's machine?