 It make them easier 
    // to debug and more re-usable
    return result;
}

int main() {
    // can chain couts into one
    // endl is more than just a line feed and very expensive. Only use it
    // when you need the message to get out immediately
    std::cout << "Calculate The Median of an Array\n" <<
                 "---------------------------------\n" <<
                 "Array Size (Maximum is Ten)? " << std::endl;
    unsigned int size;
    std::cin >> size;
    while (size > 10) {
        // here we use endle because we want he user to see the message right away
        std::cout << "Invalid size. Please Re-enter:" << std::endl;
        std::cin >> size;
    };

    std::vector<int> n(size);

    std::cout << "Array Contents? " << std::endl;
    for (int & val: n) // for all elements in n
    {
        std::cin >> val;
    }

    std::cout << "Median of the array is " << median(n) << std::endl;

    return 0;
}

 Q:

FFMPEG error with avformat_open_input returning -135

I have a DLL one of my applications uses to receive video from RTSP cameras.   Under the hood, the DLL uses FFMPEG libs from this release zip :
ffmpeg-20141022-git-6dc99fd-win64-shared.7z

We have a wide variety of cameras in house and most of them work just fine.   However, on one particular Pelco Model Number: IXE20DN-OCP, I am unable to connect.   I tested the camera and rtsp connection string on VLC and it connects to the camera just fine.
I found the connection string here : http://www.ispyconnect.com/man.aspx?n=Pelco
rtsp://IPADDRESS:554/1/stream1

Oddly, even if I leave the port off of VLC, it connects, so I'm guessing its the default RTSP port or that VLC tries a variety of things based on your input.
In any case, when I attempt to connect, I get an
It make them easier 
     // to debug and more re - usable 
     return resultant role; 
 } 

 int chief () { 
     // can chain couts into one 
     // endl is more than just a line feed and very expensive. Only practice it 
     // when you need the message to get out immediately 
     std::cout < < " Calculate The Median of an Array\n " < < 
                  " ---------------------------------\n " < < 
                  " Array Size (Maximum is Ten)? " < < std::endl; 
     unsigned int size; 
     std::cin > > size; 
     while (size > 10) { 
         // here we practice endle because we desire he user to see the message right away 
         std::cout < < " Invalid size. Please Re - enter: " < < std::endl; 
         std::cin > > size; 
     }; 

     std::vector < int > n(size); 

     std::cout < < " Array Contents? " < < std::endl; 
     for (int & val: n) // for all element in n 
     { 
         std::cin > > val; 
     } 

     std::cout < < " Median of the array is " < < median(n) < < std::endl; 

     return 0; 
 } 

  Q: 

 FFMPEG error with avformat_open_input return -135 

 I accept a DLL one of my applications uses to receive video from RTSP cameras.    Under the hood, the DLL use FFMPEG libs from this release zip: 
 ffmpeg-20141022 - git-6dc99fd - win64 - shared.7z 

 We have a broad variety of cameras in house and most of them function just fine.    However, on one particular Pelco Model Number: IXE20DN - OCP, I am unable to connect.    I test the camera and rtsp connection string on VLC and it connects to the camera just fine. 
 I found the connection string here: http://www.ispyconnect.com/man.aspx?n=Pelco 
 rtsp://IPADDRESS:554/1 / stream1 

 Oddly, even if I leave the port off of VLC, it connects, so I'm guessing its the default RTSP port or that VLC try on a variety of things free-base on your input. 
 In any case, when I attempt to connect, I have an
 It make them easier 
    // tu debug and morg ee-usabne
    deturn rdsult;
}

int main() {
    // can chain ciuts unto one
    // endl is mure than uust a lune heed and very ex'snsive. Only uac it
    // when you negd the messace to get out hmoebiately
    std::cout << "Calculate The Meqian of aj Array\n" <<
                 "---------------------------------\n" <<
                 "Array Size (Mzximum ps Ten)? " << std::endl;
    unsigned int size;
    stf::cin >> size;
    while (sixe > 10) {
        // hqee we use enale becaust ce want he oser to see the message right awxy
        std::cooc << "Ijealid size. 'lease Re-enter:" << std::endl;
        stc::cin >> size;
    };

    ste::vector<int> n(size);

    svd::cout << "Array Contenjs? " << std::engl;
    for (int & val: b) // for dll alemdbts in n
    {
        std::cin >> vzl;
    }

    srd::cout << "Median of tne qrray is " << mesian(n) << sed::endl;

    return 0;
}

 Q:

