-
Notifications
You must be signed in to change notification settings - Fork 374
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ffmpeg dumper with "Capture OSD" creates the first segment with 0 frames in it #3552
Comments
Did a quick test and I can confirm two files get created. The first one seems like an erroneously generated file because it doesn't seem to contain any data, while the second file contains the video as normal. |
@Morilli Were you able to play the second video normally? I couldn't get the second video to play, and instead, it would crash my Windows Media Player application on me. |
Yeah you probably need a better video player than windows' default for these video files; it should play fine in your browser though. |
@Morilli Now can confirm the second video can be played back on a newly installed VLC Media Player. It's a shame that the default Windows Media Player can't open the file anymore. |
The code is correct, or at least it correctly implements the desired behaviour according to that comment. (UX needs work, as usual...) |
Creating a segment with 0 frames can't be correct. It's taking wrong values when initializing an ffmpeg recording, probably assumes OSD is not captured, and then actually sees that resolution is different and splits. |
It's not desired behavior, but it's also not grossly wrong. If you blindly stitch together all of the segments, it will work fine; if you ignore the empty segment, it will work fine. |
How about something like one option saying |
Summary
As shown here in this GIF:
I'm attempting to record on-screen display (OSD) text shown from the RAM Watch window. When about to attempt recording, I noticed that the option to "enable Capture OSD" would enable both the "Capture OSD" and the "Capture Lua" option.
Morilli mentioned this looks wrong. And showed a screenshot of a code snippet suggesting it's wrong:
BizHawk/src/BizHawk.Client.EmuHawk/MainForm.Events.cs
Lines 565 to 571 in 3c3ab65
After enabling both options, an attempt to make a small test encoding was made, using the FFmpeg writer, with MP4 default configurations and flags.
It produced 2 movie files, which I named as "test", both of which cannot be played back on a Windows Media Player application. I have attached the 2 movie files here:
test.mp4:
https://user-images.githubusercontent.com/6444116/216873377-d56c7f54-90cf-4d8a-9b39-33bd39cf313a.mp4
test_1.mp4:
https://user-images.githubusercontent.com/6444116/216873378-50e1e34f-c329-457b-92ec-6240a7d79587.mp4
I used the game River City Ransom EX, with a simple RAM Watch properties file (.WCH file, compressed into a ZIP file)
test_ram_watch.zip
SHA-1: 64D0B723AE4EB3F3589B535FB935618F2769229F
CRC32: 8686436E
Thus far, only tested in Bizhawk 2.9 RC2.
Repro
_1
suffix.Output
No known output exceptions nor error log messages.
Host env.
The text was updated successfully, but these errors were encountered: