What classes should i use for graphics?

I was wondering, what is the most effecient way of going about drawing 2d graphics for a game...
use Java2D, swing, GBFrame, whatever else is out there, ect. ect.
Your suggestions will be very much appreciated, thanks!

Hi!
Thank you very much for your help, I appreciate it a lot.
While I test my server, I execute ping www.myclienthost.com -t (my client games are in other office, in the same building, but different ISP) and I don't see anything strange, so I guess network is working perfectly. However, if I use wireshark (sniffer) and I see that my system fails (server does not send acks so client disconnects) is because my acks messages are not sended for 6 o 7 seconds (it should send them every 2 or 3). It seems thread is blocked. and after 6 or 7 seconds one message with 2 or 3 acks together is sent. So, I see that the thread handler blocked for a few seconds and this is doing my server is failing. Why client handler thread on my server is blocked? One question: every 2 or 3 seconds I have a thread that uses sleep that iterates thru client handlers and takes OutputStream and send one ack message for every client handler. My question is, in client handler class I have a method called SendInfo(String whatever) which encrypts and sends through OutputStream, should I protectd this method from accesing from two threads??? as acks thread and client thread can access at the same time. Could this be the problem??
EDIT: In my previous post I forgot to say what I found out with wireshark. Here I explain it. Sorry.
By the way, how can I debug threads?? I would like to know if my client thread is blocked in that critical moment.
Thanks a lot for your ideas and sorry for my English.
Edited by: Ricardo_Ruiz_Lopez on Jan 22, 2009 7:38 AM

Similar Messages

  • What classes should I use to send/receive bytes inmediately?

    What classes should I use to send/receive bytes inmediately? I mean, without using any buffers or whatever (I will implement this on my app), just the faster method.
    Is InputStream/OutputStream the lowest level choice?
    Thanks!

    Hi!
    Thank you very much for your help, I appreciate it a lot.
    While I test my server, I execute ping www.myclienthost.com -t (my client games are in other office, in the same building, but different ISP) and I don't see anything strange, so I guess network is working perfectly. However, if I use wireshark (sniffer) and I see that my system fails (server does not send acks so client disconnects) is because my acks messages are not sended for 6 o 7 seconds (it should send them every 2 or 3). It seems thread is blocked. and after 6 or 7 seconds one message with 2 or 3 acks together is sent. So, I see that the thread handler blocked for a few seconds and this is doing my server is failing. Why client handler thread on my server is blocked? One question: every 2 or 3 seconds I have a thread that uses sleep that iterates thru client handlers and takes OutputStream and send one ack message for every client handler. My question is, in client handler class I have a method called SendInfo(String whatever) which encrypts and sends through OutputStream, should I protectd this method from accesing from two threads??? as acks thread and client thread can access at the same time. Could this be the problem??
    EDIT: In my previous post I forgot to say what I found out with wireshark. Here I explain it. Sorry.
    By the way, how can I debug threads?? I would like to know if my client thread is blocked in that critical moment.
    Thanks a lot for your ideas and sorry for my English.
    Edited by: Ricardo_Ruiz_Lopez on Jan 22, 2009 7:38 AM

  • What setting should I use for Abbey Road drums?  Getting a cpu overload issue

    What setting should I use for Abbey Road drums (i.e. multi-output, stereo, etc)?  Getting a cpu overload issue.  I have a macbook pro, 4 gb ram, running Logic Pro 9.  Just 3 tracks of drums and a few real instrument tracks.  Can't find a guide in the manual for either Kontakt or Logic.  Thanks in advance!

    Hi
    AR drums are complete resource (CPU) hogs. They work better if you turn off as many of the AR internal plugins as you can.
    See section 4 (?) of the AR manual, which you can find within Kontakt (In the library area of Kontakt click hold the small "i" on the right of the "AR drummer" Library).
    Alternatively, your only solution is to increase the I/O buffer in Preferences:Audio, with the associated increase in latency
    CCT

  • What method should be used for resizing the particular JTable Column width

    I have a four table. Only one table which are on top have a table header. I want that when user resize the topmost table with a mouse other table colume also be resized automatically. So I want to know that what method should be used for resizing the particular JTable Column width.
    Thanks
    Lalit

    maybe you can implement a interface ComponentListener as well as ComponentAdapter with your topmost Table.
    for example:
    toptable.addComponentListener(
    new ComponentAdapter(){
    public void componentResized(ComponentEvent e){
    table1.setSize(....);
    table2.setSize(....);
    /*Optionally, you must also call function revalidate
    anywhere;*/
    );

  • I have adobe creative suite 5.5 and have just bought a Sony Video Recorder with 4K. What preset should I use for importing video footage? Alternatively do I need a more recent version of the software?

    I have adobe creative suite 5.5 and have just bought a Sony Video Recorder with 4K. What preset should I use for importing video footage? Alternatively do I need a more recent version of the software? If so, what version do I need and can I download it from Adobe.

    I have adobe creative suite 5.5 and have just bought a Sony Video Recorder with 4K. What preset should I use for importing video footage? Alternatively do I need a more recent version of the software? If so, what version do I need and can I download it from Adobe.

  • What t_code should be used for migration?

    Hello there,
    our user wants to  migrate  "output vat" account after being audited.
    actually , they start using SAP from 1st. January.2009 but now needs to migrate for reconciliation purpose.
    Journal should be 40) output VAT   /      50) Beginning Balance-BS.
    Since this output VAT does not need any tax code and base amount, i think normal FI transaction like F-02 is not an answer.
    Furthermore, LSMW is not strongly recommended at this time, considering line item to be created.
    Could you let me know what t_code should be used for this case?
    BR.
    J.
    Edited by: Jimmy Choi on Jun 30, 2009 5:41 PM

    Hi
    Note down the G/L accounts you are posting.
    Option 1 :In OBD4 see the account group. change the tax category mandatory to optional field for running the lsmw. afte completion, set the status as earlier.
    Option 2: goto fs00-> see the field status group.-> double click on the FSG-> see the taxes -> make the fields optional.
    with regards
    siva
    Edited by: Siva Rama Krishna Yanamandra on Jul 2, 2009 1:12 AM

  • What class should I extend for this custom control?

    The code below is my attempt at a mxml control to replace a custom context-menu  that my app needs on certain textInput controls.  Characters not on the keyboard are inserted into the text, replacing any selection, if applicable.  Flex AIR apps (which I need for local access to SQLite) don't let me do custom contextmenus when the control is not top-level.
    The custom component is encapsulated now in a Panel but I would like to have the composite control be nothing more than a textInput and a PopUpMenuButton right next to it.  Is that possible—not to have a container?  If so,  what class should I extend, if creating this as an ActionScript component?
    Thanks for the advice.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Panel xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="228" height="64"  creationComplete="onInit();" >
        <mx:TextInput id="mytextinput"   height="20"></mx:TextInput>   
        <mx:PopUpMenuButton id="mybutton" itemClick="onCharSelected(event);" x="159" y="-2" label="æ" width="41"  />
        <mx:Script>
         <![CDATA[
             import mx.utils.StringUtil;
             import mx.events.MenuEvent;
             import mx.events.ItemClickEvent;
             import mx.controls.TextArea;
            import mx.controls.Alert;
            import flash.events.*;
            import flash.display.Sprite;    
            import mx.collections.ArrayCollection;
                // use a point to track the selection-start and selection-end position for the text field
                private var pt:Point=new Point;
                private var chars:ArrayCollection = new ArrayCollection(
                    [ {label:"ð", data : "ð"},
                      {label:"æ", data:"æ"},
                      {label:"þ", data:"þ"} ]);
                    // track the selection positions as the mouse is moved or text is entered
                  private function onMouseEvent(e:MouseEvent): void{
                      pt.x=this.mytextinput.selectionBeginIndex;
                      pt.y=this.mytextinput.selectionEndIndex;
                  private function trackSelectionIndices(e: Event):void {
                     pt.x=this.mytextinput.selectionBeginIndex;
                      pt.y=this.mytextinput.selectionEndIndex;  
                private function onInit():void {
                    this.mytextinput.addEventListener(Event.CHANGE, trackSelectionIndices);
                    this.mytextinput.addEventListener(MouseEvent.MOUSE_DOWN, onMouseEvent);
                    this.mytextinput.addEventListener(MouseEvent.MOUSE_UP, onMouseEvent);
                    this.mybutton.dataProvider = chars;                     
                private function onCharSelected(e:MenuEvent):void {               
                    doInsert( e.item.data.toString(), this.mytextinput);
            // insert the character chosen from the popup into the text field, replacing any selection, and then reset the insertion point
             private function doInsert(s:String, trgt:Object):void {
                var v:String = TextInput(trgt).text;
                var pre:String =v.substr(0,TextInput(trgt).selectionBeginIndex);
                var post:String=v.substr(TextInput(trgt).selectionEndIndex, v.length-TextInput(trgt).selectionEndIndex);
                var result:String = pre + s + post;
                TextInput(trgt).text=result;
                TextInput(trgt).setSelection(TextInput(trgt).selectionBeginIndex+s.length,TextInput(trgt) .selectionBeginIndex+s.length);
              ]]> 
        </mx:Script>        
    </mx:Panel>

    Wiping perspiration from my brow as I abandon the difficult approach.
    Here is the simpler approach where HBox encapsulates the TextInput and PopUpMenuButton. I am trying to figure out how to let the TextInput keep its selection highlight when it loses focus to the PopupMenuButton: setSelection does not cause the repaint.
    package Search
        import flash.events.*;
        import flash.geom.Point;
        import mx.collections.ArrayCollection;
        import mx.containers.HBox;
        import mx.controls.PopUpMenuButton;
        import mx.controls.TextInput;
        import mx.events.MenuEvent;
        public class UnicodeCharPopupMenu extends HBox
            public function UnicodeCharPopupMenu()        {   
                        super();   
                        Init();
            private var mytextinput:TextInput = new TextInput;
            private var mybutton:PopUpMenuButton = new PopUpMenuButton;
            private function Init():void {
                mytextinput.width=100;
                mytextinput.height=22;
                mybutton.width=44;           
                this.width=200;
                this.height=20;
                visible=true;
               mybutton.addEventListener(FocusEvent.FOCUS_IN, onMenuGotFocus;
                mytextinput.addEventListener(Event.CHANGE, trackSelectionIndices);
                mytextinput.addEventListener(MouseEvent.MOUSE_DOWN, onMouseEvent);
                mytextinput.addEventListener(MouseEvent.MOUSE_UP, onMouseEvent);
                mybutton.addEventListener( MenuEvent.ITEM_CLICK, onCharSelected);
                //mybutton.addEventListener(MenuEvent.MENU_HIDE, onMenuHide);
                //mybutton.addEventListener(MenuEvent.MENU_SHOW, onMenuShow);
                mybutton.dataProvider = chars;  
                addChild(mytextinput);
                addChild(mybutton);           
            // use a point to track the selection-start and selection-end position for the text field
            private var pt:Point=new Point;
              private var chars:ArrayCollection = new ArrayCollection(
                    [ {label:"ð", data : "ð"},
                      {label:"æ", data:"æ"},
                      {label:"þ", data:"þ"} ]);
          //button got focus, repaint selection highlight
            private function onMenuGotFocus(e:FocusEvent): void {           
                 mytextinput.setSelection(pt.x, pt.y);
            // nothing selected, menu closed
            private function onMenuHide(e:MenuEvent): void {
                if (e.item.data==null) {
                    mytextinput.setFocus();
            private function onCharSelected(e:MenuEvent):void {             
                    doInsert( e.item.data.toString(), mytextinput);
           public function getText():String {
                    return mytextinput.text;
                // track the selection positions as the mouse is moved or text is entered
                 private function onMouseEvent(e:MouseEvent): void{
                     pt.x=mytextinput.selectionBeginIndex;
                     pt.y=mytextinput.selectionEndIndex;
                 private function trackSelectionIndices(e: Event):void {
                    pt.x=mytextinput.selectionBeginIndex;
                     pt.y=mytextinput.selectionEndIndex;  
                 private function doInsert(s:String, trgt:Object):void {
                 var v:String = TextInput(trgt).text;
                 var pre:String =v.substr(0,pt.x);
                  var post:String=v.substr(pt.y, v.length-pt.y);
                var result:String = pre + s + post;
                TextInput(trgt).text=result;
                TextInput(trgt).setFocus();
                TextInput(trgt).setSelection(pt.x+s.length,pt.x+s.length);
                pt.x = pt.x + s.length;
                pt.y = pt.x;          

  • Which HttpClient class should I use for Universal apps?

    Hi,
    I am developing a Windows Universal app for Windows phone and WinRT in C# and I would like to know which HttpClient class should i use? Should I use the System.Net.HttpClient or Windows.Web.HttpClient?

    Because the System.Net.Http and System.Net.Http.Headers namespaces might not be available in future versions of Windows for use by Windows Store apps. It is stated in the official documentation on MSDN here:
    https://msdn.microsoft.com/en-us/library/windows/apps/xaml/dn469431.aspx
    "Starting with Windows 8.1 and Windows Server 2012 R2, use Windows.Web.Http.HttpClient in the Windows.Web.Http namespace and the related Windows.Web.Http.Headers and Windows.Web.Http.Filters namespaces instead for Windows Store apps."
    And the Windows.Web.Http.HttpClient class is supported from Windows Phone 8.1, Windows 8.1 and Windows Server 2012 R2:
    https://msdn.microsoft.com/en-us/library/windows/apps/xaml/windows.web.http.httpclient.aspx
    Hope that helps.
    Please remember to close your threads by marking all helpful posts as answer and then start a new thread if you have a new question.

  • What format should I use for new  FCP slide show to DVD project?

    I want to edit a slide show movie. I have all of the high resolution images. I plan on authoring the project to DVD 16:9 anamorphic with DVD SP. Later I would like to author to 1920 x 1080 HD on Blu-Ray. ( I can't afford Adobe BR authoring software at this time, I want to start with the DVD) I am looking for advice. I want the quality of DVD and future Blu-Ray to be best possible quality. I'm thinking there are two options I might use:
    1. Edit the FCP project in HD 1920 x 1080. Use Compressor to convert the sequence to 16:9 anamorphic for DVD SP input. I am thinking I will have the HD sequence ready for the Blu Ray in the future. I like this approach. Is the conversion possible with compressor? What exact format and frame rate should I use for the FCP project?
    2. Edit the FCP project in 16:9 Anamorphic. Compress for DVD SP input. I am not fond of this option. I don't look forward to making rectangular pixel images in Photoshop for one. That will be a lot of work for this project. I won't have an HD sequence ready for Blu Ray in future, I will have to start a new project from scratch to make the HD version.
    Thanks in advance for any advice!

    Edit in a 1920x1080/30p Pro Res sequence settings.
    Export that to a self contained movie current settings, and use which ever SD DVD preset to encode for use in DVD SP.
    The self contained movie can eventually be used in Adobe Encore for blu ray authoring.
    But having "high resolution" images/photos means nothing in video.
    1 dpi is sufficient at 1920x1080 unless you plan to pan and zoom, in which case double the pixel size, not the dpi.
    300 dpi produces no better image than 1 dpi.

  • What programs should I use for creating a children's ebook with animated illustration?

    I'd like to create children's book for iPad with hand-drawn illustrations that are animated but in a simple way (like bubbles flying and popping). What programs should I use?
    Thanks in advance,
    Bibi

    Impossible to answer, I’m afraid. There’s just not enough details here and the very fact that you’re asking tells me that you should be very careful in choosing how to get this project done.

  • What Classes do you use for developing Database Applications

    Hi ! (sorry for my bad english)
    I develop now an application for production planning and I use an informix database-server. I have no problems with the database an the connection. I,m a database expert, but I,m a newcommer in java. What classes do you use to develop a database application ? (specially Table Handling) I tried it with JTable and AbstractTableModel. Are there better possibilities ?
    JdbTable OR
    JTable with DBTableModel OR
    JTable with DBTableModel and DataSet
    I know that this is a big question, but some little Informations can help me. (I develop with JBuilder Proffessional)
    Thank you for your help.
    Wolfgang

    No - the classes you have described (AbstractTableModel etc) are Swing classes - that is, they are Models in the MVC GUI architecture. Database-related stuff (SQL at any rate) is contained in the packages java.sql and javax.sql - The latter is part of the Enterprise addition. You would also need to purchase a database driver (or use the sun one, which is something like com.sun.odbc.jdbc.Driver or whatever). The driver supplies you with connections to the database (java.sql.Connection).
    Alternatively, you may be deploying code in a J2EE AppServer (eg. WebLogic, WebSphere etc) in which case you can use the JNDI to get a javax.sql.DataSource object (by setting one up in the AppServer and doing a lookup on it) and use this to get database Connections.
      Class c = Class.forName("com.sybase.jdbc2.jdbc.SybDriver");
      SybDriver sybDriver = (SybDriver) c.newInstance();
      java.sql.DriverManager.registerDriver((Driver) sybDriver);
      //then use Driver object to get hold of a Connection
      //or alternatively using DataSources
      InitialContext ctx = new InitialContext();
      DataSource ds = (DataSource) ctx.lookup("jdbc/MyDriver");
      Connection conn = null;
      try{
        Connection conn = ds.getConnection("login", "password");
        Statement stmt = conn.createStatement();
        ResultSet rs = stmt.executeQuery("select * from MY_TABLE");
        while (rs.next()) {
          //columns are enumerated 1...n
          String s = rs.getString(1);
          //or can get by Col Name
          String str = rs.getString("name_col");
      } finally {
        conn.close();
      }Anyway, I hope this helps - you'll probably need to get a book on it (Java Enterprise by O'Reilly is a good one)

  • What software should I use for editing videos from a Vixia HF R500?

    I have a VIxia HF R500. What editing software should I use. I am a beginner.

    Hi OM45GTR!
    Thanks for posting.
    Depending on what platform you are editing on, you may consider programs like Windows Movie Maker or Apple's iMovie.
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • What database should i use for a flash application which i need to record score and name for a scoreboard.

    Hi. I wrote down the summary of my project so that you can
    understand and answer me more easily:
    I have to build an application (a little flash game) in which
    I record the number of clicks. I want the player to choose a nick
    at the beginning and when he finishes one or all the four choices
    of target, i want the application to write his nick and final score
    in a database for displaying in a scoreboard (hall of fame). All
    the new entries should be sorted according to the score. If the
    same nick appears again, it's final score will be modified in the
    scoreboard only if is higher then the previous.
    I was thinking of creating a variable for the name that is
    chosen at the beginning and a variable for the score that is
    recorded. When the player finishes the game i want the application
    to write his data in the database, and then to display the
    scoreboard (let's say top 10 players in the database from the
    highest to the lowest score).
    I never did this before so i am asking what database shoud i
    use? I need a programmer to create one for me? Or can flash
    generate the database?
    Is the variable the good way or should I aproach the problem
    by other means? And if a programmer creates a database in MySql is
    that good or he should convert it to XML, or Flash generates the
    XML?
    Thank you.

    I did areal photography one time.  What you have listed would not be on my short list for lenses to take at all.
    Maybe you could supply a little more info of the 50-100mm ?  I am going to guess you have the first version of the Canon EF-S 75-300mm?  It is a faily slow lens but if these two are the only possibility, I'd choose it.
    It and the XTi will work as a mattter of fact I took two XTi's on my flying photo experience.  But I had the fantastic EF 70-200mm.  Another thing, there is NOT a lot of room on these aircraft.
    EOS 1Ds Mk III, EOS 1D Mk IV EF 50mm f1.2 L, EF 24-70mm f2.8 L,
    EF 70-200mm f2.8 L IS II, Sigma 120-300mm f2.8 EX APO
    Photoshop CS6, ACR 8.7, Lightroom 5.7

  • What timer should i use for Tetris?

    Hi. I've tried a few times to make my own tetris.
    The problem is that when i move manually sometimes it respond correctly and sometimes it does not.
    When the timer is off it works always right.
    I've tried both util and swing timer.
    I've had the same problem with other timered-games.
    Any suggestion?
    Thank you

    The code is a little long.
    This is the TimerTask
    import java.util.*;
    class GestoreTimer extends TimerTask {
         MappaTetris corrente;
         public GestoreTimer(MappaTetris mappa) {
              this.corrente = mappa;
         public void setMappa(MappaTetris mappa) {
              this.corrente = mappa;
         public void run() {
              MappaTetris.creaInterfaccia(Muovi.muovi(corrente,"BASSO"));
    }which calls
         public static void creaInterfaccia(MappaTetris mappa) {
              Tetris.finestra.getContentPane().removeAll();
              mappa = RimuoviLinea.rimuoviLinee(mappa);
              JPanel pannelloComandi = new JPanel(new GridLayout(2,1));
              pannelloComandi.add(inizia());
              pannelloComandi.add(pausa(mappa));
              JPanel pannelloMappa = pannelloMappa(mappa);
              JPanel pannelloPunteggio = Tetris.pannelloPunteggio();
              JPanel pannelloFigura = Tetris.figuraSuccessiva.pannelloFigura();
              JPanel pannelloDestro = new JPanel(new BorderLayout());
              pannelloDestro.add(pannelloFigura,BorderLayout.NORTH);
              pannelloDestro.add(pannelloPunteggio,BorderLayout.CENTER);
              pannelloDestro.add(pannelloComandi,BorderLayout.SOUTH);
              Tetris.tt.setMappa(mappa);
              Tetris.ascoltaTastiera.setMappa(mappa);
                pannelloMappa.addKeyListener(Tetris.ascoltaTastiera);
              Tetris.finestra.getContentPane().add(pannelloMappa,BorderLayout.CENTER);
              Tetris.finestra.getContentPane().add(pannelloDestro,BorderLayout.EAST);
              Tetris.finestra.pack();
              pannelloMappa.requestFocusInWindow();
              Tetris.finestra.setVisible(true);
         }and this is for moving
         public static MappaTetris muovi(MappaTetris mappa, String direzione) {
              MappaTetris mappaPonte = mappa;
              int possibile = mossaPossibile(mappa, direzione);
              if(possibile == 0) {
                   System.out.println("POSSIBILE = 0");
                   mappa = MappaTetris.stacca(mappa);
                   String[][] mappaSolida = mappa.getMappaSolida();
                   Figura figuraNuova = mappa.getFigura();
                   Punto puntoIniziale = figuraNuova.getPosizione();
                   Punto puntoDirezione;
                   if(direzione.equals("DESTRA"))
                        puntoDirezione = new Punto(0,1);
                   else if(direzione.equals("SINISTRA"))
                        puntoDirezione = new Punto(0,-1);
                   else
                        puntoDirezione = new Punto(1,0);
                   Punto puntoFinale = Punto.somma(puntoIniziale,puntoDirezione);
                   figuraNuova.setPosizione(puntoFinale);
                   MappaTetris mappaNuova = new MappaTetris(mappaSolida, figuraNuova);
                   return mappaNuova;
              else if(possibile == 1) {
                   System.out.println("POSSIBILE = 1");
                   MappaTetris daRestituire = MappaTetris.mappaConFigura(mappaPonte, Tetris.figuraSuccessiva);
                   return daRestituire;
              else if(possibile == 2) {
                   Tetris.tt.cancel();
                   System.out.println("POSSIBILE = 2");
                   return mappaPonte;
              else {
                   System.out.println("POSSIBILE = -1");
              return mappaPonte;
    }what else should i post?
    thanx

  • What setting should I use for YouTube?

    I have a cannon HD camcorder and I shoot with Auto AVCHD SP wide. There are a half dozen options when I put my video on YouTube. I don't know what option I chose when I published my first two videos but the sharpness is better than that of my recent video. On my recent video I used Flash Video for YouTube (Wide Screen) Frame Rate 30. The other option, which perhaps I should have used, is High Definition Video for You Tube - 1920 by 1080 - Frame Rate 29.97. Many of the other options are for PAL which of course I do not use.
    Please give me you thoughts on this because I intend to publish more videos on YouTube.

    Even YouTube themselves has advice:
    "Frame rates
    Frame rates should match the source material. For example, content shot in 24fps should be encoded and uploaded at 24fps. Content recorded at 30fps should be uploaded at 30fps. Content shot in 720p60, should be uploaded at 720p60. Content at 1080i 60, should be deinterlaced, going from 60 interlaced fields per second to 30 progressive frames per second before uploading."
    "High quality uploads for creators with enterprise quality internet connections
    Type
    Video Bitrate
    Mono Audio Bitrate
    Stereo Audio Bitrate
    5.1 Audio Bitrate
    1080p
    50,000 kbps
    128 kbps
    384 kbps
    512 kbps
    720p
    30,000 kbps
    128 kbps
    384 kbps
    512 kbps
    480p
    15,000 kbps
    128 kbps
    384 kbps
    512 kbps
    360p
    5,000 kbps
    128 kbps
    384 kbps
    512 kbps
    Resolutions
    YouTube uses 16:9 aspect ratio players. If you are uploading a non-16:9 file, it will be processed and displayed correctly as well, with pillar boxes (black bars on the left and right) or letter boxes (black bars at the top and bottom) provided by the player. If you want to fit the player perfectly, encode at these resolutions:
    1080p: 1920x1080
    720p: 1280x720
    480p: 854x480
    360p: 640x360
    240p: 426x240
    The YouTube player automatically adds black bars so that videos are displayed correctly without cropping or stretching, no matter the size of the video or the player.
    For example, the player will automatically add pillarboxing to 4:3 videos in the new 16:9 widescreen player size. If the player is re-sized (i.e. when embedded on another website), the same process takes place so that 16:9 videos are letterboxed when the player is sized to 4:3. Similarly, anamorphic videos will be automatically letterboxed when shown in either 16:9 or 4:3 sized players. The player can only do this if the native aspect ratio of the video is maintained.

Maybe you are looking for

  • Is there a chance that Itunes could be written for linux support?

    is there a chance that Itunes could be written for linux support? i use fedora from RedHat and woul like to be able to use itunes on it

  • Error report: ORA-06531: Reference to uninitialized collection

    I have Procedure like this declare CURSOR lcu_emp   IS     (SELECT *     FROM   emp); ln_count PLS_INTEGER := 1;   TYPE emp_TBL_TYPE IS   TABLE OF LCU_emp%ROWTYPE;   LT_emp emp_TBL_TYPE; begin FOR Lr_EMP IN LCU_EMP   LOOP     ln_count             :=1

  • Syncing photos with correct orientation

    I know this has been mentioned in a few threads, but there hasn't been a satisfactory answer so far. Just to summarise - when you sync photos with your iPhone, the EXIF rotation/orientation information is lost and photos are always displayed in the 4

  • Metro ethernet connectivity

    metro ethernet connectivity is to be provided between 5 remote location and one central location.remote location has 2811 router and central location has cisco 7606 router.Now how to accomplish this connectivity?..what is the configuration?..ME conne

  • Crystal report - Object list binding

    Anyone can show me how to bind the object list into crystal report? I am using the Visual Studio 2010 with CR. I cannot create a temporary dataset in the project.     public class Invoice        public string Name { get; set; }        public DateTime