Converting Flash to AVI


Recommended Posts

Following this guide I tried to encode a flash file off youtube (.flv) into an avi file. It didn't work. I tried this:

mencoder episode.flv -ofps 15 -vf scale=300:-2 -oac lavc -ovc lavc -lavcopts vcodec=msmpeg4v2:acodec=mp3:abitrate=64 -o episode2.avi

but ithis is what happened:

MEncoder 1.0pre7try2-3.4.6 (C) 2000-2005 MPlayer Team
CPU: Advanced Micro Devices Athlon MP/XP/XP-M Barton (Family: 6, Stepping: 0)
Detected cache-line size is 64 bytes
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE

File not found: 'frameno.avi'
Failed to open frameno.avi
success: format: 0  data: 0x0 - 0x8f183d
libavformat file format detected.
VIDEO:  [FLV1]  320x240  0bpp  1000.000 fps	0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:35  fourcc:0x31564C46  size:320x240  fps:1000.00  ftime:=0.0010
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 22050 Hz, 2 ch, s16le, 64.0 kbit/9.07% (ratio: 8000->88200)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1; -1  (-1=autodetect) osd: 1
Opening video filter: [scale w=300 h=-2]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffflv] vfm:ffmpeg (FFmpeg Flash video)
==========================================================================
Audio LAVC, couldn't find encoder for codec mp3

So I guess it can't find an mp3 encoder but I've converted files to mp3 (from flac) via LAME before. Why isn't it working?

Edit:

I just tried it with ffmpeg as well using

ffmpeg -i episode.flv -s 320x240 -r 15.00 -b 300 -f avi -vcodec xvid -acodec mp3 -ab 96 episode.avi

and it created the file but it was 0bytes.

Edited by Kreuger
Link to comment
https://www.neowin.net/forum/topic/487930-converting-flash-to-avi/
Share on other sites

#!/bin/bash

#

# Get videos from youtoube (and still later from video.google.com, too)

# needs: wget and ffmpeg

# USAGE: youtoube.sh url1 url2

# EXAMPLE: youtoube.sh http://youtoube.com/watch?v=4cSRpu7bI04 http://youtoube.com/watch?v=4cSRpu7bI0

if [ -z "$@" ]

then

echo " USAGE: $0 url1 url2"

echo " EXAMPLE: $0 http://youtoube.com/watch?v=4cSRpu7bI0"

echo " version 0.1, still alpha"

else

for URL in "$@";

do

if [ "$URL" ]

then

echo "processing "$URL"..."

echo "#####################"

HOST=${URL%*/*}

if test "$HOST" = "http://www.youtube.com"

then

echo "video is hostet at www.youtoube.com"

BASEURL="${URL%&search=*}"

VIDURL="$(echo $BASEURL | sed s/watch\?v=/get_video\?video_id=/)"

FILENAME="$(echo ${VIDURL##*/} | sed s/get_video\?video_id=//).flv"

wget -c "$VIDURL" -O "$FILENAME"

ffmpeg -i "$FILENAME" -acodec mp3 -ab 96 -vcodec mpeg4 -b 320 $(echo "$FILENAME" | sed s/.flv/.avi/)

fi

if test "$HOST" = "http://youtube.com"

then

echo "video is hostet at youtoube.com"

BASEURL="${URL%&search=*}"

VIDURL="$(echo $BASEURL | sed s/watch\?v=/get_video\?video_id=/)"

FILENAME="$(echo ${VIDURL##*/} | sed s/get_video\?video_id=//).flv"

wget -c "$VIDURL" -O "$FILENAME"

ffmpeg -i "$FILENAME" -acodec mp3 -ab 96 -vcodec mpeg4 -b 320 $(echo "$FILENAME" | sed s/.flv/.avi/)

fi

if test "$HOST" = "http://video.google.com"

then

echo "video is hostet at video.google.com"

echo "this is ath the moment not supportet"

echo "if you have a hint, let me know it"

fi

