Script to encode jpg and mp3 into video for youtube?

Hi!
Sometimes I upload music and stand-up to youtube. Till now I used wine + avisynth + virtualdubmod to achieve this. Lately I realized that there is another smipler way to carry out things: ffmpeg
I was looking for some script or one-liner which makes the encoding task, but unfortunately none of those mentioned scripts worked. They are all obsolate that are mentioned by others. Some of them works, but the resulting video are denied by youtube. Do anybody know a simple one-liner or script (or maybe a handy application) which can do the transcoding the right way?

You don't say if you want 1 or multiple .jpg images in the video.
http://www.ffmpeg.org/trac/ffmpeg/wiki/ … m%20images
Script to encode jpg and mp3 into video for youtube?
With x264/mp3 into a mp4 container? Any number of ways. Here are some examples.
ffmpeg -r 1 -i file.jpg -i file13.mp3 -c:a copy -c:v libx264 -b:v 500k ouput.mp4
ffmpeg -loop 1 -i file.jpg -c:v libx264 -t 30 -i file.mp3 -c:a copy out.mp4
ffmpeg -f image2 -i file.jpg -i audio.mp3 -c:a copy -c:v libx264 -b:v 500k output.mp4
Find out how you want to do, then if you want a script to automate it, something like
#! /usr/bin/env bash
echo "What image file?"
read image
echo "What audio file?"
read audio
echo "what video size?"
echo "Example: 640x480"
read size
echo "Output file name?"
read name
ffmpeg -f image2 -i "$image" -i "$audio" -c:a copy -c:v libx264 -b:v 500k -s "$size" "$name".mp4
exit
If you want to use multiple images, look at ffmpeg docs.
Last edited by teckk (2013-08-18 22:49:36)

Similar Messages

  • I have 2 iphones syncing on one computer and on the same apple ID. Before i updatad my Itunes to the last available update and my Iphones to 5.01 i had no problem draging jpg. and mp3 files into my iphones DCIM folder (the picture folder that opens when c

    I have 2 iphones syncing on one computer and on the same apple ID.
    Before i updatad my Itunes to the last available update and my Iphones to 5.01
    i had no problem draging jpg. and mp3 files into my iphones DCIM folder (the picture folder that opens
    when conecting to Itunes). Since my updates Itune wont let me drag and drop any files' even pictures that
    were taken with my Iphone on 4.3.3.
    Please help as we have no itunes music in Israel, only apps and i cant copy any of my old music from my computer
    to my iphones.
    If it helps, i am using a pc with 32 bit windows 7.
    Other from the obove Itunes works fine and does sync pictures from my computer to my Iphone from "my pictures" folder.
    Thank you for your time
    Yoni Bliss
    [email protected]

    The title of my initial post is a bit misleading. I already took a chance deleting one of the iPhones, hoping if I deleted the wrong one, I can still reauthorize it (all with the same Apple ID acct, so not subject to 90-day waiting period, right?) The iTunes database just updated itself, and it says I have 4 "devices" "in the Cloud", but 5 "computers" associated w my account. How can I find out what computers are associated? Isn't there a list I can see? I dont have a clue what computers they might be. If I use the  "Deauthorize All" option, is it a pain to add them all back in. I assume I would have to log in from each computer to reauthorize each one. Would I have to be running the newest OS or version of iTunes to reauthorize? I think I have a PowerBook G4 Titanium with an older OS and iTunes. I'd like to keep that authorized, if possible.

  • Encoding music video for Youtube - any advantage of using Pro (AME) over Elements?

    I am in the process of encoding some music videos for youtube.  I'm currently using Steve Grisetti's suggested settings from mid-2011 here:  http://forums.adobe.com/thread/623549
    What I'm wondering is if the Adobe Media Encoder provided with Premiere Pro (or another such program with more features than the Premiere Elements 7 encoder) would provide better results?   For example, I noticed those programs have options such as 256kbps audio, 2-pass, and Variable Bit Rate (which PE7 doesn't seem to have).  Would that provide better quality?  Of course, I need the very best audio possible. 
    Also, I've read from various other people's suggestions, that FLV is a better export choice than h264 since less recoding by Youtube is done- any truth to that?
    Lastly, would exporting to 1080 instead of 720 (and therefore giving youtube users the option of choosing either 1080 or 720) be better for the long term, or is there any reason why 720 is suggested?
    My videos are short and were edited from DVD vob files.  I've very new to encoding so really appreciate the suggestions!
    Thanks!

    I doubt that even a discerning ear to tell the original source Audio, after YouTube gets through Transcoding it for display. Also, viewers will be listening through their computer's speakers, and not a full home theater setup, where the Bit-Rate might make a slight difference. Also, most folk today, think that MP3's through ear-buds are "high fidelity."
    The only plus for using AME is that once you have queued the Project up, you can do other things, while it is processing the file.
    Good luck,
    Hunt

  • Manually save and upload a video to Youtube

    Hello,
    I'm wanting to know the proper settings (as far as frame size etc...) for MANUALLY saving a video file that I plan on uploading to YouTube later?
    So I'm looking for the proper settings at the beginning when I start my project and then when I'm saving it.....which should I choose?  It's a video for a client so I want it to look great and I want it to fill the 'whole' YouTube video screen; with no pillars on sides or top.  This is a very short video, but I will be making several of them, they are only about 2 mins long, just fyi.
    I was able to save one using the AVCHD and I think the very first option; which is like 1440 x 1080 and this did work but isn't this a huge file size or overkill?  I have a few photos in there that are 1000px x 750px and these look great; but somewhere I think I saw that YouTube videos should be 640 x 480??
    Can I go ahead and keep using this setting? It did fill the complete YouTube screen...
    THANKS IN ADVANCE!

    Amy
    Thanks for the reply. I am having Internet speed problems for my high speed DSL so I fully appreciate the smaller size downloads uploads.
    Here is the plan...I am going to assume that your video from the iPad is 1080p (1920 x 1080 @ 29.97 progressive frames per second).
    1. Set the project preset manually to
    NTSC
    DSLR
    1080p
    DSLR 1080p30 @29.97
    The details of setting the project preset manually can be found toward the bottom of the following
    ATR Premiere Elements Troubleshooting: PE11: Accuracy of Automatic Project Preset (New Project Dialog) Setting
    2. Then import your source media into the project. The source media being
    a. the iPad's 1080p video
    b. your graphics sized to 1920 x 1080 pixels
    One of the perks of the project preset selected has been that the images in the export seem to be sharper than other.
    3. Now for the export....possibilities....
    a. If the estimated upload to YouTube is less than 2 GB/15 minutes, you could try
    Publish+Share
    Social Websites
    YouTube
    with the preset = High Definition Video for YouTube - 1920 x 1080.
    or
    b. If you are going to export to a file saved to the computer hard drive and then upload from there to YouTube
    at the YouTube web site, you could try
    Publish+Share
    Computer
    AVCHD
    with the preset = MP4 - H.264 1920 x 1080p30
    Note the estimated file size and duration at the bottom of the export area just before you hit Save.....if too large
    a file size, you can click on the Advanced Button/Video Tab and lower the bitrate to lower the file size (but just
    to a point where you are not lessening the quality)
    or
    c. The Windows Media exports typically give the smaller file size - so maybe
    Publish+Share
    Computer
    Windows Media
    with preset = 720 x 480 16x9 29.97
    then you are going to customize that preset so that it is 1920 x 1080p30
    See Advanced Button/Video Tab...., focusing on the Video Tab fields....
    You will probably find a chain in the box to the right of Frame Width and Frame Height and will need
    to remove it in order to type in the 1920 and the 1080. It disappears and reappears by clicking on the box.
    The Bitrate in Kbps (kilobits per second) is set by me to 3500, but that can be adjusted either way
    if the file size is too large or too small or you want to try for better quality while you are maintaining a decent
    file size.
    We will be looking forward to your results.
    ATR

  • How do I find out the exact path of each and every file that LabVIEW finds and loads into memory for a given top level vi?

    How do I find out the exact path of each and every file that LabVIEW finds and loads into memory for a given top level vi? There is probably a trivial, easy way to get this info, but I have not yet found it!  Thanks..

    Or if you want to grab all the paths programatically, try the attached VI.
    Open the top level that you want all the paths from and close all others, then open the
    attached and run it. It will return an array of all the VIs that the VI
    in question uses, including vi.lib VIs. You can filter these as well if
    you like.
    Ed
    Message Edited by Ed Dickens on 08-01-2005 07:01 PM
    Ed Dickens - Certified LabVIEW Architect - DISTek Integration, Inc. - NI Certified Alliance Partner
    Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.
    Attachments:
    Get all paths.vi ‏29 KB

  • Output file size restrictions - HD Video for YouTube

    For over a year YouTube has removed restrictions on file sizes for individuals that want to do so.  The preset output in Premier Elements 11 for "Online - HD Video for YouTube 1920X1080" will not allow a video longer than 15 minutes.  I need to remove this restriction and be able to produce files to upload to YouTube without file size restrictions.  How can I do this?

    TheBanjoNut
    You cannot. And, Premiere Elements 12 has the same YouTube limitations as 11.
    You need to export your Timeline to a file saved to the computer hard drive, and then upload that file to YouTube at the YouTube web site.
    At YouTube, you would need to explore the opportunities that it offers in the way of "extended times". It may require special accounts.
    Without further details of your Premiere Elements project preset and the properties of your source media, I would generalize and suggest that you look at the follow choices for creating this file for upload to YouTube at the YouTube web site...
    Publish+Share
    Computer
    AVCHD
    with Presets =
    MP4 - H.264 1920 x 1080p30
    or
    YouTube Widescreen HD (changing the settings under the Advanced Button/Video Tab of the preset)
    Please review. If you have any further questions on this, please do not hesitate to ask.
    Thanks.
    ATR

  • Exporting video for Youtube

    Does anyone know the best way to export video for youtube, whenever I put something on that website the quality goes down dramatically.

    Check out these links:
    http://www.google.com/support/youtube/bin/answer.py?answer=165543
    http://www.kenstone.net/fcphomepage/you_tube_hdgary.html
    Regards
    Nolan

  • Can I use iMovie to create a video for youtube using an MP3  and a video?

    I have some music I've recorded on Logic Pro that I'd like to post on youtube and am trying to figure the easiest way to link it with either still photos or a video so it'd be OK for youtube. What's the best way to go about this please?

    just drag 'n drop your jpg and your mp3 into the timeline of your Project - done.
    Depending on what version of iM you're using, you can directly upload from within iMovie, or you have to export first, then use YT's upload web interface ...
    in case you own a licence of Quicktime Pro,  open a jpg with it, open in a 2nd window your mp3, select all, copy, paste to picture - done .. no 'fullsize editor' needed.

  • Can no longer copy and past jpg and gifs into InDesign from c:\user\doc\pics

    Here is the error message we get when doing a copy and past from the hard drive to InDesign.
    Error Message from InDesign:
    Adobe InDesign may not support the file format, a plug-in that supports the file format may be missing...
    First, do I need to add a plug-in to be able to copy and past jpgs and gifs?
    Second, we have always used clip organizer with no problem. Ability to copy and paste jpg & gif suddenly stopped. We get a box but no image ont the page. Have already tried dumping temp internet files through internet explorer. Have already un & re installed InDesign and repaired and fixed everything I could think of.
    Third, we can use the place command to place jpgs but can not place gifs.
    William (Helping Mrs. White)

    It sounds as if Mrs White needs to search visually for graphics and then place them. She can either set Windows Explorer
    to thumbnail view and drag a graphic on to an InDesign page - this will in effect be placing the graphic, not copying
    and pasting, and is the right way to go. Or she can use File > Place, and set the view in the Explorer window that she
    selects from in the Place command to a thumbnail view to see the graphics.
    GIFs can be placed. They are not a recommended format, but if you are placing clip art then you may have no option.
    So, in answer to your original question, no, you don't need a plug-in to place JPEGs and GIFs. But note that is place,
    not copy and paste.
    k

  • Make Your Families and Friends A Video for Christmas

    What are you going to give your friends/families for Christmas? Do not decide yet? Here I will give you a suggestion. You can make a video and send to them. It will be a great present for them. You may make a video from your own media source: videos, pictures, songs and you can write something you want to say to them.
    Do you like my suggestion?
    Yes, let's do it.
    Here you need a SlideShow Maker to help you to do that.
    There are many SlideShow Maker on the internet to download and I use this one.
    Things you need:
    1. Source: Videos, picture, songs and what you want to say to them.
    2. SlideShow Maker
    How to make your own videos for your families and friends
    Part 1. How to add videos/picture/songs/word
    1. How to add videos?
    Double click the preview window or the box in the “Story Board” to find the videos on your computer.
    It can save your videos in it and you can find it easily in “My video” next time you want to use it.
    2. How to add pictures?
    You can add videos from your computer the same as add videos.
    This SlideShow maker provides you many beautiful pictures on the left side of the interface. It is classified as “Animals”, “Christmas”, “Halloween”, “Plants”, “Scenery”, “Season” and “Wedding”
    3. How to add songs?
    Click “Add Muisc” in the Story Board to add your music.
    4. How to add words on the screen?
    Click “Add Text” to add your words on the screen.
    After you add the video, picture, or songs, you can see their properties of them and you can also edit it on the property section
    Part 2. How to add transitions between two source you add
    A default transition will be added when you add two sources(pictures or videos). When you click the boxes between two source in the story board you are allowed to change the transitions(it provides you 19 transitions for you to choose).
    You can adjust the duration and other settings of the transition, such as “Motion”, “IrisStyle” and so on.
    Part 3. How to edit the source you added
    1. How to edit videos you added
    When you click the video you added on the Story Board, you will see the edit interface and you can do crop and trim under the previews window. When you click the triangle at the bottom of the preview window, you can go to the preview interface. In there you can preview your video and full screen is available.
    On the left side you can see the detailed settings of the video, such as video size, video effect, aural effect and so on. You an also adjust the settings in property section.
    2. How to edit the picture you added
    Choose the picture and you can edit it directly on the preview window, such as crop the picture. On the property section you can edit the detailed settings of the picture.
    3. How to edit the songs you added
    Select the music you added, and on the left side you can see the info of the audio file. You can edit it here directly, such as sample rate, fade in and fade out and so on.
    4. How to edit the words you added
    You can add your words after you double click the “Sample Text” or select the Caption. Other settings are really easy to set on the left side property section.
    After you have done all the things you want to do you can click the “Create” button. Here you will go to the create section. You are allowed to choose the output profile and edit the specific settings, such as “Resolution”, “Encoder”, “Bitrate” and “Frame Rate” and so on.
    This powerful SlideShow Maker can help you to create your slideshow to MP4/MKV/WMV/AVI and other popular formats such as: H.264/MPEG-4 AVC, FLV, MPEG-1, MPEG-2, 3GP, 3GPP, DivX, Mov, M4V, DivX, XviD, ASF, SWF, VOB, DV, Super VCD(NTSC, PAL, SECAM), VCD(NTSC, PAL, SECAM) , DVD(NTSC, PAL, SECAM) and so on.

    I have the same issue.  If you are exporting from iMovie version 10.0.1, I run into the same issues if I export directly to YouTube or if I export to file then upload to YouTube.
    Google's help file doesn't properly address this problem and thier help is also out of date.  In talking to a support rep at Apple, they said the export to YouTube should just work or the exporting to a file then uploading otherwise it's an issue for Google support.
    If someone can post a solution that works (is a streamable format - which is different than the format that YouTube accepts as it will accept many formats but take a long time to process them), I'd be interested to hear also.
    Thanks,
    Rob.

  • Lip-Synced Music Videos for YouTube?

    I have been creating music for 20 years (home studio), and would like to create videos for some of my original songs (currently on mp3 or wav files), then upload to YouTube.  I know virtually nothing about video or video editing.   I was wondering if Premiere Elements would be a good editing application for my purposes.  For each video, someone would film multiple video takes of me lip-syncing to a pre-recorded song.  Is Premiere Elements sophisticated or precise enough to allow excellent synchronization between separate video clips and an audio track for lip-syncing purposes?  Would you recommend something else (for PC)?  Thanks.
    Greg

    Greg,
    The ONLY advantage to PrPro in your stated need, is to do the Audio editing in Audio Units, but then as you are working in Audio already, you probably have a favorite DAW, and that will give you even more control. That is NOT to say that PrPro does not have other pluses, but just not that would likely apply here. Hey, one's gotta' get something for the extra $600, right?
    I'd get the trial of PrE 9.0, and test with it. There are a few limitations on certain formats, but it's pretty full-featured for a trial. Just know that it will place a watermark on the Exported/Shared footage, so you cannot deliver/upload that, and get clean, watermark-free footage.
    Unless I missed something (I do most of my editing in PrPro, so do not put my PrE through all of its paces), the operations will be almost identical.
    For syncing, just remember to work in Timeline View Mode (only way to work in PrPro), and turn Snap OFF (the S key togglesn Snap), otherwise, you will be trying to force little increments, and the Audio will jump about, and Snap onto cuts, etc. Just toggle it back on, when you go back to the Video editing, as it makes general alignment much easier.
    If one is doing any Speed change, PrPro might be a bit easier, and offer more control, but not THAT much.
    Now, if you do not have a DAW, that you love, then you might consider the CS5.5 Production Premium suite, with Audition included. One can easily do some pretty heavy-duty Audio work in that program. My workflow would be to edit the Video, and then Import the Audio and the Video into Audition, where I would tweak the Audio to perfectly (within that 1 Frame for Video), while watching the Video. Audition will offer the ability to work with Envelopes for the Audio, and adjust the Speed almost infinitely, while maintaining Pitch. However, that is not a cheap suite, and there will be a bit of a learning curve, if one has not used Audition, or a similar DAW before.
    Good luck, and let us know how the PrE trial works out.
    Hunt

  • I need help with exporting 720p video for youtube.

    Hi everyone, I have been using Adobe premeir for almost a year now and I love it, as its very professional and powerful. I used to edit Standard with no problem, then export the full unconverted file (wmv) and run it though Windows Movie Maker to compress it (haha yeah I know its crazy.) Now that I got a camera capable of shooting HDV I want to use it. Im just wondering the following:
    1.What format should I export with in Adobe Media Encoder? (Original Raw footage files from Camera are MOV formatted)
    2.What should I set the Bitrate to?
    3.How do I export to flash without it being to large of a file (Under 200mb's for a 5 minute video) and have it not choppy or pixelated?
    4.How do I speed up exporting, how many passes should I do?
    5.What overall is the best setup for youtube?
    I also noticed a small glitch, and its when I export normally (full size, no compression) and run it though a compressor it cuts out all of the titles, and just flashes them for a milisecond. Its really odd. It only happens when I export in a certain format in which I cannot quite remember. Anyways.. thanks in advance for helping me. Its very appreciated.
    NineLivesProductions

    perform a search using the term export for web and it should throw up some ideas.
    here's one for starters:
    http://discussions.apple.com/thread.jspa?messageID=2309121&#2309121
    If you're using flip4mac to convert to wmv, the trial stops at 30 seconds - you need at least wmvstudio to export to wmv:
    http://www.flip4mac.com/wmv.htm

  • How do I use Quicktime Pro to watermark videos for YouTube?

    I'm interested in uploading videos to YouTube. I got Quicktime Pro so that I could watermark my videos so people could know who made them. My movies are in mov. format. I learned how to attach text to the video, but it just shows below the box where the video plays. When I upload the video to YouTube, it doesn't show the text/watermark that I wrote. i'm just trying to make a simple statement, nothing fancy. What am I doing wrong? Thanks.

    The trouble is caused by YouTube and their conversion process. They do not allow multiple video tracks (or text tracks) and only one video track is converted.
    You'll have to add your watermark or text track and export it again (rather than Save As) to make it one track. Your text track and video track will be merged into one track.

  • Best way to produce video for youtube

    Hi all
    I am a newbie here but wondered if anyone has any tips for using PE4 to produce high quality youtube video. I am capturing HDV from a Canon HV30. (As aside if anyone has any questions about how to get the HV30 / PE4 combination to work, please ask)
    Exporting it directly to youtube using the preset in PE4 leaves me with decidedly inferior quality results. Does anyone have any helpers
    Thanks
    Kevin

    I have been tinkering with this problem for a day or so. Whatever commercial tool I tried didn't work. Results were still bad. <br /><br />Tnen I started playing with shareware and tried many configurations. Still junk. But there was one exception. With this tool, you should achieve good results.<br /><br />(1) Install WinFF at http://www.winff.org<br />Best of all, it's FREE!<br /><br />(2) Create a YouTube Preset for WinFF<br />After installing WinFF, make a profile specifically for YouTube. Just open Notepad and make a text file with the following code (copy paste between the lines below)<br /><br />----------------------------------------<br /><?xml version="1.0"?><br /><presets><br />  <YouTube><br />    <label>YouTube H.264 in MP4(4:3)</label><br />    <params>-r 30.00 -vcodec libx264 -s 640x480 -aspect 4:3 -b 2000k -acodec libfaac -ab 64k -ar 22050 -ac 2 -deinterlace -pass 2</params><br />    <extension>mp4</extension><br />    <category>Websites</category><br />  </YouTube><br /></presets><br />----------------------------------------<br /><br />Now save this text file as 'YouTube.wff' in the application directory (e.g., C:\Programs\WinFF)<br /><br />(3) Install the YouTube presets in WinFF<br />Under the menu item Edit > Presets, select 'Import' and locate the file 'YouTube.wff' <br /><br />(4) Select your video file for conversion<br />Open your high quality video in WinFF, and select from the drop down Convert to... [Websites] and submenu [YouTube H.264 in MP4(4:3)] <br /><br />(5) Adjust the video bitrate settings<br />The default video bitrate for this Preset is 2000kbps. In order to keep your file under the 100 megabyte upload limit, you will likely need to adjust this down, depending on the length of your video. Try not to go below 150kbps. Just enter a number in the Video Bitrate field.<br /><br />(6) Convert the file and upload it to YouTube<br />To lift YouTube's file size limit from 100 megabytes to 1 GB, use http://www.youtube.com/my_videos_multiupload. NOTE: This will still limit videos to 10 minutes length. But the more data you upload, the better the results. <br /><br />Overall, converting with this custom WinFF preset should yield better results.<br /><br />Good luck.

  • Creating video for YouTube - which user settings?

    I've seen a lot of posts about converting video for posting on YouTube but I can't find any information on the best sequence setting to CREATE video for posting on YouTube. I'm making a 30-45 second promotional video that will be entirely made up of stills/text and music, so I'm just going to be doing moves on jpegs. YouTube videos are now displayed 640.360, but I can't find a FCP sequence preset that will allow me to create a video at that size. Am I missing something? Should I just create it at some other widescreen setting then convert it down? Trying to keep this is simple as possible -- do not want to have to render every clip in the timeline.
    thanks,
    p

    Am I missing something?
    Make your original video in one of the codecs supported by Final Cut Pro. You will find a list of possible codecs in the Easy Setup menu.
    do not want to have to render every clip in the timeline...
    Your source material is JPEG images. While they can be imported, they don't use a codec of their own. They will have to be rendered.
    YouTube tutorials:
    http://www.kenstone.net/fcphomepage/you_tube_reduxgary.html
    http://www.kenstone.net/fcphomepage/youtube_compressorgary.html
    http://www.kenstone.net/fcphomepage/you_tube_hdgary.html

Maybe you are looking for