Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Video Encoding > MPEG-2 Encoding
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 30th September 2006, 20:46   #1  |  Link
Zhelkus
VG Rippah
 
Join Date: Aug 2006
Posts: 51
Sofdec MPEG1 video stream with wrong colours...

I've been ripping the MPEG streams from the Sonic Heroes (PC) SFD movie files.

For the uninformed: Sega and a few other game companies use a video file format whose extension is SFD (Sofdec). These are containers that have a regular MPEG1 video stream and a particular sound format known as ADX that can be easily converted to WAV.

I've successfully ripped 12 video streams (using TMPGEnc Plus 2.5) but the other 10 seem to be screwed up (they show the wrong colours and appear more blocky). I know the files aren't corrupt because when I run the videos within the game they appear fine.

Here's an image of one of the screwed up streams:


And here's a rapidshare link in case somebody can help me figure out how to rip the stream correctly:
http://rapidshare.de/files/35018742/..._Team_Rose.rar ---3MB

The SFD files can be perfectly viewed with VLC (videolan).
Zhelkus is offline   Reply With Quote
Old 30th September 2006, 22:17   #2  |  Link
foxyshadis
ангел смерти
 
foxyshadis's Avatar
 
Join Date: Nov 2004
Location: Lost
Posts: 9,558
You can use VLC to save them, under stream settings when you open a file (not quick open). Actually, it'd probably be better to use mencoder to rip it to a lossless format, and then encode from there, since vlc doesn't offer lossless and isn't very high quality when it streams.
foxyshadis is offline   Reply With Quote
Old 30th September 2006, 23:04   #3  |  Link
Zhelkus
VG Rippah
 
Join Date: Aug 2006
Posts: 51
Quote:
Originally Posted by foxyshadis
You can use VLC to save them, under stream settings when you open a file (not quick open).
That part I know. However, the weird coloured and blocky image I posted there is a snapshot taken with VLC. Hence if VLC detects the stream as such, the output file will be the same.

Quote:
Originally Posted by foxyshadis
Actually, it'd probably be better to use mencoder to rip it to a lossless format, and then encode from there
I just tried it now and mencoder can't even find the MPEG video stream within the SFD file.

Thx for trying tho.
Zhelkus is offline   Reply With Quote
Old 30th September 2006, 23:28   #4  |  Link
Mr_Odwin
FAVC Man
 
Mr_Odwin's Avatar
 
Join Date: Nov 2005
Posts: 411
I tried DGIndex and Avisynth. This was the result:
http://rapidshare.de/files/35034948/sonic.avi.html
Mr_Odwin is offline   Reply With Quote
Old 30th September 2006, 23:50   #5  |  Link
Zhelkus
VG Rippah
 
Join Date: Aug 2006
Posts: 51
Quote:
Originally Posted by Mr_Odwin
I tried DGIndex and Avisynth. This was the result:
http://rapidshare.de/files/35034948/sonic.avi.html
Yup. I tried that too. When you watch this outside VLC in an M1V format the stream looks like this.


But it's still screwed. I don't know some videos are working differently....

Here's how it should look like:

Last edited by Zhelkus; 1st October 2006 at 03:38.
Zhelkus is offline   Reply With Quote
Old 1st October 2006, 03:37   #6  |  Link
Zhelkus
VG Rippah
 
Join Date: Aug 2006
Posts: 51
I opened the SFD with a my hex editor. Can somebody make something out of this?



Help would be really appreaciated
Zhelkus is offline   Reply With Quote
Old 1st October 2006, 05:11   #7  |  Link
setarip_old
Registered User
 
setarip_old's Avatar
 
Join Date: Aug 2005
Posts: 16,267
Hi!
Quote:
I opened the SFD with a my hex editor.
Try opening one of the "good conversion" SFDs in the same fashion and do a side by side comparison of the header information. This may provide you with the needed information regarding the differing results.

Just guessing here, but at least part of the problem appears to be the header indicating an image size of 320x448, while your "good image" is at 320x240...

Last edited by setarip_old; 1st October 2006 at 05:23.
setarip_old is offline   Reply With Quote
Old 1st October 2006, 05:24   #8  |  Link
Zhelkus
VG Rippah
 
Join Date: Aug 2006
Posts: 51
Hey there! Glad to see you trying to help on this thread as well!

Quote:
Originally Posted by setarip_old
Try opening one of the "good conversion" SFDs in the same fashion and do a side by side comparison of the header information. This may provide you with the needed information regarding the differing results...
I aleady did that. The program even has a comparing feature. Unfortunately the readable information in that picture is exactly the same.

What's more, I don't even know what I'm looking at All I wanted was to extract a simple video stream...
Zhelkus is offline   Reply With Quote
Old 1st October 2006, 08:16   #9  |  Link
setarip_old
Registered User
 
setarip_old's Avatar
 
Join Date: Aug 2005
Posts: 16,267
Just for kicks and giggles, try changing the "448" in the header of the problematic file to "240"...
setarip_old is offline   Reply With Quote
Old 1st October 2006, 10:49   #10  |  Link
Nic
Moderator
 
Join Date: Oct 2001
Location: England
Posts: 3,285
I tried editing the sequence header of the MPEG stream to 240 from 448.
(i.e.
00 00 01 B3 14 01 C0 C4
to
00 00 01 B3 14 00 F0 C4
)

Didn't help. Very strange problem. Let us know if you find a solution.

