You are not logged in.

#1 2012-10-22 04:27:12

synthead
Member
Registered: 2006-05-09
Posts: 1,337

Help with ffmpeg (creating a video from SWF)

What am I doing wrong?

$ ffmpeg -i connor.swf connor.avi
ffmpeg version 1.0 Copyright (c) 2000-2012 the FFmpeg developers
  built on Sep 29 2012 11:22:50 with gcc 4.7.1 (GCC) 20120721 (prerelease)
  configuration: --prefix=/usr --enable-libmp3lame --enable-libvorbis --enable-libxvid --enable-libx264 --enable-libvpx --enable-libtheora --enable-libgsm --enable-libspeex --enable-postproc --enable-shared --enable-x11grab --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libschroedinger --enable-libopenjpeg --enable-librtmp --enable-libpulse --enable-libv4l2 --enable-gpl --enable-version3 --enable-runtime-cpudetect --disable-debug --disable-static
  libavutil      51. 73.101 / 51. 73.101
  libavcodec     54. 59.100 / 54. 59.100
  libavformat    54. 29.104 / 54. 29.104
  libavdevice    54.  2.101 / 54.  2.101
  libavfilter     3. 17.100 /  3. 17.100
  libswscale      2.  1.101 /  2.  1.101
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
[swf @ 0x1add240] SWF compressed file detected
[swf @ 0x1add240] max_analyze_duration 5000000 reached at 5000000
[swf @ 0x1add240] Could not find codec parameters for stream 0 (Audio: pcm_s16le, 5512 Hz, 1 channels, 88 kb/s): unspecified sample format
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[swf @ 0x1add240] Estimating duration from bitrate, this may be inaccurate
Guessed Channel Layout for  Input Stream #0.0 : mono
Input #0, swf, from 'connor.swf':
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0:0: Audio: pcm_s16le, 5512 Hz, mono, 88 kb/s
    Stream #0:1: Video: vp6f, yuv420p, 320x240, 30 fps, 30 tbr, 30 tbn
[graph 1 input from stream 0:0 @ 0x1ae5240] Invalid sample format '(null)'
Error opening filters!

Offline

#2 2012-10-22 05:37:24

ConnorBehan
Package Maintainer (PM)
From: Long Island NY
Registered: 2007-07-05
Posts: 1,359
Website

Re: Help with ffmpeg (creating a video from SWF)

There is no codec for playing an SWF file as if it were a video. SWF files allow interactivity so they are technically programs. You might be able to extract the useful bits as more standard files with "swftools" in [community]. Open source flash tools aren't perfect but for simple files, they can be pretty good.


6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.

Offline

#3 2012-10-23 03:17:31

DrZaius
Member
Registered: 2008-01-02
Posts: 193

Re: Help with ffmpeg (creating a video from SWF)

It appears that the audio stream is the source of the problem. As the console output suggests, try increasing the value for the "-probesize" (default 5000000)  and "-analyzeduration" (default 5 [seconds]) options.  Failing that you can attempt to supply the correct sample format as an input option, or simply copy the audio with "-c:a copy" instead of trying to re-encode.

Offline

Board footer

Powered by FluxBB