General :: Batch Converting Video From Avc1 To Xvid?
Aug 8, 2010
I need a way to batch convert 720p video files from avc1 to xvid in Ubuntu 10.04. I'm not terribly concerned about file size, but I do wish to retain the picture quality as much as possible. I believe the audio is encoded as aac, which is fine for my purposes.
What would be the best and easiest way to do this? I've tried using Handbrake. During my first attempt, I had it using ffmpeg to convert to MPEG-4, but that just gave me a super-low quality video at twice the file size. Trying h.264 now, so we'll see how that works out. But just in case it doesn't pan out so well, what other ways do you recommend?
I was thinking I'd write a bash script to reencode the files one by one, but the problem is that I have very little knowledge about codecs and containers and whatnot - so I wouldn't know what parameters I would pass ffmpeg/mencoder.
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?
i have written a bash script to convert flv files (e.g. videos) to xvid to be played on my dvd player. the conversion is not really the issue, as it works. what i am dealing with now are 2 problems i have not found a good workarouond: 1. surpressing the shell output of mencoder completely ( i do not want to see all the mencoder messages). this i have only solved to a certain extend. 2. i want to create a progress bar. this one i have not yet cracked.
#start the script main_menu 1. mencoder output: using /dev/null works more or less. for example: if mencoder detects a double frame while converting, a message is still printed on the bash screen 2. progressbar: i have no clue yet on how to do this. any link or tip is welcome. my goal is something like this: [56%] [time in progress] [timeleft]
I like this linux distribution more than the others that i have used, because is more stable for my work. But there are some little problems that I can't solve. I'm using it with a laptop HP G60 and i can run OpenOffice, Mozilla and some other programs (python, grass, qgis) that used for work at the office, but when I go home and want to watch a movie with my girl, listen some music or any other simple task, i find a lot of little problems:
1. Adjust the bright of the screen, the Power Management Guidance don't do it and I really need it.
2. Can't play movies in VLC "No suitable decoder module. VLC does not support the audio or video format XVID. Unfortunately there is no way for you to fix this"
3. And today I can't play music because there is a message "KDE detected that one or more internal sound devices were removed" this is: Output HDA Intel, INTEL HDMI 0 (HDMI Audio Output)
I know maybe these problems are stupid but in windows is easier to fix them. I'm tired of search in google because i just find solved problems for Ubuntu and it takes a lot of time.
I have movies downloaded onto my Linux based system and want to convert them so I can burn them to ddvd so I can watch from my couch. I have found a couple for windows but not Linux. By the way I running Mint 8 -X64.
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.
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:
I recorded a TV show on my pc using mythbuntu software (ubuntu version of mythtv). It cut out all the commercials and then transcoded it to a nice 40 min nuv file that I put onto a usb thumb drive. Now it's portable and vlc can play the file...on a pc. I want to burn it onto a DVD so I can put it in any NTSC DVD player. Also, the file was recorded at 480x480 and I want to change the size to widescreen (16:9). Additionally, the top of the screen recorded a thin horizontal line of junk that needs to be deleted.
Now, I've googled around and found this line in ffmpeg that should work:
The new 16:9 video size is great, the annoying horizontal line got cropped, and I got a nice mpg file...but the audio is now out of sync. I tried ffmpeg with fewer options and the audio still got out of sync.
So, I'm thinking I should try different software. Maybe mencoder. How could I put the above ffmpeg options into mencoder?
What is a good app to convert videos in Ubuntu? I usually watch documentaries, movies etc in my mobile phone and need an app to convert AVIs etc with a low file size and about 320x240 resolution. Used WinFF but it doesn't seem good enough
Its no secret that flash video performance is sub-par in Ubuntu. I have a Zotac Mag HD ND01 that I have connected to my 40" LCD tv and have a minimal Ubuntu 9.10 installed running openbox and firefox/boxee/xbmc
My primary use for running a web browser is so I could watch live streaming hockey games in HD. However, thanks to Flash's performance (and yes, i've tried the latest versions, even the 091510 version in labs) in full screen mode, watching hockey is not possible because its way too choppy.
Now, on my desktop computer in my office, I can watch the same stream without issue. So, my question is, is there any way to take this live stream (which is using Flowplayer), and re-encode it on-the-fly so I can stream it to my htpc in a format it likes (such as MKV i guess, it can play 720p/1080p mkv files without issue)?
My desktop is a Core i7 920 overclocked to 4.2Ghz with 6GB DDR3 ram, so I would hope its powerful enough for the cause. Also, the desktop is running Windows 7 64bit and Ubuntu 10.04 64bit on a dual boot, so a method in either is fine.
Can I ask for some advice in converting a video (from my phone) which is a 3gp file into something more universal. I use audokonverter for audio files and this gives me a menu right-click option to convert a song from (say) wav to mp3. Is there an equivalent for videos? I am using opensuse 11.4 64 bit and have mplayer, xine and vlc installed plus the necessary codecs. Or is it simpler to use ffmpeg in a c/l environment
I have a collection of music videos of various ages, and want to consolidate the codecs into mp4 files with the following criteria:
1) Retain the same directory structure and same name, hopefully with something like "/music/Videos (Encoded)/" and "/music/Videos (Failed Encoding)/" (Note: Using UTF-8 filenames)
2) Prefer to do this all in one batch; terminal commands/ bash script = awesome
3) Keep the highest quality video without having to encode everything the same (some widescreen, some hd, some with super low resolution)
4) Retain the audio stream untouched (plus, some help on what command to do to convert it to a good format) and, hopefully, to encode with settings that allow for universal apple playback (Handbrake as a great preset for this)
I'm just wondering if anyone knows of a rmvb video converter that works with ubuntu. There is a windows rmvb converter, but when I try to use it through wine it either crashes while converting or just doesn't work period.
I've been researching this for awhile now and cannot find anything that works. I'm trying to watch videos in a browser, either Chrome or Firefox, that are encoded with Xvid. Nothing has worked, and when I try to watch an Xvid video I get the following error:
"We're sorry, our content is not compatible with your computer configuration."
I've installed vlc, libxvidcore4, gecko-mediaplayer, ubuntu-restricted-extras, and numerous other libraries, none of which do anything.
How to convert H 264 mp4 to avi with xvid?I have a file (300mb) containing a video encoded as h264 mp4. It runs on movie player, but I want to run on the tv using a (fairly modern) dvd player that accepts avi xVid as input from cd or usb.How do I convert from h264 mp4 to avi(xvid)?
I have several program windows open on my main display (showing on my physical screen).I've created a second display for VNC connections (using vncserver :14).Is there a way I can move all open windows from the default display to the VNC display?
I am logging the output of: top -b -n1 -c so I can keep track of which processes are using how much memory and CPU each minute. When top shows the full command line (-c), the command line text gets truncated at the edge of the screen. This is perfect when running and displaying in a terminal. However, I am sending STDOUT to a file for parsing later and want the full command name logged. Is there a way I can tell top to use a specific screen width? (I know it maxes at 512, that would be fine)
Is there a better way to achieve a similar goal: get periodic stats about which processes are running and how many resources they are consuming?
I run a script which generated about 10k files in a directory. I just discovered that there is a bug in the script which causes some filenames to have a carriage return (presumably a '' character).
I want to run a sed command to remove the carriage return from the filenames.
Anyone knows which params to pass to sed to clean up the filenames in the manner described?
I am running on Linux (Ubuntu)
The character causing the filename to 'break up' accross multiple lines appear to be a CR (carriage return) instead of ' '. The filename is being diaplayed in thetitle of a text editor with %0D in the positions of where the file name breaks up. So I need to remove the CR chars from my filenames.
I just learnt to convert a video file into mp4 format so I can watch it on my PS3. However, I have dozens of video files from my video cam, and want to convert them all. They are all in the same folder. Please can someone explain how I might be able to adapt the code below so I can convert all my files in a batch. Perhaps keeping their same name or giving them some other name, I don't mind.
I've created a .bat file with this line: start C:USERSPuttyputty.exe -ssh user@server.com -pw password
That opens a putty session and logged in it with the user and password i've already specified. But now, I want to enter a simple command like "ls -l" for example.. How can I do that?
I've also tried plink...The line in that case is this one:
and in that file "UNIX_commands.txt" I've added the following lines:
cd /projects/test ls -l
all works fine (the commands are executed) but i can't see the putty session... all i can see is the verbose in my DOS windows of the last line "ls -l"...
The putty session vanishes away. How can I have the session opened and list the mentioned directory.
Is there a way to do a batch renames of files that will keep each individual filename, but change it in the way I want?
The specific issue is this. I have a harddrive with something like 1300 movies on it. They're all organized alphabetically, but there are like 200 movies that begin with 'The'. I want to rename all of these movies that begin with The so that the The at the beginning is dropped and added at the end (for example, turn "The Shawshank Redemption" into "Shawshank Redemption, The"). I'd like to do this with a simple command if its possible.
I am pretty new at this topic but I would like to learn it from example. The first thing I am working on is to modify the command date to be shown as DD/MM/YY only using regular expression but I dont know how to combine what there is in the regexp tutorials online and the syntax for batch scripting. Any help?
Here is what I what. run a file test: ~# ./test Where file test is: #!/bin/bash # DATE=$( date )
[Code]..
Also if you can point me to good regexp tutorials (directed towards batch scripting), that will be great.
I pre-upgraded a working F14 system which was reading MPEG4 xvid (xvidcore rpm). Since the upgrade gstreamer refuses to handle that stream: ** Message: don't know how to handle video/x-xvid.It seems the codec is not registered with gstreamer.