Skip to content
This repository has been archived by the owner on Apr 28, 2021. It is now read-only.

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

Open
eunjongkim opened this issue Apr 22, 2018 · 2 comments

Comments

@eunjongkim
Copy link

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.

@SimonDanisch
Copy link
Member

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

@eunjongkim
Copy link
Author

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants