[DONE] h264enc. a way to automate lot of files encoding

hi! i have a lot of vob and mpeg files i need to encode using h264enc... but i wanna see if there's a way to automate the process so i set everything up and let the computer do the job with all the files...
TNX in advance
Last edited by leo2501 (2008-01-25 23:20:49)

Done! hope someone found it useful
i use it this way:
enc2h264 hq 96 700 file1.avi && enc2h264 hq 96 700 file2.avi && enc2h264 hq 96 700 file3.avi ...
because i dont want to compress every avi in my dir, only some wich i want to select
#!/bin/bash
#Encode to h264 script
#video codec: h264
#audio codec: mp3 ABR
#container: AVI
#usage: enc2h264 [preset: hq,vhq,uhq] [audiobitrate] [videobitrate] [filename]
#usage: enc2h264 hq 64 700 filename.avi
#usage: enc2h264 $1 $2 $3 $4
if [ "$1" = "hq" ]; then
mencoder "$4" -vf pp=ha:70:15/va/dr,harddup -oac mp3lame -lameopts abr:br="$2":aq=4:vol=2.2:mode=1:highpassfreq=0:lowpassfreq=0 -ovc x264 -x264encopts pass=1:crf=19:turbo=2:me=umh:me_range=19:nodct_decimate:nointerlaced:8x8dct:threads=auto:nofast_pskip:nobrdo:trellis=1:partitions=p8x8,b8x8,i8x8,i4x4:mixed_refs:bime:frameref=3:bframes=6:b_adapt:b_pyramid:weight_b:direct_pred=auto:subq=5:chroma_me:cabac:deblock -passlogfile /home/aleyscha/.h264enc/h264.log -o /dev/null && mencoder "$4" -vf pp=ha:70:15/va/dr,harddup -oac mp3lame -lameopts abr:br="$2":aq=4:vol=2.2:mode=1:highpassfreq=0:lowpassfreq=0 -ovc x264 -x264encopts pass=2:bitrate="$3":me=umh:me_range=19:nodct_decimate:nointerlaced:8x8dct:threads=auto:nofast_pskip:nobrdo:trellis=1:partitions=p8x8,b8x8,i8x8,i4x4:mixed_refs:bime:frameref=3:bframes=6:b_adapt:b_pyramid:weight_b:direct_pred=auto:subq=5:chroma_me:cabac:deblock -passlogfile /home/aleyscha/.h264enc/h264.log -o "$4_new.avi"
elif [ "$1" = "vhq" ]; then
mencoder "$4" -vf spp=2:0:0,harddup -oac mp3lame -lameopts abr:br="$2":aq=4:vol=2.2:mode=1:highpassfreq=0:lowpassfreq=0 -ovc x264 -x264encopts pass=1:crf=19:turbo=2:me=umh:me_range=24:nodct_decimate:nointerlaced:8x8dct:threads=auto:nofast_pskip:brdo:trellis=1:partitions=p8x8,b8x8,i8x8,i4x4:mixed_refs:bime:keyint=300:keyint_min=30:frameref=4:bframes=8:b_adapt:b_pyramid:weight_b:direct_pred=auto:subq=6:chroma_me:cabac:deblock -passlogfile /home/aleyscha/.h264enc/h264.log -o /dev/null && mencoder "$4" -vf spp=2:0:0,harddup -oac mp3lame -lameopts abr:br="$2":aq=4:vol=2.2:mode=1:highpassfreq=0:lowpassfreq=0 -ovc x264 -x264encopts pass=2:bitrate="$3":me=umh:me_range=24:nodct_decimate:nointerlaced:8x8dct:threads=auto:nofast_pskip:brdo:trellis=1:partitions=p8x8,b8x8,i8x8,i4x4:mixed_refs:bime:keyint=300:keyint_min=30:frameref=4:bframes=8:b_adapt:b_pyramid:weight_b:direct_pred=auto:subq=6:chroma_me:cabac:deblock -passlogfile /home/aleyscha/.h264enc/h264.log -o "$4_new.avi"
elif [ "$1" = "uhq" ]; then
mencoder "$4" -o /dev/null -vf softskip,harddup -oac mp3lame -lameopts abr:br="$2":aq=4:vol=2.2:mode=1:highpassfreq=0:lowpassfreq=0 -ovc x264 -x264encopts pass=1:crf=18:turbo=2:me=esa:me_range=64:nodct_decimate:nointerlaced:8x8dct:threads=auto:nofast_pskip:trellis=2:partitions=all:mixed_refs:bime:keyint=300:keyint_min=30:frameref=8:bframes=16:b_adapt:b_pyramid:weight_b:direct_pred=auto:subq=7:brdo:chroma_me:cabac:deblock:nossim:nopsnr -passlogfile /home/aleyscha/.h264enc/h264.log && mencoder "$4" -o "$4_new.avi" -vf softskip,harddup -oac mp3lame -lameopts abr:br="$2":aq=4:vol=2.2:mode=1:highpassfreq=0:lowpassfreq=0 -ovc x264 -x264encopts pass=2:bitrate="$3":me=esa:me_range=64:nodct_decimate:nointerlaced:8x8dct:threads=auto:nofast_pskip:trellis=2:partitions=all:mixed_refs:bime:keyint=300:keyint_min=30:frameref=8:bframes=16:b_adapt:b_pyramid:weight_b:direct_pred=auto:subq=7:brdo:chroma_me:cabac:deblock:nossim:nopsnr -passlogfile /home/aleyscha/.h264enc/h264.log
fi
Last edited by leo2501 (2008-01-25 23:22:09)

Similar Messages

  • I want to effect a change for about 100 users - basically I want a command-line solution in CentOS. Is there a reasonable way to automatically associate .ica files with /usr/lib/ICAClient/wfica so we don't get prompted by Firefox? TIA.

    I would like to write a script to do this for about a 100 CentOS users. I don't want each of them changing preferences on their browser.

    Hello Oddsbodkin,
    It looks like the creator of Netflix Desktop has a site for the project here:
    https://answers.launchpad.net/netflix-desktop/
    I would try posting your question there and see if anyone else has encountered this error and has a solution.
    Cheers, Patrick

  • Is there a way to automatically set the file name in Acrobat Properties when exporting a PDF from Indesign?

    When I used Quark to make a PDF, the title area in the PDF was automatically populated with the file name, there in the properties tab. We like use this area to confirm file names of original files, so we can keep track of drafts, (in case the file name of the PDF is changed, which our boss often does). Is there any way to set up InDesign to do the same?

    @stadlock – I think I know what you mean…
    You exported to PDF and changed the file name in the export dialog to a different one from the document name presented there the first time you exported that document. And in exports after that the new name will be presented in the dialog instead of the name of the document.
    What you can do against that?
    1. First time you want to export: Save before the document is exported. And do not save after it's exported with a new file name.
    2. After the new file name is already there in the export dialog:
    Type in the document name in the dialog. Export. Or abort after chosing a export preference. Save. Check again, if the document's file name is in the export dialog. If yes, procede like in suggestion #1. If not do a full export with the document's file name, save and then procede with suggestion #1.
    Uwe

  • Method to automatically truncate html file names?

    I am using RoboHelp HTML 10 and building WebHelp.
    I import a Word file for content.
    Some of our topic names are long as in this example, which is over 60 characters.
    Create the Hierarchical Structure by Adding Elements Separately\
    Whne RH builds the html file for this topic, it creates the html file with the long name.
    When I put this up on our build server, this actually stops the build process for the product.
    I've been told that these lengthy file names are causing the problem.
    I can manually truncate the file names in RH, but there are a lot of them.
    Is there any way. to tell RH to restrict hrml file names to a certain length?
    Thanks for your help.
    Jenny

    First of all there is no way to automatically change the file names. By default RH creates topic file names from the topic name and as the Word import uses the default setting, that is what you get. However I suspect that your Developers are only telling you half the truth. I suspect it is a combination of the file names AND the directory path that is the issue. Try shortening the path and see if that makes a difference.

  • Kindly advise how i can export and distribute settings done on "about:config == network.automatic-ntlm-auth.trusted-uris" to all computers in the network. What is the best way to effect this changes on all Machines?

    I want user to access sharepoint on Mozilla without being prompted for credentials instead it should use logged on credentials

    Hi Meshackl, there is a very simple way with the distribution.ini file. Mike Kaply describes how to do that here:
    http://mike.kaply.com/2012/03/26/customizing-firefox-distribution-ini/

  • Best way to automatically map Java bean hierarchy to JavaFx property bean hierarchy

    We do not want JavaFx on the server side, so our DTO objects are plain Java beans.
    On the client side, we want to use the comfort of JavaFx bindings. As we're using Java 7, POJO bindings aren't possible yet.
    So we're looking for a way to automatically wrap the Java beans in JavaFx property beans.
    Possible approaches I've been looking into:
    - Code generation via JCodeModel
    - JavaBeanPropertyBuilder
    Ideally, we would want to have classes with structured JavaFx properties as a result, so that an ObjectProperty does not use the bean class, but always the respective JavaFx property bean class.
    This is so we don't need too many low-level bindings, but can rely on deep select bindings.
    This goes beyond the capabilities of JavaBeanPropertyBuilder as far as I understood it, so I'm left with fairly complex code generation using JCodeModel.
    Does anyone have some experience to share? Am I missing an option?

    Andipa wrote:
    As we're using Java 7, POJO bindings aren't possible yet.
    I'm sorry to reply without a good suggestion, but is there some type of POJO binding support in Java 8?
    This is what I currently use for POJO binding, but it doesn't sound very close to what you're asking for.  A lot of code still needs to be written by hand.  Also, I've only used it with relatively flat models so far.

  • Forcing program to close, I am deleting a lot of files from my trash but it stopped working about 1/2 way through (1650 files left) so I tried to reboot but it won't let me because a the program is still running which I can't close.

    Forcing program to close, I am deleting a lot of files from my trash but it stopped working about 1/2 way through (1650 files left) so I tried to reboot but it won't let me because a the program is still running which I can't close (stuck at 1650 files to go). So it allowed me to click cancel now it says "stopping" for 3hrs now. Is there anyway to force the MacBook Air (new model) to close as you can't remove the battery?

    Press and hold the power button until the Mac turns itself off. This force-shutdown should be done only after you've exhausted other options (you seem to have done so).
    Wait at least 60 seconds.
    Then press the power button to start up the Mac. It will take a little longer to start up because it will perform additional self-tests on the first boot after a forced shutdown.
    Once the bootup is complete, you should be able to delete the trash. Hold down the option key while choosing to empty the trash, which will automatically delete "locked" items.

  • Is there a way to automatically delete every song saved to a library? I have over 400 songs on a library, only 2% of which I'd like to have on my iPod.

    So, having had iTunes on my computer for SO long, my tastes have changed alot. I started syncing songs onto a newer laptop, but it recently broke and until I can get 280 bucks to replace the hard drive, I've gotta use my old one- which has 450 songs, none of which I want to listen to. Anyways, I was gifted an iPod Shuffle recently and I wanted to connect it to get some of those 400 songs back, because there was like 10 or 12 that i really liked and wanted to keep. So, now I have to manually scroll down a list of 450 songs and uncheck them all, save the 10 or so I want to keep. Is there any way I can do this differently? In case you are going to respond with a different way to re-download those 10 songs, there ARE other reasons. I just dont really have the time right now to list them all.

    No. I have quite a few more 16,000, so I don't manually manage. Making playlists for each device makes things much easier to organize. You can create regular lists of essential tracks and smart playlists to automatically catch new content, top rated, most played etc. If you'd done it this way all along configuring a new or restored device would be the work of moments.
    tt2

  • HT2905 Is there a way to automatically delete exact duplicates in iTunes 11

    Has anyone found a way to automatically delete Exact Duplicates from iTunes 11.  As I read the instructions, it can only be done by comparing the songs with the same title, making sure that it is the same album, etc.  Then I have been going through the duplicates and pressing CTRL in Windows to select the next duplicate song to delete.  I have a very large library and this is going to take hours.
    I guess I didn't get the instructions correctly when I backed up my Library to move from an old laptop to a new one.  I am going to have to go back and read those again because this brand new HP is having problems like the past few that I have received from HP.  I will never recommend an HP Product, I can tell you that.
    Thanks to all for reading this and I hope someone has an answer to automate it.

    When deduping use Shift > View > Show Exact Duplicate Items as this is normally a more useful selection. You need to manually select all but one of each group to remove. Sorting the list by Date Added may make it easier to select the appropriate tracks. If you have multiple entries in iTunes connected to the same file on the hard drive then don't send to the recycle bin. Use my DeDuper script if you're not sure, don't want to do it by hand, or want to preserve ratings, play counts and playlist membership. See this thread for background and please take note of the warning to backup your library before deduping.
    (If you don't see the menu bar press ALT to show it temporarily or CTRL+B to keep it displayed)
    See also HT2905: How to find and remove duplicate items in your iTunes library.
    (Duplicate link)
    If you still have the original library on the old laptop see this  migrate iTunes library post. It may be easier and/or better to redo the transfer...
    tt2

  • Is there a way to automatically sort/filter the itunes music list by files that  cannot be located?

    I have quite a lot of files that can't be located, and want to delete them all at once rather than clicking on everyfile to choose delete. Does anybody know of a way to sort the itunes listing so that I can group them all together to delete, or a way to automatically purge them all from the itunes file?

    But is there a way (simple or not-so-simple) to find
    out EVERY SINGLE FILE that's referenced on a
    timeline? (I have lots of stuff imported into the
    project that I know isn't used on any timeline, but
    I'm afraid of moving or deleting things for fear of
    never finding it again.)
    I'd love to get some sort of "printout" (a list or
    something) of every single file.
    There is, go to browser and cntrl click on any one of the columns,
    and select - show/source. A new column named "source" will pop up and will show where everything "lives". Click on the header at the top and it will justify the column as well. You'll notice this won't show anything for your seq.'s. of course, but will show stills/audio/motion files...
    Once you have the new column, you can drag it next to the "name" column and get a grab of it and print it if you like, or whatever.
    If you want to do this for just 1 seq., then can create a new bin and double click it to open it. Cntrl-A (select all) in your main seq. and just drag all into the new bin. You will see only what's in that seq. with the "source" column right next to it.
    From what I've read, you seem to get the MM thing and it's obviously what you'll need to do to archive as the guys said. But what your missing is a file path system to where everything resides.
    Hope this helps and that I've read you properly,
    Peace
    P-Book 1.5, 17" 2gsRAM   Mac OS X (10.4.4)   FCStudio

  • Is there a way to automatically detect and delete duplicate photos in a library

    I just imported a load of photos into my main iPhoto '11 Library from several older MAC's Photo Libraries. Despite repeatedly using the "Don't Import Duplicate Photos" dialogue box, I have many duplicate photos. Is there a way to automatically detect and delete Duplicate Photos?
    I also have iPhoto Library Manager installed on my MAC, but cannot seem to locate on it anything that would do this.
    I have over 4,000 photos, so would really appreciate some help here! Thanks in advance...

    duplicate annihilator - http://www.brattoo.com/propaganda/
    And NEVER import an iPhoto library into another iPhoto library - doing so des not work and creates massive duplication
    if you still have all of the original iPhoto libraries I recommend you drag the bad one you created to the desktop (delete it later when everythin has successfully been completed) and start over usin iPhoto Library Manager - http://www.fatcatsoftware.com/iplm/ -  to merge the libraries
    LN

  • Is there a way to automatically refresh a webpage in Firefox 3.6.10?

    hi there,
    I am hoping the Firefox team can help with a small problem, is there a way of automatically refreshing webpages within Firefox 3.6.10 and 4.06 beta? We are building an interesting website at the moment and the client is using Firefox 3.6.10to view the site. Each time they go onto the new website to see the changes we have done, they are shown old pages. We need to rectify this problem as quickly as possible, for our client without requesting that they refresh the page each time they go onto the site.

    You can do that by changing a hidden preference.
    # Type '''about:config''' into the location bar and press enter
    # Accept the warning message that appears, you will be taken to a list of preferences
    # In the filter box type '''browser.cache''' to bring up a small number of preferences
    # Double-click on the preference '''browser.cache.check_doc_frequency''' and change its value to '''1'''
    For more details on that preference see http://kb.mozillazine.org/Browser.cache.check_doc_frequency

  • Is there a way to automate the tax code assignation on non PO documents lik

    I'm looking for a way to automate the tax code assignation on purchases, I'm aware of the condition techniques for POs, but I would like to understand if it can be also applied to the other document in purchases so we can have a totally automate process on tax code assignation.
    Documents like: Contracts, Info records, RFQ, Scheduling agreements, Outline Agremments

    What you need to do is to create condition tables & access sequences for condition type NAVS for purchasing documents like RFQ, Contract & Scheduling agreement. You can use the document types and document category to differentiate these. Obviously this is required only if your tax determination scenario is different between different document type, if the tax code to be determined is not linked to purchasing document type, then you only one access sequence which can have parameteris like PORG, vendor if required etc. which are common to all document types.
    Once this configuration is done, then you need to maintain condition records using transaction MEK1 and maintain the tax codes as per the combination of parameters.
    In case of Info-record, it is different as it is a master data and this automatic tax determination will not work there.

  • Hi, I'm using Firefox 3.6.3 and I'd liek to know if there's a way to automate the login process for a website asking for credentials.

    I have a website I'm using very other on my company's Intranet, but it requires a username and password. I'd like to see if there's a way to automate the login credentials

    Thanks a lot for your swift response. And sorry if it was a bit too hectic to go through my detailed query (which I did because it was misunderstood when I asked previously). As I've mentioned above, I was informed that updating to 5.0.1 would '''require''' me to '''delete''' the current version and then install the new one. And doing so will involve losing all my bookmarks. I guess I should have been more specific and detailed there. By losing, I didn't mean losing them forever. I'm aware that they're secured in some place and deleting and installing the software doesn't harm its existence. What I meant that if I install the new version, I'd have to delete the old one. And after installing the new version, I'd have to transfer them (bookmarks) back from wherever they are. Get it? When it updated from 3.6.9 to 3.6.13, and from 3.6.13 to 3.6.18, I didn't need to follow that process. They were already present on their own.
    BTW, I'm having no problems with 3.6.18 but after learning about the existence of version 5.0.1, I'm a bit too eager to lay my hands over it.
    Thanks for your help; hope this wasn't extremely long.

  • Automatic lot creation on fixed frequency

    Hi All,
    Please suggest a way to do automatic lot creation for a particular material on a defined frequency. Can I use audit inspection to generate inspection lots automatically. I will be having an inspection plan assigned to this material.
    Scenario is material going to unrestricted direcly without quality on it, on every 6 month, one inspection lot should get generated for this material for each vendor.
    Thanks
    VV

    Can some one continue with this below thread, it will be very useful, if i get further information. I tried to revive this thread, but its inactive. requiremen over there is almost same for me too.
    Periodic tests in automotive components
    Thanks VV
    Edited by: Vineeth Varghese on Feb 2, 2010 8:12 AM
    Edited by: Vineeth Varghese on Feb 2, 2010 8:13 AM

Maybe you are looking for

  • Any way to increase the default Heap size for all Java VMs in Solaris 8

    Hello, I have a java product that deals with large databases under Solaris 8. It is a jar file, started by a cron job every night. Some nights it will fail because it runs out of Heap memory depending on the amount of records it has to deal with. I k

  • Artist Name

    so i downloaded the song "kiss kiss" by chris brown into my playlist and into my library on itunes. it shows up in my iPod but when i go to "Artists" it doesn't show the song. it shows it in all of the other sections though (songs, english song playl

  • How to initialize the Select Options

    Hi, I have 5 select-options and 3 parameters in my selection screen. I have to assign default values to the select-options. I have S_VKORG for Sales Organization. The default values for this select-option are 'KF11', 'BH13', 'KF26'. How to assign the

  • CSHARP and AIR

    Hello World! I have built a csharp/flex application which is really cool!  I really need csharp to connect to another system but that is a whole other story(just know that i must have csharp).... Initially I built the csharp project with a flash cont

  • Crystal Report chart with VB6 help...

    Hello!....I m using crystal report with visual basic 6.......i develop a report in crystal report in which i add a chart control......when i see preview in crystal report and move mouse over chart then on Tool tip i get each data point shown on mouse