media

android mediacodec: real time decoding h264 nals

别来无恙 提交于 2019-12-04 14:08:00
I'm trying to decode h264 nals in real time with android low level media api. Each nal contains one full frame, so i expect that after feeding input with my nal and calling dequeueOutputBuffer it would "immediatly" (with the litle delay of course) display my frame but it doesn't. I see the first frame and the dequeue returns the first buffer only afer feeding the decoder with the second one which at this time should render the second frame. Frames are encoded with zerolatency preset of x264 so no b-frame etc... I guess that there might be a way to set the encoder to render the frame immediatly

Azure and live streaming

久未见 提交于 2019-12-04 13:13:08
I'm trying to make a live video streaming with Azure but i realy don't know what i should try first. First, a have a web site with a latest version of Flowplayer on it. Now i need to know how to make a stream video from my web camera to Azure (what kind of software do i need)? I'm trying to use Expression Encoder 4 Pro (but it dosen't want to Stream video to Azure Blobs). Next step i need to know what i should to do on Azure? I mean some settings, maybe i should make a VM with IIS role on it, or just use a Blobs? And how to make it? And the last step is how to set up a Flowplayer to take

WordPress 3.5 Media Uploader Multiple File Select

﹥>﹥吖頭↗ 提交于 2019-12-04 11:26:59
问题 I'm building a WordPress theme with a custom settings page. Some of the settings require the user to upload/add a set of images (more than 1). The default behavior of the media uploader is to upload and/or select a single image and insert it into a post. I've followed this excellent guide on utilizing the media uploader, and it suggests that I should be able to set multiple to true, but it still only allows for a single file to be uploaded or selected. Here's my code: Load in the needed

Android: Simultaneous video playback and recording

◇◆丶佛笑我妖孽 提交于 2019-12-04 08:43:11
I'm developing a video chat like application for Android. Can I record and play video on the screen at the same time? Can I compose the videos over one another (FaceTime style) or do the y have to be side by side? Can I use the MediaPlayer and MediaRecorder classes or do I have to use lower level APIs? Avner, To answer to your question bit wise 1> Can I record and play video on the screen at the same time? Ans : yes you can. 2> Can I compose the videos over one another (FaceTime style) or do the y have to be side by side? Ans: You can not have PIP(Picture in picture) (http://stackoverflow.com

@import in @media not working in Firefox 3.0.3

空扰寡人 提交于 2019-12-04 07:22:28
This is what I have, which works in IE7, but not in Firefox: @media screen { @import 'screen.css'; } It works outside of the @media block in Firefox: @import 'screen.css'; UPDATE: This works: @media screen { .yui-d3f { border: 1px solid #999; height: 250px; } } What am I missing? Firefox is following the CSS2 specification, while IE is playing fast and loose, as it were. The exact reason is that @import directives must be the first directives after the optional @charset directive. They cannot appear inside of any block. If you want an @import to apply to only one media type, specify that after

Uploading files doesn't work with TransferUtility Amazon S3 in Android

允我心安 提交于 2019-12-04 07:02:15
Hi I have tried to upload a dummy textfile to Amazon S3. however it doesn't work but the log generated an id. When I refresh the Amazon S3 bucket dashboard. the file hasn't been transferred. public class AmazonService extends AsyncTask<String, Boolean, Boolean> { Context mContext; public AmazonService(Context context) { mContext = context; } @Override protected Boolean doInBackground(String... params) { CognitoCachingCredentialsProvider credentialsProvider = new CognitoCachingCredentialsProvider( mContext, "us-east-1:ec361bf5-52b9-477b-9a68-7e2b5f70de07", // Identity Pool ID Regions.US_EAST_1

Launching media uploader in WordPress from another popup

十年热恋 提交于 2019-12-04 06:22:40
问题 I've added a button to tinyMCE's toolbar to launch a popup. The button calls editor.windowManager.open(...) and passes an argument of this sort as the URL: /wp-admin/media-upload.php?post_id=SOME_POST_ID&type=z_recipe&tab=amd_zlrecipe&TB_iframe=true In my main plugin file, I have this code that generates some iframe code when the above URL is called: if (strpos($_SERVER['REQUEST_URI'], 'media-upload.php') && strpos($_SERVER['REQUEST_URI'], '&type=z_recipe') && !strpos($_SERVER['REQUEST_URI'],

Automatically play and restart YouTube video via <p:media>

做~自己de王妃 提交于 2019-12-04 05:14:56
问题 How to play a YouTube video automatically without clicking the button using <p:media> ? And how to restart it automatically? <p:media value="#{myviewBean.youtubeURL}" binding="#{myviewBean.youtubeMedia}" width="420" height="320" player="flash"/> 来源: https://stackoverflow.com/questions/31929216/automatically-play-and-restart-youtube-video-via-pmedia

How to Get Historical Data from Instagram API

一世执手 提交于 2019-12-04 03:45:45
I'm making an Instagram analytics web app. I've carefully read all of the Instagram API endpoints and I can't find any way to get historical data (ie, followers over time). All I would need would be something like a date followed, attached to each follower object. However, there are Instagram analytics sites that offer this, for example, minter.io. https://minter.io/faq#faq-posting-1 From link above: " Minter.io provides full historical data on Instagram accounts and hashtags except for: Accounts – List of Lost Followers Hashtags – Reach and Exposure In these reports the data will only be

MEDIA_TYPE_IMAGE not recognized

若如初见. 提交于 2019-12-04 03:21:08
I'm having trouble with the resource on android developers for the camera, here is my code: // create Intent to take a picture and return control to the calling application Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); fileUri = getOutputMediaFileUri(MEDIA_TYPE_IMAGE); // create a file to save the image intent.putExtra(MediaStore.EXTRA_OUTPUT, fileUri); // set the image file name // start the image capture Intent startActivityForResult(intent, CAPTURE_IMAGE_ACTIVITY_REQUEST_CODE); The problem is 'MEDIA_TYPE_IMAGE' which says that it can not be resolved to a variable. I got