libgdx / gdx-video

A libGDX cross platform video rendering extension
Apache License 2.0
145 stars 50 forks source link

ffmpeg codec arguments #63

Open collinsmith opened 3 years ago

collinsmith commented 3 years ago

Maybe this is outside the scope of this project, but I was wondering if I can customize the parameters of ffmpeg and get a stream decoded from a specific codec into a format that LibGDX can handle. When passing in the raw file, I'm seeing [VideoPlayer::loadFile] Error opening file: Invalid data found when processing input, however vlc can play the file fine, and once I convert the file using -c:v vp8 -c:a libvorbis to a webm video like the test video, it works alright.

image

collinsmith commented 3 years ago

I did a little digging and found https://github.com/libgdx/gdx-video/issues/42#issuecomment-270605032 Are there any plans to expand the included codecs?

dasisdormax commented 10 months ago

Codec support was recently clarified in the README, along with instructions on how to build the desktop version with additional codecs (mainly for MP4 support, but you might also find the right settings for your example).