else

echo "ERROR: cannot read "$URL""

fi

done

fi

kreuger@ubuntu:~$ sh youtube.sh http://youtube.com/watch?v=abxAdGQNu3Q
processing http://youtube.com/watch?v=abxAdGQNu3Q...
#####################
video is hosted at youtube.com
--12:11:51--  http://youtube.com/get_video?video_id=abxAdGQNu3Q
		   => `abxAdGQNu3Q.flv'
Resolving youtube.com... 208.65.153.242, 208.65.153.245, 208.65.153.240, ...
Connecting to youtube.com|208.65.153.242|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
12:11:51 ERROR 404: Not Found.

ffmpeg version CVS, build 3276800, Copyright ? 2000-2004 Fabrice Bellard
  configuration:  --extra-cflags=-fomit-frame-pointer -DRUNTIME_CPUDETECT --buil																		   d i486-linux-gnu --enable-gpl --enable-pp --enable-zlib --enable-vorbis --enable																		   -libogg --enable-theora --enable-a52 --enable-dts --enable-dc1394 --enable-libgs																		   m --disable-debug --prefix=/usr
  built on Nov 24 2005 10:19:02, gcc: 4.0.3 20051121 (prerelease) (Ubuntu 4.0.2-																		   4ubuntu3)
abxAdGQNu3Q.flv: Unknown format

  • 2 months later...
  Quote
MPlayer was compiled without libmp3lame support.

--xvidencopts is not an MEncoder option

Exiting... (error parsing command line)

I installed it via Synaptic. I guess I'll have to compile it myself? But what about the xvidencopts is not an mencoder option? Is that a typo on your part?

Yes...Remove the extra '-'

So just -xvidencopts pass=2:bitrate=-1

You can change pass to 1 or remove it the pass= option...I don't think there will be much difference in video quality.

Are you running Ubuntu? The SVN mplayer builds are kinda broken for me lately. I think since RC1. I'm trying to get the 1.0pre8 builds to compile. Unless there is someway to compile mencoder by itself...

I get the same brokeness in trunk and the RC1 release. I've narrowed the problem down to an issue with the video outputs when using gmplayer. Not sure if it's mplayer or something else that's causing it. (Probably that piece of crap fglrx or something) Only the X11 output + software scale works right.

Anyways...What problems did you have compiling it before?

I don't recall but it seems to have worked fine now. I still get the error about xvidencopts.

Edit: I'm going to try to recompile it with xvid flags shown here

Edit 2: When I tried to compile, it wouldn't let me use

  Quote
--with-xvidincdir=/path/to/xvid.h.

Anway, now it says..

  Quote
MEncoder 1.0rc1-4.1.2 ? 2000-2006 MPlayer Team

CPU: AMD Athlon XP 2800+ (Family: 6, Model: 10, Stepping: 0)

CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0

Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE

success: format: 0 data: 0x0 - 0xa1a23b

libavformat file format detected.

VIDEO: [FLV1] 320x240 0bpp 25.000 fps 0.0 kbps ( 0.0 kbyte/s)

[V] filefmt:35 fourcc:0x31564C46 size:320x240 fps:25.00 ftime:=0.0400

==========================================================================

Opening audio decoder: [mp3lib] MPEG layer-2, layer-3

AUDIO: 22050 Hz, 2 ch, s16le, 64.0 kbit/9.07% (ratio: 8000->88200)

Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)

==========================================================================

Couldn't find video filter 'xvid'.

Failed to open the encoder.

Exiting...

Edit 3: I found a site that suggested a frontend called encode2mpeg and using this command

  Quote
encode2mpeg file.flv -o file.avi -ffourcc DIVX -avionly -encode 3 -usesbr 2
I was able to convert it to avi but it had bad quality sound. Just got to figure out the best way to use it. Edited by Kreuger
  • 2 years later...
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • GPT-5 upgrade sparks backlash from ChatGPT Plus users over new usage limits by Pradeep Viswanathan OpenAI yesterday unveiled its highly anticipated GPT-5 model, featuring major advancements in reasoning, coding, and tool-calling capabilities. In a departure from previous launches, the company announced that this cutting-edge model will be accessible to all ChatGPT users, including those on the free tier. Depending on the ChatGPT subscription tier, GPT-5’s intelligence and usage limits will vary. Free-tier users will receive a limited number of high-intelligence responses, while Pro-tier users will have unlimited access. Here are the exact GPT-5 usage limits on ChatGPT: ChatGPT Free tier accounts can send up to 10 messages every 5 hours. After reaching this limit, ChatGPT will automatically use the GPT-5 mini until the limit resets. Free tier users also have access to just one GPT-5 Thinking message per day. ChatGPT Plus plans can send up to 80 messages every 3 hours. After reaching this limit, ChatGPT will switch to GPT-5 mini until the limit resets. ChatGPT Plus or Team users can manually select the GPT-5-Thinking model from the model picker with a usage limit of up to 200 messages per week. ChatGPT Pro plan offers unlimited access to GPT-5 models. If ChatGPT automatically switches from GPT-5 to GPT-5-Thinking, it will not count toward the above limits. While this may sound good, ChatGPT Plus subscribers are unhappy with the change. Previously, they had unlimited access to OpenAI’s o3 and o4-mini Thinking models, but they are now limited to just 200 messages per week. The only workaround for ChatGPT Plus users, for now, is to explicitly instruct the model to think longer through their prompts. It’s unclear how OpenAI will respond to this feedback from its core subscribers. Any future changes to the usage limits for Plus users could play a key role in keeping subscribers satisfied while balancing global demand for the GPT-5 model. Image Credit: Depositphotos.com
    • Guess I'll be saving the APK for future use, screw that data-harvesting copilot crap...
    • Looks like it, I have them working after the update.
    • MEmu Android Emulator 9.2.6 (offline installer) by Razvan Serea MEmu is a FREE Android emulator that brings fun of the Android experience to Microsoft Windows devices. It runs on nearly all Windows devices (PC, notebook, 2-in-1 devices, tablets). Comparing to other Android emulators, MEmu provides the highest performance and greatest compatibility. The richest features: Full Android experience with an elegant desktop Flexible customization (CPU#, memory size, resolution, device model, nav bar location, root mode, etc.) Mapping the keyboard / joystick to screen touch for much better game experience Passing through sensor data (e.g. accelerometer) to Android, so you can play car-racing like games intuitively GPS location simulation File sharing between Windows and Android Fast APK installation by drag and drop One-click Android system creation / clone / deleting, and you can run multiple Android instances simultaneously Using MEmu, you can: Have fun playing Android games on PC Chat more conveniently by using keyboard in Whatsapp, Wechat, etc. Watch live show and TV channels Ten seconds to start Directly open several Android Emulator windows MEmu Android Emulator 9.2.6 changelog: Optimized the emulator GUI to support native Windows 11 style. Optimized APK export speed, automatically export to shared directory, and display export progress. Fixed an issue where APK export could occasionally result in incomplete files on Android 12 instance. Fixed graphical corruption issues in Project Net game. Download: MEmu 9.2.6 Offline Installer | 639.0 MB (Freeware) View: MEmu Home Page | MEmu Support Get alerted to all of our Software updates on Twitter at @NeowinSoftware
  • Recent Achievements

    • One Month Later
      Jaclidio hoy earned a badge
      One Month Later
    • Week One Done
      Yawdee earned a badge
      Week One Done
    • Week One Done
      eugwalker earned a badge
      Week One Done
    • First Post
      Ben Gross earned a badge
      First Post
    • One Month Later
      chiptuning earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      658
    2. 2
      +FloatingFatMan
      185
    3. 3
      ATLien_0
      146
    4. 4
      Xenon
      133
    5. 5
      wakjak
      107
  • Tell a friend

    Love Neowin? Tell a friend!