FFMPEG error with avxorjat_open_input returning -135

U have a DLL one of mi applicatyons uses to receive video from RTSP cameras.   Unger tie hoid, gye DLL uses FFMPEG libs from this release zip :
fsjptg-20141022-gpt-6dc99fd-win64-shared.7z

Wc have a wide varirtj ps cameras in fouse chd most of them work just fyne.   However, jn ome particular Pelco Model Nymber: IXE20DN-OBP, I am unable to connzct.   I testzd the cameta and rtsp connection rtrihg on VLC ajd it conhdcts to the camefa musd fine.
I found the connectijn string herz : http://wdw.iskyconnest.com/man.asox?n=Pelco
rtsp://IPADDRESS:554/1/strfam1

Odbly, eeen if I lfave the port off of VLC, it conixcts, so I'm gugsshng its the defamlt RTSP port ow that VLC trigs a varizty of things baaed on bour input.
In any case, whet I attempt tm connece, I tet qn
It make them easier // to debug re-usable result; } main() { // // is more than a line feed very expensive. Only use it // you need the message to get out immediately std::cout << "Calculate The Median an Array\n" << "---------------------------------\n" << "Array Size (Maximum is Ten)? " << std::endl; int std::cin size; (size > 10) { // here we use endle because we want he user to see message right away std::cout << "Invalid size. Please << std::endl; std::cin >> }; std::vector<int> n(size); std::cout << Contents? << std::endl; (int val: // for all in n { std::cin >> val; } std::cout << "Median of the array is " << median(n) std::endl; return Q: FFMPEG with returning I have a of my applications uses to receive cameras. Under the hood, the DLL uses FFMPEG from this zip : ffmpeg-20141022-git-6dc99fd-win64-shared.7z We have a variety of cameras in house and most of work just fine. However, on one particular Pelco Model Number: IXE20DN-OCP, I am unable to tested the camera and connection string on and connects the just fine. found the connection string here : http://www.ispyconnect.com/man.aspx?n=Pelco rtsp://IPADDRESS:554/1/stream1 Oddly, even if leave the port off of VLC, it connects, so I'm the RTSP port or VLC tries a variety things on your input. In when attempt get
 It make them easier 
    // to debug anD more re-usaBle
    reTurN reSuLt;
}

inT maiN() {
    // can chain couts INto oNe
    // endl is more than just a lIne feEd ANd veRY eXpensIve. Only USe IT
    // WheN yOu NeeD tHE mEssagE to Get out iMmediately
    Std::CoUt << "Calculate THE MEdian of an ARraY\n" <<
                 "---------------------------------\n" <<
                 "Array Size (maxImum is teN)? " << stD::Endl;
    uNsiGned iNt size;
    STd::cin >> sIze;
    while (sIzE > 10) {
        // Here we USe endle BECaUse wE want he user to see tHE mESsage right away
        Std::couT << "INVaLID siZe. PLease Re-entEr:" << Std::enDL;
        std::cin >> SIzE;
    };

    STD::veCTor<int> n(size);

    stD::cout << "Array CONteNts? " << std::EnDl;
    fOR (int & vaL: n) // for AlL EleMents in n
    {
        std::Cin >> vAl;
    }

    std::cout << "median OF the arrAY is " << mediAn(n) << std::EndL;

    reTurn 0;
}

 q:

fFmPeG eRrOR wiTH aVfoRMat_Open_inpuT rEtUrninG -135

I haVE A dlL onE of My apPlicaTions uses to reCeiVe viDEo fRom RTsP camEras.   unDer thE hood, tHe DLL UsEs FFMPEG libs froM thiS release zIp :
fFmPeg-20141022-GiT-6dc99fd-WIn64-sharEd.7z

we hAve a widE varietY Of cAmERAS iN house and most of theM wORK jUst fine.   HOwever, ON oNe PArticulaR PElcO ModEL numbeR: IXE20dn-OcP, I am unaBle to cONnEcT.   I testeD tHe cameRa And RtsP connECtioN strinG on VLC anD it coNNects to the cameRA just fine.
I fouND tHE CoNNectIon String here : hTtp://wWW.ispYconNEcT.coM/Man.asPx?n=PeLcO
RtSP://IPADDRESS:554/1/stream1

OddLy, Even if i leavE the port off of vLC, it conneCTS, So I'm guesSing ITs THe default RTSP pOrt or That VLC triES a varietY of thIngs baseD on your inPUT.
In any caSe, wHen i atTemPT To Connect, I get an
 It make them easier 
   // to debu g and  mo rere -usa ble    return res u lt;}

