h.264

How can I record and save flash video's with an H264 codec

自闭症网瘾萝莉.ら 提交于 2019-12-11 02:57:23
问题 Right now I am working on an AIR 3.2 application which lets you stream a video to a Flash Media Server and saves it on a hard drive. This sequence works fine with the standard Sorenson codec but I want to use H.264 for my videos. I found lots example code and implemented it in my code, but when I record a video of myself I am unable to re-watch it afterwards. I found how to implement a H.264 encoding in a realeyes blog post here. My code is here. It saves the video as a .f4v file, but my

How to write bitmaps as frames to H.264 with x264 in C\C++?

隐身守侯 提交于 2019-12-11 02:13:26
问题 How to write bitmaps (RGB) as frames to H.264 with x264 in C\C++? Some Examples with source would be great! 回答1: Here is how: Look at the bitmap spec and work on loading a single bitmap Check out the x264.exe source code. That takes YUV uncompressed data as the source. Do some search on RGB->YUV conversion. Put it all together and modify x264.exe to load your bitmaps, convert them to YUV and pass them to the encoder 来源: https://stackoverflow.com/questions/1736301/how-to-write-bitmaps-as

ffmpeg record change color

时间秒杀一切 提交于 2019-12-11 01:28:03
问题 Im try record video from screen, for write to video file im use ffmpeg(libavcodec). But on result i see other colors, my example: AVCodec *codec; AVCodecContext *c= NULL; AVStream *video_stream; AVOutputFormat *out; AVFormatContext *out_context; int i, ret, x, y, got_output; AVFrame *frame; AVPacket pkt; uint8_t endcode[] = { 0, 0, 1, 0xb7 }; printf("Encode video file %s\n", filename); out = av_guess_format(NULL, filename, NULL); if (!out) { std::cout << "Could not deduce output format from

can't add audio stream to MP4 file using sinkwriter from Media Foundation

喜你入骨 提交于 2019-12-10 23:37:17
问题 It's been a week since I'm trying to make my encoder works... So the things is: I create a file using the Sink Writer from MF. I write all my video sample. --> (If I stop there and call the Finish methods, I'm able to read the file using VLC but if I do the bellow stuff, the file will be "corrupted") I write all my audio sample. I call the finish function and I get a HRESULT code saying: "Sink could not create valid output file because required headers were not provided to the sink". I

My video has no keyframes, How it is possible?

夙愿已清 提交于 2019-12-10 20:06:44
问题 When I run the following line on my video it only outputs P frames and B frames and no I frame, ffprobe -select_streams v -show_frames -show_entries frame=pict_type -of csv 00000.MTS How is it possible for a video not to have I frames. Here is the link to the video. According to this tutorial's definition, P frames are just built upon previous frames, If there is no other frame to build upon how can we use P frames? Output of ffprobe -i 00000.MTS is: ... Input #0, mpegts, from '00000.MTS':

How to play H.264 video in browser?

余生长醉 提交于 2019-12-10 18:33:16
问题 I have transcoded each frame of my video from RGB -> YUV12 -> H264. On the exit I have H.264 video stream and I want to watch it without VLC media player and etc. Stream should be available from different devices such as PC, tablet, smartphone in this way I will use only browser. Which method to choose? Maybe Flash helps? Transcode video from h.264 to mp4? Anything else? Thank you for any idea. 回答1: The <video> tag supports RTSP streams. On Firefox, Chrome and IE9+, you can use: <video src=

libx264 encoder error in ffmpeg android build

百般思念 提交于 2019-12-10 11:55:28
问题 Right now, I have a ffmeg build script which recognizes libx264 and compiles succesfully. I have also compiled x264 and obtained libx264.a library. Both ffmpeg and libx264 are built from source. I can build ffmpeg without libx264 succesfully as well. Below you may find my script which tries to build ffmpeg with libx264. #!/bin/bash NDK=~/Android_NDK_r7b PLATFORM=$NDK/platforms/android-8/arch-arm/ PREBUILT=$NDK/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86 alitan=~/x264/ndk7_build

Muxing a H.264 Annex B & AAC stream using libavformat with vcopy/acopy

我与影子孤独终老i 提交于 2019-12-10 11:52:29
问题 I'm doing some integration work with video (H.264) and audio (AAC) from an IP camera. I've made a bit of progress and I can store the video & audio streams individually with the ability to play it back using VLC player. The H.264 is being stored in Annex B format and the audio is using an adts formatted file. I'm now trying to mux the streams into an MP4 file without doing any decoding or encoding but so far haven't managed to find the answer. I can do this manually with ffmpeg: ffmpeg -i

Using ffmpeg to combine small mp4 chunks?

风格不统一 提交于 2019-12-10 11:09:24
问题 I'm trying to convert batches of png images into a single mp4 x264 video using ffmpeg. The conversion, for reasons I won't go into, converts groups of frames into short mp4 chunks and then I want to take those chunks and merge them into the final video at a specific fps (in this case 30fps). My understanding of ffmpeg and the x264 options is too limited, and while I can produce the individual mp4 chunks from the source png frames without trouble, the final merge always ends up duplicating and

Ardrone Video Stream decoding in Android

情到浓时终转凉″ 提交于 2019-12-10 10:58:23
问题 I'm working on an image processing project for the Parrot AR.drone, using opencv4Android, i'm so new to the whole thing! , does anyone have an idea about how to read in video streams from the ARDrone using OpenCV, the samples shows how to get video input from a webcam only the video is encoded in H.264 format,and the drone adds a proprietary header (called PaVE) to every video frame, apparently that's why Android fails to load the video stream.. thanks 回答1: You need a PaVE parser that will