mpeg

How to create a MPD file of MPEG-DASH to play a webm video?

為{幸葍}努か 提交于 2019-12-06 02:13:47
问题 I'm following this demo which uses mediaSource API and MPEG DASH standard to play a .webm video. This is the MPD file used: <?xml version="1.0" encoding="UTF-8"?> <MPD xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:mpeg:DASH:schema:MPD:2011" xsi:schemaLocation="urn:mpeg:DASH:schema:MPD:2011" type="static" mediaPresentationDuration="PT888.05S" minBufferTime="PT1S" profiles="urn:webm:dash:profile:webm-on-demand:2012"> <Period id="0" start="PT0S" duration="PT888.05S" >

How to encode grayscale video streams with FFmpeg?

╄→尐↘猪︶ㄣ 提交于 2019-12-05 02:12:57
问题 I've got a grayscale video stream coming off a Firewire astronomy camera, I'd like to use FFmpeg to compress the video stream but it will not accept single byte pixel formats for the MPEG1VIDEO codecs. How can I use the FFmpeg API to convert grayscale video frames into a frame format accepted by FFmpeg? 回答1: Edit MPEG-1 only accepts YUV. So convert your frame to yuv. Use the SwsContext structure, create it by calling sws_getContext, and then use sws_scale. Try the rawvideo codec. You will

Is there a way to play mpeg videos in HTML5?

寵の児 提交于 2019-12-05 00:55:48
My pc based web application uses HTML5, and I want to import mpeg files to play in my browser which have been saved that way by other application. Is there a way to play these video files with HTML5? EDIT: The application tries to play the mpeg files from the local hard drive rather than from the server. So, user has an ability to choose the mpeg files to play the selected mpeg files. HTML: <input id="t20provideoinput" type="file" multiple accept="video/*"/> <video id="t20provideo" controls controls> Javascript: (function localFileVideoPlayerInit(win) { var URL = win.URL || win.webkitURL; var

How do I extract a screenshot from a video in the iPhone SDK?

强颜欢笑 提交于 2019-12-04 20:29:28
I'd like to be able to take a screenshot of an MPEG recorded using the iPhone camera at set intervals. I've seen a few ways to do this; namely compiling and using FFmpeg ( Using FFMPEG library with iPhone SDK for video encoding ), however it seems it's quite difficult to comply with the LGPL ( http://ffmpeg.org/legal.html ) for commercial use. This term of the contract pretty much makes it useless to us: Q : Is it perfectly alright to incorporate the whole FFmpeg core into my own commercial product? A : You might have a problem here. There have been cases where companies have used FFmpeg in

Coding a certain MP4 GOP with FFMPEG

半腔热情 提交于 2019-12-04 15:39:16
I have a .y4m video file, and I want to convert it to .mp4 using FFmpeg. The problem is that I want a certain kind of GOP, this one: IBBPBBPBBPBB . But what I get, when I set the GOP size to 12 ( -g 12 ) is IPPPPPPPPPPP . I've also tried using the -bf 8 option, but I get results like IPBBB... and the video doesn't play right. Could you please tell me how to get the exact IBBPBBPBBPBB GOP using FFmpeg? Thanks for your help I think you want something to the effect of : -g 12 -bf 2 sgop The -g flag sets the GOP size (as you already mentioned), the -bf 2 says that 2 B-frames should be inserted

How to get Pipeline created by playbin in textual format in Gstreamer?

僤鯓⒐⒋嵵緔 提交于 2019-12-04 14:21:15
I'm playing a transport stream file (*.ts) using the following pipeline: gst-launch-0.10 playbin2 uri=file:///c:/bbb.ts But I need to convert that into a pipeline myself. I'm not sure how to achieve this. So far I have tried: (works fine) gst-launch-0.10 -v filesrc location=c:/bbb.ts ! tsdemux ! audio/x-ac3 ! fakesink But if i replace fakesink with autoaudiosink it fails with a not-linked error. And even the fakesink doesn't work for video: gst-launch-0.10 -v filesrc location=c:/bbb.ts ! tsdemux ! video/x-mpeg2 ! fakesink So I have two questions: How to find out pipeline created by playbin

Video Element Error: MEDIA_ERR_SRC_NOT_SUPPORTED

匆匆过客 提交于 2019-12-04 05:16:03
问题 I'm trying to play a dash mpd file with dash.js.I used axinom tutorial for guidance which suggested the command below for generating the mpd file. mkdir dash_unprotected MP4Box -dash 4000 -rap -frag-rap -sample-groups-traf -profile dashavc264:live -bs-switching no -segment-name dash_$RepresentationID$_$Number$ -url-template video-700k.mp4 video-1000k.mp4 video-1500k.mp4 video-2000k.mp4 audio.mp4 -out "dash_unprotected/manifest.mpd" The resulting mpd file <?xml version="1.0"?> <!-- MPD file

Reading information from PAT section (MPEG-TS)

一个人想着一个人 提交于 2019-12-04 04:22:34
问题 I'm writing a MPEG-TS file parser and I'm stuck on getting program_numbers and PIDs from the PAT section. I'm using a packet analyser to compare my results. For example, here's a PAT packet 47 40 00 16 00 00 B0 31 00 14 D7 00 00 00 00 E0 10 00 01 E0 24 00 02 E0 25 00 03 E0 30 00 04 E0 31 00 1A E0 67 00 1C E0 6F 43 9D E3 F1 43 A3 E3 F7 43 AC E4 00 C3 69 A6 D8 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF

C# better compression for remote desktop broadcast application

时光毁灭记忆、已成空白 提交于 2019-12-03 20:39:45
I am in the process of creating a TCP remote desktop broadcasting application. (Something like Team Viewer or VNC) the server application will 1. run on a PC listening for multiple clients on one Thread 2. and on another thread it will record the desktop every second 3. and it will broadcast the desktop for each connected client. i need to make this application possible to run on a connections with a 12KBps upload and 50KBps download DSL connection (client's and server). so.. i have to reduce the size of the data/image i send per second. i tried to reduce by doing the following. I. first i

GoPro: get each frame time stamp

99封情书 提交于 2019-12-03 09:55:57
问题 I am currently trying to extract each frame time stamp from an MPEG-4 file that has been recorded using a GoPro. I want the exact time at which the frame has been captured by the camera, to couple that with computer vision algorithms later on. I know that the output framerate is 25 fps. I extracted the pts in different ways using ffmpeg and ffprobe, but they all show way too perfect results for me to believe them. Each frame/packet has a precise, 0.04 sec interal (or 3600 in pts units) which