LinuxQuestions.org
Review your favorite Linux distribution.
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
  Search this Thread
Old 04-13-2012, 01:15 AM   #1
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,163

Rep: Reputation: 189Reputation: 189
Video : Convert Format to given size 650Mb?


Hi, I am not sure that it is possible to enter into mencoder/ffmpeg (havent found) the output final size. I would need 650 mb to burn a video from my camera.

Thank you
 
Old 04-13-2012, 02:28 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
There is a -filesize <limit> option for ffmpeg. This stops transcoding when the limit is reached. You might want to try different bitrates and get an idea how much each uses per minute of video. Then add the -filesize opton as a hard limit.
 
Old 04-13-2012, 10:18 AM   #3
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,163

Original Poster
Rep: Reputation: 189Reputation: 189
Quote:
Originally Posted by jschiwal View Post
There is a -filesize <limit> option for ffmpeg. This stops transcoding when the limit is reached. You might want to try different bitrates and get an idea how much each uses per minute of video. Then add the -filesize opton as a hard limit.
It will stop thus after a given size, and leave unfinished video.
Let's say when we would like to convert a WMV/MP3 to MP4/MP3 with a total file size of 650mb, and ffmpeg/mencoder adapts itself automatically the frames ?
 
Old 04-13-2012, 11:50 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
You said that the source was a camera, so I didn't know you that you are dealing with fixed sized video. The bitrate of the video will make up the bulk of the file, so if you limit the maximum bitrate of the video, the output video will be less than 650 MB.

You can produce a fixed rate video or control the bitrate tolerence, to make your calculation easier.

I seem to remember being able to control the bitrate via a feedback mechanism while the transcoder is running. I don't remember which program. It might have been transcode.

Last edited by jschiwal; 04-13-2012 at 11:51 AM.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to convert video file format using kino video editor sumeet inani Linux - Newbie 5 03-17-2009 11:26 PM
Convert video to iPod format leupi Linux - Software 17 01-08-2009 08:28 AM
Convert .rm video to some other format?... raggamuffin Linux - Software 1 02-18-2006 02:06 PM
Convert video format phonecian Linux - Software 3 08-18-2005 06:02 AM
convert wmv video format to known by linux abd_bela Debian 2 07-08-2005 04:32 AM


All times are GMT -5. The time now is 05:23 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration