LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
LinkBack Search this Thread
Old 01-20-2011, 08:43 AM   #1
Helstedxd
LQ Newbie
 
Registered: Aug 2010
Posts: 21

Rep: Reputation: 0
FFMPEG video converting, VERY pixelated


Hi Everybody

I am trying to make my server convert my videos to FLV in a descent quality but i get very bad quality from the converting i have tried:

Here i tried to convert WINDOWS 7 standard movie Wildlife.wmv to FLV with its original specs

Code:
ffmpeg -i /var/videos/Wildlife.wmv -s 1280x720 -ar 44100 -r 29 -ac 2 /var/flv/Wildlife.flv
and here is the result:
http://www.myupload.dk/showfile/74484251994.flv/

//Helstedxd

N.B. Here is the source if you dont got it:
http://www.myupload.dk/showfile/744843be41e.wmv/
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 01-20-2011, 12:44 PM   #2
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266
If you want better quality use a '-b' bitrate option or '-qscale' option.

For example '-b 5000k' OR '-qscale 7', the lower the qscale the better the quality, the larger the file.

Just so you know, at that resolution, for good quality flv, you would need around 10000 kbps, which is a lot.

Possibilities:
Code:
Video:
    1)    -b <bitrate> (bps) [200k]
    2)    -sameq         =variable bitrate same quality
    3) -qscale <q> =fixed quantizer q = 1 (best) - 31 (worst)
        -maxrate <bitrate> (bps)
        -minrate <bitrate> (bps)
I much prefer using qscale (VBR) over bitrate, because it results in better overall quality, and more consistent quality across files (same resolution, same framerate, same codecs).

I would also use the '-async' option to prevent A/V desync, as well as proper FPS:

Code:
ffmpeg -i Wildlife.wmv -s 1280x720 -ar 44100 -async 44100 -r 29.970 -ac 2 -qscale 5 out2.flv

Last edited by H_TeXMeX_H; 01-20-2011 at 12:49 PM.
 
2 members found this post helpful.
Old 01-20-2011, 01:43 PM   #3
Helstedxd
LQ Newbie
 
Registered: Aug 2010
Posts: 21

Original Poster
Rep: Reputation: 0
Thanks H_TeXMeX_H it worked
 
Old 01-20-2011, 01:45 PM   #4
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266
Yeah, but test it, make sure it works with reasonable CPU usage and flash player. It may not handle large bitrates well.
 
Old 01-20-2011, 01:49 PM   #5
Helstedxd
LQ Newbie
 
Registered: Aug 2010
Posts: 21

Original Poster
Rep: Reputation: 0
i did and it worked perfectly
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How To Reduce / Improve Pixelated Result from FFMPEG? btbx Linux - Software 2 09-02-2011 03:51 PM
[SOLVED] Converting VOB to XVID (using ffmpeg)? Steve W Linux - Software 5 12-10-2010 09:54 AM
ffmpeg: converting and combine into ogv CoderMan Linux - Software 3 10-04-2010 06:13 PM
[SOLVED] converting to 3gp using ffmpeg sumeet inani Linux - Software 4 10-01-2010 09:09 AM
LXer: Converting video & audio files using ffmpeg in GNU/Linux LXer Syndicated Linux News 0 05-30-2009 04:31 AM


All times are GMT -5. The time now is 02:39 AM.

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