A watch directory for encoding videos

I was wondering what would be the best way to go about making a watch directory routine in bash.  Essentially i want a bash script to watch a directory and when a file is added it will automatically encode using ffmpeg and x264?  Are there any external utilities to help with this function?

I just found mencoder doesn't utilise the cores properly when deinterlacing and piping to x264 I got better performance.  I'll look into incron tomk, thank you so much.
Last edited by z1lt0id (2013-12-05 00:15:43)

Similar Messages

  • Watch-directory for your printer?

    I just discovered flexget a program that can (if i understand i correctly) download something, for example xkcd automatically every time a new issue comes out and put the comic in a directory.
    Now i got an idea about this. A watch directory for your printer. Everytime something is put in this watch directory it get printed out.
    Anyone of you guys aware of such a utility capable of this or want to script one?
    Think about the possibilities! everytime a new issue of xkcd or ALM get published it is automatically printed out for you.
    I would buy a dedicated toilet-printer ;D
    Last edited by whacath (2010-05-25 03:00:43)

    #!/bin/sh
    watchdir=/path/to/watchdir
    inotifywait -qm --event CREATE --format %f "$watchdir" | while read file; do
    lpr "$watchdir/$file"
    done
    Of course you'd need some better logic than just throwing everything directly at lpr, but inotify is the way to go and it doesn't need to be much more complicated than this.

  • [E71 on Linux] Best settings for encoding video?

    Hello all,
    I have an E71 and I would like to encode videos on my Linux box for it.
    I have a script for that, using MPlayer's MEncode. I'd like to know what are the best settings, i.e.: Resolution, Video Bit rate, Audio Bit rate and Codec / file format.
    Also, what is the best video player out there for the Symbian 9.1 3rd., preferably a freeware app...
    I have DivX Mobile installed and the built-in Real Player (very poor quality playback - maybe because incorrect encoding?)
    Thanks!

    Enough of the data you need is most likely on these two pages:
    http://www.forum.nokia.com/main/resources/technologies/audiovideo/av_features/FN_vid_table.html
    http://www.forum.nokia.com/devices/E71

  • Problems for encoding videos

    Hello,
    I have problems with videos.
    I have 2 videos (face and profil) in high definition - HD, which have not the same duration and the same size.
    They are cut in final Cut Express HD. After cutting, they have the same duration (for example : 20'10) and not the same size.
    When I compress them with Compressor or Cleaner 6, the both videos have NOT the same size at the end. I use the same ajustements for the 2 videos.
    DVD Studio Pro refuse the 2 videos because they have not the same size !
    This problems appears also on another MAC (MAC G5 bipro).
    I want to know how I cant resolve the problem ? Is it a problem with compression ?
    I have tested with 2 videos (MPEG2) from another project (same size and samed length).
    I have compressed with compressor and Cleaner and them have not the same size after compressing !
    There is a problem with compressing and not with the source.
    I need to have 2 videos (angle) to put in DVD Studio Pro 4.
    Thank you for helping me.
    Best regards.
    Rameur PL

    On a side note, I find it irksome that people are still calling HD video in the states NTSC.  Technically, it's ATSC.  Companies like Adobe really should know better.
    Well, they did put the correct preset name of 30i for AVCHD.  Maybe they'll get the ATSC thing right in CS5.

  • HT1689 I subscribe to my video podcasts but some of them either has a small red E next to them and won't download new content or some just doesn't download new content. I have been watching the Rachael Maddow video podcast for at least a month with no pro

    I subscribe to my video podcasts but some of them either has a small red E next to them and won't download new content or some just doesn't download new content. I have been watching the Rachael Maddow video podcast for at least a month with no problems. Now suddenly it won't download the last nights show. I have read and followed all troubleshoot and cannot find a solution. I have unsubscribed and re-subscribed to no avail. Can someone help me with this problem?

    keian27 wrote:
    And now that my contract has expired, I have some options.  Last weekend, I called Verizon again threatening to leave.  The representative offered the same $75 rebate that was offered to me 6 months earlier.  I even offered up one of my device upgrades in place of a network extender, but that deal was knocked down.  And so now I’m left with the option to make a public spectacle out of this scenario and hope Verizon takes notice.  Failing that, I’ll be forced to leave Verizon behind.
    I don't understand. If having service in your home IS important to you and you already know Verizon's policy, why have you not instead started to search for carriers which cover your home? It seems a pretty easy decision to me, at least.

  • Encoding Video for DVD?

    I want to make a DVD that will play in home players, though I do not need to make a menu using DVD SP. Is there a way to encode video straight from FCP into a file that will play in a DVD player?
    Thanks.

    This is really a question for the DVDSP forum, but the sum of it is that you use Compressor to encode your video to MPEG2 and your audio to 2 channel Dolby, then import those two files into DVDSP as Assets and drop them into the Timeline in DVDSP.
    That will be Track 1, so select the disc in the Outline and in the Inspector, and you should find a drop down menu to make Track 1 the First Play. That's basically it, but I usually do one or two other things.
    One: If this is for a trade show, or even a client approval disc, I'll set the Jump To for Track 1 to be Track 1. That will cause it to loop until the user stops it.
    Two: I'll create a simple menu with a single PLAY button in the center, and map that button to play Track 1. That way, if the client inadvertently drops out of the play loop and wants to get back into it, s/he can do it by hitting Menu on the remote and pressing Select.
    More details on all of this are contained in your Fine Manual.

  • Best setting for encoding flv video?

    What is the best, most universally accepted setting for encoding flv videos to be viewed over cable modem access?
    Best,
    Brian Russell
    Gainesville Health & Fitness Centers
    www.ghfc.com

    I completely understand.
    For print work, I did a lot of that with either Save_As, or Save_As_a_Copy in Photoshop. Then, they added Layer Comps, and that cut down on the work, but allowed me to have several "treatments."
    Have not used that in PrPro though. I see the usefulness of the feature though.
    Yeah, clients are fond of saying, "really appreciate you following all of my ideas, but I think I like what you had last week better... Can we go with it, but with these few extra changes?" Happens all too frequently. Lot easier now, than back in the old days, when one painted the cyc, set up the shot, and lit it, only to have the AD change the color of the cyc. When done, they'd often say, "liked that original color better. Let's tear it all down and re-paint to that." Now, I just change the color of the background digitally - a lot less painting!!!"
    Thanks for that tip,
    Hunt

  • Can 2011 MBA install APP in APP Store? Can it run App PPS for online video watching?

    Can 2011 MBA install APP in APP Store? Can it run App PPS for online video watching?

    Look at this link:
    Install WhatsApp On iPad And iPod touch
    http://tinyurl.com/lp6tsud
     Cheers, Tom

  • Best Mac for fast video encoding?

    Wondering which Mac may be the best choice for fast (at at least faster) encoding of video files and creation of disc image and then burning a dvd disc. I'm doing home videos with my digital camera, about 50 minutes long.
    On my Dual 1ghz G4 PM, it seems to take forever, maybe 6-8 hours. Anyone know or can quess how long it takes for the new iMac Core 2 duo versus a low end Mac Pro?

    on my antiqué hard/software (450Mega!Hz, 1GB RAM, 10.3.) combo, iDVD encoding needs 8 - 10x of the length of project... (1h project= 8h encoding)
    sooo, to improve speed:
    * make sure, you're within specs of iApps - avoid compressed material, stay with .DV encoded video, .aiff encoded audio, .pic encoded stills...
    * make sure, you have at last 10 - 15GB free on internal drive (ext. doesn't matter for this issue)
    * make sure, all project data are located on internal drive
    * … if not, make sure ext. drive is firewire connected and formatted to "MacOsExtended/hfs"...
    * avoid other CPU/harddrive consuming tasks, as ripping CDs, rendering 4D animations, Spotlight indexing...
    I've seen überMacs, Intel quads/4GBRam, encoding in less then realtime...
    if you don't need fancy iDVD menus, playout movie (=realtime...) to some DVD/Harddrive standalone as from Pioneer (<<link to commercial website!), my 520 does the (hardware accelerated) encoding/burning of 1h video in about 5-10minutes...

  • Encode Video Files not working for avi files

    Hi,
    I've been trying to convert some .avi files to apple format using Lion's native 'Encode video files' function however keep getting a 'avconvert: source file not found for source file://fileparthhere avconvert: failed to create an export session. Check setup
    I can't work out why as this has worked before in Lion and works fine for other video formats. The only thing I've done is remove Final Cut Express HD and can't add it again as I don't own it anymore
    Suggestions? Is there a encoder to make this work or should it work anyway?
    Thanks

    If you click Yes the project file will be updated when you save it. That has nothing to do with the media.
    Are the Lesson and Media folders still in the Book Files folder (or whatever it's called)?
    Select one of the clips in the browser and use Edit>Item Properties. One of the first lines is Source. That gives you the file path for where your media is supposed to be located. What does it say? If nothing is there, use the File>Reconnect function and point the application to where the media is located.

  • Cannot download or watch old or new video podcasts after iTunes directory reorg

    I just installed itunes 10.6.1.7. on a new PC connected an external hard drive containing my itunes library and pointed to my library on an external hard drive. That seems to have worked fine except for the issue described below.
    I also did reorganization of my library structure via "organize library" menu option. The reorg left all video podcasts in the old podcast folder and will not let me copy them to the new podcast folder. I have podcasts that are all video podcasts and some that are mixed audio podcasts and video podcasts. In both cases the video podcasts remained in the original or old folder location. In the case of the mixed video and audio it just left the video episodes in the old folder and moved the audio podcasts.
    If I select a new video podcast from the itunes store and download it, I cannot view it in itunes. An example of a new video podcast I attempted to download is  "MinutePhysics". The podcast will display as one of my podcasts in itunes but the file or episode has a "GET" button next to it and never shows it as available to view in itunes. It looks like it is downloading to my hard drive but after it downloads I cannot locate the file in any directories.
    In Advanced Preferences on the Advanced tab I have checked and unchecked "Keep iTunes Media folder organized" and that does not make a difference checked or unchecked.
    The video podcasts are not in movies or in tv shows. All music is present and accounted for that I know.
    How can I restore all video podcasts previously downloaded and view them on itunes or an ipod?
    Can I create a video podcast option in itunes?
    Please help.

    Issue solved - It turns out that the QuickTime version on my PC was 6.5 and I needed to update to version 7.6 or higher to allow videos to play in iTunes. I updated to QuickTime version 7.7 and then added the old podcast folder to iTunes while in podcasts. This found all video podcast content and then the auto reorg moved all folders to the new podcast directory. For the videos I manually moved earlier, I had to move (not copy) them back to the old directory or folder then add that old folder and they were now in the right directory and viewable in iTunes. Thanks for the reply.

  • TS3623 I rented a movie and can watch preview perfectly with video and audio feed as signal strength is at top when I checked. However, when I purchased rental video is fine , but I get scratched sound for audio. Any thoughts to fix?

    I rented a movie and can watch preview perfectly with video and audio feed as signal strength is at highest when I checked. However, when I purchased rental video is fine , but I get scratched sound for audio. Any thoughts to fix? I rented movie within week and it worked. All previews of movies and show also works.

    I have a suspicion that the problem is not in the recording device itelf, but rather in the playback-software, which is struggling with an unfamiliar audio format/codec/whatever-it's-called... I opened the file in QuickTime Player 7 (7.6.6) and selected "Show Movie Properties" and it says:
    "Video Track: H.264
    Sound Track: Integer (Little Endian)"
    All current Mac systems support Integer (both Big and Little Endian) audio natively. The fact you can hear anything at all proves that the audio is playing back. The most likely problem would be a malfunction associated with the mic pickup.

  • Is it normal for a 2011 2.2 macbook pro to get really hot while watching a HD youtube video?

    Is it normal for a 2011 2.2 macbook pro to get really hot while watching a HD youtube video? The fans get really loud and everything gets pretty hot when im just watching some lame video on youtbe thats HD? for a 2.2 quadcore wth 1gb of video ram this is an issue? I would think it wouldnt even phaze it.

    MajorPie wrote:
    hmm
    Only running firefox and itunes.
    4 gb of ram
    more than 15% available
    up to date flash, flip4mac
    never heard of perian. its a quicktime player? would this help?
    Give Allan's advice a try. I'm curious to see how that works for you.
    4GB RAM could be part of the issue. Open Activity Monitor, select System Memory and see what it says for Page ins, Page outs, and Swap used.
    Perian isn't a necessity, but those three together usually cover all the different formats you might encounter.

  • Quicktime 7.6.4 won't play h264 encoded videos on my 10.4.11 MacMini

    Hello:
    This is my first post. I read through the forums and this seems to be the correct place to pose my question. If it's not, my apologizes.
    I'm trying to find out why Quicktime 7.6.4 won't play h264-encoded video on my MacMini (G4 PPC). I'm running 10.4.11. I recently installed Perian 1.2.1 and it got some .avi files to play correctly, whereas before there was no sound. But the h264 files still get me a black screen, albeit with sound now. Some h264 files can be played in VLC Media Player (but that's a horrible player compared to Quicktime in my opinion, as it constantly drops frames and eats 100% of my processor time), but VLC even has the black screen problem on some h264 files as well.
    I've also tried MPlayer OSX but that's really an alpha-type development and has a lot of bugs. Many movies it can't even open.
    Sorry for the rambling, but again my question: Is there any way to play h264-encoded video in Quicktime 7.6.4 on my Mac?
    Thanks in advance for your expertise and advice.

    Mr Ram,
    There is a group of Quicktime specialists in Apple.com ⇒ Support ⇒ Discussions ⇒ Quicktime .
    The more data you give us, the easier it is to help us help you to diagnose your problem. Your disk space would be very useful. Contrary to some, I advocate iDefrag to assist VLC and MPlayer, which you were a little hard on.
    GNU/Linux's free offerings
    MPlayer was developed a decade ago, and I prefer it for viewing DVDs (for 'DVD Player') seems too dark. VLC (legally) copies many CRM-protected DVDs of yours, so you can play only the burned copy. When I'm having a problem playing a DVD, the VLC log tells me all: only perfect DVDs play well on VLC.
    There are two ways of viewing everything.
    Streaming MPEG-4
    +H.264/MPEG-4 AVC+ is a fancy codec based upon MPEG-4: it requires a powerful processor to de-compress it. I watched an MPEG-4 movie from a G3 iBook in 2005. It played flawlessly.
    Your Problem
    Quicktime 7.X applications can not play +H.264/MPEG-4 AVC+ streams. It was a bug Apple never fixed. Frames are dropped because H.264 is so slow that it requires special hardware. You, I'm sad to say, don't have it.
    To quote the Wikipedia on Quicktime: 'QuickTime 7 lacks support for H.264's Sample Aspect Ratio .[67] QuickTime X does not have this limitation; many Apple products (such as iTunes and Apple TV) still use the older QuickTime 7 engine.'
    My Quicktime Pro on a PPC PowerBook is 7.6.4. You can either use a Linux transplant or upgrade to Quicktime X. Those more familiar with Macs may have better ideas for you.
    My best,
    Bruce

  • Options for compressing video in iPhoto

    So after using iPhoto for several years now, I've got lots of HD video snippets (hefty MOV files) scattered all throughout my years of created iPhoto Events. I don't have any intention of using iMovie to drag all the pics and movies together and make a "produced" movie, but instead just want to be able to access the individual iPhoto events & albums from my AppleTV for viewing with family. The newest Home Sharing feature of iTunes allows me to do this.. watching all the pictures & videos within albums and events - a great new feature. Unfortunately though, the large HD files take for ever (5 mins +) to load to the AppleTV before playing, thus ruining the "home video" experience.
    I've done some experimenting compressing a few video files into 1080i .mp4 format using Quicktime then reimporting them into iPhoto. Without an "import to event" feature, it takes a while to find the imported files, then merge them with the original Event. When streaming the revised iPhoto event with the newly compressed video content, the files loaded quickly (1 to 2 sec) and were of acceptable quality.
    I'm pleased with the results of this experiment, however, at 15 mins of work per video it would take way too much time to do this manually for my entire library. There are no features of iPhoto I know of that can perform the compression task, thus requiring all the file moving back and forth. Does anyone have suggestions on how this task could otherwise be done in a simpler fasion or using an automated technique?
    Thanks for the help,
    Chris

    Check out Automator. I'm no expert on this, but it seems like you can get the Videos (gather them in a Smart Album first) and encode them with QuickTime in a workflow. That's half the work done. That just leaves you with replacing them in iPhoto.
    And you can do this in iMovie too. You don't have to edit, just import them (which you can do from the iPhoto Library inside the iMovie window, add them to a time line and encode them as you prefer. Then export.
    Not sure there is any way around manually adding and replacing them in iPhoto after though.
    Regards
    TD

Maybe you are looking for

  • In iTunes 11 how can I view a playlist in a separate (new) window?

    In iTunes 11 how can I view a playlist in a separate (new) window? I always did this by double-clicking the playlist. That doesn't work now!

  • HT5012 I'm in the hospital trying to play my netflix & fios it won't let me stream ?

    I'm in the hospital trying to play my netflix & fios it won't let me stream ?

  • Library sharing help

    I had this all set up very easily at first. I had the iPhoto Lib on my external HD and was sharing it with my G5, iBook G4 and Powerbook G$ all with iPhoto 08'all running 10.4.11. Then I upgraded my G5 to a new iMac running 10.5.5 and I can choose th

  • [N97] Turn off Notifications?

    hi guys! No this is not yet another complaining N97 thread. I just wanna post a question and probably add more in the future. My first and most important questions is: - How to turn off the symbian notifications? Reason: When changing a profile, I do

  • E-recuiting

    Hi All, In SAP e-recuiting on ECC 6.0, EP 7.0. However, when we try to execute bsp application from R/3 or portal, some application gives error message of BSP and some applications gives login page. In login page when we enter userid/pw it shows erro