eps696/aphantasia

Illustrip3D - problems with video output quality

Kinkibit opened this issue · 3 comments

Hi Vadim!

IllusTrip3d is an outstanding tool! Great! Unfortunately, the video generated directly by the Colab notebook is very pixelated and of poor quality. When I stitch the JPGs myself in a video editor, I have jumps and dropouts in between (it also seems to lack 3D depth processing). How and where can I change the values in the notebook so that I have a decent HD output of the video? Thanks in advance for an answer!

All the best!
Patrick

thanks, glad to hear!

yes, mp4 quality is a known issue; unfortunately, ffpb (ffmpeg with progress bar) does not get quality settings right. it could be solved by using slow cpu-based codec (instead of fast gpu-based nvenc), or by dropping progress bar, but i supposed both these features necessary for quick production - as soon as the original frame sequence is saved anyway. i will consider adding optional switch for higher quality conversion.
meanwhile you can try converting jpg sequence fo mp4 with command line ffmeg, like:
ffmpeg -y -i outdir/%05d.jpg -crf 18 outvideo.mp4 (replace outdir and outvideo accordingly).
let me know, if it helped to get better result.

i'm afraid, i didn't quite catch what you mean by "lacking 3D depth after video editing". 3D depth effect is generated by running the [optional] cell "Add 3D depth"; as soon as it's processed, it doesn't matter how you convert the output - it should be there. i also doubt if i can help with dropouts - that sounds like the local video editor problem. did you ensure that the sequence is fully synchronized from google drive to your local disk before conversion?

The dropouts were actually due to the video editor. With ffmpeg the conversion to a high quality video worked wonderfully. This is exactly how I imagined it. Thanks for the help!

i changed fast video conversion on the colab to the slower one, with nearly lossless quality.
i'm closing the issue for now, please reopen if needed.