polywogsys (polywogsys) wrote,
polywogsys
polywogsys

oggenc settings with various WAV input files

So I was trying to encode a WAV file into Ogg Vorbis format. I kept getting the following error:

Skipping chunk of type "", length 0
Skipping chunk of type "", length 1635017060
Warning: Unexpected EOF in reading WAV header
ERROR: Input file "FOOBAR.WAV" is not a supported format

I checked the encoding:

> sndfile-info ./FOOBAR.WAV
========================================
File : FOOBAR.WAV
Length : 18391552
RIFF : 18391544
WAVE
fmt  : 484
  Format        : 0x1 => WAVE_FORMAT_PCM
  Channels      : 2
Sample Rate   : 48000
  Block Align   : 4
  Bit Width     : 16
  Bytes/sec     : 192000
data : 18391040
End

----------------------------------------
Sample Rate : 48000
Frames      : 4597760
Channels    : 2
Format      : 0x00010002
Sections    : 1
Seekable    : TRUE
Duration    : 00:01:35.787
Signal Max  : 18887 (-4.79 dB)

Oggenc assumes that the input will be 44.1k, since this is 48k, we need to tell oggenc to expect a 48k:

> oggenc -b 128 -r -R 48000 -o foobar.ogg FOOBAR.WAV
Encoding "FOOBAR.WAV" to
         "foobar.ogg"
at approximate bitrate 128 kbps (VBR encoding enabled)
        Encoding [ 0m01s so far] -

Done encoding file "foobar.ogg"

        File length:  1m 35.0s
        Elapsed time: 0m 01.4s
        Rate:         70.5000
        Average bitrate: 108.4 kb/s
Tags: media, mp3, music, ogg, vorbis
Subscribe

Recent Posts from This Journal

  • db2 doesn't start due to file permissions

    So if you ever have a goofy admin of your db2 instance who decides to do a "chown -R instname:instgrp /home/instname". Then db2 refuses…

  • UAC to Plain English in JavaScript

    So I wrote this quick javascript code to use in IBM's SDI (TDI/IDI). When querying the microsoft AD for userAccountControl you will get a decimal…

  • Google Chrome's Profile Manager

    I use multiple profiles on the OS/X to manage various clients' working environments and settings, including my own personal profile. I've…

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments