[GH-ISSUE #2215] Gran Turismo double video playback #804

Closed
opened 2026-03-17 16:43:32 +03:00 by kerem · 11 comments
Owner

Originally created by @daniel229 on GitHub (Jun 11, 2013).
Original GitHub issue: https://github.com/hrydgard/ppsspp/issues/2215

01

the log is too big
https://docs.google.com/file/d/0BzGZGDfFE68zSmdlNEdydnI1TXM/edit?usp=sharing

Originally created by @daniel229 on GitHub (Jun 11, 2013). Original GitHub issue: https://github.com/hrydgard/ppsspp/issues/2215 ![01](https://f.cloud.github.com/assets/3481559/636634/0ac9f2b6-d28a-11e2-96f3-b96d6ff43a21.png) the log is too big https://docs.google.com/file/d/0BzGZGDfFE68zSmdlNEdydnI1TXM/edit?usp=sharing
kerem closed this issue 2026-03-17 16:43:38 +03:00
Author
Owner

@Squall-Leonhart commented on GitHub (Jun 14, 2013):

most likely related http://www.gtplanet.net/why-gran-turismo-psp-looks-so-good/

<!-- gh-comment-id:19444056 --> @Squall-Leonhart commented on GitHub (Jun 14, 2013): most likely related http://www.gtplanet.net/why-gran-turismo-psp-looks-so-good/
Author
Owner

@daniel229 commented on GitHub (Jun 14, 2013):

@unknownbrackets
@oioitff
I test the game again,video seems totally broken,only black screen,no sound, since this commit github.com/hrydgard/ppsspp@6b84743082

log:
http://pastebin.com/MYexBh7n

<!-- gh-comment-id:19445627 --> @daniel229 commented on GitHub (Jun 14, 2013): @unknownbrackets @oioitff I test the game again,video seems totally broken,only black screen,no sound, since this commit https://github.com/hrydgard/ppsspp/commit/6b847430824c6119e006588e2caa0de68d76f017 log: http://pastebin.com/MYexBh7n
Author
Owner

@oioitff commented on GitHub (Jun 14, 2013):

I notice that game call:

sceMpegRegistStream(09ca1f80, 1, 1)

That means it tried to play second audio stream in mpeg stream. If the second audio stream doesn't exist, then audio timestamp would keep 0. I guess that's why it's broken.

<!-- gh-comment-id:19447786 --> @oioitff commented on GitHub (Jun 14, 2013): I notice that game call: ``` sceMpegRegistStream(09ca1f80, 1, 1) ``` That means it tried to play second audio stream in mpeg stream. If the second audio stream doesn't exist, then audio timestamp would keep 0. I guess that's why it's broken.
Author
Owner

@unknownbrackets commented on GitHub (Jun 14, 2013):

It also calls scePsmfGetNumberOfSpecificStreams() which appears to be broken atm.

-[Unknown]

<!-- gh-comment-id:19460946 --> @unknownbrackets commented on GitHub (Jun 14, 2013): It also calls `scePsmfGetNumberOfSpecificStreams()` which appears to be broken atm. -[Unknown]
Author
Owner

@oioitff commented on GitHub (Jun 14, 2013):

In scePsmfGetNumberOfSpecificStreams(), I think we could return values from PSMF::currentVideoStreamNum and PSMF::currentAudioStreamNum.
Btw, I wonder if this is wrong in Psmf::Psmf :

stream = new PsmfStream(PSMF_AVC_STREAM, 0);
...
stream = new PsmfStream(PSMF_ATRAC_STREAM, 1);

Maybe it should be:

stream = new PsmfStream(PSMF_AVC_STREAM, currentVideoStreamNum);
...
stream = new PsmfStream(PSMF_ATRAC_STREAM, currentAudioStreamNum);

Maybe that's why the game called sceMpegRegistStream with the wrong streamNum.

<!-- gh-comment-id:19463135 --> @oioitff commented on GitHub (Jun 14, 2013): In scePsmfGetNumberOfSpecificStreams(), I think we could return values from PSMF::currentVideoStreamNum and PSMF::currentAudioStreamNum. Btw, I wonder if this is wrong in Psmf::Psmf : ``` stream = new PsmfStream(PSMF_AVC_STREAM, 0); ... stream = new PsmfStream(PSMF_ATRAC_STREAM, 1); ``` Maybe it should be: ``` stream = new PsmfStream(PSMF_AVC_STREAM, currentVideoStreamNum); ... stream = new PsmfStream(PSMF_ATRAC_STREAM, currentAudioStreamNum); ``` Maybe that's why the game called sceMpegRegistStream with the wrong streamNum.
Author
Owner

@unknownbrackets commented on GitHub (Jun 14, 2013):

Hmm, that sounds right. But I wonder how it numbers them? For example, FFmpeg numbers all streams in the file uniquely, e.g. 0 might be video, 1 English audio, 2 Japanese audio, 3 French audio, and 4 might be subtitles. If 0/1 were working before, that kinda sounds right.

Unfortunately I don't have this game, I dunno if I have any psmfs that have multiple audio streams to test against...

-[Unknown]

<!-- gh-comment-id:19470608 --> @unknownbrackets commented on GitHub (Jun 14, 2013): Hmm, that sounds right. But I wonder how it numbers them? For example, FFmpeg numbers all streams in the file uniquely, e.g. 0 might be video, 1 English audio, 2 Japanese audio, 3 French audio, and 4 might be subtitles. If 0/1 were working before, that kinda sounds right. Unfortunately I don't have this game, I dunno if I have any psmfs that have multiple audio streams to test against... -[Unknown]
Author
Owner

@oioitff commented on GitHub (Jun 14, 2013):

The stream numbers in ffmpeg is a bit different from mpeg file.
In mpeg file, each kinds of stream channel start from 0;
In ffmpeg, it try to rename the all the stream number together from 0, and it only marks those recognized stream. So right now most pmf files only have one stream in ffmpeg, because atrac3plus audio stream are not recognized.

<!-- gh-comment-id:19471762 --> @oioitff commented on GitHub (Jun 14, 2013): The stream numbers in ffmpeg is a bit different from mpeg file. In mpeg file, each kinds of stream channel start from 0; In ffmpeg, it try to rename the all the stream number together from 0, and it only marks those recognized stream. So right now most pmf files only have one stream in ffmpeg, because atrac3plus audio stream are not recognized.
Author
Owner

@thedax commented on GitHub (Jun 14, 2013):

Issue is fixed in Revision 1348, but sound playback during the intro video is now broken. It began sometime between 1299 and 1348.

Debug log from 1348: http://www.mediafire.com/download/y2zgm3tw2q9t93y/ppsspp-debug.7z

<!-- gh-comment-id:19479395 --> @thedax commented on GitHub (Jun 14, 2013): Issue is fixed in Revision 1348, but sound playback during the intro video is now broken. It began sometime between 1299 and 1348. Debug log from 1348: http://www.mediafire.com/download/y2zgm3tw2q9t93y/ppsspp-debug.7z
Author
Owner

@unknownbrackets commented on GitHub (Jun 14, 2013):

Hmm, smells questionable:

sceMpegRegistStream(09ca1f80, 0, -1)

-[Unknown]

<!-- gh-comment-id:19479941 --> @unknownbrackets commented on GitHub (Jun 14, 2013): Hmm, smells questionable: sceMpegRegistStream(09ca1f80, 0, -1) -[Unknown]
Author
Owner

@solarmystic commented on GitHub (Jun 14, 2013):

@thedax

Are you implying that 1299 is the last build to have functional sound playback in the GT intro video? And that the build right after 1299 is the problematic one?

<!-- gh-comment-id:19480199 --> @solarmystic commented on GitHub (Jun 14, 2013): @thedax Are you implying that 1299 is the last build to have functional sound playback in the GT intro video? And that the build right after 1299 is the problematic one?
Author
Owner

@daniel229 commented on GitHub (Jun 15, 2013):

fixed in https://github.com/hrydgard/ppsspp/pull/2280

<!-- gh-comment-id:19505081 --> @daniel229 commented on GitHub (Jun 15, 2013): fixed in https://github.com/hrydgard/ppsspp/pull/2280
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ppsspp#804
No description provided.