Thursday, February 03, 2005

FLV to other... Revisited

A comment states that the flw2swf app has the same problem with nellymoser.
Another lead worth checking might be AVISynth that is a scriptable frameserver.
---
The German site http://www.flv2swf.de/german.htm Translated version offered a broken link to download a cgi or command line flw to swf converter. On http://www.swftools.com/files/ I found what I suppose most be the same file flv2swf.exe. I don't have the time to try this now. Will get back when I have tested it.

Documentation
---

Lowtech Solution! Rewire Soundmeowmeow has a suggested solution: one way to do conversion is use Action Script Viewer

Brian commented/added this Rewire solution

Was able to get the sound by using doing the following:

1) download audacity from http://audacity.sourceforge.net/

2) Select Wave Out Mix (middle of the screen just under skip forward).

3) Press Record (red round button).

4) Play the flash video.

5) Press Stop (beige round button) in audacity.

6) In audacity edit the clip and export (need to download lame extra).


As far as automating the process might be possible on linux if you can pass flv file to a process that can play up the flash video and then read from the sound card (directly from /proc probably). Should be possible to automate with a little/lot of work.

As for rivavx this is defintely a way to expand their product by taking the sound indirectly from the flv and merging it with video format that you want. Support for this type of merging is availible in ffmpeg so it's really a matter of waiting to see if they can make a product of it.

-----

It seems like the war is lost. Had I seen this forum-discussion earlier it would have saved me two days of work and research! Didn't search for audio-codec when i A9'nd it before.

Some saples from the discussion

quote: Brandon Purcell @ Macromedia

> After some research I found no solution to your specific problem.
> Flash/FCS/Flash Player use a number of different audio codecs, but
> the two primary formats that audio in which audio is stored in a FLV
> are Nelly Moser format and MP3 format. However, there is currently
> no way to extract or convert FLV files into any other audio format.
>
> Thanks
> Brandon

quote: meowmeow70
We decide fold our solution based on macromedia FCS due to above reason. Stay away from FLV as much as we can.

quote: dlorenso
We contacted Sorenson regarding the NellyMoser codec to see if they'd sell us the decoder. Response was something along the lines of several thousand dollars plus restrictions that required profit sharing and/or more thousands. In addition, we would be unable to share the technology we build or make available as a service online...
...Perhaps we can ditch the FCS server soon too...
...Wouldn't it be great if macromedia could adopt formats like MPEG and MP3 into the FCS product? I'd pay for that. Meanwhile ... FLV ... come on Macromedia, open it up, gimme the tools, or it's useless.


It's like I was told from start. It's not a bug it's a feature... But we spent alot on the Flash Com Server and we have an flash webcam app that works very well. So we will try one more thing! My colleague Frank will create a drop folder on our MacOSX server and use Apple script to open the FLV in Flash MX and then export a SWF that I can convert to other formats...

The Video Kiosk on svt.se/faktum (in swedish).

-------------------------------------------------------------------------------
EARLIER POSTING

There were some questions about why I wanted to decode FLV files to other formats. On JD on MX. The thing is we use Flash Communication Server to produce flash video from web cams. A lot of times we would like to present this content on other platforms, like on TV, even though the quality is low...

I could of course import it into Flash MX and Export a SWF and the convert it in any of the million of programs that can convert from SWF (I can actually import that file directly in Avid or AE) … But there’s no time for this and I want the Editor to be able to do it himself.

Then Tinic Uro told me about FFmpeg: A command line tool to convert one video file format to another. It’s an open source project and I couldn’t find any binaries for Windows or Mac OSX. I’m not really that deep into "hardcore programming" so I had some help compiling it and running it on Solaris. It felt like there were thousands of Options to mess with and we just couldn’t get them right... conversion failed.

Then I found Riva FLV Encoder that is like a GUI for FFmpeg and LAME (LGPL MP3 encoder). If I rename the file extension to an Extension of my choice, like AVI I’m able to convert the file from FLV to AVI… But only if I have unchecked Enable Audio! With Audio I get:
The encoding of your video file has failed. This can be caused by a not supported combination of parameters or by a not supported video codec.
I have tried different settings but can’t convert the file with sound.

