PDA

View Full Version : Batch FLV Converter/Decoder


Qjimbo
17th December 2005, 00:32
Here's a rough piece of software I wrote in Delphi to help batch convert FLV files to MPG/AVI with FFMpeg:

http://share.ovi.com/media/luisfelipe7.programas/luisfelipe7.10060

You can select multiple files when adding them to the batch list, and currently it only allows you to reuse the source audio in the FLV files (since I didn't want any more data lost) but you could edit the batch file afterwards and do a find and replace on "-acodec copy" with whatever audio settings you want.

I just needed a program to do this so I wrote it, maybe some other people will find it handy!

EDIT: New download URL: http://qjim.bo/devf/flv_convert.zip

EDIT2: New new download URL! This time I don't have to worry about hosting it. If link fails just google flv_convert.zip .

Thank you for the kind words everyone!

BlindWanderer
29th January 2006, 13:17
messa think thats spam above :P

AutoIt would have been a good language to choose for building a quick and dirty front end. But the tool works, though it's a bit basic...

bugmenotwillyou
24th April 2006, 06:10
Here's a rough piece of software I wrote in Delphi to help batch convert FLV files to MPG/AVI with FFMpeg

Good job. Does what it says. I used it to convert http://movies.collegehumor.com/items/2006/04/collegehumor.1682247.flv

Thanks!

vlada
24th April 2006, 09:40
Well it works unless the video has VP6 compression (Flash 8 default). I'm currently not able to find any way to convert these movies to AVI. But I think I'm getting close thanks to Gabest's FLV splitter. See this thread (http://forum.doom9.org/showthread.php?t=108070&page=2), if you're interested.

pitchel
7th May 2006, 02:39
Wonderful looking tool except it doesn't convert my flv files. Any hope that you could update it to work with VP6 compression ?(vlada's analysis) or maybe a quick guide that I could follow to modify your script? I've spent a week now trying to convert some pesky flv clips and finally found a player that at least plays them.

vlada
7th May 2006, 10:36
You should better ask FFMPEG developers to include new FLV splitter and VP6 decoder. Anyway I was finally able to convert the VP6 FLVs using Gabest's FLV splitter and his VP6 DirectShow decoder. You can find it in a thread about new MPC. After "installing" the splitter+decoder, you can convert your files using AviSynth or Graphedit.

BlazingFire456
12th September 2006, 14:04
I downloaded some .flv videos from YouTube but this thing won't convert sound, it only wants to convert the video. Any help is appreciated, thanks.

