Ruby created images not ok?
-
i have created a set of images with the code
view.write_image(imagename,width,height,true)Those images i want to convert towards a movie based on command line driven ffmpeg
When i use standard commands the movies are created but only on some machines and some media players they are playable
When i use extended commands eg. specifying the codec no movie is createdApp. the images generated by Sketchup (both jpg and bmp) have damaged headers so the movies are not generated.
Anyone knows if the created images by Sketchup^are completely ok, or are there also problems in other applications/scripts
-
@pout said:
i have created a set of images with the code
view.write_image(imagename,width,height,true)Those images i want to convert towards a movie based on command line driven ffmpeg
When i use standard commands the movies are created but only on some machines and some media players they are playable
When i use extended commands eg. specifying the codec no movie is createdApp. the images generated by Sketchup (both jpg and bmp) have damaged headers so the movies are not generated.
Anyone knows if the created images by Sketchup are completely ok, or are there also problems in other applications/scripts
If you are exporting a series of scenes as images why not do it with the Animation exporter but specify PNG files rather than a movie ? They they are made in one go without needing coding ?
Sketchup's images are OK BUT you need to set all of the options available for a particular image file type. For example jpeg can have more that you shewed.
Here's an example of passing a hash of options as 'keys' to the image exporter... http://code.google.com/apis/sketchup/docs/ourdoc/view.html#write_image -
Hey Tig,
Thx for the answer.
Why i am not using teh animation exporter is because it skips page observers.
Since changing from one page to another invokes a function in my model i cannot use it.That's why i'm looking for an alternative to create movies.
You think it's possible that adding the compression an transparent factor solves the issue?
Cause i have also tried it with images generated by Export-->2D graphic and that had the same error.Thx!
Advertisement