But wait, lets try converting an AVI to FLV and back again... maybe it’s just something wrong or strange with the sound codec in the file created by Flash Com Server. Yes it worked! But oh, it had no sound. Lets try a MPEG with sound... created the FLV fine... coming back... No...

Must and will take time to read some documentation about the format and about FFmpeg. unless someone else can solve my problem...

A file produced by the Flash Com Server can be found here: http://svt.se/content/1/c6/32/35/48/birgitta_intro.flv


«Earlier idtech post on this topic

52 Comments:

Blogger SnoboJohan said...

http://forum.rivavx.com/viewtopic.php?p=63#63
forum admin on Riva VX says:
"flvs created with the Flash Communication Server have a not supported audio-codec"

I will try to figure out what codec the Flash Com Server used. And get back.

1:16 PM  
Blogger brian said...

Was able to get the sound by using doing the following:

1) download audacity from http://audacity.sourceforge.net/

2) Select Wave Out Mix (middle of the screen just under skip forward).

3) Press Record (red round button).

4) Play the flash video.

5) Press Stop (beige round button) in audacity.

6) In audacity edit the clip and export (need to download lame extra).


As far as automating the process might be possible on linux if you can pass flv file to a process that can play up the flash video and then read from the sound card (directly from /proc probably). Should be possible to automate with a little/lot of work.

As for rivavx this is defintely a way to expand their product by taking the sound indirectly from the flv and merging it with video format that you want. Support for this type of merging is availible in ffmpeg so it's really a matter of waiting to see if they can make a product of it.

11:19 AM  
Anonymous Anonymous said...

one way to do conversion is use Action Script Viewer http://www.buraks.com/asv/1.html

This process requires flash pro version (of course)

1. You first convert flv to fla file using action script viewer
2. then import fla file to blank document of flash (pro version)
3. then publish it as swf file.
4. then using Action Script Viewer, extract mp3 file from swf file.

I am not sure which solution is more automatible.
Audacity or ASV. You could use automate 5.5 type utility.

Neither one is not scalable solution.

I am pulling my hair off with similar dilema.

this was my 2 cents. I feel your pain.

good luck. please keep it posted if you find scalable and automatible solution.

-- meowmeow

8:33 AM  
Blogger SnoboJohan said...

Flv to Swf Documentation (Translated from German by BabelFish:

can be found at: DokumentationGeneral information

FLV2SWF should be put down into that IS listing of the Web server. Optionally it can be served also by console. Absolute call by Browser:

http://localhost/cgi-bin/flv2swf.exe?i=input.flv

Call by console:

flv2swf.exe -i input.flv -o output.swf

Expenditure (1:1) the Flash video file (flv) on the Fly

The parameter i indicates the video input file (flv), which can be converted. The expenditure is sent back at the Browser, no Flash file (swf) is written:

flv2swf.exe?i=input.flv

Relative and absolute paths can be used likewise:

flv2swf.exe?i=../input.flv
flv2swf.exe?i=C:/Programme/input.flv

Video expenditure in Flash:

If the input file (flv) is missing, a message with &error=can't open file is returned:

mc.loadMovie ("flv2swf.exe?i=input.flv");

Conversion (1:1) the Flash video file (flv)

The optional parameter o determines the Flash output file (swf), which can be written. Additionally to the Genierung of the file the expenditure at the Browser is sent back:

flv2swf.exe?i=input.flv&o=output.swf

Convert without expenditure in Flash

In order to avoid the video expenditure in Flash after converting, the parameter must return be hung to the call:

mc.loadMovie ("http://localhost/cgi-bin/flv2swf.exe?i=input.flv&o=output.swf&return=0");

Conversion (batch) of files

All files, which are located in the listing, which was indicated i by and with the file dung flv to end, becomes converted into the appropriate Flash file (swf) and into the listing written that by o the parameter one indicated:

flv2swf.exe?i=inputDir/&o=outputDir/

The indication of "\" or "/" after the file name is important only then these as paths is recognized. If the file is missing, this is provided. After successful conversion there is an expenditure &total=29 with the total number of the converted files.

Conversion of the Flash video files (flv) in the same file:

flv2swf.exe?i=./&o=./

Recursive conversion (batch) of files

All files in the Unterordnern, which are located in the listing, which was indicated i by and with the file dung flv to end, becomes converted into the appropriate Flash file (swf) and into the listing written that by o the parameter one indicated, if the parameter r is along-sent:

flv2swf.exe?i=inputDir/&o=outputDir/&r=1

Proportional scaling video

The optional parameter s indicates the scaling factor in per cent, to e.g. 50 for the halving the width and height of the film:

flv2swf.exe?i=input.flv&s=50

Pixel-exact scaling video

The width and height of the video expenditure can be stopped with the optional w parameters h and:

flv2swf.exe?i=input.flv&w=100&h=200

Storage of textual informations

With the optional parameter t any text in the variable t the Flash file (swf) is stored:

flv2swf.exe?i=input.flv&o=output.swf&t=text

Restriction of the write rights

With the help of the file flv2swf_paths.txt in ARE listing can the write rights on the server be limited. If this file should not be present, the program possesses write rights for Flash files (swf) on the whole server. This possibly represents a safety risk.

If this file exists and is however completely empty, then no write rights on the server are granted to the program. The expenditure of Flash video files (flv) functions nevertheless to on the Fly, in order to save connections with the Macromedia Flash Communication server MX.

If the file is present, then the output file (swf) may begin including path, only with character strings, which in the file. Several paths, in each case one can be given per line. For safety reasons it is recommendable to use absolute paths. Structure of example of the flv2swf_paths.txt:

E:\Webserver\swfaudios
E:\Webserver\swfvideos

For safety reasons it is to be overwritten not possible different Flash files (swf). If this is nevertheless tried, receive the error message &error=file exist back.

Stored video data

The following variables are along-stored with the generation of the Flash file (swf):

wid Width of the film
hei Height of the film
len Number of Frames
fps Framerate (with -1 no video is merged)
sec Length in milliseconds
snd Sound format (with 0 no sound is merged)
s Scaling factor
t Textual information

Error messages

The following error messages (&error) can be returned when converting:

no input file specified No Flash video file (flv) indicated.
no output file specified No Flash file (swf) was indicated.
output name must end with .swf Wrong file dung for the output file.
output name to short The length of the output file name must amount to at least 4 indications.
can't open file An input file could not be opened, e.g. because no read access exists.
invalid file size When opening a file an invalid file length was recognized.
file exists The output file existed already and would be overwritten, if the Flash file (swf) under the indicated output file name would be stored.
path not found in flv2swf_paths.txt There is a flv2swf_paths.txt file, but the path of the output file is not noted in this file.

Function calls of NetStream.send

The noted function calls of a Streams are also converted into the Flash file (swf) and called when playing accurately temporally again. The method is called in the range of validitythis() of the Flash file (swf).

With the parameter transfer only one stringer parameter is permitted. Are if several parameters along-hand over to become, this must happen in "a;b;c" the format, the parameters can by separately String.split (",") be selected later.

Callbacks

At the beginning of the film (swf) the function this.onStart(); is called and at the end this.onEnd(); the function. The function onEnd is already pre-defined:

this.onEnd = function () {
this.gotoAndPlay (2);
}

The functions onStart and onEnd can be overwritten to the shop of the first Frames by a surrounding film to stop e.g. in order the video.

Streaming sound prevent

In order to avoid the Streamingverhalten of the sound within a Flash file (swf), must be given when converting nosound the parameters. This is meaningful e.g. with an Snapshot application:

flv2swf.exe?i=input.flv&nosound=1

11:17 AM  
Anonymous Anonymous said...

Again, it comes down to Nellymoser Audio codec.

thanks for the information though

-- Meowmeow

Here is my execution output.

flv2swf.exe 12315.2228.flv test.swf

**** flv2swf 1.2 (c) 2003 by Frank P. Baumgartner - www.active-web.cc ****

- FLV version: 1
- Flags: 04h
- framerate: 1
- width: 550
- height: 440
- warning: unsupported nellymoser audio compression found: skipping audio data!
- converting data ...

7:27 PM  
Anonymous Anonymous said...

I tried flv2swf and only got a Dr.
Watson error every time I tried to
run it. :(

Has anybody made any progress on
this?

11:17 PM  
Anonymous Anonymous said...

I think bottom line is Nellymoser codec for the decoding of fcs recorded file. This is comercial proprietary code. So any free tool ffmpeg and all other solution would not work.
If it works, there will be legal consequence.

Either Macromedia or Nellymoser has to release their decoder available for the public.

12:42 AM  
Anonymous Anonymous said...

Get only "ffmpeg.exe" from riva encoder. It's a dos program. Copy it in the folder where your .flv file is. Go to dos prompt and change it to that directory where files are and type:

ffmpeg -i "input_file.flv" -b 360 -r 29.97 -hq -ab 128 -ar 44100 -acodec mp3 -vtag divx "output_file.avi"

where "input_file" is your .flv file, and "output_file" is the name of your new .avi file.

Works 100%! Personally tested! Njoy!

6:31 PM  
Anonymous Anonymous said...

I've a made a little program for linux that can convert extract FLV audio to mp3, check it at http://etudiant.epita.fr/~founad_m/flv2mp3/

12:15 AM  
Anonymous Anonymous said...

I dont know if any resolution has been made BUT I found a program that encodes. I got it to work 2 times and then no go. I must have changed the setting somewhere along the line. Can someone tweek it and find out the correct settings? The program is from http://www.imtoo.com and it is the MPEG encoder. Hope this helps! Please email me if you get something going with it! PLEASE! amy@amysworld.com

10:20 PM  
Anonymous Anonymous said...

I forgot to mention that it was a .flv file to a .wmv file. Thanks, Amy

10:21 PM  
Anonymous Anonymous said...

Oh finally!

After trying everything from a hundred sites. I'm confirming that ImTOO MPEG Encoder 2.1.59 build-0206b will convert (even batch convert) flv files to avi, mpg, and wmv that I've tested so far.

Default settings for a 3 min video are
AVI - 60 Mb
MPG - 45 Mb
WMV - 31 Mb

The AVI and MPG seem lossless, but the wmv looks grainy to me.

12:53 AM  
Anonymous Anonymous said...

ok

if u can rip the sound out of the file as above u can use HYPERCAM to record the video to avi format and then use VIDEOMACH to combine the sound and audio :)

simple works

-nogun

4:07 PM  
Anonymous Anonymous said...

I found Moyea Flash to Video Converter is the best software that can convert flv or swf to other format.

Almost all the problem above has been solved, such as: Asynchronization of video and audio.

and it has:
1. Smooth sound with high audio quality,
2. high video quality,
3. Smooth playback of video and animations, and perfectly process complicated Flash files
4. Accomplish the Flash Alpha effect in the converted video

10:40 AM  
Anonymous Anonymous said...

I can't get the video out,myself but a program I use tells me .flv file I'm working with has a mpeg4 audio track. If that info helps anyone?

10:10 PM  
Anonymous Anonymous said...

How to extract mp3 flv use mplayer:
Download mplayer
then type this from the command line

C:\> mplayer "file.flv" -dumpaudio

Then change "stream.dump" to "file.mp3"

2:00 PM  
Anonymous Anonymous said...

Some of you obviously don't get what is going on. You keep telling us to use mplayer and ffmpeg. They DO NOT work with the Nellymoser codec that is now implemented with Adobe's Flash Media Server. The FLV files you are converting are older files that have an MP3 audio track. The files generated from the Flash Media Server now use the Nellymoser codec, which is closed source and therefore can NOT be decoded by ffmpeg and mplayer. So get on track, figure out what we are doing, and please quit wasting our time with old, outdate methods that were ALREADY tried.

4:57 AM  
Anonymous Anonymous said...

Yes its posible check this url: http://flv2mp3.com
Hope can I help you.

9:37 PM  
Blogger Unknown said...

FLV converter is my website, It provides all popular FLV converters including FLV encoder, decoder and player. all your comments are welcomed.

12:01 PM  
Anonymous Anonymous said...

Most functional FLV converter: flv to swf, avi, mpeg, gif, ect

1:51 PM  
Anonymous Anonymous said...

Full codec - encoder/decoder - http://nellymoser.narod.ru/

11:51 PM  
Anonymous Anonymous said...

best dvd ripper

12:59 PM  
Anonymous Negocios Rentables said...

Interesting information is very useful for many people the truth seems to me important to read an articles of this kind, thanks for sharing with us

5:37 PM  
Blogger Unknown said...

design hubs,
newyork chics
luxury handbag,

6:18 AM  
Anonymous Buy Edegra said...

I think bottom line is Nellymoser codec for the decoding of fcs recorded file. This is comercial proprietary code. So any free tool ffmpeg and all other solution would not work.

Kamagra,Generic Viagra ,Kamagra Oral jelly ,Propecia

9:56 PM  
Anonymous Anonymous said...

If you don't know how to lose weight, then reading a few weight loss tips and ways to lose weight online can help you out.

1:13 PM  
Anonymous Aşk Büyüsü said...

I think bottom line is Nellymoser codec for the decoding of fcs recorded file. This is comercial proprietary code. So any free tool ffmpeg and all other solution would not work.

10:19 AM  
Anonymous buy generic viagra online said...

Hey this is amazing accessories.... It sounds great. Thanks for sharing it. Your blog is very informative. Thanks for sharing it, keep posting.

James, NY

8:01 AM  
Anonymous Generic Viagra said...

I would like to appreciate the great work done by You

9:36 AM  
Anonymous Essays Writing said...

Nice product. good share thanks
Photo Editing ,3D Architectural Rendering , Cheap Discount Furniture Sales, Custom Writing Essays UK, Digital Marketing Solutions, Real Estate, Plots, Apartments and Email Marketing California USA, Directory Submission, Article Submission, Essays, Assignment, Coursework, Custom Writing Essays, Term Papers

7:19 AM  
Anonymous Send Flowers to Dubai said...

Hey great stuff, thank you for sharing this useful information and i will let know my friends as well.

8:42 AM  
Anonymous Canada flower shops said...

I suggest this site to my friends so it could be useful & informative for them also. Great effort.

10:24 AM  
Blogger jimmychooshoes said...

Jimmy Choo China strappy sandals
Jimmy Choo Patent leather sandals
Christian Louboutin - Declic leather pumps
Christian Louboutin Very Jaws 140 pumps
Alexander McQueen black skull zipper bootie
mcqueen shoes
alexander mcqueen heels
Alexander McQueen Store
Jimmy Choo sale
Replica jimmy choo shoes
manolo blahnik online store
manolo shoes
manolo blahnik sale
replica christian louboutin shoes
discount christian louboutin shoes
alexander mcqueen shoes
jimmy choo outlet
jimmy choos
jimmy shoes
Manolo Blahnik Shoes
christian shoes

12:54 PM  
Anonymous Anonymous said...

custom dissertation | mla Essay

11:21 AM  
Anonymous Magnetic Generator said...

Sometimes converting files to another format is a huge pain!

2:32 AM  
Anonymous ベネトリン said...

hey buddy,this is one of the best posts that I’ve ever seen; you may include some more ideas in the same theme. I’m still waiting for some interesting thoughts from your side in your next post.

2:18 PM  
Anonymous Anonymous said...

Your website is simply definitely one of the finest . All around outcome of the page is simply stunning .
locksmith miami beach fl
locksmith Plantation
Locksmith Union City CA
Santa Clara locksmith
Locksmith Santa Clara CA
Santa Clara locksmith
Locksmith Santa Clara
Santa Clara locksmith
Locksmith Orland Park
Locksmith Orland Park
Locksmith Orland Park IL
Locksmith Orland Park
Orland Park Locksmith
Orland Park Locksmith
Orland Park Locksmith
Orland Park Locksmith
Orland Park Locksmith
Locksmith Orland Park IL
Locksmith Orland Park IL
Locksmith Orland Park IL
Locksmith Orland Park
Orland Park Locksmith
locksmith pembroke pines fl
locksmith pembroke pines fl
locksmith pembroke pines fl
hialeah locksmith
miami locksmiths
locksmith pembroke pines fl
fort worth locksmiths
locksmith in hialeah
locksmith pembroke pines fl
hialeah locksmith
miami locksmith
locksmith hialeah
miami locksmith
locksmith Aventura FL
locksmith hialeah
locksmith hialeah
hialeah locksmith

6:51 AM  
Anonymous Anonymous said...

It really comes frustrating when you have to convert a video..

photo editing online - photo editing - Photo Editing Service - Image manipulation Service - skinny photo editor - professional picture editing

9:54 AM  
Anonymous Foods to Avoid When Trying to Lose Weight said...

your article is very informative.. i wish to have such content as yours. did you hire an article writer? if so, can you drop me an email so that I can contact him/her.. thanks again for this info..

9:50 AM  
Anonymous viagra on line said...

Really great post, Thank you for sharing This knowledge.Excellently written article, if only all bloggers offered the same level of content as you, the internet would be a much better place. Please keep it up!

1:08 AM  
Anonymous how to lose water weight overnight said...

visit my blog anytime, I was amazed with how you do your layout as well as the

color combination of your blog. I will include this in my bookmarked page. I hope

you can drop by and leave some comments that can help enhance my blog.. thanks and

have a great one.

8:43 AM  
Blogger Christian Louboutin sale said...

Intrigued by Madame Obama LT predicts which you will be fascinated quickly after reading through Kate Betts's achieved book:"Everyday Icon--Michelle Obama as well as the energy of style."Lively with cherry-picked photographs,it delves into the history of previous first ladies,explores America's puritanical attitude in the direction of the well-dressed and by means of eloquent style custom made selection interviews in inclusion to poignant trips to Chicago spills the beans on Michelle- Queen Bee belonging using the dark elite. A breezy,consuming read,c'est le should for ze cheap louboutin shoes red-soles sisters!"Paris was ours" is pretty different,suiting individuals who treasure the city of light;even nursing possessive feelings about place.Dip in to the thirty-two evocative essays penned from the likes of Diane Johnson,Judith Thurman and Zoe Valdes. Edited by Penelope Roeland, the guide could possibly be the best shock to the soignee et sophisitiquee.Finally,there's "Life" by Keith Richards and James Fox-one of LT's favourite biographies from 2010. Look at the Keef's account of sex and prescriptions dollar the Rolling Stones and take satisfaction in Jame Fox's wit and wisdom with his fabled turn of phrase.

4:46 AM  
Blogger Christian Louboutin sale said...

Mirror, mirror on the wall, crystal is the fairest bauble of them all. This winter, let your feet marvel and sparkle with the likes of Lady Lynch Zeppa, Stellis, So Private, Calypso, Beaute Strass, Pigalle or made-to-measure crystallized high-tops(see Mika's latest cideo.) But be warned, crystal gazing can lead to a hypnotic state. There again, those darling Druids would beg to differ as would Queen Victoria who ordered up Crystal Palace and fervent fans of Naico Mine's 'Cave of the Gaints' in Chihuahua, Mexico. If visiting the latter, pack your Christian louboutin shoes and matching hairnet; the humidity is frizz bang outrageous.
DIscount moncler uk , cheap Babyliss Hair Straightener, CHI Hair Straightener.

5:29 AM  
Anonymous SEO Pakistan said...

Very nice article, thanks for posting.

SEO Pakistan

3:47 PM  
Anonymous Bağlama büyüsü nasıl yapılır said...

It really comes frustrating when you have to convert a video

4:22 PM  
Anonymous Women leather jackets said...

nice post love it
Womens Leather Coats for sale

5:44 PM  
Anonymous Hotel in San Antonio TX said...

Great stuff here. I visit this site and acquainted with this. This site publish most useful and valuable article. I read this post and find lot of things. I am really happy for reading and knowing this post. Thanks for the suggestion!

9:20 AM  
Anonymous Women leather jacket online said...

nice post love it

4:49 PM  
Anonymous SEO Dubai said...

Great stuff here. I visit this site and acquainted with this. This site publish most useful and valuable article. I read this post and find lot of things. I am really happy for reading and knowing this post. Thanks for the suggestion!

10:53 AM  
Blogger Architecture Firm said...

I'm excited to follow along with your new adventures!
Architectural Visualization
Architectural Design

2:46 PM  
Blogger expertessaywritingservicesuk said...

Nursing Essay is leading university specialized essay services,UK is the best place for nursing essay medical Career students our services easily and confidently
http://nursingessayhelp.com

7:11 AM  
Anonymous Medyum Aslan Hoca said...

thanks for sharing. Good post admin thanks.

7:06 PM  

Post a Comment |

« Home

Powered by Blogger Weblog Trackback by HaloScan.com