GLVisualize.jl icon indicating copy to clipboard operation
GLVisualize.jl copied to clipboard

FFmpeg-converted video not showing properly in some of the standard players

Open eunjongkim opened this issue 7 years ago • 2 comments

Hi,

I noticed that the *.mp4 videos I have created using GLVisualize.jl doesn't seem to show properly in some of the standard video players like Quicktime Player or Windows Media Player. It works with VLC though.

I'm guessing this is related to the following issue: link to stackoverflow I believe this could be solved by changing some of the options for ffmpeg encoding, which is used to create videos in the package.. Does anyone have thoughts on this ? Is there any way I can change the ffmpeg options for encoding the video?

Thanks in advance.

eunjongkim avatar Apr 22 '18 06:04 eunjongkim

Yes! I figured that out as well and changed it in Makie: https://github.com/JuliaPlots/Makie.jl/blob/master/src/plotsbase/output.jl#L134 (the -pix_fmt yuv420p should be the important change). How did you create an mp4 with GLVisualize? I just realize, that I only offer mkv & webm: https://github.com/JuliaGL/GLVisualize.jl/blob/master/src/videotool.jl#L42

SimonDanisch avatar Apr 22 '18 13:04 SimonDanisch

I see. Currently, I was using online video converters like this to re-convert the generated mp4 file to another mp4 (it's a little artificial though..) and it worked fine. I think you can add the same flag to videotool.jl to make this work.

One question: is there any natural way of creating .gif images in GLVisualize?

eunjongkim avatar Apr 22 '18 17:04 eunjongkim