video

How do I create a custom media player to play a custom codec in Android?

≯℡__Kan透↙ 提交于 2021-02-05 20:30:32
问题 n00b here (first Android project). I have been given a custom video codec that has been integrated with an Android firmware build. It's an .so file containing a class that inherits from MediaPlayerInterface, as well as a custom MediaPlayerService implementation to return instances of the custom codec class from the create() factory function for the appropriate file types. I want to use this codec as part of a video player application that can be installed on phones that do not contain the

How do I create a custom media player to play a custom codec in Android?

跟風遠走 提交于 2021-02-05 20:28:31
问题 n00b here (first Android project). I have been given a custom video codec that has been integrated with an Android firmware build. It's an .so file containing a class that inherits from MediaPlayerInterface, as well as a custom MediaPlayerService implementation to return instances of the custom codec class from the create() factory function for the appropriate file types. I want to use this codec as part of a video player application that can be installed on phones that do not contain the

HTML5 Video Tag in Chrome - Why is currentTime ignored when video downloaded from my webserver?

a 夏天 提交于 2021-02-05 18:58:01
问题 I want to be able to play back video from a specific time using the HTML5 video tag (and currently only need to worry about Chrome). This is possible by setting the currentTime property of a video element. That works fine in Chrome with a video sourced from html5rocks.com, but is ignored when the same file is loaded from my own local webserver. Using the sample code from http://playground.html5rocks.com/#video_tag, I have arrived at the following HTML: <!DOCTYPE html> <html> <body> <video id=

HTML5 Video Tag in Chrome - Why is currentTime ignored when video downloaded from my webserver?

给你一囗甜甜゛ 提交于 2021-02-05 18:56:49
问题 I want to be able to play back video from a specific time using the HTML5 video tag (and currently only need to worry about Chrome). This is possible by setting the currentTime property of a video element. That works fine in Chrome with a video sourced from html5rocks.com, but is ignored when the same file is loaded from my own local webserver. Using the sample code from http://playground.html5rocks.com/#video_tag, I have arrived at the following HTML: <!DOCTYPE html> <html> <body> <video id=

HTML5 Video Tag in Chrome - Why is currentTime ignored when video downloaded from my webserver?

大兔子大兔子 提交于 2021-02-05 18:56:39
问题 I want to be able to play back video from a specific time using the HTML5 video tag (and currently only need to worry about Chrome). This is possible by setting the currentTime property of a video element. That works fine in Chrome with a video sourced from html5rocks.com, but is ignored when the same file is loaded from my own local webserver. Using the sample code from http://playground.html5rocks.com/#video_tag, I have arrived at the following HTML: <!DOCTYPE html> <html> <body> <video id=

How to draw a pixel on the screen in protected mode in x86 assembly?

旧城冷巷雨未停 提交于 2021-02-05 18:54:17
问题 I am creating a little bootloader+kernel and till now I managed to read disk, load second sector, load GDT, open A20 and enable pmode. I jumped to the 32-bits function that show me a character on the screen, using the video memory for textual content (0x000B0000 - 0x000B7777) pusha mov edi, 0xB8000 mov bl, '.' mov dl, bl mov dh, 63 mov word [edi], dx popa Now, I would like to go a little further and draw a single pixel on the screen. As I read on some website, if I want to use the graphics

How to draw a pixel on the screen in protected mode in x86 assembly?

强颜欢笑 提交于 2021-02-05 18:54:12
问题 I am creating a little bootloader+kernel and till now I managed to read disk, load second sector, load GDT, open A20 and enable pmode. I jumped to the 32-bits function that show me a character on the screen, using the video memory for textual content (0x000B0000 - 0x000B7777) pusha mov edi, 0xB8000 mov bl, '.' mov dl, bl mov dh, 63 mov word [edi], dx popa Now, I would like to go a little further and draw a single pixel on the screen. As I read on some website, if I want to use the graphics

How to draw a pixel on the screen in protected mode in x86 assembly?

南楼画角 提交于 2021-02-05 18:53:34
问题 I am creating a little bootloader+kernel and till now I managed to read disk, load second sector, load GDT, open A20 and enable pmode. I jumped to the 32-bits function that show me a character on the screen, using the video memory for textual content (0x000B0000 - 0x000B7777) pusha mov edi, 0xB8000 mov bl, '.' mov dl, bl mov dh, 63 mov word [edi], dx popa Now, I would like to go a little further and draw a single pixel on the screen. As I read on some website, if I want to use the graphics

ffmpeg - How to pass http headers?

空扰寡人 提交于 2021-02-05 13:16:07
问题 I need to pass http headers (user agent and ip) to an ffmpeg command. I use the following command: ffmpeg -y -timeout 5000000 -map 0:0 -an -sn -f md5 - -headers "User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36" -headers "X-Forwarded-For: 13.14.15.66" -i "http://127.0.0.1" And I run a local node.js server to see the headers I get: 'use strict'; var express = require('express'); var server = express(); server.all('/*',

ffmpeg - How to pass http headers?

只谈情不闲聊 提交于 2021-02-05 13:09:52
问题 I need to pass http headers (user agent and ip) to an ffmpeg command. I use the following command: ffmpeg -y -timeout 5000000 -map 0:0 -an -sn -f md5 - -headers "User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36" -headers "X-Forwarded-For: 13.14.15.66" -i "http://127.0.0.1" And I run a local node.js server to see the headers I get: 'use strict'; var express = require('express'); var server = express(); server.all('/*',