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. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-27-2009, 07:44 AM
|
#1
|
LQ Newbie
Registered: Jan 2009
Posts: 8
Rep:
|
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
|
|
|
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: 
|
Welcome to LQ!
#man ffmpeg
See the articles section -->Newbie at www.ilug-cal.info for a long article on ripping
|
|
|
01-28-2009, 01:05 PM
|
#3
|
LQ Guru
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
|
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:
http://ffmpeg.mplayerhq.hu/ffmpeg-doc.html
Here's a short-hand format I wrote to summarize the main options:
Code:
FFMPEG
NOTE: Start by playing the video with mplayer and get the info needed.
Global: <option, list>, (units), [default], =description, #see description
Command:
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.
General:
-formats
-f <format> =force format
-y =overwrite output files
-t <hh:mm:ss.xxx> =duration of transcoded video sequence
-fs # =file size
-ss <hh:mm:ss.xxx> =seek
-target <vcd, svcd, dvd, dv, pal-vcd, ntsc-svcd>
-dframes # =number of frames to record
-scodec <codec> =subtitle force
-threads # =number of threads
Video:
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
Audio:
-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
|
|
|
01-28-2009, 04:01 PM
|
#4
|
LQ Newbie
Registered: Jan 2009
Posts: 8
Original Poster
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 11:26 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|