ffmpeg is a multiplatform, open-source library for video and audio files. I have compiled 19 useful and amazing commands covering almost all needs: video conversion, sound extraction, encoding file for iPod or PSP, and more.
Getting infos from a video file
ffmpeg -i video.avi
Turn X images to a video sequence
ffmpeg -f image2 -i image%d.jpg video.mpg
This command will transform all the images from the current directory (named image1.jpg, image2.jpg, etc…) to a video file named video.mpg.
Turn a video to X images
ffmpeg -i video.mpg image%d.jpg
This command will generate the files named image1.jpg, image2.jpg, …
The following image formats are also availables : PGM, PPM, PAM, PGMYUV, JPEG, GIF, PNG, TIFF, SGI.
Encode a video sequence for the iPpod/iPhone
ffmpeg -i source_video.avi input -acodec aac -ab 128kb -vcodec mpeg4 -b 1200kb -mbd 2 -flags +4mv+trell -aic 2 -cmp 2 -subcmp 2 -s 320x180 -title X final_video.mp4
Explanations :
* Source : source_video.avi
* Audio codec : aac
* Audio bitrate : 128kb/s
* Video codec : mpeg4
* Video bitrate : 1200kb/s
* Video size : 320px par 180px
* Generated video : final_video.mp4
Encode video for the PSP
ffmpeg -i source_video.avi -b 300 -s 320x240 -vcodec xvid -ab 32 -ar 24000 -acodec aac final_video.mp4
Explanations :
* Source : source_video.avi
* Audio codec : aac
* Audio bitrate : 32kb/s
* Video codec : xvid
* Video bitrate : 1200kb/s
* Video size : 320px par 180px
* Generated video : final_video.mp4
Extracting sound from a video, and save it as Mp3
ffmpeg -i source_video.avi -vn -ar 44100 -ac 2 -ab 192 -f mp3 sound.mp3
Explanations :
* Source video : source_video.avi
* Audio bitrate : 192kb/s
* output format : mp3
* Generated sound : sound.mp3
Convert a wav file to Mp3
ffmpeg -i son_origine.avi -vn -ar 44100 -ac 2 -ab 192 -f mp3 son_final.mp3
Convert .avi video to .mpg
ffmpeg -i video_origine.avi video_finale.mpg
Convert .mpg to .avi
ffmpeg -i video_origine.mpg video_finale.avi
Convert .avi to animated gif(uncompressed)
ffmpeg -i video_origine.avi gif_anime.gif
Mix a video with a sound file
ffmpeg -i son.wav -i video_origine.avi video_finale.mpg
Convert .avi to .flv
ffmpeg -i video_origine.avi -ab 56 -ar 44100 -b 200 -r 15 -s 320x240 -f flv video_finale.flv
Convert .avi to dv
ffmpeg -i video_origine.avi -s pal -r pal -aspect 4:3 -ar 48000 -ac 2 video_finale.dv
Or:
ffmpeg -i video_origine.avi -target pal-dv video_finale.dv
Convert .avi to mpeg for dvd players
ffmpeg -i source_video.avi -target pal-dvd -ps 2000000000 -aspect 16:9 finale_video.mpeg
Explanations :
* target pal-dvd : Output format
* ps 2000000000 maximum size for the output file, in bits (here, 2 Gb)
* aspect 16:9 : Widescreen
Compress .avi to divx
ffmpeg -i video_origine.avi -s 320x240 -vcodec msmpeg4v2 video_finale.avi
Compress Ogg Theora to Mpeg dvd
ffmpeg -i film_sortie_cinelerra.ogm -s 720x576 -vcodec mpeg2video -acodec mp3 film_terminée.mpg
Compress .avi to SVCD mpeg2
NTSC format:
ffmpeg -i video_origine.avi -target ntsc-svcd video_finale.mpg
PAL format:
ffmpeg -i video_origine.avi -target pal-svcd video_finale.mpg
Compress .avi to VCD mpeg2
NTSC format:
ffmpeg -i video_origine.avi -target ntsc-vcd video_finale.mpg
PAL format:
ffmpeg -i video_origine.avi -target pal-vcd video_finale.mpg
Multi-pass encoding with ffmpeg
ffmpeg -i fichierentree -pass 2 -passlogfile ffmpeg2pass fichiersortie-2
for more conversions please visit.
http://www.ffmpeg.org/faq.html
Tuesday, June 29, 2010
Wednesday, August 27, 2008
Linux vs. Windows: Which Is More Secure?
Topic can be discussed under different security aspects.
- Systems level security – Very first we can say Linux systems are less secure than Windows because Linux is open source, configuration information are stored in files and anyone can access them. So vulnerability is there since anyone who access the system can destroy them or make them malfunctioning. But when it goes into the deep Linux system avoid all the above mentioned vulnerabilities introducing root and normal user level accessing methods. Anyone who has privileges of root can only change the system or destroy.
Earlier versions of Windows basically centered into single user level. So the single user can install program on the system and remove important files to the system likewise. But Windows Vista is capable to avoid the system risks since it maintains administrative level users for the privileged tasks and normal users for other tasks like in Linux. It is achieved security level than other releases of Windows. Other than that windows vista introduces warning system to admin user to preventing him doing malicious things to system.
The conclusion that can be come across is both the systems are equal, considering system level security. - Virus, spam attacks – In this level of security we can directly say Windows is under high risk than Linux. It can be justified in many ways, because it’s true that phishers, virus writers, and other miscreants could target Windows system rather than Linux. And also it is necessary to rely on third party virus/spam guard on windows systems.
The conclusion that can be made is Linux is more secure than Windows under above mentioned context. - User data confidentiality – Linux achieved this goal by introducing read write access levels specifying to users. Common Linux commands chmod, chown, umask used to specify the different access levels. Windows also supports for user data confidentiality by introducing NTFS file system. But not like Linux systems.
According to this context Linux is support for high level user data confidentiality than Windows. - Patch Practice – Windows system maintain its stability by introducing automatic security patch updates. So these patches applied into system periodically without knowledge of the user. Similar thing happening on some distributions of Linux systems ( Ubuntu, Fedora, RHEL5 ) But most cases it has to be done by the root searching and applying them manually. Expert Linux admin can make his system more secure.
The conclusion is, both Windows and Linux can be categorized in same level.
Considering above mentioned all the facts it s obvious that is to say Linux systems are more secure than Windows systems.
Monday, February 4, 2008
Sun Microsystems Announces Agreement to Acquire MySQL, Developer of the World's Most Popular Open Source Database
Sun Growth Strategy Accelerates With New Position in $15 Billion Database MarketSANTA CLARA, CA January 16, 2008 Sun Microsystems, Inc. (NASDAQ: JAVA) today announced it has entered into a definitive agreement to acquire MySQL AB, an open source icon and developer of one of the world's fastest growing open source databases for approximately $1 billion in total consideration. The acquisition accelerates Sun's position in enterprise IT to now include the $15 billion database market. Today's announcement reaffirms Sun's position as the leading provider of platforms for the Web economy and its role as the largest commercial open source contributor.
With millions of global deployments including Facebook, Google, Nokia, Baidu and China Mobile, MySQL will bring synergies to Sun that will change the landscape of the software industry by driving new adoption of MySQL's open source database in more traditional applications and enterprises. The integration with Sun will greatly extend the commercial appeal of MySQL's offerings and improve its value proposition with the addition of Sun's global services organization. MySQL will also gain new distribution through Sun's channels including its OEM relationships with Intel, IBM and Dell.
"Today's acquisition reaffirms Sun's position at the center of the global Web economy. Supporting our overall growth plan, acquiring MySQL amplifies our investments in the technologies demanded by those driving extreme growth and efficiency, from Internet media titans to the world's largest traditional enterprises," said Jonathan Schwartz, CEO and president, Sun Microsystems. "MySQL's employees and culture, along with its near ubiquity across the Web, make it an ideal fit with Sun's open approach to network innovation. And most importantly, this announcement boosts our investments into the communities at the heart of innovation on the Internet and of enterprises that rely on technology as a competitive weapon."
MySQL's open source database is widely deployed across all major operating systems, hardware vendors, geographies, industries and application types. The complementary product line-ups will extend MySQL's database reach and are expected to bring new markets for Sun's systems, virtualization, middleware and storage platforms.
"The combination of MySQL and Sun represents an enormous opportunity for users and organizations of all sizes seeking innovation, growth and choice," said Marten Mickos, CEO, MySQL. "Sun's culture and business model complements MySQL's own by sharing the same ideals that we have had since our foundation -- software freedom, online innovation and community and partner participation. We are tremendously excited to work with Sun and the millions of members of the MySQL open source ecosystem to continue to deliver the best database for powering the modern Web economy."
MySQL's open source database is the "M" in LAMP - the software platform comprised of Linux, Apache, MySQL and PHP/Perl often viewed as the foundation of the Internet. Sun is committed to enhancing and optimizing the LAMP stack on GNU/Linux and Microsoft Windows along with OpenSolaris and MAC OS X. The database from MySQL, OpenSolaris and GlassFish, together with Sun's Java platform and NetBeans communities, will create a powerful Web application platform across a wide range of customers shifting their applications to the Web.
More than 100 million copies of MySQL's high-performance open source database software have been downloaded and distributed and an additional 50,000 copies are downloaded daily. This broad penetration coupled with MySQL's strength in Web 2.0, Software as a Service (SaaS), enterprise, telecom and the OEM embedded market make it an important fit for Sun. With MySQL, Sun will have the ability to deepen its existing customer relationships and create new opportunities with companies seeking the flexibility and ease-of-use of open source systems.
Following completion of the proposed transaction, MySQL will be integrated into Sun's Software, Sales and Service organizations and the company's CEO, Marten Mickos, will be joining Sun's senior executive leadership team. In the interim, a joint team with representatives from both companies will develop integration plans that build upon the technical, product and cultural synergies and the best business and product development practices of both companies. MySQL is headquartered in Cupertino, CA and Uppsala, Sweden and has 400 employees in 25 countries.
As part of the transaction, Sun will pay approximately $800 million in cash in exchange for all MySQL stock and assume approximately $200 million in options. The transaction is expected to close in late Q3 or early Q4 of Sun's fiscal 2008. Completion of the transaction is subject to regulatory approval and other customary closing conditions. The deal is expected to be accretive to FY10 operating income on a GAAP basis.
The management teams of both companies will host a media and analyst conference call today at 10:00 am EST, 7:00 am PST. The call can be accessed at http://www.sun.com/investors. For those unable to listen to the live conference call, a telephone replay will be available for one week following the call by dialing (888) 566-0103 or outside of the U.S. by dialing (402) 998-0958. No passcode is required to access the replay.
About MySQL
MySQL AB develops and supports a family of high-performance, affordable database products. The company's flagship offering is 'MySQL Enterprise', a comprehensive set of production-tested software, proactive monitoring tools, and premium support services. MySQL is the world's most popular open source database software. Many of the world's largest and fastest-growing organizations use MySQL to save time and money powering their high-volume Web sites, business-critical systems and packaged software -- including industry leaders such as Yahoo!, Alcatel-Lucent, Google, Nokia, YouTube and Booking.com. With headquarters in the United States and Sweden -- and operations around the world -- MySQL AB supports both open source values and corporate customers' needs. For more information about MySQL, please visit www.mysql.com.
About Sun Microsystems, Inc.
Sun Microsystems develops the technologies that power the global marketplace. Guided by a singular vision -- "The Network is the Computer" -- Sun drives network participation through shared innovation, community development and open source leadership. Sun can be found in more than 100 countries and on the Web at http://sun.com.
With millions of global deployments including Facebook, Google, Nokia, Baidu and China Mobile, MySQL will bring synergies to Sun that will change the landscape of the software industry by driving new adoption of MySQL's open source database in more traditional applications and enterprises. The integration with Sun will greatly extend the commercial appeal of MySQL's offerings and improve its value proposition with the addition of Sun's global services organization. MySQL will also gain new distribution through Sun's channels including its OEM relationships with Intel, IBM and Dell.
"Today's acquisition reaffirms Sun's position at the center of the global Web economy. Supporting our overall growth plan, acquiring MySQL amplifies our investments in the technologies demanded by those driving extreme growth and efficiency, from Internet media titans to the world's largest traditional enterprises," said Jonathan Schwartz, CEO and president, Sun Microsystems. "MySQL's employees and culture, along with its near ubiquity across the Web, make it an ideal fit with Sun's open approach to network innovation. And most importantly, this announcement boosts our investments into the communities at the heart of innovation on the Internet and of enterprises that rely on technology as a competitive weapon."
MySQL's open source database is widely deployed across all major operating systems, hardware vendors, geographies, industries and application types. The complementary product line-ups will extend MySQL's database reach and are expected to bring new markets for Sun's systems, virtualization, middleware and storage platforms.
"The combination of MySQL and Sun represents an enormous opportunity for users and organizations of all sizes seeking innovation, growth and choice," said Marten Mickos, CEO, MySQL. "Sun's culture and business model complements MySQL's own by sharing the same ideals that we have had since our foundation -- software freedom, online innovation and community and partner participation. We are tremendously excited to work with Sun and the millions of members of the MySQL open source ecosystem to continue to deliver the best database for powering the modern Web economy."
MySQL's open source database is the "M" in LAMP - the software platform comprised of Linux, Apache, MySQL and PHP/Perl often viewed as the foundation of the Internet. Sun is committed to enhancing and optimizing the LAMP stack on GNU/Linux and Microsoft Windows along with OpenSolaris and MAC OS X. The database from MySQL, OpenSolaris and GlassFish, together with Sun's Java platform and NetBeans communities, will create a powerful Web application platform across a wide range of customers shifting their applications to the Web.
More than 100 million copies of MySQL's high-performance open source database software have been downloaded and distributed and an additional 50,000 copies are downloaded daily. This broad penetration coupled with MySQL's strength in Web 2.0, Software as a Service (SaaS), enterprise, telecom and the OEM embedded market make it an important fit for Sun. With MySQL, Sun will have the ability to deepen its existing customer relationships and create new opportunities with companies seeking the flexibility and ease-of-use of open source systems.
Following completion of the proposed transaction, MySQL will be integrated into Sun's Software, Sales and Service organizations and the company's CEO, Marten Mickos, will be joining Sun's senior executive leadership team. In the interim, a joint team with representatives from both companies will develop integration plans that build upon the technical, product and cultural synergies and the best business and product development practices of both companies. MySQL is headquartered in Cupertino, CA and Uppsala, Sweden and has 400 employees in 25 countries.
As part of the transaction, Sun will pay approximately $800 million in cash in exchange for all MySQL stock and assume approximately $200 million in options. The transaction is expected to close in late Q3 or early Q4 of Sun's fiscal 2008. Completion of the transaction is subject to regulatory approval and other customary closing conditions. The deal is expected to be accretive to FY10 operating income on a GAAP basis.
The management teams of both companies will host a media and analyst conference call today at 10:00 am EST, 7:00 am PST. The call can be accessed at http://www.sun.com/investors. For those unable to listen to the live conference call, a telephone replay will be available for one week following the call by dialing (888) 566-0103 or outside of the U.S. by dialing (402) 998-0958. No passcode is required to access the replay.
About MySQL
MySQL AB develops and supports a family of high-performance, affordable database products. The company's flagship offering is 'MySQL Enterprise', a comprehensive set of production-tested software, proactive monitoring tools, and premium support services. MySQL is the world's most popular open source database software. Many of the world's largest and fastest-growing organizations use MySQL to save time and money powering their high-volume Web sites, business-critical systems and packaged software -- including industry leaders such as Yahoo!, Alcatel-Lucent, Google, Nokia, YouTube and Booking.com. With headquarters in the United States and Sweden -- and operations around the world -- MySQL AB supports both open source values and corporate customers' needs. For more information about MySQL, please visit www.mysql.com.
About Sun Microsystems, Inc.
Sun Microsystems develops the technologies that power the global marketplace. Guided by a singular vision -- "The Network is the Computer" -- Sun drives network participation through shared innovation, community development and open source leadership. Sun can be found in more than 100 countries and on the Web at http://sun.com.
Yahoo! and the future of the Internet
2/03/2008 11:45:00 AM
Posted by David Drummond, Senior Vice President, Corporate Development and Chief Legal Officer
The openness of the Internet is what made Google -- and Yahoo! -- possible. A good idea that users find useful spreads quickly. Businesses can be created around the idea. Users benefit from constant innovation. It's what makes the Internet such an exciting place.
So Microsoft's hostile bid for Yahoo! raises troubling questions. This is about more than simply a financial transaction, one company taking over another. It's about preserving the underlying principles of the Internet: openness and innovation.
Could Microsoft now attempt to exert the same sort of inappropriate and illegal influence over the Internet that it did with the PC? While the Internet rewards competitive innovation, Microsoft has frequently sought to establish proprietary monopolies -- and then leverage its dominance into new, adjacent markets.
Could the acquisition of Yahoo! allow Microsoft -- despite its legacy of serious legal and regulatory offenses -- to extend unfair practices from browsers and operating systems to the Internet? In addition, Microsoft plus Yahoo! equals an overwhelming share of instant messaging and web email accounts. And between them, the two companies operate the two most heavily trafficked portals on the Internet. Could a combination of the two take advantage of a PC software monopoly to unfairly limit the ability of consumers to freely access competitors' email, IM, and web-based services? Policymakers around the world need to ask these questions -- and consumers deserve satisfying answers.
This hostile bid was announced on Friday, so there is plenty of time for these questions to be thoroughly addressed. We take Internet openness, choice and innovation seriously. They are the core of our culture. We believe that the interests of Internet users come first -- and should come first -- as the merits of this proposed acquisition are examined and alternatives
Posted by David Drummond, Senior Vice President, Corporate Development and Chief Legal Officer
The openness of the Internet is what made Google -- and Yahoo! -- possible. A good idea that users find useful spreads quickly. Businesses can be created around the idea. Users benefit from constant innovation. It's what makes the Internet such an exciting place.
So Microsoft's hostile bid for Yahoo! raises troubling questions. This is about more than simply a financial transaction, one company taking over another. It's about preserving the underlying principles of the Internet: openness and innovation.
Could Microsoft now attempt to exert the same sort of inappropriate and illegal influence over the Internet that it did with the PC? While the Internet rewards competitive innovation, Microsoft has frequently sought to establish proprietary monopolies -- and then leverage its dominance into new, adjacent markets.
Could the acquisition of Yahoo! allow Microsoft -- despite its legacy of serious legal and regulatory offenses -- to extend unfair practices from browsers and operating systems to the Internet? In addition, Microsoft plus Yahoo! equals an overwhelming share of instant messaging and web email accounts. And between them, the two companies operate the two most heavily trafficked portals on the Internet. Could a combination of the two take advantage of a PC software monopoly to unfairly limit the ability of consumers to freely access competitors' email, IM, and web-based services? Policymakers around the world need to ask these questions -- and consumers deserve satisfying answers.
This hostile bid was announced on Friday, so there is plenty of time for these questions to be thoroughly addressed. We take Internet openness, choice and innovation seriously. They are the core of our culture. We believe that the interests of Internet users come first -- and should come first -- as the merits of this proposed acquisition are examined and alternatives
Sunday, October 28, 2007
Subscribe to:
Posts (Atom)