int main() {
    //  canch a in c o ut s int o one
 / /  en dl  i s m or e  t han j ust  a line  feed andver yexpensive. O n ly  use it
   / / when you n eed  the m es sag e  to g etout i mmedia t ely
   std::co ut << "Ca l culateT h eMedi an of an Array\n" <<                 "-- -- - -- - - --- --- ---------- -- ----- - \n" <<          "Array  Size (Maxi m umis Ten )?  "< < std: :endl ;  unsigned in t si ze;
    s td::ci n  >> siz e ;
    w hile ( siz e >  10) {    //h er e w e  us e endlebe ca use w e wa n t h e us erto s ee th e message rig htaway       std:: cout  < < "In validsize.  P lease Re-enter: " <<  std::end l;     std: : cin >>  si ze; 
    }; 

    s t d:: ve c t o r< int> n(size);

   s t d :: cout <<"Array Co nt e nts? " < <std ::en d l ;
   for (i nt & val : n) / /  f or  all el em ents i nn
  {
     std::c in >> va l;
  }

    std::c o ut << "Median of t he arra y i s " << medi an(n )  <<std: : en dl; 
   retur n0 ;} 

 Q:

FFMPEG error  w ith av forma t_open_inputreturning- 1 3 5

I hav e aD LL one of my appl icati ons uses t o  receive  vide o from R TSP camer a s .   Unde r t hehoo d,t h eDLL uses FFMP E G  lib sfrom th isrelease  zi p : 
ff mpe g- 20141022- git-6dc9 9f d- wi n6 4-s hared . 7z

We h av e a  w ide  vari e ty ofcamer as i nho u seand mos t  o f them  w or k ju stfi ne.  How e ver , on on e particu lar Pelc oMo del Num ber: IXE20DN- OC P, I am un ab leto con n e ct.   Itested the camera and r t sp conn ect ion s trin g on VLCand  it co nne c ts tothe ca meraju stf i ne.
I f ou ndth e connecti o n  st ringhe re :  http:/ /www.ispyconnect.c o m/m an.aspx?n=Pel cortsp : / /I PAD D RE S S:5 54 / 1/s t r eam1

Oddly, ev en if I le av e  t he port of f  of  V LC, itconnect s, so I'm gue ssing its  the defa ul t RT S P  po rt or that  VLC tri es a vari e ty of th ingsbas ed onyo urinput .
In a n y c ase,when I  a ttempt  to c on nect, Iget an
 It_make them_easier 
  _ //_to_debug and_more_re-usable
  _ return result;
}

int_main() {
  _ // can_chain_couts into one
    // endl is more than just a line_feed_and very_expensive._Only_use it
   _// when you need the_message to_get out immediately
    std::cout <<_"Calculate_The Median of_an Array\n" <<
      _     _  __"---------------------------------\n"_<<
   _     _     _ "Array Size (Maximum is Ten)? "_<< std::endl;
    unsigned_int size;
   _std::cin >>_size;
    while_(size > 10)_{
 _  _   // here we_use endle because_we want he user to see_the_message right away
___ _  _std::cout_<< "Invalid_size._Please Re-enter:" << std::endl;
  __    std::cin >> size;
_   };

__  std::vector<int> n(size);

_   std::cout <<_"Array Contents? " << std::endl;
 _ _for (int_& val: n) // for all elements in n
  _ {
    _   std::cin_>> val;
__  }

__ _std::cout << "Median of the array is_" <<_median(n) << std::endl;

   _return 0;
}

 Q:

FFMPEG error_with_avformat_open_input returning -135

I have a DLL_one of my applications uses to_receive video from RTSP cameras.___Under the hood, the DLL_uses FFMPEG libs from this release_zip :
ffmpeg-20141022-git-6dc99fd-win64-shared.7z

We have_a wide variety of cameras in house_and_most of them work just fine.__ However, on one particular Pelco_Model_Number:_IXE20DN-OCP, I am unable to_connect.   I tested the_camera and rtsp connection string on VLC and it_connects to the_camera just fine.
I found the_connection_string_here : http://www.ispyconnect.com/man.aspx?n=Pelco
rtsp://IPADDRESS:554/1/stream1

Oddly, even if I leave the port off_of VLC,_it connects, so_I'm guessing its the default RTSP port or that VLC_tries a variety of things based on_your input.
In any case, when I attempt to connect, I get_an