Bug 2325032 - Openh264 loop video gets stuck in .mp4
Summary: Openh264 loop video gets stuck in .mp4
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: openh264
Version: 41
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Wim Taymans
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-11-10 20:24 UTC by Xeren Catidil
Modified: 2025-12-16 17:31 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-12-16 17:31:07 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Xeren Catidil 2024-11-10 20:24:25 UTC
After a simple video play, the loop can't bring the .mp4 back to the initial point and play one more time without freezing or playing the audio without video. I believe it must be open264 plugin, since the F40 it had to be manually installed and fedora now reasonably serves it natively.
I am on Fedora 41 KDE x64 wayland.

Also posted on ask fedora others 7 bugs I found:
https://discussion.fedoraproject.org/t/livedistro-needs-to-reboot-if-plays-music/134706
I can add that installing a new software in live-distro also has chances of stucking the reboot with lights on but needs a power shut down to reboot.

Also the keyboard on the current F41 livedistro requires an update to make it work, so for different diacritics keyboards is completely unusable.

Reproducible: Always

Steps to Reproduce:
1. open video (on F41 updates don't require to manually install OPENH64 for firefox, but problem comes from other versions too)
2. on the end it loops
3. video freezes audio continues to loop
Actual Results:  
It will keep looping the audio but with the last frame persistent. 

Expected Results:  
MP4 videos could loop after the end of its reproduction without freezing.

If you manually reclick on somewhere in the timeline it start playing again.

This happens to be in both firefox and mpv. Some tried suggesting installing VLC.
Dragon player though can't play .mp4 natively even that in Fedora 41 firefox can.

Videos are a major feature today, and is very problematic such a simple function on fedora.

Comment 1 Kalev Lember 2024-11-10 21:08:19 UTC
Can you file this upstream at https://github.com/cisco/openh264 please? We only package openh264 on Fedora side and don't develop it.

Comment 2 Anatoli Babenia 2024-11-17 09:25:38 UTC
I can confirm this with Reddit. The platform converts animated gifs to H.264 and they become black after played once and freeze.

Kalev, before filling more upstream issues (I just filled https://github.com/cisco/openh264/issues/3808) can we get 2.5.0 update in F41? I know my first reaction to bugs in outdated versions, so it will save us some time.

Comment 3 Kalev Lember 2024-11-18 11:37:17 UTC
I am not sure we can, sadly :( I've already done a 2.5.0 build for rawhide, and F41 would be trivial, but the issue is getting the builds out due to https://pagure.io/fedora-infrastructure/issue/12112#comment-938325

Let me do the builds now though just so that they are ready to go once infra side is sorted out.

If you want, you could try to build the 2.5.0 rpms locally and see if it helps with this issue - if it doesn't, then it's certainly worth filing it upstream. The procedure for this is something along the lines of 'fedpkg clone -a openh264, cd openh264, git checkout f41, fedpkg mockbuild' and then dnf update to the resulting rpms that mock spits out. To go back to older, Cisco/Fedora-provided builds, dnf distro-sync '*openh264*'

Comment 4 Anatoli Babenia 2024-11-18 12:19:47 UTC
Thanks. I don't know what ODCS, ELN and composes are, so I don't really get the problem with pushing the builds, and why all these things are needed.

For building `openh264` from source, does this `fedpkg mockbuild` build thing in isolation? I'd like to avoid spending space on dev packages that I will never need.

Comment 5 Kalev Lember 2024-11-18 13:41:43 UTC
Yes, mock builds are all done in isolation, so you shouldn't need to install any dev packages beyond fedpkg and mock on your system.
 
As for the infra issue, it's not something I fully understand either :) What is needed from releng/infra side is that they need to sign the new packages and build repository metadata, and send the packages off to Cisco for hosting and host the repository metadata on Fedora side. ODCS is a tool they used for building repository metadata, but it's been recently decommissioned and they haven't figured out a new process for it.

It's all a bit complicated because Fedora can't publish the packages themselves, not even for testing, which is why I asked if you could do a local build.

Comment 6 Anatoli Babenia 2024-11-21 06:57:55 UTC
```
sudo dnf5 install fedpkg
fedpkg clone -a openh264
cd openh264
git switch f41
fedpkg mockbuild
```

Requires root privileges. I expected it to be rootless.
```
Downloading gmp-api-e7d30b9.tar.gz from https://src.fedoraproject.org/repo/pkgs
######################################################################## 100.0%
Downloading openh264-2.5.0.tar.gz from https://src.fedoraproject.org/repo/pkgs
######################################################################## 100.0%

setting SOURCE_DATE_EPOCH=1731110400
Wrote: /home/anatoli/f/openh264/openh264-2.5.0-1.fc41.src.rpm
You are not in the `mock` group. See https://rpm-software-management.github.io/mock/#setup
Authenticating as "root"
```

Running with `sudo` have built it successfully. Now need to understand how to install it.

```
Finish: rpmbuild openh264-2.5.0-1.fc41.src.rpm
Finish: build phase for openh264-2.5.0-1.fc41.src.rpm
INFO: Done(/home/anatoli/f/openh264/openh264-2.5.0-1.fc41.src.rpm) Config(fedora-41-x86_64) 3 minutes 32 seconds
INFO: Results and/or logs in: /home/anatoli/f/openh264/results_openh264/2.5.0/1.fc41
```

Comment 7 Anatoli Babenia 2024-11-21 07:22:30 UTC
```
cd ./results_openh264/2.5.0/1.fc41/
sudo dnf5 install mozilla-openh264-2.5.0-1.fc41.x86_64.rpm openh264-2.5.0-1.fc41.x86_64.rpm
```

Installed sucessfully.
```
Updating and loading repositories:
Repositories loaded.
Package                                                  Arch          Version                                                  Repository                          Size
Upgrading:
 mozilla-openh264                                        x86_64        2.5.0-1.fc41                                             @commandline                     1.1 MiB
   replacing mozilla-openh264                            x86_64        2.4.1-2.fc41                                             @commandline                     1.1 MiB
 openh264                                                x86_64        2.5.0-1.fc41                                             @commandline                     1.1 MiB
   replacing openh264                                    x86_64        2.4.1-2.fc41                                             @commandline                     1.1 MiB

Transaction Summary:
 Upgrading:          2 packages
 Replacing:          2 package

Total size of inbound packages is 844 KiB. Need to download 0 B.
After this operation, 20 KiB extra will be used (install 2 MiB, remove 2 MiB).
Is this ok [y/N]: y
Running transaction
[1/6] Verify package files                                                                                                      100% | 133.0   B/s |   2.0   B |  00m00s
[2/6] Prepare transaction                                                                                                       100% |   2.0   B/s |   4.0   B |  00m01s
[3/6] Upgrading openh264-0:2.5.0-1.fc41.x86_64                                                                                  100% |  25.8 MiB/s |   1.1 MiB |  00m00s
[4/6] Upgrading mozilla-openh264-0:2.5.0-1.fc41.x86_64                                                                          100% |  28.3 MiB/s |   1.1 MiB |  00m00s
[5/6] Removing mozilla-openh264-0:2.4.1-2.fc41.x86_64                                                                           100% | 739.0   B/s |  17.0   B |  00m00s
[6/6] Removing openh264-0:2.4.1-2.fc41.x86_64                                                                                   100% |   8.0   B/s |   9.0   B |  00m01s
Warning: skipped PGP checks for 2 packages from repository: @commandline1.x86_64
Complete!
```

`vlc` and `ffplay` still error out. Firefox probaly needs restart. Rebooting

Comment 8 Anatoli Babenia 2024-11-21 07:52:45 UTC
It is installed, but video still doesn't play. :cry: (

Comment 9 Kalev Lember 2024-11-21 17:44:25 UTC
Oh well :( At least it's clear that it's an upstream issue if you can reproduce it with 2.5.0.

Comment 10 Anatoli Babenia 2024-11-21 21:16:41 UTC
The upstream issue - https://github.com/cisco/openh264/issues/3808

They say it might be hardware acceleration problem, or its absence. Because the @joakim-tjernlund reports it works for him with latest version.

Comment 11 Kalev Lember 2024-11-22 11:42:56 UTC
If I understand it correctly, I think he is saying that maybe the test video works for him because it is getting decoded with something else, e.g. nvdec (NVidia's hardware accelerated decoder) and not openh264.

Comment 12 Anatoli Babenia 2024-11-22 11:53:21 UTC
Need clean VM with no hardware for testings, but then it is not clear how to test (https://github.com/cisco/openh264/issues/3811).

Comment 13 Fedora Admin user for bugzilla script actions 2025-03-17 01:37:06 UTC
This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component.

Comment 14 Adam Williamson (Red Hat non-Fedora) 2025-12-02 01:34:02 UTC
This message is a reminder that Fedora Linux 41 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 41 on 2025-12-15.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '41'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 41 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 15 Samyak Jain (RedHat) 2025-12-16 17:31:07 UTC
Fedora Linux 41 entered end-of-life (EOL) status on 2025-12-15.

Fedora Linux 41 is no longer maintained, which means that it
will not receive any further security or bug fix updates. As a result we
are closing this bug.

If you can reproduce this bug against a currently maintained version of Fedora Linux
please feel free to reopen this bug against that version. Note that the version
field may be hidden. Click the "Show advanced fields" button if you do not see
the version field.

If you are unable to reopen this bug, please file a new report against an
active release.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.