IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
HELP! Edit an ogg header, Change the playback length
leggendario
post Oct 29 2006, 16:35
Post #1





Group: Members
Posts: 3
Joined: 29-October 06
Member No.: 36924



Hi! I need your help... i should change the length of an ogg file: for example, i have a 3:30 ogg file, but it should be only 2:20 for winamp or windows media player... what i should exactly change in the hex editor?

I can only use an hex editor... i hope you'll help me smile.gif

This post has been edited by leggendario: Oct 29 2006, 16:36
Go to the top of the page
+Quote Post
leggendario
post Nov 5 2006, 12:54
Post #2





Group: Members
Posts: 3
Joined: 29-October 06
Member No.: 36924



Help me, i need some info about it... crying.gif
Go to the top of the page
+Quote Post
Gambit
post Nov 5 2006, 15:03
Post #3


Burrrn developer


Group: Developer
Posts: 917
Joined: 25-November 01
From: Bratislava, Slovakia
Member No.: 534



You can read the Vorbis docs, for complete header parsing info.

If you want to do it the easy way: The length value is stored in Samples, so you can convert that to hex and search for the value. It should be just a few bytes behind the "OggS" string.


--------------------
Burrrn - http://www.burrrn.net/
MPEG Audio Collection - http://mac.sourceforge.net/
Go to the top of the page
+Quote Post
leggendario
post Nov 5 2006, 18:59
Post #4





Group: Members
Posts: 3
Joined: 29-October 06
Member No.: 36924



QUOTE (Gambit @ Nov 5 2006, 08:03) *
You can read the Vorbis docs, for complete header parsing info.

If you want to do it the easy way: The length value is stored in Samples, so you can convert that to hex and search for the value. It should be just a few bytes behind the "OggS" string.


I need a method without using .dlls, but only using files .ogg and an hex editor...

Which bytes exactly? I'm really noob about it... sad.gif
Go to the top of the page
+Quote Post
kjoonlee
post Nov 5 2006, 19:09
Post #5





Group: Members
Posts: 2526
Joined: 25-July 02
From: South Korea
Member No.: 2782



Why do you need to do it?

I don't know enough about the fileformat to offer real advice, but I'd be worried about changing values in Ogg files.

If you want, you can just truncate the file somewhere in the middle (as if "the download had been canceled," if you get what I mean) to shorten the playtime. I'm sure there are hex editors that can do that.


--------------------
http://blacksun.ivyro.net/vorbis/vorbisfaq.htm
Go to the top of the page
+Quote Post
Gambit
post Nov 5 2006, 19:16
Post #6


Burrrn developer


Group: Developer
Posts: 917
Joined: 25-November 01
From: Bratislava, Slovakia
Member No.: 534



QUOTE (leggendario @ Nov 5 2006, 18:59) *
QUOTE (Gambit @ Nov 5 2006, 08:03) *

You can read the Vorbis docs, for complete header parsing info.

If you want to do it the easy way: The length value is stored in Samples, so you can convert that to hex and search for the value. It should be just a few bytes behind the "OggS" string.


I need a method without using .dlls, but only using files .ogg and an hex editor...

Which bytes exactly? I'm really noob about it... sad.gif

What DLL, genius?

You take the samples length (foobar -> Properties, for example 3:30 would be 9261000 samples) convert the decimal value to hex(8D4FC8), reverse byte order (C84F8D), search for the value, edit, save. That's it.

I don't know what you hope to achieve by that, but if you don't know what you're doing, you better leave it like it is.


--------------------
Burrrn - http://www.burrrn.net/
MPEG Audio Collection - http://mac.sourceforge.net/
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 17th April 2014 - 22:34