vlada
12th September 2006, 14:56
I would suggest you to download FLV Extract (http://www.moitah.net/#FLVExtract). It will extract the sound (I think YouTube uses MP2) and The video will be converted to AVI.

sammo_cat
29th September 2006, 01:10
Thank you very much for your terrific app.

I have been battling for a long time and resorted to the use of screen cap programs.



It took all of four or five clicks to make yours work.

Great job .


P.S. I think maybe in your spare time you could write a new operating system to replace XP for us all to use too.


P.S.S.
Screw the whiners and there remarks , nice one thanks


Thanks again , Sammo

thegsusfreek
30th September 2006, 05:46
I officially nominate you for king of the flv universe. You totally rule!

I've been using [spam], which hasn't been too bad but hasn't been too great either. I've tried many other "free" (trial) pieces of software and other free don't-actually-work pieces of software. All I want to do is convert YouTube vids into mpegs so I can take them over to my parent's place. Is that really too much to ask???

Finally, something simple and easy that works!!! Thanks!

Tropican
6th October 2006, 02:13
I downloaded some .flv videos from YouTube but this thing won't convert sound, it only wants to convert the video. Any help is appreciated, thanks.

Actually I've had this problem with any ffmpeg-based program. Converting the audio works fine (like to PCM during playback or to any other format during a transcode), but a stream copy fails.

Anyone know why?

I would suggest you to download FLV Extract (http://www.moitah.net/#FLVExtract). It will extract the sound (I think YouTube uses MP2) and The video will be converted to AVI.

Youtube uses MP3 AFAIK. 22khz mono @ 64kbps

vlada
6th October 2006, 06:20
Tropican
Have you tried to run FFMPEG from command line, to check if the problem is there too?

According to YouTubes's audio format - most files I recently chcked were really MP3. But I remember some FLVs with MP2 too.

Tropican
7th October 2006, 04:12
Tropican
Have you tried to run FFMPEG from command line, to check if the problem is there too?.

Yes, actually I haven't tried to run the frontend yet :p

Both Mencoder and FFMPEG fail. I remember one time I got an "Error, Skipping Frame!" message but usually there is no valuble output. Here it is anyway:

prompt>ffmpeg -i "pathtoinput.flv" -vcodec mpeg4 -acodec copy "pathtooutput.avi"
FFmpeg version SVN-r6252, Copyright (c) 2000-2004 Fabrice Bellard
configuration: --enable-memalign-hack --enable-mingw32 --enable-gpl --enable-
a52 --enable-mp3lame --extra-cflags=-I/local/include --extra-ldflags=-L/local/li
b
libavutil version: 49.0.0
libavcodec version: 51.14.0
libavformat version: 50.5.0
built on Sep 18 2006 12:46:49, gcc: 3.4.4 (mingw special)
[mp3 @ 00724E34]Could not find codec parameters (Audio: mp3, 8 kb/s)
pathtoinput.flv: could not fi
nd codec parameters


Here's another file. This is the error I usually get. Also the file ffmpeg produces when played back is said not to be "properly interleaved" to the point that the AVI splitter falls back to the Microsoft one.

ffmpeg -i "pathtoinput.flv" -vcodec mpeg4 -acodec
copy "pathtooutput.avi"
FFmpeg version SVN-r6252, Copyright (c) 2000-2004 Fabrice Bellard
configuration: --enable-memalign-hack --enable-mingw32 --enable-gpl --enable-
a52 --enable-mp3lame --extra-cflags=-I/local/include --extra-ldflags=-L/local/li
b
libavutil version: 49.0.0
libavcodec version: 51.14.0
libavformat version: 50.5.0
built on Sep 18 2006 12:46:49, gcc: 3.4.4 (mingw special)

Seems that stream 1 comes from film source: 1000.00 (1000/1) -> 15.00 (15/1)
Input #0, flv, from 'pathtoinput.flv':
Duration: 00:01:27.1, bitrate: N/A
Stream #0.0: Audio: mp3, 22050 Hz, mono
Stream #0.1: Video: flv, yuv420p, 320x230, 15.00 fps(r)
Output #0, avi, to 'pathtooutput.avi':
Stream #0.0: Video: mpeg4, yuv420p, 320x230, q=2-31, 200 kb/s, 15.00 fps(c)
Stream #0.1: Audio: mp3, 22050 Hz, mono
Stream mapping:
Stream #0.1 -> #0.0
Stream #0.0 -> #0.1
frame= 1305 q=9.7 Lsize= 3120kB time=87.0 bitrate= 293.8kbits/s
video:2297kB audio:703kB global headers:0kB muxing overhead 3.991768%

Any ideas on what's going on anyone?

Qjimbo
20th February 2007, 06:28
Problems relating to lack of audio are more likely due to the fact it leaves the audio as MP3, and not all MPEG splitters support MPEG Audio layer 3 (though they should really). The default codec supplied with Windows XP does, but others, like the Mainconcept decoder, don't.

Also new download URL:
http://qjim.bo/devf/flv_convert.zip

cast42
27th February 2007, 21:47
There's an online converter on http://vixy.net that remove the Flash container around the H.263 video stream and MP3 audiostream. The elementary video stream is then muxed with a MP3 or AAC audio stream. Result can be AVI(Divx+MP3), MP4(MP4+AAC), MOV or MP3 only. The conversion software is open source: http://sourceforge.net/svn/?group_id=183657. Remark that Flash video 7, as used by Google, is essentially H.263 video. H.263 is compatible with basic MPEG-4 Part 2 so no decoding/encoding for the video is necessary. Only another filecontainer is applied.

ncso911
7th March 2007, 02:20
Also new download URL:
http://qjim.bo/devf/flv_convert.zip



THANKS.
Worked great

vlada
11th September 2007, 10:44
Why should I pay for such program if there are many programs which can do the same job for free and probably with higher quality? For example Avidemux or FLVExtract.

Guest
14th June 2010, 12:42
Closing old spam bait thread.