Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-27-2009, 07:44 AM   #1
LQ Newbie
Registered: Jan 2009
Posts: 8

Rep: Reputation: 0
Help with ffmpeg conversion, flv player not functioning.

Hey everyone, My first post here

Well anyway, i got a school project in what i use ffmpeg to convert a media file such as .avi, .mpg, .wmv and so on to .flv. The command i give ffmpeg for this is:

./ffmpeg -i file.avi -acodec libmp3lame -ab 32 -f flv file.flv

Now this works fine, Only a buffer error but thats expected with the Lame library, Works well in Vlc and so on, Both soundwize and video.
But when its inserted into the online flv player on the website it starts, but the "Progress bar" or whatever its called, The thing showing you how far into the movie you are, Does not work.
It freezes completely at the end and just don't work, Though the demo-video.flv provided with the flv player upon download works fine.

So i was wonderuing if anyone else have had this problem and got a solution? And if not, Whould you say this is a error made becouse of a faulty ffmpeg or the flv media player?
Any help appreciated.

- Gune
Old 01-27-2009, 06:23 PM   #2
Senior Member
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
Welcome to LQ!

#man ffmpeg

See the articles section -->Newbie at for a long article on ripping
Old 01-28-2009, 01:05 PM   #3
LQ Guru
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
I know which tutorial you got that from, but they are wrong. The bitrate is in bps not kbps, so it should be 32k for 32000 and 32 for 32 (way too low).

Anyway, make sure to read:

Here's a short-hand format I wrote to summarize the main options:

NOTE: Start by playing the video with mplayer and get the info needed.

Global: <option, list>, (units), [default], =description, #see description

ffmpeg <infile options> -i infile <outfile options> outfile

NOTE: Try to use as few options as possible, only those that are needed, usually
just bitrate, size, codecs.

	-f <format>	=force format
	-y 			=overwrite output files
	-t <>	=duration of transcoded video sequence
	-fs #			=file size
	-ss <>	=seek
	-target <vcd, svcd, dvd, dv, pal-vcd, ntsc-svcd>
	-dframes # 		=number of frames to record
	-scodec <codec> 	=subtitle force
	-threads #	=number of threads

	1)	-b <bitrate> (bps) [200k]
	2)	-sameq 		=variable bitrate
	3) -qscale <q> =fixed quantizer q = 1 (best) - 31 (worst)
		-maxrate <bitrate> (bps)
		-minrate <bitrate> (bps)
	-vcodec <codec>
	-r <fps> [25]
	-s <wxh> [same as source]
	-aspect <4:3, 16:9>
	-crop<top, bottom, left, right> <size> (pixel)
	-pad<top, bottom, left, right> <size> (pixel)
	-pass <1, 2> =two pass encoding, for more accurate bitrates, high quality (use with '-an -f rawvideo -y /dev/null')
	-passlogfile <file>
	-padcolor (hex) [000000]
	-vframes # =number of video frames to record
	-vn =video null, disable video
	-bufsize <size> (bits) =video buffer size
	-ab <bitrate> (bps) [64k]
	-ar <freq> (Hz) [44100]
	-acodec <codec>
	-async <freq> (Hz)
	-ac <# channels> [1]
	-aframes # =number of audio frames to record
	-an =audio null, disable audio
Old 01-28-2009, 04:01 PM   #4
LQ Newbie
Registered: Jan 2009
Posts: 8

Original Poster
Rep: Reputation: 0
I tried it but with no luck, Works fine in converting though the "progress bar" thingy still gets stuck at the end not moving=(

Time for some more google'ing.

- Gune


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ffmpeg - flv Unsupported audio codec JavaNinja Linux - Software 15 06-02-2011 02:08 AM
Conversion of mpg,avi,mov,wmv formats to flv manu82 Linux - Software 6 07-30-2008 04:31 AM
Converting flv to Mpg with Audio and ffmpeg btbx Linux - Software 7 06-12-2008 02:41 PM
LXer: Convert .flv (Google Videos) to .mpg using ffmpeg LXer Syndicated Linux News 0 07-25-2007 06:31 AM
how do i convert wmv to flv using ffmpeg? farmerjoe Linux - Software 0 11-15-2005 02:20 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:16 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration