Good day everyone
How can I change the SFA audio inside an SFD file
If someone could help me I appreciate it very much
Important information: this site is currently scheduled to go offline indefinitely by end of the year.
Video Sofdec (.sfd) - Help
-
- ultra-n00b
- Posts: 5
- Joined: Sun Jan 17, 2021 6:03 am
- Has thanked: 1 time
Video Sofdec (.sfd) - Help
Last edited by noproblemxd on Sat Feb 20, 2021 4:59 am, edited 1 time in total.
Re: Video Sofdec (.sfd) - Help
~ http://andrewduncan.net/mpeg/mpeg-1.html
~ https://en.wikipedia.org/wiki/ADX_(file_format)
# MPEG-1 can be deconstructed and broken down to smaller packets.
# ADX usually starts with a 0x80, 0x00 sequence, and holds a relative offset to the string: "(c)CRI".
Here's what you're supposed to do:
1. Locate "(c)CRI" in the SFD file, and trace back to [0x000001BA] sequence: https://i.imgur.com/ZKBqI0o.png .
2. Find the next [0x000001] sequence, the packet start-code prefix,.
3. The way you know it's the correct one, is by checking the next byte, for example: [0xC0] = 0b11000000 (110xxxxx: audio (correct), 1110xxxx: video).
5. Right after it is a 16-bit word, the first byte is not to be changed, since it is a relative-offset to the start of ADX. (In my case: 0x07E7)
6. Skip this word, and get the Offset of the byte you're selecting. (In my case: 0x2012)
If you add first byte of length(0x07) to it(0x2019) and jump there, you'll find the ADX header [0x8000].
If you add packet-length(0x07E7) to it(0x27F9), you'll end up in the next part of the MPEG-1 file.
Once you have where the length is located, where both start and end of the ADX are, you can simply modify them.
If you're stuck or you need more details, feel free to send a message.
~ https://en.wikipedia.org/wiki/ADX_(file_format)
# MPEG-1 can be deconstructed and broken down to smaller packets.
# ADX usually starts with a 0x80, 0x00 sequence, and holds a relative offset to the string: "(c)CRI".
Here's what you're supposed to do:
1. Locate "(c)CRI" in the SFD file, and trace back to [0x000001BA] sequence: https://i.imgur.com/ZKBqI0o.png .
2. Find the next [0x000001] sequence, the packet start-code prefix,.
3. The way you know it's the correct one, is by checking the next byte, for example: [0xC0] = 0b11000000 (110xxxxx: audio (correct), 1110xxxx: video).
5. Right after it is a 16-bit word, the first byte is not to be changed, since it is a relative-offset to the start of ADX. (In my case: 0x07E7)
6. Skip this word, and get the Offset of the byte you're selecting. (In my case: 0x2012)
If you add first byte of length(0x07) to it(0x2019) and jump there, you'll find the ADX header [0x8000].
If you add packet-length(0x07E7) to it(0x27F9), you'll end up in the next part of the MPEG-1 file.
Once you have where the length is located, where both start and end of the ADX are, you can simply modify them.
If you're stuck or you need more details, feel free to send a message.
-
- ultra-n00b
- Posts: 5
- Joined: Sun Jan 17, 2021 6:03 am
- Has thanked: 1 time
Re: Video Sofdec (.sfd) - Help
Sorry, I don't understand much about encoding and decoding. But the file I want to modify looks simple.
Last edited by noproblemxd on Sat Feb 20, 2021 5:04 am, edited 1 time in total.
Re: Video Sofdec (.sfd) - Help
That's fine!
Seems like I can't send you any private messages, since you've disabled them, apparently.
Can you attach the 'to-be-modified' SFD file, and the ADX you want to merge therein?
I'll see what I can do about it :=)!
Seems like I can't send you any private messages, since you've disabled them, apparently.
Can you attach the 'to-be-modified' SFD file, and the ADX you want to merge therein?
I'll see what I can do about it :=)!
-
- ultra-n00b
- Posts: 5
- Joined: Sun Jan 17, 2021 6:03 am
- Has thanked: 1 time
Re: Video Sofdec (.sfd) - Help
Here goes: https://pastebin.com/2ikmDSCq
I've sent the overwritten file, which seems perfectly in place, I'll wait and see how you find it to be.
I've sent the overwritten file, which seems perfectly in place, I'll wait and see how you find it to be.
-
- ultra-n00b
- Posts: 5
- Joined: Sun Jan 17, 2021 6:03 am
- Has thanked: 1 time
Re: Video Sofdec (.sfd) - Help
Testing
Last edited by noproblemxd on Sat Feb 20, 2021 5:07 am, edited 2 times in total.
-
- ultra-n00b
- Posts: 5
- Joined: Sun Jan 17, 2021 6:03 am
- Has thanked: 1 time
Re: Video Sofdec (.sfd) - Help
Solving technical problems...
Edit 1:
The problem: The SFD video (Modified by FQRb) never ends.
It must be skipped manually with a button..
Edit 2:
The problem is because the audio file used was a "direct" ADX audio (and a little longer than the original) and not an SFA encoded audio [SFA (Sofdec Audio) files are used to create SFD files with sound] .
Edit 3:
The SFD file that I want to modify contains an SFA audio.
Edit 4:
I am editing the file manually, it may take some time...
I'll come back later
Edit 1:
The problem: The SFD video (Modified by FQRb) never ends.
It must be skipped manually with a button..
Edit 2:
The problem is because the audio file used was a "direct" ADX audio (and a little longer than the original) and not an SFA encoded audio [SFA (Sofdec Audio) files are used to create SFD files with sound] .
Edit 3:
The SFD file that I want to modify contains an SFA audio.
Edit 4:
I am editing the file manually, it may take some time...
I'll come back later
Last edited by noproblemxd on Thu Feb 18, 2021 9:37 am, edited 3 times in total.