CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

Making high quality movies in CFD-Post

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree2Likes
  • 1 Post By flotus1
  • 1 Post By Gert-Jan

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 2, 2020, 12:20
Default Making high quality movies in CFD-Post
  #1
D.B
Member
 
DB
Join Date: Apr 2011
Posts: 86
Rep Power: 11
D.B is on a distinguished road
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
D.B is offline   Reply With Quote

Old   December 2, 2020, 12:59
Default
  #2
Senior Member
 
flotus1's Avatar
 
Alex
Join Date: Jun 2012
Location: Germany
Posts: 2,680
Rep Power: 38
flotus1 has a spectacular aura aboutflotus1 has a spectacular aura about
Don't export to video directly. Instead, export images, and stitch them together using software like ffmpeg.
flotus1 is offline   Reply With Quote

Old   December 2, 2020, 13:27
Default
  #3
D.B
Member
 
DB
Join Date: Apr 2011
Posts: 86
Rep Power: 11
D.B is on a distinguished road
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
D.B is offline   Reply With Quote

Old   December 2, 2020, 13:44
Default
  #4
Senior Member
 
flotus1's Avatar
 
Alex
Join Date: Jun 2012
Location: Germany
Posts: 2,680
Rep Power: 38
flotus1 has a spectacular aura aboutflotus1 has a spectacular aura about
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.
D.B likes this.
flotus1 is offline   Reply With Quote

Old   December 2, 2020, 15:24
Default
  #5
Senior Member
 
Erik
Join Date: Feb 2011
Location: Earth (Land portion)
Posts: 1,017
Rep Power: 20
evcelica is on a distinguished road
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.
evcelica is offline   Reply With Quote

Old   December 2, 2020, 15:44
Default
  #6
D.B
Member
 
DB
Join Date: Apr 2011
Posts: 86
Rep Power: 11
D.B is on a distinguished road
Thanks Eric,

Will try it and update with the results
__________________
-D.B
D.B is offline   Reply With Quote

Old   December 2, 2020, 17:13
Default
  #7
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 16,595
Rep Power: 128
ghorrocks is a jewel in the roughghorrocks is a jewel in the roughghorrocks is a jewel in the roughghorrocks is a jewel in the rough
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.
ghorrocks is offline   Reply With Quote

Old   December 2, 2020, 17:19
Default
  #8
Senior Member
 
flotus1's Avatar
 
Alex
Join Date: Jun 2012
Location: Germany
Posts: 2,680
Rep Power: 38
flotus1 has a spectacular aura aboutflotus1 has a spectacular aura about
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.
flotus1 is offline   Reply With Quote

Old   December 4, 2020, 10:29
Default
  #9
D.B
Member
 
DB
Join Date: Apr 2011
Posts: 86
Rep Power: 11
D.B is on a distinguished road
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
D.B is offline   Reply With Quote

Old   December 5, 2020, 11:05
Default
  #10
Senior Member
 
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,292
Rep Power: 20
Gert-Jan will become famous soon enough
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.
D.B likes this.
Gert-Jan is offline   Reply With Quote

Old   December 14, 2020, 01:03
Default
  #11
D.B
Member
 
DB
Join Date: Apr 2011
Posts: 86
Rep Power: 11
D.B is on a distinguished road
I tried to find it to no avail. Can you send me a link where I can download this?

Quote:
Originally Posted by Gert-Jan View Post
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.
__________________
-D.B
D.B is offline   Reply With Quote

Reply

Tags
animation, cfd - post, postprocessing

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
On the CFD market and trends sbaffini Main CFD Forum 16 September 1, 2020 11:16
[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
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


All times are GMT -4. The time now is 22:33.