Ubuntu Multimedia :: FFMPEG - FLV To MP3 Batch Convert

Mar 15, 2010

I have a file with about 6 .flv files and I wish to batch convert them to libmp3lame. I have tried making a #!bin/bash script with all the files in e.g.

Code:
ffmpeg -i filename.flv -sameq -acodec libmp3lame -f asf filename.mp3

I have inserted all the filenames individually into the script but when I ran it I got too many errors and i was wondering if someone knew a quicker way to do it e.g. a script that would batch convert all .flv files in that folder to .mp3 format.

View 8 Replies


ADVERTISEMENT

Ubuntu Multimedia :: How To Batch Convert Files To .flv?

Apr 16, 2011

So I have a php script that is setup to stream flash video (.flv) and I absolutely love having it. The problem is that any files I want to stream have to be in .flv format for it to work properly as .avi and others obviously don't stream well. Up until now, I've used FFMpeg to change the format from .avi to .flv, however the process takes a lot of time if you have a lot of videos, added to that you have to do one file at a time definitely makes it a pain.Does anyone know of a bash script that can take all the files (i.e. avi, .wmv, .mkv, .mpeg4) in one folder and automatically convert it to .flv? Then possibly delete the old files? Low resolution is fine, so long as it at least viewable. Does anyone have a script or know of a program that can do this (I run Ubuntu 10.04). I think FFMpeg has the best chance of doing this, but I don't know the syntax to actually do so.

I've searched the internet, and while I have found a few scripts, they didn't work for me (still looking into two scripts I found.I am currently messing with them to see if I can get them to work).It would be immensely helpful if someone knew of a way to do this.I also forget to mention that I have used Winff, but I was looking more for a bash script to do this so that I can set a cron job to convert them every hour or so.

View 4 Replies View Related

OpenSUSE Multimedia :: Batch Convert Flac To Mp3?

Jun 6, 2011

pacpl and audioKonverter appear to be missing from the Packman and OpenSuse repositories. Does anyone know of something similar that's available?

View 3 Replies View Related

Ubuntu Multimedia :: Batch Convert Audio In Video Files?

May 8, 2010

a movie is encoded with AC3 in 6 channel audio, what I get out is all of the sounds except for voices, which in 5.1 would be sent to the center channel. What I usually do is fire up avidemux and convert the audio to mp3 stereo, as converting to a 5.1 format usually ends up with a very odd sound (like running everything through an echo chamber). What I'd like to do is run a script to batch-convert these files from AC3 to MP3. The video format may vary, but they are usually XVID. I am comfortable at the command line, but I am not well-versed in audio/video tool terms. I don't need anything extravagant, I just want something that works. Heck, even if it is done one at a time, having a shell script that I can use to simply type:

tool.sh inputfile.avi outputfile.avi

View 4 Replies View Related

Ubuntu Multimedia :: Ffmpeg To Convert HD .mkv To .avi?

Jan 13, 2010

I've got a bunch of HD files in .mkv format that I want to convert to a format that the 360 will read (currently just trying .avi files) so I can stream the media to my xbox360. I'd rather avoid transcoding the entire file, so I tried unpacking the .mkv file into audio and video (and subtitle if necessary) and repacking said file into avi using ffmpeg. The repacking is where I am having the problem. Here's the commands I tried at first (it might look familiar):

Code:

mkvextract tracks file.mkv 1:temp_video.avi 2:temp_audio.ogg 3:temp_sub.srt
ffmpeg -i temp_video.avi -i temp_audio.ogg -vcodec copy file.avi

However, I keep getting this annoying error:

Code:

Error while opening codec for output stream #0.1 - maybe incorrect parameters such as bit_rate, rate, width or height Where stream #0.1 is the output audio stream to the .avi file. I think I have narrowed it down to the fact that the input streams are all 6 channel (5.1 surround sound) which mp2 doesn't support (the ffmpeg audio default) so I did this instead:

Code:

ffmpeg -i temp_video.avi -i temp_audio.ogg -vcodec copy -acodec libmp3lame file.avi

