Page 1 of 1

no sound with SFD file ??

Posted: 02 Dec 2007 21:15
by gen355
Hello

I was happy to convert a SFD file in a standard format but unfortunately there isn't sound. Is that normal ?
do the SFD videos include normally the sound ?

thanks for your answer

Re: no sound with SFD file ??

Posted: 02 Dec 2007 21:21
by Arite
Could you give some more information on what a *.sfd file is - do you mean a SoundStage Sound file or something different? Also, what format did you convert it to, and using what program?

Cheers, Arite.

Re: no sound with SFD file ??

Posted: 02 Dec 2007 21:56
by gen355
it's a video format used by game consoles but I don't know if the sound is integrated

I did like that: open (advanced) > diffuse/save selected > ASF format selected

Re: no sound with SFD file ??

Posted: 02 Dec 2007 22:38
by Arite
OK, so Sofdec multimedia files. According to the CRI Middleware (the Sofdec company) website here the audio system is ADX audio, which VLC cannot decode (assuming that is an audio format). The video is mpgv and so can be decoded.

Some sample can be found here:
http://samples.mplayerhq.hu/game-formats/sfd/

OK, according to here the ADX system appears to be a system which composes several separate components into an audio output (so perhaps the audio data is not stored in the *.sfd file).

Arite.

Re: no sound with SFD file ??

Posted: 11 Dec 2007 22:51
by gen355
yes I confirm the sfd videos are sound inside.

Re: no sound with SFD file ??

Posted: 12 Dec 2007 19:46
by Arite
Sofdec files use an ADPCM-style audio codec (CRI ADX ADPCM - see here and for ADX here), however so far I have been unable to find any method which will decode the audio (MPlayer 1.0rc2, as an example, won't playback the audio either).

You could try extracing the audio using a tool such as sfd2mpg by bero (here) - I tried it with one of the samples from MPlayerhq (only didn't work, although I used LAME as supposed to toolame for the audio encoder).

There have been past problems with VLC and SFD files:
viewtopic.php?f=14&t=41898

According to the sfd2mpg readme SFD files are virtually the same as MPEG-1 files (a few differences):

Code: Select all

What is sfd? SFD format is almost same MPEG-1 System format. o audio streams is ADX adpcm format. o video stream is I,P picture only. not used B picture. o usualy mpeg has one system header for audio and video, but sfd has two system header: one for audio, another for video. o sometime additional data at top of file.
Perhaps the two system headers is the problem.

Here is the messages output (first few seconds of nfl2k1_gb_mia_2.sfd sample from MPlayerhq site):

Code: Select all

main debug: creating new input thread main debug: waiting for thread completion main debug: thread 3996 (input) created at priority 1 (input/input.c:265) main debug: drive letter C: found in source main debug: `C:\Temp\nfl2k1_gb_mia_2.sfd' gives access `' demux `' path `C:\Temp\nfl2k1_gb_mia_2.sfd' main debug: creating demux: access='' demux='' path='C:\Temp\nfl2k1_gb_mia_2.sfd' main debug: looking for access_demux module: 1 candidate main debug: creating access '' path='C:\Temp\nfl2k1_gb_mia_2.sfd' main debug: looking for access2 module: 5 candidates vcd debug: trying .cue file: C:\Temp\nfl2k1_gb_mia_2.cue vcd debug: could not find .cue file access_file debug: opening file `C:\Temp\nfl2k1_gb_mia_2.sfd' main debug: using access2 module "access_file" main debug: pre-buffering... main debug: received first data for our buffer main debug: pre-buffering done 1408981 bytes in 0s - 323602 kbytes/s main debug: creating demux: access='' demux='' path='C:\Temp\nfl2k1_gb_mia_2.sfd' main debug: looking for demux2 module: 45 candidates main debug: using demux2 module "ps" main debug: looking for a subtitle file in C:\Temp\ main debug: `C:\Temp\nfl2k1_gb_mia_2.sfd' successfully opened ps warning: garbage at input, trying to resync... ps warning: found sync code ps warning: garbage at input, trying to resync... ps debug: we found a length of: 20500522 ps debug: we found a length of: 20688022 ps warning: found sync code main debug: selecting program id=0 main debug: looking for decoder module: 28 candidates main debug: using decoder module "mpeg_audio" main debug: thread 4188 (decoder) created at priority 2 (input/decoder.c:159) main debug: looking for decoder module: 28 candidates main debug: using decoder module "libmpeg2" main debug: thread 3948 (decoder) created at priority 0 (input/decoder.c:159) libmpeg2 debug: 320x240 (display 320,240), aspect 512000, sar 8:9, 29.971 fps main debug: no usable vout present, spawning one main debug: window size: 320x270 main debug: Registering subpicture channel, ID: 2 main debug: Registering subpicture channel, ID: 3 main debug: Registering subpicture channel, ID: 4 main debug: Registering subpicture channel, ID: 5 main debug: looking for video output module: 6 candidates vout_directx debug: creating DirectXEventThread main debug: waiting for thread completion vout_directx debug: DirectXCreateWindow vout_directx debug: created video sub-window main debug: thread 4072 (DirectX Events Thread) created at priority 0 (directx.c:278) vout_directx debug: DirectXEventThread running vout_directx debug: DirectXInitDDraw vout_directx debug: directx-device: vout_directx debug: DirectXEnumCallback: Primary Display Driver, display vout_directx debug: screen dimensions (0x0,1280x1024) vout_directx debug: DirectDraw Capabilities: overlay=1 yuvoverlay=1 can_deinterlace_overlay=1 colorkey=1 stretch=1 bltfourcc=1 vout_directx debug: align_boundary_src=0,0 align_boundary_dest=1,1 align_size_src=0,0 align_size_dest=0,0 vout_directx debug: End DirectXInitDDraw vout_directx debug: DirectXCreateDisplay vout_directx debug: DirectXCreateClipper vout_directx debug: disabling screen saver main debug: using video output module "vout_directx" vout_directx debug: NewPictureVec overlay:yes chroma:YV12 main debug: waiting for thread completion vout_directx debug: YUV overlay created successfully vout_directx debug: End NewPictureVec (succeeded) main debug: got 1 direct buffer(s) main debug: picture in 320x240 (0,0,320x240), chroma I420, ar 32:27, sar 8:9 main debug: picture user 320x240 (0,0,320x240), chroma I420, ar 32:27, sar 8:9 main debug: picture out 320x240 (0,0,320x240), chroma I420, ar 32:27, sar 8:9 main debug: direct render, mapping render pictures 0-6 to system pictures 1-7 main debug: thread 4164 (video output) created at priority 1 (video_output/video_output.c:421) main warning: dts != current_pts (196363) main warning: dts != current_pts (-33400) main warning: backward_pts != dts (66799) main warning: backward_pts != current_pts (66766) main warning: dts != current_pts (-66834) main warning: vout synchro warning: pts != current_date (66766) main warning: backward_pts != dts (66800) main warning: backward_pts != dts (66800) main warning: backward_pts != dts (66800) main warning: backward_pts != dts (66800) main warning: backward_pts != dts (66800) main warning: backward_pts != dts (66800) main warning: backward_pts != dts (66800) main warning: backward_pts != dts (66800) main warning: backward_pts != dts (66800) main warning: backward_pts != dts (66800) main warning: backward_pts != dts (65800) main warning: dts != current_pts (-66902) main warning: vout synchro warning: pts != current_date (66766) main warning: backward_pts != dts (66800) main warning: backward_pts != dts (66800) main warning: backward_pts != dts (66800) main warning: backward_pts != dts (66800) main warning: backward_pts != dts (66800) main warning: backward_pts != dts (66800) main warning: backward_pts != dts (66800) main warning: backward_pts != dts (66800) main warning: backward_pts != dts (66800) main warning: backward_pts != dts (66800) main warning: backward_pts != dts (66800) main warning: backward_pts != dts (65800) main warning: late picture skipped (89583) main warning: late picture skipped (126326) main warning: late picture skipped (182616) main warning: late picture skipped (238866) mpeg_audio debug: emulated startcode (no startcode on following frame) mpeg_audio debug: emulated startcode mpeg_audio debug: emulated startcode mpeg_audio debug: emulated startcode mpeg_audio debug: emulated startcode (no startcode on following frame) mpeg_audio debug: emulated startcode mpeg_audio debug: emulated startcode mpeg_audio debug: emulated startcode mpeg_audio debug: emulated startcode (no startcode on following frame) mpeg_audio debug: emulated startcode mpeg_audio debug: emulated startcode (no startcode on following frame) mpeg_audio debug: emulated startcode mpeg_audio debug: emulated startcode mpeg_audio debug: emulated startcode mpeg_audio debug: emulated startcode main warning: dts != current_pts (-65834) main warning: vout synchro warning: pts != current_date (66766) main warning: late picture skipped (355990) mpeg_audio debug: emulated startcode mpeg_audio debug: emulated startcode mpeg_audio debug: emulated startcode (no startcode on following frame) mpeg_audio debug: emulated startcode main warning: backward_pts != current_pts (100166) main warning: vout synchro warning: pts != current_date (-100234) mpeg_audio debug: emulated startcode (no startcode on following frame) mpeg_audio debug: emulated startcode mpeg_audio debug: emulated startcode (no startcode on following frame) mpeg_audio debug: emulated startcode mpeg_audio debug: emulated startcode mpeg_audio debug: free bitrate mode main debug: decoded 63/120 pictures main warning: dts != current_pts (-65823) main warning: vout synchro warning: pts != current_date (66766) main warning: late picture skipped (359816) mpeg_audio debug: frame too big 2509 > 2508 (emulated startcode ?) mpeg_audio debug: emulated startcode mpeg_audio debug: emulated startcode mpeg_audio debug: emulated startcode mpeg_audio debug: emulated startcode mpeg_audio debug: emulated startcode mpeg_audio debug: emulated startcode (no startcode on following frame) mpeg_audio debug: emulated startcode (no startcode on following frame) mpeg_audio debug: emulated startcode mpeg_audio debug: emulated startcode (no startcode on following frame) mpeg_audio debug: free bitrate mode mpeg_audio debug: frame too big 489 > 488 (emulated startcode ?) mpeg_audio debug: emulated startcode mpeg_audio debug: free bitrate mode mpeg_audio debug: frame too big 2091 > 2090 (emulated startcode ?) mpeg_audio debug: free bitrate mode mpeg_audio debug: frame too big 1255 > 1254 (emulated startcode ?) mpeg_audio debug: emulated startcode (no startcode on following frame) mpeg_audio debug: emulated startcode mpeg_audio debug: emulated startcode mpeg_audio debug: emulated startcode mpeg_audio debug: emulated startcode (no startcode on following frame) mpeg_audio debug: emulated startcode (no startcode on following frame) mpeg_audio debug: emulated startcode mpeg_audio debug: emulated startcode (no startcode on following frame) main warning: dts != current_pts (-65823) main warning: vout synchro warning: pts != current_date (66766) main warning: late picture skipped (283692) mpeg_audio debug: emulated startcode (no startcode on following frame) mpeg_audio debug: emulated startcode mpeg_audio debug: emulated startcode (no startcode on following frame) mpeg_audio debug: emulated startcode mpeg_audio debug: emulated startcode main debug: control type=0 main debug: control: stopping input mpeg_audio debug: emulated startcode mpeg_audio debug: emulated startcode mpeg_audio debug: emulated startcode mpeg_audio debug: emulated startcode mpeg_audio debug: emulated startcode mpeg_audio debug: emulated startcode mpeg_audio debug: emulated startcode mpeg_audio debug: free bitrate mode main debug: closing input main debug: removing module "mpeg_audio" main debug: thread times: real 0m5.609375s, kernel 0m0.000000s, user 0m0.000000s main debug: thread 4188 joined (input/decoder.c:191) main debug: killing decoder fourcc `mpga', 0 PES in FIFO main debug: removing module "libmpeg2" main debug: thread times: real 0m5.609375s, kernel 0m0.062500s, user 0m0.031250s main debug: thread 3948 joined (input/decoder.c:191) main debug: killing decoder fourcc `mpgv', 0 PES in FIFO main debug: Program doesn't contain anymore ES main debug: removing module "ps" main debug: removing module "access_file" main debug: thread times: real 0m5.640625s, kernel 0m0.015625s, user 0m0.000000s main debug: thread 3996 joined (input/input.c:412) main debug: garbage collector destroys 1 vout vout_directx debug: DirectXCloseSurface vout_directx debug: DirectXCloseDisplay vout_directx debug: DirectXCloseDisplay clipper vout_directx debug: DirectXCloseDisplay display vout_directx debug: DirectXCloseDDraw vout_directx debug: CloseVideo vout_directx debug: DirectXEventThread terminating vout_directx debug: DirectXCloseWindow vout_directx debug: WinProc WM_DESTROY main debug: thread times: real 0m5.765625s, kernel 0m0.000000s, user 0m0.000000s main debug: thread 4072 joined (directx.c:509) main debug: removing module "vout_directx" main debug: thread times: real 0m5.703125s, kernel 0m0.062500s, user 0m0.000000s main debug: thread 4164 joined (video_output/video_output.c:461)
Perhaps it is because it is trying to playback mpga (not ADX/ADPCM).

Sorry for not being helpful.

Cheers, Arite.

Re: no sound with SFD file ??

Posted: 12 Dec 2007 20:32
by gen355
Don't worry. with sfd2mpg+scmpx I had the sound

but with sfd2mpg+toolame the sound was bad

Re: no sound with SFD file ??

Posted: 12 Dec 2007 22:19
by Arite
OK, that is good.

What was the commandline you used?

Arite.

Re: no sound with SFD file ??

Posted: 13 Dec 2007 03:25
by gen355
with scmpx:
C:\>sfd2mpg -c "scmpx\scmpx /e /12" f:\file.sfd"

with toolame:
C:\>sfd2mpg -c "toolame -b 160" f:\file.sfd"