
Hi All, I've got a collection of video files ( avi divx flv m4v mkv mp4 mpg ogv rmvb wmv ) with different video codecs (divx h264 mpeg4 RealVideo WinMedia8 theora xvid etc. ) and different audio codecs (you get the idea). I've also got a Sanyo TV that only wants to play ... flv mp4 mkv wmv mpg avi with... h264 WinMedia9 xvid-mpeg4 and ... certain audio codecs. Have any command-line Linux wizards on the list: made up a script file for a batch conversion of video files, searching for certain filespec extensions (wrappers?) and/or codecs, and having transmageddon (or whatever) convert them? I'm hoping to have something that could work its way through a directory of files, that I could leave it run unattended for a couple days, but could abort it (in case of a need to shut down the system for a while or give other processes system resources). I'm currently running Ubuntu 10.4 and got Transmageddon 0.15 Thanks very much in advance. Carl Bayswater

On Thursday, 14 February 2013, Carl Turney wrote:
Hi All,
I've got a collection of video files ( avi divx flv m4v mkv mp4 mpg ogv rmvb wmv ) with different video codecs (divx h264 mpeg4 RealVideo WinMedia8 theora xvid etc. ) and different audio codecs (you get the idea).
I've also got a Sanyo TV that only wants to play ... flv mp4 mkv wmv mpg avi with... h264 WinMedia9 xvid-mpeg4 and ... certain audio codecs.
Have any command-line Linux wizards on the list: made up a script file for a batch conversion of video files, searching for certain filespec extensions (wrappers?) and/or codecs, and having transmageddon (or whatever) convert them?
I'm hoping to have something that could work its way through a directory of files, that I could leave it run unattended for a couple days, but could abort it (in case of a need to shut down the system for a while or give other processes system resources).
I'm currently running Ubuntu 10.4 and got Transmageddon 0.15
Thanks very much in advance.
Carl Bayswater
_______________________________________________ luv-main mailing list luv-main@luv.asn.au <javascript:;> http://lists.luv.asn.au/listinfo/luv-main
Handbrake has a CLI version that could do that for you but you'd have to script the input output parts, which is what your asking I suppose. -- Colin Fee tfeccles@gmail.com

Hi, On 14/02/13 19:35, Colin Fee wrote:
Handbrake has a CLI version that could do that for you but you'd have to script the input output parts, which is what your asking I suppose.
Yes, I've got Handbrake version svn3918 (i686). Forgot to mention it. Handbrake, Transmageddon, whatever. Its the scripting of the... "for each file with x extension and y codec do handbrake -i %1 -o %1.mpg" ... (plus how to exit gracefully if I hit Ctrl-D during a handbrake/transmageddon process, that I couldn't begin to figure out. If anyone knows, it would help a lot. Thanks again, Carl

On 14/02/13 6:33 PM, Carl Turney wrote:
Hi All,
I've got a collection of video files ( avi divx flv m4v mkv mp4 mpg ogv rmvb wmv ) with different video codecs (divx h264 mpeg4 RealVideo WinMedia8 theora xvid etc. ) and different audio codecs (you get the idea). I have done this with ffmpeg in the past, the script was simple, and a for loop could be used to make it process every file dumped into a directory. I could fish it out if needed.
-- 73 de Tony VK3JED http://vkradio.com

On Thu, 14 Feb 2013, Carl Turney <carl@boms.com.au> wrote:
I've got a collection of video files ( avi divx flv m4v mkv mp4 mpg ogv rmvb wmv ) with different video codecs (divx h264 mpeg4 RealVideo WinMedia8 theora xvid etc. ) and different audio codecs (you get the idea).
I've attached the Makefiles I use for using avconv to convert flv files to mp4 for use on Android devices. I don't use Makefile.basic any more as I use the MX player to play FLVs on Android. Makefile.big is more complex as it generates three sets of output files. http://etbe.coker.com.au/2013/02/15/conversion-video-files/ I've described the scripts in more detail at the above URL. Take the files from the attachments to this message (which should preserve the TABs) and look to the blog post for useful suggestions from the Internet. -- My Main Blog http://etbe.coker.com.au/ My Documents Blog http://doc.coker.com.au/

I've attached the Makefiles I use for using avconv to convert flv files to mp4 for use on Android devices. I don't use Makefile.basic any more as I use the MX player to play FLVs on Android. Makefile.big is more complex as it generates three sets of output files.
Excellent post Russell. Actually, video formats and their conversion would make a superb beginners' talk (he hints broadly). All the best, -- Lev Lafayette, mobile: 61 432 255 208 http://www.ietf.org/rfc/rfc1855.txt

On 15/02/13 11:11 AM, Lev Lafayette wrote:
Excellent post Russell.
Actually, video formats and their conversion would make a superb beginners' talk (he hints broadly).
All the best,
There seems to be so many ways to skin this particular cat too, so an introduction to various methods, especially the use of the command line for bulk conversions or conversions on demand (e.g. when called from another process). -- 73 de Tony VK3JED http://vkradio.com
participants (5)
-
Carl Turney
-
Colin Fee
-
Lev Lafayette
-
Russell Coker
-
Tony Langdon