I'm still getting the same error, but when I use

Code:

ffmpeg -i temp_video.avi -i temp_audio.ogg -vcodec copy -acodec libmp3lame -ac 2 file.avi

to change the sound to stereo it works. Problem is I'd like to keep my media in surround sound. Any thoughts on how to get all 6 channels in the new mp3 file? I'm fairly certain that mp3s support 5.1. And after some messing around, I haven't found that my ffmpeg can transcode audio format from 5.1 back to 5.1. So since (I think) the 360 can play .ac3 files I decided to just copy both the video and audio file to the .avi file sans transcoding using

Code:

ffmpeg -i temp_video.avi -i temp_audio.ogg -vcodec copy -acodec copy file.avi

however now about halfway through, I run into this error:

Code:

NULL @ 0x22f3a00]error, non monotone timestamps 62562 >= 62562

av_interleaved_write_frame(): Error while opening file I can't seem to find any solution to this problem anywhere online, does anyone know how to get around this? I'd prefer to use ffmpeg for this if possible. (so I can write a script and just attack an entire directory at once) For what it's worth, I'm using the latest ffmpeg in the ubuntu (karmic) default repositories.

View 1 Replies View Related

Ubuntu Multimedia :: Cannot Convert .ogg To Mp3 Using Ffmpeg

Apr 26, 2010

i want to convert a song from ogg format to mp3 using ffmpeg the command i use to do this is

ffmpeg -i /home/john/Music/input.ogg to mp3 output.mp3

i then get then get a message back saying

"unknown format"

how do i correct this ?

View 1 Replies View Related

Ubuntu Multimedia :: Cannot Convert To Ogv With Ffmpeg On 10.04

May 18, 2010

The command line to convert to ogg theora

ffmpeg -y -i input.flv -sameq OUTPUT.ogv

runs perfectly on 9.04 but on 10.04 it gives errors:

Code:
ffmpeg -y -i input.flv -sameq OUTPUT.ogv
FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --extra-version=4:0.5.1-1ubuntu1 --prefix=/usr --enable-avfilter

[Code].....

View 9 Replies View Related

Ubuntu Multimedia :: Using Ffmpeg To Convert DTS To AC3?

Jul 28, 2010

I have a .mkv container with proper video (h264/~6000kbps) and audio (DTS/1500kbps). For some reason I want to have similar quality but with another video and audio codecs. For video it goes well and ffmpeg is very helpful here, no problems. Also, I want DTS to become AC3/320-448kbps/5-6 channels. Commands like this:

Quote:

ffmpeg -i in.dts/mkv -acodec ac3 -ac 5 -ab 448k out.ac3

gives me not proper reordered sound in channels, so I hear center on the right, music on the left, etc.

Is there a way to make that properly with ffmpeg?

Also, I have a question about multi core encoding cause I have a quad processor. Ffmpeg seems not using them in all the way, I get something like 25% of CPU usage while encoding. Command -threads, even using the h264, does not make any extra load of cpu.

View 4 Replies View Related

Ubuntu Multimedia :: Convert .avi To .mov With Ffmpeg?

Jul 29, 2010

I'm making little animated bits in GIMP with the gap package. I can only get GIMP to encode the files as .avi. Problem here is that when I try to use any converter, it compresses 80MB files down to 1MB-4MB files and, unsurprisingly, the video quality is terrible. WinFF and ffmpeg (via terminal) output at a drastically reduced size. Is there some way to keep the files big/big-ish? I don't want to lose any detail.

View 6 Replies View Related

Ubuntu Multimedia :: Ffmpeg - Convert .ogv To .avi?

Nov 4, 2010

Recently I installed gtk-recordMyDesktop, so that I could record my movements and send the Media File to my dad, so he could learn how to use Ubuntu too [plug]My problem is converting the .ogv file to .avi - I have tried ffmpeg but it loses quality dramatically.Can anyone tell me how to get better quality video out of ffmpeg, or let me know another way to convert the .ogv file to .avi or something that is widely used?

View 3 Replies View Related

Ubuntu Multimedia :: Convert Amr To Mp3 With Ffmpeg?

Feb 13, 2011

I've been recording one of my classes with my android phone, and the file it gives me is an .amr file. I'd like to convert that to .mp3, and I was hoping I could use ffmpeg to do it via the command line. Here's what I did, and the output that I got:

Quote:

roger@KarmaLaptop:~/Desktop$ ffmpeg -i Net202-week6.amr Net202-week6.mp3
FFmpeg version 0.6-4:0.6-2ubuntu6, Copyright (c) 2000-2010 the FFmpeg developers
built on Oct 5 2010 22:36:53 with gcc 4.4.5
configuration: --extra-version=4:0.6-2ubuntu6 --prefix=/usr --enable-avfilter

[Code]....

View 5 Replies View Related

Ubuntu Multimedia :: Write A Bash Script To Batch Convert To Mp3hd?

Oct 23, 2010

ok so i am trying to write a batch convert script for mp3hd(do not snigger)my starting point is a script i know works i got elsewhere

Code:
for f in *.m4a; do ffmpeg -i "$f" "${f%.m4a}.wav"; done
from here

[code]....

View 9 Replies View Related

Ubuntu Multimedia :: Batch Convert Entire Music Directory To 320kbps MP3

Jan 3, 2011

I have a large (~60GB) collection of music in various formats on my hard drive. It is organised in the form Artist/Album/*.ext

The formats include M4A, FLAC, MP3, and OGG. What I would like to do is convert the entire directory, keeping subfolders and ID3 information intact. I would preferably like to be able to do this with a single script.

I am running Ubuntu 10.10 x86_64. I am fairly adept with BASH and the command line, so I foresee no problems there. If I have to write my own script, these are the things I'm not sure about:

(a) maintaining the directory structure.
(b) how to tell the script which converter tool to use (LAME, FLAC, etc.
(c) keeping ID3 tags.

View 9 Replies View Related

Ubuntu Multimedia :: How To Convert Bulk In FFmpeg

Jun 20, 2010

I recently developed a taste for the Alac format and ffmpeg will oblige with this line of code
Code:
ffmpeg -i <input> -acodec alac <output>.m4a
and this worked beautifully one file at a time and
How does one do all the files in a given folder? Is there an asterisk one adds as in shntool.

View 2 Replies View Related

Ubuntu Multimedia :: Convert MPG Files To FLV Using Ffmpeg?

Aug 11, 2010

I'm running ClipBucket on my Ubuntu 10.04 LTS server x64.Conversion of AVI to FLV works just fine, however when I try to upload an MPG file, it fails. Apparently I should recompile ffmpeg to allow for MPG > FLV conversions.

View 3 Replies View Related

Ubuntu Multimedia :: Ffmpeg: How To Convert 3gp Into Grayscale

Mar 26, 2011

Today I was trying to convert a video into Gray-scale.(Black & White) I was successful for avi, mp4 ..

And Now trying for 3gp..

Its giving me error which says like The parameter like bit rate, height , width provided is wrong..

what exactly extra parameter I need to put for 3gp

View 1 Replies View Related

Ubuntu Multimedia :: Convert Video To Audio Use Ffmpeg?

Jul 15, 2010

I want to convert all video file in folder a become audio file in folder b use ffmpeg, how to type it in terminal?

View 7 Replies View Related

Ubuntu Multimedia :: Convert AVI To MP4 Via Ffmpeg, Missing Libfaac

Dec 10, 2010

I tried to convert an AVI-video to a MP4-video for my ipod. Therefore I used ffmpeg as I can read in the FAQ

Code:
ffmpeg -i in.avi -acodec libfaac -ab 128kb -vcodec mpeg4 -b 1200kb -mbd 2 -flags +mv4 -trellis 2 -cmp 2 -subcmp 2 -s 320x180 -metadata title=X out.mp4

The problem is, that the given encoder libfaac is not installed and I can't get it through the pack-adminstration

[Code]....

View 3 Replies View Related

Ubuntu Multimedia :: Ffmpeg And How To Convert Video To Nokias 5800 Phone Format

Jul 31, 2011

command line option in ffmpeg to do this

I am told I need the output file to comply with this

Video Resolution: 480*320
Video Bitrate: 768 kbps
Audio Bitrate: 128 kbps
Video Format: MPEG-4 (be sure not to use H264, as it�s not supported in the current firmware)

[Code]....

View 3 Replies View Related

Ubuntu Multimedia :: User Friendly Video Converter - Ffmpeg Cannot Convert A .avi To .3gp With Audio Working

May 15, 2011

i am using Ubuntu 11.04 on my computer system. I urgently need a good video converter for converting videos.I have already installed FFmpeg and men-coder,Winff etc. The problem is each has its own drawback.For instance ffmpeg cannot convert a .avi to .3gp with audio working. My preferences are the converter should be user friendly, should support all popular video formats.

View 2 Replies View Related

Ubuntu :: Batch Convert Mp3 To Ogg?

Oct 5, 2010

Is there some way of recursively batch converting mp3s into oggs while keeping the same directory structure?

View 8 Replies View Related

Ubuntu :: Any Way To Batch Convert Recursively Using PS2PNG?

Jan 15, 2010

Is there a way to batch convert recursively using ps2png?

View 4 Replies View Related

Fedora :: Batch Convert From DVDs To Avi?

Sep 10, 2010

I am looking for a way to batch convert from DVDs to avi - ideally choosing the resolution of my output device (for use on an Android/iPhone). I really want to do it automatically/via a script from the command line if possible.

View 4 Replies View Related

OpenSUSE :: Batch Convert CGM Images?

Apr 6, 2010

Is there an easy way to batch convert CGM images into anything modern (preferably SVG, because they're vector graphics)? The furthest I've gotten is ImageMagick, which tries to open them, but dies saying it can't find "ralcgm", mhich I can't find in any repos.

View 9 Replies View Related

Ubuntu :: Script To Batch Convert Video In Handbrake?

Feb 21, 2011

I've looked everywhere I could but I must be blind. I have Ubuntu 10.04 Server and I'm trying to batch convert .avi to .m4v in folders and subfolders. I can't seem to find a script to do that.

View 1 Replies View Related

Ubuntu Multimedia :: Ffmpeg 6 Is Out For Some Time When Will Lucid Afford Such A New Ffmpeg?

Jul 20, 2010

Since ffmpeg 6 is out for some time, when will Ubuntu Lucid afford such a new ffmpeg package from its repository?

View 2 Replies View Related

General :: What Program Can Batch Convert Video?

Apr 22, 2011

I have many video files that I'm trying to convert from *** to .mp4..Currently I'm using Handbrake which does a good job but getting it started is very tedious. In Handbrake I need to confirm and add to queue all of the files. When there are over 200 files at a time it takes way too long. If there is a way to not confirm all of the files please let me know.What program can I use to just add a folder and have it automatically add all of the files to my queue?

View 9 Replies View Related

Software :: Batch Convert Text Format To RTF?

Aug 27, 2010

I have a bunch of text files that I created with mousepad in xfce. I didn't really think I would need to share them, but I guess I have to. Is there anyway I can batch convert these to rtf so they could be viewed on a windows client?

View 4 Replies View Related

Ubuntu :: Using Ffmpeg To Convert .MTS To .MOV?

May 22, 2011

I'm trying to convert a .MTS video file to .mov, and I need to use ffmpeg, because I want it to be scriptable.I managed to convert the file to .avi using this command:Code:ffmpeg -i INPUT.MTS -vcodec libxvid -b 18000k -acodec libmp3lame -deinterlace -ab 192k -s 1280x720 -r 50 OUTPUT.avi

View 3 Replies View Related

General :: Need To Convert Batch File To Shell Script

May 3, 2010

Kindly help me converting a batch file with following commands into shell script..I would like to have the same functionality with shell commands.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved