[Logo] Air Video Forum
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to home page 
[Moderation Log] Moderation Log   [Register] Register / 
[Login] Login 
Provide a toggle to disable incompatible streams  XML
Forum Index » Air Video General
Author Message
rgoodwin



Joined: 08/25/2009 15:10:59
Messages: 12
Offline

I have a number of videos, including WMV, that are not DRM but have WMA audio that apparently FFMPEG can't handle. It would be great to be able to:

a) have a global setting to continue stream with only the working streams (i.e. video, no audio)
b) register an error and let the user continue with option a)
c) allow deselection of audio stream under Conversion Settings, and then go with option a)

At any rate, it needs to be detected and fixed, as right now all you see is "Preparing/Buffering" forever while on the server the stream conversion has failed with "codec not found for stream". So, at least don't keep us waiting

I believe FFMPEG has switches to blank audio or video streams selectively; not sure if this will accomplish things.

This message was edited 1 time. Last update was at 08/25/2009 15:15:46

rgoodwin



Joined: 08/25/2009 15:10:59
Messages: 12
Offline

PM sent with a stream log as FYI.
Admin



Joined: 08/23/2009 08:49:34
Messages: 8705
Offline

Hi,

the codec seems to be WMA pro which ffmpeg can't handle.
FFMpeg hanging when it can't decode stream is a known issue and we are working on a fix. We may also add option to disable audio stream.
Anonymous



Admin wrote:Hi,

the codec seems to be WMA pro which ffmpeg can't handle.
FFMpeg hanging when it can't decode stream is a known issue and we are working on a fix. We may also add option to disable audio stream.


Yup it is. I think you can pass a flag to blank the stream, which may work. I'll try and test with your current beta server build. Heres to hoping we can figure it out. As always, contact me to try an alpha/beta
Anonymous



Ok I confirmed that you can pass -an flag and it will just return the video stream as output. (At least on a test conversion to mpg...) So, hopefully that's an easy one to pass in. I.e. might as well just disable the audio (or video) automatically if decode fails.

BTW how can I get the flags you currently use for ffmpeg conversion in case I want to manually convert some of these in the meantime?

Thanks!
Admin



Joined: 08/23/2009 08:49:34
Messages: 8705
Offline

Doing the conversion by hand is rather tricky. Apart from the fact that arguments are built dynamically (and there's plenty of them) Air Video converts audio and video streams separately and muxes them afterwards because ffmpeg mp4 muxer is not compatible with quick time. I will post new server beta version today with support for disabling audio stream.
Admin



Joined: 08/23/2009 08:49:34
Messages: 8705
Offline

Hi, new beta build for Windows is available here. Without announcement yet. It should allow you to disable audio stream (although that's just a quick fix for the problem). Can you give it a try?
Anonymous



Works perfectly so far! Tested with beginning/seek, and add to conversion queue! (Well, conversion queue is still going, but it didn't just drop out immediately before like it used to)

On a separate note, I've tracked down the author of the WMAPro patch for ffmpeg and am working with him to see how to get it compiled in. That would of course alleviate my particular codec problem, but the feature is still useful i believe!

Thanks so much for an amazing turnaround! And very slick how you serve up config options from the server

(Btw you might have to mail me on time sensitive requests, it doesn't seem i'm always getting forum notifications)
rgoodwin



Joined: 08/25/2009 15:10:59
Messages: 12
Offline

Hah I'm an idiot, I didn't realize i wasn't getting logged back in. Obviously you figured out it was me
rgoodwin



Joined: 08/25/2009 15:10:59
Messages: 12
Offline

FYI the patch for WMAPRo for FFMPEG seems to work. It's just a bit of work to get it compiled in. You can check it out from the Summer of Code repo

svn co svn://svn.ffmpeg.org/soc wmapro

That will pull down the patch. It mostly applies clean (depending on the position of the stars...). Per the author, this may be necessary:

"Then you will have to manually overwrite the wmaprodec.c wmaprodata.h files in
libavcodec/ with the ones from the repository."

Anyway, if you can get a build with that done, that should cover another big chunk of your users with WMA audio enabled files!
rgoodwin



Joined: 08/25/2009 15:10:59
Messages: 12
Offline

Actually just applied the patch and built on OSX, works great!! The checkout.sh script that comes with it shows you how to apply the necessary patch, and then it becomes one of the built in decoders.

So, if you want me to test a new server build on Win/OSX let me know!

built on Sep 1 2009 10:25:23, gcc: 4.0.1 (Apple Inc. build 5493)
[wmv3 @ 0x1004400]Extra data: 8 bits left, value: 0

Seems stream 1 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 29.97 (30000/1001)
Input #0, asf, from '/Volumes/Drobo/Extracted/Tape1.wmv':
Duration: 01:02:26.64, start: 3.000000, bitrate: 1377 kb/s
Stream #0.0(eng): Audio: wmapro, 48000 Hz, 2 channels, s16, 384 kb/s
Stream #0.1(eng): Video: wmv3, yuv420p, 640x480, 1000 kb/s, 29.97 tbr, 1k tbn, 1k tbc
Metadata
title : Tape 1
author :
copyright :
comment :
WMFSDKVersion : 11.0.5721.5145
WMFSDKNeeded : 0.0.0.0000
IsVBR : 1
ASFLeakyBucketPairs:
VBR Peak : 2978929
Buffer Average : 807904
[wmv3 @ 0x1004400]Extra data: 8 bits left, value: 0
Output #0, mpeg, to 'test2.mpg':
Stream #0.0(eng): Video: mpeg1video, yuv420p, 640x480, q=2-31, 200 kb/s, 90k tbn, 29.97 tbc
Stream #0.1(eng): Audio: mp2, 48000 Hz, 2 channels, s16, 64 kb/s
Stream mapping:
Stream #0.1 -> #0.0
Stream #0.0 -> #0.1
Press [q] to stop encoding
frame= 803 fps= 97 q=31.0 Lsize= 2010kB time=25.49 bitrate= 646.0kbits/s
Admin



Joined: 08/23/2009 08:49:34
Messages: 8705
Offline

I will probably take a look at this later this week. The patch itself looks good though I wonder why it hasn't been applied to ffmpeg core. It's from gsoc 2008 so it's not really new.
Admin



Joined: 08/23/2009 08:49:34
Messages: 8705
Offline

Actually, looks like in ffmpeg trunk there is already a version (although an older one) for wma pro decoder.
rgoodwin



Joined: 08/25/2009 15:10:59
Messages: 12
Offline

There were some...friendly spirited discussions going on the mail list about code style, who owns sync'ing up the SoC repos, etc. In the end, I believe a member agreed to sync the trees and patches and look towards inclusion in the future.
Admin



Joined: 08/23/2009 08:49:34
Messages: 8705
Offline

I've uploaded new ffmpeg builds: Windows version, OS X version. For windows replace ffmpeg.exe in Air Video Server folder in Program Files, for OSX replace ffmpeg-intel in Air Video Server bundle resources folder.

The build should decode WMA PRO files. But there might be problem with multichannel WMA PRO. The original patch increased MAX_AUDIO_FRAMESIZE to enable decoding certain multichannel WMA PRO files. The change didn't make it to ffmpeg trunk though. I've decided not to apply this change either because FFMPEG is unable to downsample multichannel audio other than DTS/AC3 anyway so for Air Video it would seem to make little difference.
 
Forum Index » Air Video General
Go to:   
Powered by JForum 2.1.8 © JForum Team