Video quality

121 views
Skip to first unread message

Luke

unread,
Jun 22, 2017, 5:18:42 PM6/22/17
to Jaamsim Users Discussion Group
Harry,
Is there any way (even change the code) to get better quality of .avi movie from JaamSim?
If changes in code are required, can you advise where?

All graphics seems to be ragged (in JaamSim they looks great).

I know, that .avi file size can be bigger, but that is not a problem.

Luke

Harry King

unread,
Jun 22, 2017, 7:09:29 PM6/22/17
to Jaamsim Users Discussion Group
Luke,

There should not be any significant difference in video quality unless you have chosen too small a size for the CaptureArea input. If you attach your input file, I can try it myself.

Harry

Luke

unread,
Jun 23, 2017, 2:40:16 AM6/23/17
to Jaamsim Users Discussion Group
Harry,
On the beginning I should tell you why I asked for advice.
Usually I prepare big models and record them - they take a lot of space on the screen. When I record them I use VLC video player to open them (Open Source, http://www.videolan.org/vlc/download-windows.html). In VLC you can zoom-in specific region and just "play" with video to focus on important areas. So if video has many items you can just observe e.g. specific Server. However, even without zoom-in some graphics looks bad (not as nice as in JaamSim). In JaamSim you can zoom-in and quality of graphics seems to be the same (.png graphics).

So far:
I choose maximum size which I could (resolution of monitor: 1920 x 1080 and full screen of View1).
I have attached my example small file (checked it internally) with my graphic to present Server.

I would be grateful if you can check it on your side.

As I said, the size of output file is not a problem - nowadays transfer and hard drives are big to store it. Anyway, Its always a possibility to compress file to MP4.
My intention is to get high quality video.

P.S. There is also a limit in capture size to 3000.

I was wondering, that maybe implementing VP9 codec can help? (https://en.wikipedia.org/wiki/VP9)

Test.zip

Harry King

unread,
Jun 25, 2017, 1:00:17 AM6/25/17
to Jaamsim Users Discussion Group
Luke,
 
Usually I prepare big models and record them - they take a lot of space on the screen.

HK - In your test example, you recorded a bigger area than your model occupied. You would get better resolution in your video by setting your view window to occupy the full 1920x1080 area (so that it matches the video capture) and adjust the zoom level so that the model fills the whole window. 
 
In VLC you can zoom-in specific region and just "play" with video to focus on important areas. So if video has many items you can just observe e.g. specific Server.

HK - VLC's zoom function just crops the image to the selected area. The result will appear more pixelated because you are now looking more closely at the pixels that were captured.
 
However, even without zoom-in some graphics looks bad (not as nice as in JaamSim). In JaamSim you can zoom-in and quality of graphics seems to be the same (.png graphics).

HK - JaamSim's icon's are 256x256 so they have fairly good resolution. All the other graphics are vector-based -- they will never look pixelated no matter how close you zoom in. However, when you capture a video, the icons are projected onto the virtual screen at whatever resolution you have chosen -- you don't get the full 256x256 for an icon unless you have already zoomed in on it.
 
I have attached my example small file (checked it internally) with my graphic to present Server.

I would be grateful if you can check it on your side.

HK - The video capture in your model is working correctly. If you want to look at different parts of the model during the video, you might try the Script object to change the view camera around as the video is captured. It's not one of the better developed parts of JaamSim, but we use it successfully on most of the video we make ourselves.
 
I was wondering, that maybe implementing VP9 codec can help? (https://en.wikipedia.org/wiki/VP9)

HK - VP9 will just make the video file smaller. It won't change the quality of the images.

Harry

Luke

unread,
Jun 28, 2017, 7:08:40 AM6/28/17
to Jaamsim Users Discussion Group
Harry,
Thank you for help.

Luke
Reply all
Reply to author
Forward
0 new messages