-Nic
Nic is offline   Reply With Quote
Old 1st October 2006, 15:01   #11  |  Link
foxyshadis
ангел смерти
 
foxyshadis's Avatar
 
Join Date: Nov 2004
Location: Lost
Posts: 9,558
I thought you meant it actually played okay in VLC, which it definitely doesn't. Huh, weird signalling in the file. I'd submit it to ffmpeg along with a link to this thread (for the sample and extra info): http://ffmpeg.mplayerhq.hu/mailinglists.html They should be able to tell what's going wrong and fix it, eventually.

Oh, and the file is mirrored on my server in case you need to give anyone an alternate link, for those who can't do the rapidshare thing: http://foxyshadis.slightlydark.com/r...S_Team_Rose.7z

Last edited by foxyshadis; 1st October 2006 at 15:07.
foxyshadis is offline   Reply With Quote
Old 1st October 2006, 16:38   #12  |  Link
setarip_old
Registered User
 
setarip_old's Avatar
 
Join Date: Aug 2005
Posts: 16,267
Are the 10 problematic files from the same disc as the 12 good ones, or are these all from 22 different discs?

If they are from different discs, perhaps the problematic ones incorporate some type of conversion template or mask that is different than that of the good ones...

Despite what you've said, would you be good enough to post the header information from a "good" file?
setarip_old is offline   Reply With Quote
Old 1st October 2006, 18:32   #13  |  Link
Zhelkus
VG Rippah
 
Join Date: Aug 2006
Posts: 51
Nope, they're all from the same disc. Gimme 20 minutes and I'll upload a "good SFD" for you guys to see.

Thx for the help so far guys

EDIT: Ok, here it is.

http://rapidshare.de/files/35126841/...atross_End.rar --8MB

I think I should've done this sooner. Anyhow, the header or the part where they show all the info I displayed in the snapshot is the same.

Thanks for the suggestion, foxyshadis. I think I'll do just that.

Last edited by Zhelkus; 1st October 2006 at 18:52.
Zhelkus is offline   Reply With Quote
Old 2nd October 2006, 03:14   #14  |  Link
setarip_old
Registered User
 
setarip_old's Avatar
 
Join Date: Aug 2005
Posts: 16,267
Would you be good enough to simply post the same type of header screencap as you did previously?
setarip_old is offline   Reply With Quote
Old 2nd October 2006, 04:19   #15  |  Link
Zhelkus
VG Rippah
 
Join Date: Aug 2006
Posts: 51
Quote:
Originally Posted by setarip_old
Would you be good enough to simply post the same type of header screencap as you did previously?
Sure thing. Here it is.


The information might appear different but in the end it's still the same because I tried copying this info (from a GOOD SPD) into the other one (the BAD SPD) and the stream turned out the same.

Quote:
Originally Posted by foxyshadis
They should be able to tell what's going wrong and fix it, eventually.
Which mailing list should I direct myself to? Users or developers?
Zhelkus is offline   Reply With Quote
Old 2nd October 2006, 04:21   #16  |  Link
foxyshadis
ангел смерти
 
foxyshadis's Avatar
 
Join Date: Nov 2004
Location: Lost
Posts: 9,558
Not sure. Devs, probably.
foxyshadis is offline   Reply With Quote
Old 2nd October 2006, 04:28   #17  |  Link
Zhelkus
VG Rippah
 
Join Date: Aug 2006
Posts: 51
Quote:
Originally Posted by foxyshadis View Post
Not sure. Devs, probably.
Drat... I'l just copypasta it. Thx.
Zhelkus is offline   Reply With Quote
Old 6th October 2006, 23:38   #18  |  Link
setarip_old
Registered User
 
setarip_old's Avatar
 
Join Date: Aug 2005
Posts: 16,267
Quote:
The program even has a comparing feature. Unfortunately the readable information in that picture is exactly the same.
Quote:
The information might appear different but in the end it's still the same because I tried copying this info (from a GOOD SPD) into the other one (the BAD SPD) and the stream turned out the same.
Regardless of (or, perhaps, supported by) these contradictory statements, I'd still speculate that within the body/bodies of the graphics is a mask/or key that is applied based on the information contained in the header(s)...
setarip_old is offline   Reply With Quote
Old 7th October 2006, 04:29   #19  |  Link
Zhelkus
VG Rippah
 
Join Date: Aug 2006
Posts: 51
Quote:
Originally Posted by setarip_old
Regardless of (or, perhaps, supported by) these contradictory statements, I'd still speculate that within the body/bodies of the graphics is a mask/or key that is applied based on the information contained in the header(s)...
The contradiction is only literal. I was thinking about that as well but in the end it's just too much of a hassle and time consuming to perform a trial and error sweep with all the info that is on the header. Of course, assuming that the information stored in the header is what is altering the output. In the end this is only speculation. Thx agn for trying, seta.

The FFMPEG mailing lists aren't very helpful when it comes to asking for very technical issues. It seems my situation is proof of it.
Zhelkus is offline   Reply With Quote
Old 7th October 2006, 06:41   #20  |  Link
setarip_old
Registered User
 
setarip_old's Avatar
 
Join Date: Aug 2005
Posts: 16,267
Another question - What stream information is generated by VLC for the "good" output and for the "problematic" output? Please post the screencaps for each...

And - rather than presuming that using VLC to convert a "problematic" file won't be good (because of what you saw in a screencap), it might be worthwhile to try one such conversion...

setarip_old is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 23:24.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.