IPB

Welcome Guest ( Log In | Register )

> foobar2000 Tech Support Forum Rules

Please read foobar2000 Tech Support Forum Rules before posting and comply with all the points.
Failure to provide all the information pointed out in the above document in your post is considered wasting other people's time and in extreme cases will lead to your topic getting locked without a reply.


See also: Hydrogenaudio Terms of Service.

 
Reply to this topicStart new topic
Can't play vorbis, with new fb2k 0.9.5.4 beta
detmek
post Jun 29 2008, 17:01
Post #1





Group: Members
Posts: 60
Joined: 24-June 08
Member No.: 54802



This is my first post on the forum and I would like to say hello to all members.
I started to use fb2k 6 months ago and I did not have any problem so far. But, latest beta reffuses to play ogg files from my library. I get a message that files might be corrupted. Those files worked, and work well with previous versions. Files are created using Audiograbber with official vorbis dll 1.2.0. I think.
P.S. Sorry for my bad english.
Go to the top of the page
+Quote Post
Yirkha
post Jun 29 2008, 18:15
Post #2





Group: FB2K Moderator
Posts: 2359
Joined: 30-November 07
Member No.: 49158



As stated in the official changelog, version 0.9.5.4 contains strengthened security checks for various formats, including more rigorous validation of Ogg Vorbis files.

I had a similar problem as you with some Vorbis tracks extracted from a movie in Matroska container. As I learned, the cause was "mkvextract" writing invalid granule positions to the Ogg file. While this jitter was inaudible because of MDCT windowing, the files were wrongly decoded because of this (and half a second shorter in the end!).
The Ogg Vorbis specification says decoders should handle this kind of errors gracefully, but I'm glad the new foobar2000 version refused to play these files so I could fix them.

I've made myself a simple command-line program to do this. You might try it on one of your problematic files and see if it helps: revorb.exe (72 KB)
CODE
C:\Data\src\xiph>revorb
-= REVORB - <yirkha@fud.cz> 2008/06/29 =-
Recomputes page granule positions in Ogg Vorbis files.
Usage:
  revorb <input.ogg> <output.ogg>

C:\Data\src\xiph>revorb "BCW title music (eng).ogg" "BCW title music (eng).fixed.ogg"

C:\Data\src\xiph>


--------------------
Full-quoting makes you scroll past the same junk over and over.
Go to the top of the page
+Quote Post
detmek
post Jun 29 2008, 19:20
Post #3





Group: Members
Posts: 60
Joined: 24-June 08
Member No.: 54802



Thanks. It works. The only problem now is that I have 223 files to correct. Is there any way to do this in batch mode?
P.S. I am not realy good at writing batch scripts.

Moderation:Removed unnecessary full quote of the preceding post.

This post has been edited by Yirkha: Jan 8 2009, 20:07
Go to the top of the page
+Quote Post
Yirkha
post Jun 29 2008, 22:18
Post #4





Group: FB2K Moderator
Posts: 2359
Joined: 30-November 07
Member No.: 49158



Great.

I created an updated version of that Revorb program, it can now replace files in place if only one parameter is specified. That lowers the complexity of mass processing a lot - just get into the base directory and execute it like this:
CODE
C:\Music\Whatever>for /r %f in (*.ogg) do @revorb "%f"
With the @, it will also write nothing else than possible errors to the window, so it will be easier to review if there were any (I hope they won't).

The updated version is available at the same location as before.

And I of course recommend to make a backup of everything and verify the files afterwards - if not by listening, then at least their integrity (e.g. using foobar2000's ReplayGain scanner or optional File Verifier component).


--------------------
Full-quoting makes you scroll past the same junk over and over.
Go to the top of the page
+Quote Post
detmek
post Jun 29 2008, 23:52
Post #5





Group: Members
Posts: 60
Joined: 24-June 08
Member No.: 54802



Yirkha, your program works perfect! Well done.
Unfortunatlly, over a half of my files seams to be corrupted. Error message is:
Bitstream error.
Corrupted or missin data in bitstream.
Files without this error startet to work.
I have to re-rip all those files with errors. Untill then, I forund workaround. I am using foo_input_std.dll from 0.9.5.3 version.
Thank you again.
Go to the top of the page
+Quote Post
Yirkha
post Jun 30 2008, 00:19
Post #6





Group: FB2K Moderator
Posts: 2359
Joined: 30-November 07
Member No.: 49158



I've looked when it could actually spit out those two errors. The first one means some packets in the file were missing or in a wrong order. The second means there were some superfluous bytes between pages (packet groups) or that the page checksum did not match.
I might have let Revorb create the output anyway in these cases, maybe the output would be fine. On the second thought, these files seem to be created with a really buggy encoder. If you can, reripping is apparently the best solution.


--------------------
Full-quoting makes you scroll past the same junk over and over.
Go to the top of the page
+Quote Post
Yirkha
post Jul 25 2008, 11:56
Post #7





Group: FB2K Moderator
Posts: 2359
Joined: 30-November 07
Member No.: 49158



By request, revorb.cpp.


--------------------
Full-quoting makes you scroll past the same junk over and over.
Go to the top of the page
+Quote Post
TedFromAccountin...
post Jul 25 2008, 15:11
Post #8





Group: Members
Posts: 92
Joined: 11-March 04
From: The Forest
Member No.: 12650



QUOTE (detmek @ Jun 29 2008, 16:52) *
Yirkha, your program works perfect! Well done.
Unfortunatlly, over a half of my files seams to be corrupted. Error message is:
Bitstream error.
Corrupted or missin data in bitstream.
Files without this error startet to work.
I have to re-rip all those files with errors. Untill then, I forund workaround. I am using foo_input_std.dll from 0.9.5.3 version.
Thank you again.


Your ogg files do not have id3 tags on them do they? Some programs improperly tag ogg files and add id3 tags, which will break the files in the majority of players. I used to strip the id3 tags off of ogg files by changing the ogg extension to mp3 and opening the file in winamp. Winamp wouldn't play the file, but it would show the tag and allow me to remove it. There's probably another program that would do it without the renaming etc.
Go to the top of the page
+Quote Post
Kein
post Jun 29 2013, 11:09
Post #9





Group: Members
Posts: 8
Joined: 1-November 10
Member No.: 85130



Just wanted to say quick thanks for the tool, really useful little thing.
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: 24th April 2014 - 10:32