You are not logged in.

#1 2007-08-12 13:25:33

Alberto
Member
Registered: 2007-08-12
Posts: 9

VLC and OGG files

Hi!

I can not play ogg files with vlc.

I get this error:

VLC media player 0.8.6c Janus
[00000302] ffmpeg decoder error: cannot open codec (Xiph.org's Theora Video)
[00000302] main decoder error: no suitable decoder module for fourcc `theo'.
VLC probably does not support this sound or video format.

I have tried rebuilding vlc but nothing.

Thanks

Offline

#2 2007-08-12 16:02:03

jdhore
Member
From: NYC
Registered: 2007-08-01
Posts: 156

Re: VLC and OGG files

First, OGG is a container format such as AVI, MPEG4, etc. that can be encoded with different codecs.
Second, the codec that seems to be used "fourcc `theo'.", i've never heard of before...All i can recommend is either find some software to possibly transcode it or Google "fourcc theo" and see what Google tells you about it and how to play it and the like.

Offline

#3 2007-08-12 16:33:25

Alberto
Member
Registered: 2007-08-12
Posts: 9

Re: VLC and OGG files

I know that OGG is a container. The video type is Theora.
I can play it with mplayer and ffplay but I can not play it with vlc.

Offline

#4 2007-08-12 17:35:18

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: VLC and OGG files

Try using FFPlay and see if you get any useful information:

ffplay <your_file>.ogg

Last edited by skottish (2007-08-12 17:35:35)

Offline

#5 2007-08-12 18:16:11

Alberto
Member
Registered: 2007-08-12
Posts: 9

Re: VLC and OGG files

With ffplay i can play the video but I can not with vlc.

With ffplay I get:

[theora @ 0xb7d90188]Theora bitstream version 30200
[theora @ 0xb7d90188]560 bits left in packet 81
[theora @ 0xb7d90188]7 bits left in packet 82
[theora @ 0xb7d90188]Theora bitstream version 30200
[theora @ 0xb7d90188]560 bits left in packet 81
[theora @ 0xb7d90188]7 bits left in packet 82

It does not tell me nothing important sad

Offline

#6 2007-08-12 18:25:23

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: VLC and OGG files

Would you please post the output of:

ffmpeg -i <your_file>.ogg

--------------

On further tests, I can also show that FFMPEG won't play certain Theora files. I grabbed a file from the Theora test suite, and the audio codec is unrecognizable:

ffmpeg -i chained_streams.ogg
FFmpeg version SVN-r10065, Copyright (c) 2000-2007 Fabrice Bellard, et al.
  configuration: --prefix=/usr --log --enable-gpl --enable-libmp3lame --enable-libogg --enable-libvorbis --enable-libtheora --enable-libfaac --enable-libfaad --enable-liba52 --enable-libxvid --enable-pp --enable-shared --disable-static --enable-libx264 --enable-pthreads --enable-libamr-nb --enable-libamr-wb --enable-network
  libavutil version: 49.4.1
  libavcodec version: 51.40.4
  libavformat version: 51.12.1
  built on Aug 10 2007 18:03:00, gcc: 4.2.1
[theora @ 0x2b76cad448b0]Theora bitstream version 30200
[theora @ 0x2b76cad448b0]344 bits left in packet 81
[theora @ 0x2b76cad448b0]7 bits left in packet 82
Input #0, ogg, from 'chained_streams.ogg':
  Duration: N/A, bitrate: N/A
  Stream #0.0: Video: theora, yuv420p, 320x240, 30.00 fps(r)
  Stream #0.1: Invalid Codec type -1
  Stream #0.2: Invalid Codec type -1
  Stream #0.3: Invalid Codec type -1
  Stream #0.4: Invalid Codec type -1
  Stream #0.5: Invalid Codec type -1

Hmmm... We have a mystery.

Last edited by skottish (2007-08-12 18:44:48)

Offline

#7 2007-08-17 23:28:11

Alberto
Member
Registered: 2007-08-12
Posts: 9

Re: VLC and OGG files

The output of:

ffmpeg -i <your_file>.ogg

FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
  configuration: --prefix=/usr --enable-gpl --enable-libmp3lame --enable-libogg --enable-libvorbis --enable-pp --enable-libfaac --enable-libfaad --enable-liba52 --enable-xvid --enable-libdts --enable-x264 --enable-libtheora --disable-libamr-nb --enable-pp --enable-shared --enable-pthreads --enable-x11grab
  libavutil version: 49.4.0
  libavcodec version: 51.40.4
  libavformat version: 51.12.1
  built on Jul  6 2007 19:12:00, gcc: 4.2.1 20070704 (prerelease)
[theora @ 0xb7daf188]Theora bitstream version 30200
[theora @ 0xb7daf188]560 bits left in packet 81
[theora @ 0xb7daf188]7 bits left in packet 82
Input #0, ogg, from 'out.ogg':
  Duration: 00:00:19.1, start: 0.400000, bitrate: 1587 kb/s
  Stream #0.0: Video: theora, yuv420p, 1024x768, 15.00 fps(r)
  Stream #0.1: Audio: vorbis, 22050 Hz, mono, 89 kb/s
Must supply at least one output file

I don't know if It's useful.

Can you play ogg files with VLC?

Offline

#8 2007-08-18 01:10:37

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: VLC and OGG files

Alberto wrote:

I don't know if It's useful.

Can you play ogg files with VLC?

It is. FFMPEG clearly recognizes both the audio and video streams. On some of my test files, FFMPEG couldn't tell what the audio track was, which is surprising at the least.

VLC on my machine will play some OGG Theora files, but it usually starts with the video track disabled. It always plays OGG Vorbis files just fine. I've searched around quite a bit looking for anyone else having this same problem, but I'm not getting any useful information.

One thing of note: I'm not using FFMPEG or VLC from the repos. This is definitely an upstream bug, and I believe that it's VLC's problem. I'll file a bug at VLC and see if I can get some interest in this.

Offline

#9 2007-08-18 02:21:07

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: VLC and OGG files

Bump...

Add --enable-theora to the VLC pkgbuild file and recompile. There seems to be a breakage of some sort with --with-ffmpeg-theora (which isn't in the pkgbuild in the first place). Why it works fine with --with-ffmpeg-ogg and --with-ffmpeg-vorbis, I don't know. I do know that has been discussed on the FFMPEG mailing list.

Offline

#10 2007-08-18 12:50:03

Alberto
Member
Registered: 2007-08-12
Posts: 9

Re: VLC and OGG files

Great! It's works!

Thank you very much!

Offline

Board footer

Powered by FluxBB