ogg

Media Foundation vs DirectShow and Media Containers. (WEBM and OGG THEORA)

自闭症网瘾萝莉.ら 提交于 2019-12-11 08:09:55
问题 Why do all the new video/media container formats provide very little support for media foundation and more for DirectShow knowing that DirectShow is dying. 回答1: Because Media Foundation offers inferior feature set and availability to DirectShow. DirectShow is primary API for formats and codecs in Windows, nevertheless Microsoft stopped its development almost 10 years ago. The extensibility of this API is so good, and it is still so well applicable to multimedia tasks and processing. 来源: https

MediaEngine audio playback on WinRT

扶醉桌前 提交于 2019-12-11 07:18:58
问题 I'm trying to add music to my game that runs on WinRT. The music should be in an encoded format (mp3, ogg, etc.) and should be streamable and be decoded by the hardware (for performance reasons). I've looked through the samples, and found out that MediaEngine can do something like this (I hope). However, I'm having problems making it work. I keep getting ComExceptions everytime I try to create IMFByteStream from IRandomAccessStream via MFCreateMFByteStreamOnStreamEx() . It might be that I'm

Advice - How To Start Converting Video / Audio

五迷三道 提交于 2019-12-11 02:29:08
问题 I have been using C++ for the last five years now. During this time, I never had to work with audio nor video files. One thing I want to write is an application that will take a AVI/MPEG file and convert it to the OGG format. Are there any good books / tutorials out there where I can get my feet wet in this domain in general? I am aware the Xiph.Org Foundation, the group responsible for OGG, have libraries and documentation for their API. Thanks for any insight provided. 回答1: You might want

Getting the length of a ogg track from s3 without downloading the whole file

南楼画角 提交于 2019-12-10 12:43:30
问题 How do I get the play length of an ogg file without downloading the whole file? I know this is posible because both the HTML5 tag and VLC can show the entire play length immediately after loading the URL, without downloading the entire file. Is there a header or something I can read. Maybe even the bitrate, which I can divide by the file size to get an approximate play length? 回答1: Unfortunately there does not appear to be a way to achieve this. Mozilla's Configuring servers for Ogg media is

Html5 Video and Flash Approach

老子叫甜甜 提交于 2019-12-10 10:08:44
问题 Looking into HTML5 video tag, and researching which browsers support which video file types, and my initial thought is things just got harder than just using flash. I am wondering if there is some skeleton code (combined with development approach for videos) that someone has figured out to do the following: If flash is available, use it If not, try html5 video ogg format If that doesn't work, try html5 video h.264 format If that doesn't work, try html5 video webM format Based on what I am

How do you do true streaming with the video tag (i.e. not progressive download)? (html5)

谁说胖子不能爱 提交于 2019-12-09 16:39:16
问题 I have I have cheap Apache PHP hosting. I have mp4 and or Ogg video file. I want to dynamically stream this video to users. And let that users see it through html 5 video player. How do you do true streaming (beeng able to scroll to any part of wideo with out previous download of full video) with the video tag (i.e. not progressive download) and Apache PHP? 回答1: There appears to be a slight mix-up between "true" streaming and "pseudo" streaming here. I believe true streaming is when video is

How to create silent .ogg audio file

可紊 提交于 2019-12-08 17:32:02
问题 In answer to the question "How-to make a silent mp3 or wav-file" on ubuntuforums.org FakeOutdoorsman provided the following recipe: Another method by using FFmpeg. 60 seconds of silent audio in WAV: ffmpeg -ar 48000 -t 60 -f s16le -acodec pcm_s16le -ac 2 -i /dev/zero -acodec copy output.wav 60 seconds of silent audio in MP3: ffmpeg -ar 48000 -t 60 -f s16le -acodec pcm_s16le -ac 2 -i /dev/zero -acodec libmp3lame -aq 4 output.mp3 How could I do something similar to create a silent .ogg audio

Compile libogg for iOS using Xcode5.1 error

假装没事ソ 提交于 2019-12-08 13:02:14
问题 Environment: Mac OS X 10.9.2, Xcode 5.1. Build shell scripts as below: #!/bin/sh set -xe VERSION="1.3.1" DESTDIR="libogg-built" #ARCHS="i386 x86_64 armv7 armv7s arm64" rm -rf $DESTDIR mkdir $DESTDIR if [ ! -e "libogg-$VERSION.zip" ]; then curl -LO http://downloads.xiph.org/releases/ogg/libogg-$VERSION.zip fi unzip -oq libogg-$VERSION.zip cd libogg-$VERSION ./configure for ARCH in $ARCHS; do mkdir -p ../$DESTDIR/$ARCH IOSMV="-miphoneos-version-min=4.3" case $ARCH in arm*) if [ $ARCH == "arm64"

How to build CRC32 table for Ogg?

不问归期 提交于 2019-12-08 10:08:43
问题 From this answer I adapted the code below: function _makeCRCTable() { const CRCTable = new Uint32Array(256); for (let i = 256; i--;) { let char = i; for (let j = 8; j--;) { char = char & 1 ? 3988292384 ^ char >>> 1 : char >>> 1; } CRCTable[i] = char; } return CRCTable; } This code generates table as here, but for Ogg I need another table - as here. From Ogg documentation: 32 bit CRC value (direct algorithm, initial val and final XOR = 0, generator polynomial=0x04c11db7) parseInt('04c11db7',

Compile libspeex for iOS using Xcode5.1 error

情到浓时终转凉″ 提交于 2019-12-08 05:30:34
问题 See also: Compile libogg for iOS using Xcode5.1 error Environment: Mac OS X 10.9.2, Xcode 5.1. There are two shell scripts to build libogg and libspeex, where locates in the same directory. The libogg build scripts is as below: #!/bin/sh set -xe VERSION="1.3.1" BUILDDIR=`pwd` DESTDIR="libogg-built" ARCHS="i386 x86_64 armv7 armv7s arm64" rm -rf $DESTDIR mkdir $DESTDIR if [ ! -e "libogg-$VERSION.zip" ]; then curl -LO http://downloads.xiph.org/releases/ogg/libogg-$VERSION.zip fi unzip -oq libogg