Posts

Converting 6 audio channels to 2 in ffmpeg -

im doing 2 pass encode on uploads site. unfortunately when user uploads 6 audio channel .mkv files (5.1 surround), ffmpeg spits out following error: resampling input channels greater 2 unsupported. im running latest version of ffmpeg. doing -ac 6 instead of usual - ac 2 proceeds encoding, creates larger file useless data, creates step in long file processing script, , i'd rather avoid modifying conversion command. is there can make -ac 2 work? it known bug/limitation of current ffmpeg. in experience concluded can't done ffmpeg alone. you have transcode audio/video separately. 1) extract .wav file source movie. 2) resample 2ch stereo audio editing tool such audacity . 3) encode audio stream 3) transcode video stream 4) mux audio/video target format

Dashcode project opening in xcode problem -

if make our dashcode application open in xcode making native app.... dashcode ide, tool or set of tools developing mac widgets, web based ipxxx applications , webkit based web applications. in dashcode javascript, css , html used develop these applications. xcode ide developing native mac applications , ipxxx applications not exclusively objective-c , interface builder graphical elements. a dashcode project in reality set of file in folder, mac finder makes bundle. if right click project , click on open project see files in project. opening dashcode project in xcode doesn't anything, tried it, if did xcode not perform magical transformation , turn js/css/html objective-c , therefore not turn think mean native app. need learn objexctive-c cocoa , xcode programming tools , interface. in answer oyur added comment not not change code.

html - ignore malformed XML with Perl-XML -

i'm using perl command line utility xpath extract data html code follows: #!/bin/bash echo $html | xpath -q -e "//h2[1]" the html malformed causes xpath throw below error: not well-formed (invalid token) @ line x, column y, byte z: i can't fix html since it's provided external source means every time html changed have fix manually again. i looked xpath man pretty empty: http://www.linuxcertif.com/man/1/xpath.1p/ i wondering whether there way tell xpath ignore malformed html. give idea of how malformed here few lines source code: <div id="header-background" style="top: 42px; >&nbsp;</div> <---- missing closing " <div id-"page-inner"> <---- - instead of = thanks try out html::treebuilder::xpath uses html parser build document can queried using xpaths. html parser should ok malformed xml. also see article on html scraping xpath .

javascript - How many pixels is the screen (maxized window) -

is there international standard pixels of screen in maxized browser window? none standards exist. can assume basing on statistics, lowest popular resolution , accomodate that. current;y 1024px screen width desktop oss pretty it. you still need substract pixels browser gui objects (like scrollbars example). since size of these items depends on os/browser/browser settings used, number can vary. bottom line: there no standard.

GWT uploading a file to a unix path -

i'm kinda puzzled how unix path looks like. have followed example write simple fileuploader using gwt. guide written windows in mind. if have c drive. in windows told program save files c:\save_here\ but in unix, i'm using ubuntu, there no c drives or other drives single letter representation. wonder write instead? i'm getting error 500 time now. , can't figure out how path should be. the guide i've been following found here edit not problem duo path. still need though fixing problem. followed steps in url posted on question. unix paths start @ common root , denoted / , separates directories / e.g. /home/starcom might home directory. create new directory, mkdir /home/starcom/uploaded , use path. or testing perhaps use /tmp you can more info here

osx - What to use for VHDL/digital-logic simulation on Mac OS X -

i realized there no altera quartus or xilins ise or modelsim on mac os x. what people use @ least simulate vhdl , schematic designs on macs? try ghdl (alternate link: @ ghdl.free.fr ). from site: ghdl open-source simulator vhdl language. ghdl allows compile , execute vhdl code directly in pc. combined gui-based wave viewer , vhdl text editor, ghdl powerful tool writing, testing , simulating vhdl code. ghdl based on popular gnu compiler gcc , runs on linux, windows , apple os x. can freely download binary distribution os or try compile ghdl on own machine.

java - How to migrate from 2.0.0.RC2 spring batch version to 2.0.4? -

i have migrate project 2.0.0.rc2 version 2.0.4. problem xsd of 2.0.4 different 2.0.0.rc2. means none of job configuration going work. job configuration in 2.0.0 rc2 <batch:job id="taskletcomponenttestjob"> <batch:step id="tasklettestcomponent" tasklet="taskletfortestcomponent"> <batch:listeners> <batch:listener ref="customstepexecutionlistener" /> </batch:listeners> </batch:step> <batch:listeners> <batch:listener ref="customjobexecutionlistener" /> </batch:listeners> </batch:job> job configuration in 2.0.4 be <batch:job id="taskletcomponenttestjob1"> <batch:step id="tasklettestcomponent" > <batch:tasklet ref="taskletfortestcomponent"> </batch:tasklet> </batc...