Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Main Support Categories > Multimedia & Video
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

Multimedia & Video
Have multimedia question? ATI, Nvidia, Sound cards. Just ask here.

 
Thread Tools Display Modes
Old August 21st, 2009   #1
cudjoe
Just Give Me the Beans!
 
Join Date: Apr 2005
Location: Toulouse,France
Beans: 81
Ubuntu 9.04 Jaunty Jackalope
Talking Re: Convert mp3 to avi

Thanks Locutus_of_Borg.
With the information of Fakeoutdoorsman, I made this small shell script (ffmpeg instead of mencoder) :

Code:
input=$1
output=$2

background=/tmp/bng-black.jpg
convert -size 320x240 xc:black $background
duration=`ffmpeg -i $input 2>&1 | grep Duration | cut -f1 -d, | cut -f2,3,4,5 -d:`
ffmpeg -loop_input -i $background -i $input -vcodec mpeg4 -acodec copy -t $duration $output
Thank you very much for your assistance !
cudjoe is offline   Reply With Quote

Bookmarks

Tags
avi, black video, conversion, ffmpeg, mp3

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:06 PM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry