libav

How to turn off ffmpeg hardware acceleration

心已入冬 提交于 2019-12-11 09:10:53
问题 I have a video player. Written in C++ with Visual Studio, using the ffmpeg 3.2.2 libav libraries. I need to be able to programmatically turn off hardware acceleration of video decompression. I'm not finding much discussion on turning off hardware acceleration; the only info I found is here on StackOverflow: How to turn off Video Acceleration programatically But that solution looks global to the system, not just my application. Are there any ffmpeg flags or APIs that enable turning off

convert mp4-ts using libav

为君一笑 提交于 2019-12-10 11:07:15
问题 I'm trying to convert an mp4 file to mpegts using libav . The code works, but outputs a file that can not be played by any player. Here is the input file (it is video only, no audio) here is the code I have so far: int convert(const char *input, const char *output) { AVFormatContext *inputContext = NULL; AVFormatContext *outputContext = NULL; AVCodecContext *input_codec_context = NULL; AVCodecContext *output_codec_context = NULL; AVCodec *output_codec = NULL; AVCodec *input_codec = NULL;

fedora 21 javafx not creating mediaplayer

邮差的信 提交于 2019-12-09 15:44:08
问题 I recently upgraded to fedora 21. I really like it, however, javafx MediaPlayer doesn't work. As per the JavaFX System Requirements Site, for a Linux distro to create A MediaPlayer I need: libavcodec53 libavformat53 I couldn't find any of these packages in the Fedora repositories (or anything about them with a google search for fedora 21 and I also checked a search for fedora 20, however I managed to get them installed from ATRpm's onto my system successfully and still no luck. I also

JavaFX Media Player crashes when opening MP3s even though libav 53 libraries are present?

谁说我不能喝 提交于 2019-12-09 07:35:27
Building a java 8 (oracle) application that uses the JavaFX media player under linux. Needing MP3 support I identified that I needed to ensure that libavformat53 and libavcodec53 were installed on the system. Now even though they are installed on the system and all the relavent .so files are linked and in the right locations. JavaFX still crashes when opening MP3s. Any ideas why this is still occurring? Research Digged deeper into the issue found target system I was installing on already had libav 55 libraries on it. Using strace I saw that java was trying to load version 55 of the libraries

Muxing AVPackets into mp4 file - revisited

▼魔方 西西 提交于 2019-12-08 18:03:24
I'm refering to this thread here: Muxing AVPackets into mp4 file The question over there is mainly the same that I have and the first answer looks very promising. The source (somkind of pseudo) code that the user pogorskiy provides seems to do exactly what I need: AVOutputFormat * outFmt = av_guess_format("mp4", NULL, NULL); AVFormatContext *outFmtCtx = NULL; avformat_alloc_output_context2(&outFmtCtx, outFmt, NULL, NULL); AVStream * outStrm = av_new_stream(outFmtCtx, 0); AVCodec * codec = NULL; avcodec_get_context_defaults3(outStrm->codec, codec); outStrm->codec->coder_type = AVMEDIA_TYPE

Building gstreamer from source in windows using cerbero … issues with building gst-libav-1.0

删除回忆录丶 提交于 2019-12-08 09:30:51
问题 I am first time compiling gstreamer from source code and I am facing difficulty in building gst-libav-1.0 in windows. I followed link given in the gstreamer website. only creation of .cerbero.cbc is avoided (as it gives lots more problems ,but default will work it say in site) compiling gstreamer from source code-- gstreamer website ISSUES 1) After running build command I am getting error of " /w32pthreads.h:137:1: error: unknown type name 'INIT_ONCE'" For more detailed error see error.txt

JavaFX Media Player crashes when opening MP3s even though libav 53 libraries are present?

五迷三道 提交于 2019-12-08 06:32:27
问题 Building a java 8 (oracle) application that uses the JavaFX media player under linux. Needing MP3 support I identified that I needed to ensure that libavformat53 and libavcodec53 were installed on the system. Now even though they are installed on the system and all the relavent .so files are linked and in the right locations. JavaFX still crashes when opening MP3s. Any ideas why this is still occurring? 回答1: Research Digged deeper into the issue found target system I was installing on already

Copy a rectangular area from AVFrame - ffmpeg

耗尽温柔 提交于 2019-12-08 04:00:33
问题 I am trying to pull out a rectangular area of an AVFrame and have started on a function that will do so. I'm only interested in using AVFrames that are format PIX_FMT_RGB24. I may be reinventing the wheel a bit here too, so please jump in if there is already a function to do this. So far my function looks like this: AVFrame * getRGBsection(AVFrame *pFrameRGB, const int start_x, const int start_y, const int w, const int h) { AVFrame *pFrameSect; int numBytes; uint8_t *mb_buffer; pFrameSect =

How to disable libav autorotate display matrix

不打扰是莪最后的温柔 提交于 2019-12-06 15:08:40
I have a video taken from my mobile in portrait mode. Here is the dumped info about the video: Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'video.MOV': Metadata: major_brand : qt minor_version : 0 compatible_brands: qt creation_time : 2017-05-04 02:21:37 Duration: 00:00:06.91, start: 0.000023, bitrate: 4700 kb/s Stream #0:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 90 kb/s (default) Metadata: creation_time : 2017-05-04 02:21:37 handler_name : Core Media Data Handler Stream #0:1(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1280x720, 4602 kb/s, 29.98 fps,

H264 Video Streaming over RTMP on iOS

倾然丶 夕夏残阳落幕 提交于 2019-12-06 03:04:45
With a bit of digging, I have found a library that extracts NAL units from .mp4 file while it is being written. I'm attempting to packetize this information to flv over RTMP using libavformat and libavcodec . I setup a video stream using: -(void)setupVideoStream { int ret = 0; videoCodec = avcodec_find_decoder(STREAM_VIDEO_CODEC); if (videoCodec == nil) { NSLog(@"Could not find encoder %i", STREAM_VIDEO_CODEC); return; } videoStream = avformat_new_stream(oc, videoCodec); videoCodecContext = videoStream->codec; videoCodecContext->codec_type = AVMEDIA_TYPE_VIDEO; videoCodecContext->codec_id =