Adobe Screen Video codec support?

Archived from the Transloadit support forum. Originally posted on September 12, 2011; details may be outdated, see our docs for current behavior. Original thread

I just tried to upload a couple of FLV files on your demo page that failed. The files are encoded with:
- Screen Video Codec V2 - Speex audio

Do you support this combination? I can provide a sample if you’d like.

Hey Jim,

yeah can you please provide an example so I can see the exact error behind the scenes?

Thanks,
Tim

I’ve attached a file that was failing. Thanks.

Any updates on this? I looked into the exact codec and it seems to be a fairly widespread codec - the fourcc code is: FSV2 (Flash Screen Video version 2)

I’m not sure if FFMPEG supports it, but I hope so.

Let me know if you have any other info.

Thanks.

Hey jjones,

here is the exact error:

FFmpeg version git-7ed4ff0, Copyright (c) 2000-2011 the FFmpeg developers built on Jul 17 2011 11:33:27 with gcc 4.5.2
configuration: --prefix=/usr/local --enable-gpl --enable-nonfree --enable-pthreads --enable-version3 --enable-x11grab --enable-avfilter --enable-libspeex --enable-librtmp --enable-libfaac --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-libvpx --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis
libavutil 50. 37. 0 / 50. 37. 0
libavcore 0. 16. 1 / 0. 16. 1
libavcodec 52.112. 1 / 52.112. 1
libavformat 52. 99. 1 / 52. 99. 1
libavdevice 52. 2. 3 / 52. 2. 3
libavfilter 1. 75. 0 / 1. 75. 0
libswscale 0. 12. 0 / 0. 12. 0
[libspeex @ 0x1b33c90] Missing Speex header, assuming defaults. [flv @ 0x1b2f560] max_analyze_duration reached [flv @ 0x1b2f560] Estimating duration from bitrate, this may be inaccurate Input #0, flv, from ‘/mnt/tmp/upload/REDACTED.flv’:
Metadata:
duration : 42
creationdate : Tue Sep 13 08:14:54
timestamp : 1315916094765
height : 480
width : 640
videocodecid : svc2
framerate : 4
Duration: 00:00:41.70, start: 0.000000, bitrate: N/A
Stream #0.0: Video: [0][0][0][0] / 0x0000, 1k tbr, 1k tbn, 1k tbc
Stream #0.1: Audio: libspeex, 16000 Hz, 1 channels, s16
[buffer @ 0x1b31550] Invalid pixel format string ‘-1’ Error opening filters!

It seems a Speex header is missing, weird. :S

Ok, thanks. So, it looks like an audio issue. I thought it may be the FSV2 video codec that wasn’t supported by FFMPEG.

So, if I can “add a Speex” header, do you think it will work?

Also, I’m not sure how to do that. I’m using a 3rd party encoder that is creating these videos. Any tips on adding a header would be great.

Thanks.

Hey jjones,

I looked at the ffmpeg source and it seems it’s not a problem if the speex header is missing. I am not really sure though. Kevin, do you know more about this?

The real error might be this one here at the bottom:
[buffer @ 0x1b31550] Invalid pixel format string ‘-1’ Error opening filters!

I also tried to encode this into several formats with several codecs, but the error persists. It seems ffmpeg can’t analyze the meta data properly.

Did you try to upload the video to youtube yet? If so, did it work? AFAIK they also use ffmpeg.

Kind regards,
Tim

Well, I did try uploading the FLV files to Youtube and they failed. So, it appears FFMPEG does not support the Adobce Screen codec (svc2). Do you know if that is the case? I would assume it is a relatively known/used codec.

Any thoughts or suggestions?

Hey jjones,

I tried processing the file with our competitor zencoder and they also can’t process the file saying it is corrupt, unfortunately. : /

Our list of supported input formats (which was taken from our ffmpeg build) also doesn’t list svc2: http://transloadit.com/docs/supported-formats-codecs

Sorry for the inconvenience. : / Do you have other ways to get this file into a different format to reupload it using Transloadit?

Kind regards,
Tim

Hey jjones,

are you able to play the file in any video player?

Yes, it plays back fine in Flowplayer.

FFMPEG claims it supports the Flash Screen codecs:

“Adobe Flash Player related video codecs: Screen video, Screen video 2, Sorenson 3 Codec, VP6 and Flash Video (FLV)”

http://en.wikipedia.org/wiki/FFmpeg#Codecs

I’m not sure why it isn’t working.

I did upload a file with the Screen Video 1 codec, and it worked. But, the quality of that codec is very poor. I’d prefer to encode using Screen Video 2 and then use transloadit to encode to H264/MP4.

I did upload a file with the Screen Video 1 codec, and it worked. But, the quality of that codec is very poor. I’d prefer to encode using Screen Video 2 and then use transloadit to encode to H264/MP4.

FFMPEG certainly is falling short to handle your particular files, so I think your only option is to use an alternative codec for now. We’ve taken this on our list for future codec work so.

I hope this is ok for now.
--fg