Video codec broken with last updates (hrev57898)

Hi,

Problem: Some videos cannot be played with the latest updates (hrev57898, hrev57909), The same videos who can be played well with older versions of Haiku (eg. hrev57609).

How video play was tested:

  • media player (only audio codec works), vlc (video codec is stucked at the first frame, audio got stuck after 3-4s), mpv (video dont work, audio works), smplayer (same as mpv), Falkon (same as mpv).

I also created a new simple ffmpeg video based on one png file and a mp3 file and I got the same result: video can be played only with the oldest hrev(s).

I dont know if is usefull for testing, but I used this command to create the video:

ffmpeg -r 1 -loop 1 -i image.png -i audio.mp3 -acodec copy -r 1 -shortest -vf scale=1280:720 out.mp4

1 Like

Can you open a ticket for this? and also add the information with which video codecs you see this?

Ahoy @andianton ,

I may think wrong, but as I had not seen your ticket, you may be a new member, and new in Haiku stuff and still not familiar with Haiku services/tools.

You can find info abiout bug reporting HERE, and if you follow the steps described there, you are going to have an access to the reporting tool,
and you can describe your problem as nephele suggested to you.above.

Good luck and welcome !

And I beg for pardon, if you are famiiar with the tools , just you had not came back yet to check out the responses to your post.

I know Haiku for about a decade and I use it as my unique operating system for lets say two years, so I knew a lot of apps from the depot and their behavior from one version to another, because I use Haiku all day long for about everything (coding, text editing, video and sound editing, web, games). Yes, Im new with the bug report tools and all the other stuff. I will create a tester account, maybe I can help with testing/reporting different stuff.

1 Like

I don’t see any interesting changes for this problem in MediaPlayer itself, and the fact that it also happens in ported apps seems to point somewhere else. The ffmpeg update to version 6 might be the behaviour changer. That’s hrev57668 if you want to confirm it.

Browsing around I’ve found stuff like ffmpeg - How to encode a video at 30 FPS from images taken at 7 FPS - Video Production Stack Exchange, where you can find

But most players can’t play very low frame rates (about 6 fps or lower).

And changing the output framerate in you example command to something higher seems to make MediaPlayer play it right.

The bug was reported and was fixed in the hrev57951. The same issue affected both mednafen and video players. Now everything is going back to normal, thanks to the dev team.

1 Like