|
[Sponsors] |
December 2, 2020, 12:20 |
Making high quality movies in CFD-Post
|
#1 |
Member
DB
Join Date: Apr 2011
Posts: 87
Rep Power: 15 |
Hi All,
I am trying to make an animation in CFD-Post, but for some reason my animation frame quality degrades after the first frame. Here is the link to the video:https://youtu.be/DoNFAGYfKtQ Notice how the quality degrades as the video progresses? Not sure what I am doing wrong. I tried changing the quality and frame rate to no avail. My current settings are shown in the attached images. Anim_Op.png Anim_Adv.png I have tried searching online and on this forum without much success. Any help is appreciated, time is of essence, so if someone could help me soon that would be awesome!! Thanks D.B. Edit: I realize the Youtube video might be of low quality, so attached are the screenshots of the first and last frames of the video. First Frame.jpg Last Frame.jpg
__________________
-D.B Last edited by D.B; December 2, 2020 at 12:26. Reason: I realize the Youtube video might be of low quality |
|
December 2, 2020, 12:59 |
|
#2 |
Super Moderator
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,427
Rep Power: 49 |
Don't export to video directly. Instead, export images, and stitch them together using software like ffmpeg.
|
|
December 2, 2020, 13:27 |
|
#3 |
Member
DB
Join Date: Apr 2011
Posts: 87
Rep Power: 15 |
Thanks! I think that is the best way, although I am curious as to what is the reason behind the low quality when making a video directly
__________________
-D.B |
|
December 2, 2020, 13:44 |
|
#4 |
Super Moderator
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,427
Rep Power: 49 |
Only the folks who implemented this will know. Probably not even them, because if they did, they would have done it differently. Don't get me wrong, you can produce similarly crappy results with ffmpeg, starting from perfectly good still images. Constant bitrate is a big one to avoid, and probably one of the culprits here. Use CRF instead.
But they are in good company. I have not come across any post-processing software that can create videos directly with acceptable quality. |
|
December 2, 2020, 15:24 |
|
#5 |
Senior Member
Erik
Join Date: Feb 2011
Location: Earth (Land portion)
Posts: 1,188
Rep Power: 23 |
External Program of course would be best, but if trying to export the movie directly from post, there are a few things you can try.
I believe the quality is bitrate limited, so high resolution and high frame rate will lower the quality. Moving the animation quickly will also hurt the quality as it can't be as efficiently compressed. Things to try: Set MPEG to custom instead of high, uncheck variable bitrate, and turn it all the way up 10000000. Use 24 frames per second instead of 50. Only half the information is required and 24 is sufficient. Lower the resolution. I use PPM instead of JPEG, but don't know if that matters or not. You may want to use a solid white background, though this may not do anything. |
|
December 2, 2020, 15:44 |
|
#6 |
Member
DB
Join Date: Apr 2011
Posts: 87
Rep Power: 15 |
Thanks Eric,
Will try it and update with the results
__________________
-D.B |
|
December 2, 2020, 17:13 |
|
#7 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144 |
I have played with MPEG settings over and over and often had problems with it. I have had much more success with Flash format. If MPEG does not work for you, try Flash.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
|
December 2, 2020, 17:19 |
|
#8 |
Super Moderator
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,427
Rep Power: 49 |
Another advantage of exporting images: You only have to do it once. If you are not satisfied with how the video looks afterwards, you change the settings of your video encoder, and have your new video in a matter of seconds. With full control of what is going on, eliminating the guessing. Instead of running the whole post-processing again, and hoping for a better result.
I could go on, but I think you get my point by now: exporting the video directly is the inferior solution in every possible way. |
|
December 4, 2020, 10:29 |
|
#9 |
Member
DB
Join Date: Apr 2011
Posts: 87
Rep Power: 15 |
Agreed, I think I am never going back to exporting just videos, the quality is drastically different, I think it is the compression in the back-end which is the issue over here, the programmers tried to get away with compressing the subsequent frames a bit more than the first frame.
Also the video playback speed, you have so much more control to accelerate and decelerate individual portions of the video, like showing in normal speed and then suddenly showing in slow-mo to emphasize a point.
__________________
-D.B |
|
December 5, 2020, 11:05 |
|
#10 |
Senior Member
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,928
Rep Power: 28 |
My experience is that wmv-format is quite okay wrt quality. Controlling speed is however undoable. Therefore I always export the picture to a separate folder and convert these to an animation. For this I use Fast Movie Processor.
|
|
December 14, 2020, 01:03 |
|
#11 |
Member
DB
Join Date: Apr 2011
Posts: 87
Rep Power: 15 |
I tried to find it to no avail. Can you send me a link where I can download this?
__________________
-D.B |
|
June 20, 2021, 22:42 |
|
#12 |
Member
DB
Join Date: Apr 2011
Posts: 87
Rep Power: 15 |
Hi,
I actually took some suggestions from the post and compiled my own movie from the individual frames and it worked. I think there is an inherent compression in ANSYS when it makes videos, so using the individual frames does work.
__________________
-D.B |
|
Tags |
animation, cfd - post, postprocessing |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[foam-extend.org] Problems installing foam-extend-4.0 on openSUSE 42.2 and Ubuntu 16.04 | ordinary | OpenFOAM Installation | 19 | September 3, 2019 19:13 |
Using CFD Post for OpenFoam results | Karpfen | OpenFOAM Post-Processing | 3 | January 19, 2018 09:48 |
On the CFD market and trends | sbaffini | Main CFD Forum | 14 | June 13, 2017 12:48 |
Post-processing star ccm+ results in Ansys CFD Post | sidharath | STAR-CCM+ | 4 | April 10, 2017 12:49 |
High quality movie from CFX post | HMR | CFX | 0 | February 17, 2011 21:31 |