IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
Help: Editing compressed Ogg Vorbis files
sizeak
post Jun 8 2011, 13:02
Post #1





Group: Members
Posts: 2
Joined: 8-June 11
Member No.: 91335



Hello,

I'm working on a project that requires me to be able to edit Ogg Vorbis files without decoding them. I have this nearly working by decoding the input stream far enough to get Ogg packets, then using those to build new pages for writing to an output file. Packets which are in the range that I'd like to drop are simply not put into the output pages. I also adjust the packetno of packets after the cut so there isn't a huge gap in them; I'm not sure if it's necessary but it keeps things tidy.

However I think I'm missing something, possibly something else that I need to update and haven't. When I try and play the edited file in VLC, it seems to skip to roughly 2 mins into the file, even though the edit occurred within the first 20 seconds of audio and the decoder example from libvorbis produces an unreadable wav file when used with a file edited like this. Audacity on the other hand can read the edited file fine and can also produce a perfectly valid wav file from it.

So while I think I'm close, there is something which is missing thats probably staring me in the face and I'm not realising it. Any help would be appreciated thanks,

Sizeak
Go to the top of the page
+Quote Post
sizeak
post Jun 8 2011, 15:46
Post #2





Group: Members
Posts: 2
Joined: 8-June 11
Member No.: 91335



I think I've solved this myself with the help of the vcut source code
Go to the top of the page
+Quote Post
kuann
post May 24 2012, 02:31
Post #3





Group: Members
Posts: 1
Joined: 24-May 12
Member No.: 100097



Hi, sizeak,

I'm working on it recently, can you give some hints about how you do it? Thanks.
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: 30th July 2014 - 09:17