h.264

What h.264 format loads on android AND IOS?

只愿长相守 提交于 2019-11-27 17:05:18
Theoretically both IOS and ANDROID will play h.264 files, but I can't figure out a setting to encode them so they actually work cross platform. Does anybody know how to encode for both Android and IOS using one file? p.s. I know all about html5 video and the fallback sources, I just don't want to encode and host a new video for every device that comes down the pike. Here's the ffmpeg command line we use to transcode to MPEG-4 h.264 in our production environment. We've tested the output on several Android devices, as well as iOS. You can use this as a starting point, just tweaking things like

H.264 file size for 1 hr of HD video [closed]

痞子三分冷 提交于 2019-11-27 16:12:16
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I'm looking for an order of magnitude estimate for expected on-disk file size for 1 hour of H.264 encoded HD video transcoded from HDV (HD on a MiniDV tape). I want to archive approximately 100 hours of such content and want to figure out whether I'm looking at a big hard drive, a multi-drive unit like a Drobo,

Access StageFright.so directly to decode H.264 stream from JNIlayer in Android

泄露秘密 提交于 2019-11-27 15:17:45
问题 Is there a way to access libstagefright.so directly to decode H.264 stream from JNI layer on Android 2.3 or above? 回答1: If your objective is to decode an elementary H.264 stream, then your code will have to ensure that the stream is extracted, the codec-specific-data is provided to the codec which is primarily SPS and PPS data and frame data along with time-stamps is provided to the codec. Across all Android versions, the most common interface would be OMXCodec which is an abstraction over an

Capturing h.264 stream from camera with Gstreamer

℡╲_俬逩灬. 提交于 2019-11-27 13:56:22
问题 I'm trying to capture H264 stream from locally installed Logitech C920 camera from /dev/video0 with Gstreamer 1.0 v4l2src element. v4l2-ctl --list-formats shows that camera is capable to give H264 video format: # v4l2-ctl --list-formats ioctl: VIDIOC_ENUM_FMT ... Index : 1 Type : Video Capture Pixel Format: 'H264' (compressed) Name : H.264 ... But pipeline # gst-launch-1.0 -vvv v4l2src device=/dev/video0 ! video/x-h264, width=800, height=448, framerate=30/1 ! fakesink keeps giving me not

Playing RTSP with python-gstreamer

荒凉一梦 提交于 2019-11-27 13:49:45
I use gstreamer for playing RTSP stream from IP cameras (like Axis.) I use a command line like this: gst-launch-0.10 rtspsrc location=rtsp://192.168.0.127/axis-media/media.amp latency=0 ! decodebin ! autovideosink and it work fine. I want to control it with a gui in pygtk so I use the gstreamer python bindings. I've wrote this piece of code: [...] self.player = gst.Pipeline("player") source = gst.element_factory_make("rtspsrc", "source") source.set_property("location", "rtsp://192.168.0.127/axis-media/media.amp") decoder = gst.element_factory_make("decodebin", "decoder") sink = gst.element

Android encoder muxer: raw h264 to mp4 container

泪湿孤枕 提交于 2019-11-27 12:34:48
问题 I created a h264 raw video file, and I was able to mux it with Android MediaMuxer on Android 4.3 and up. Now I need to support Android versions 4.1 and 4.2. I found Jcodec. And there is an example for doing this: https://github.com/jcodec/jcodec/blob/master/samples/main/java/org/jcodec/samples/mux/AVCMP4Mux.java But I'm getting java.nio.ReadOnlyBufferException exception at line 70: H264Utils.encodeMOVPacket(data); I guess this code is not for Android? How do I fix this. Can someone familiar

h264 lossless coding

余生颓废 提交于 2019-11-27 11:19:48
Is it possible to do completely lossless encoding in h264? By lossless, I mean that if I feed it a series of frames and encode them, and then if I extract all the frames from the encoded video, I will get the exact same frames as in the input, pixel by pixel, frame by frame. Is that actually possible? Take this example: I generate a bunch of frames, then I encode the image sequence to an uncompressed AVI (with something like virtualdub), I then apply lossless h264 (the help files claim that setting --qp 0 makes lossless compression, but I am not sure if that means that there is no loss at any

Live streaming through MP4

对着背影说爱祢 提交于 2019-11-27 11:07:28
I am working on an online TV service. One of the goals is for the video to be played without any additional browser plug-ins (except for Flash). I decided to use MP4, because it is supported by the majority of HTML5 browsers and by Flash (for fallback). The videos are transcoded from ASF on a server by FFMpeg. However, I found that MP4 cannot be live-streamed because it has a moov atom for metadata that has to specify the length. FFMpeg cannot directly stream mp4 to stdout, because it puts the moov at the end of the file. ( Live transcoding and streaming of MP4 works in Android but fails in

How to encode Bitmaps into a video using MediaCodec?

醉酒当歌 提交于 2019-11-27 10:45:24
I would like to encode a set of Bitmaps that I have into an h264. Is this possible via MediaEncoder? I have written some code in order to do it, but the output cannot be played in any media player I have tried. Here's some of the code that I primarily borrowed from other sources that I found on Stackoverflow. mMediaCodec = MediaCodec.createEncoderByType("video/avc"); mMediaFormat = MediaFormat.createVideoFormat("video/avc", 320, 240); mMediaFormat.setInteger(MediaFormat.KEY_BIT_RATE, 125000); mMediaFormat.setInteger(MediaFormat.KEY_FRAME_RATE, 15); mMediaFormat.setInteger(MediaFormat.KEY_COLOR

Raw H264 frames in mpegts container using libavcodec

天大地大妈咪最大 提交于 2019-11-27 10:28:10
I would really appreciate some help with the following issue: I have a gadget with a camera, producing H264 compressed video frames, these frames are being sent to my application. These frames are not in a container, just raw data. I want to use ffmpeg and libav functions to create a video file, which can be used later. If I decode the frames, then encode them, everything works fine, I get a valid video file. (the decode/encode steps are the usual libav commands, nothing fancy here, I took them from the almighty internet, they are rock solid)... However, I waste a lot of time by decoding and