x264

How to get h264 video info?

瘦欲@ 提交于 2019-11-30 04:28:06
How can I get specific h264 video information from video file? I need to know profile (Baseline/Main/High) and is there B-Frames in movie? I've found out that the best way for this is using FFprobe with -show_streams parameter. It shows both h.264 profile and B-frames usage for video streams of the movie. ffprobe -show_streams -i "file.mp4" [STREAM] index=0 codec_name=h264 codec_long_name=H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 profile=High codec_type=video codec_time_base=1001/48000 codec_tag_string=avc1 codec_tag=0x31637661 width=1920 height=1080 has_b_frames=0 sample_aspect_ratio=0:1

How to encode h.264 with libavcodec/x264?

淺唱寂寞╮ 提交于 2019-11-29 19:39:21
I am attempting to encode video using libavcodec/libavformat. Audio works great, but when I try to encode video I get the following errors: [libx264 @ 0x10182a000]broken ffmpeg default settings detected [libx264 @ 0x10182a000]use an encoding preset (vpre) easy to fix using the command line ffmpeg, but I am trying to do this in C. my options are AVStream *pVideoOutStream = av_new_stream(pOutFormatCtx, 0); AVCodecContext *pVideoOutCodecCtx = pVideoOutStream->codec; pVideoOutCodecCtx->codec_id = CODEC_ID_H264; pVideoOutCodecCtx->codec_type = CODEC_TYPE_VIDEO; pVideoOutCodecCtx->bit_rate =

How to solve bad instruction `vadd.i16 q0,q0,q0' when attempting to check gcc for neon instruction

可紊 提交于 2019-11-29 16:54:03
Checking gcc supports failed for neon instruction vadd.i16 q0,q0,q0 test.c int main () { __asm__("vadd.i16 q0, q0, q0"); return 0; } arm-linux-androideabi-gcc test.c /tmp/ccfc8m0G.s: Assembler messages: /tmp/ccfc8m0G.s:24: Error: bad instruction `vadd.i16 q0,q0,q0' Tried with flags -mcpu=cortex-a8 -mfpu=neon but stil no success Above code was used to test gcc support for neon instruction. Actually i am trying to build x264 with NEON support for ARM platformAfter running configure script x264 config log file contains Command line options: "--cross-prefix=arm-linux-androideabi-" "--enable-pic" "

OBS Studio 24.0 RC1 发布 – 有大惊喜

南笙酒味 提交于 2019-11-29 05:40:06
OBS Studio 24.0 RC1于今天下午发布,增加了在录制时暂停的功能,允许“无缝地实时删除视频片段”。OBS Studio 24.0 RC1还支持在发生拥塞时自动调整比特率,而不是丢帧,添加各种设置、更新Windows上的FFmpeg/x264以及各种修复和其他改进。 想要了解更多关于OBS Studio 24的信息,可以查看 候选版发布公 告,或者测试这个开源的实时流媒体/屏幕录制套件。 原文来自: https://www.linuxidc.com/Linux/2019-08/160229.htm 本文地址: https://www.linuxprobe.com/obs-studio-24-0-rc1-update.html 编辑:周晓雪,审核员:张文祥 Linux 命令 大全: https://www.linuxcool.com/ 来源: https://my.oschina.net/u/3308739/blog/3101641

What is ffmpeg, avcodec, x264? [closed]

前提是你 提交于 2019-11-28 22:01:26
From wiki , I read that FFmpeg is a free software project that produces libraries and programs for handling multimedia data. The most notable parts of FFmpeg are libavcodec, an audio/video codec library used by several other projects, libavformat, an audio/video container mux and demux library, and the ffmpeg command line program for transcoding multimedia files. So ffmpeg is a wrapper of avcodec? And I often hear that people encode video with x264 using ffmpeg. So ffmpeg is also a wrapper of x264? How are they related ? First of all, to clear up some terms: FFmpeg is a software project with

How to encode a video from several images generated in a C++ program without writing the separate frame images to disk?

徘徊边缘 提交于 2019-11-28 16:54:23
I am writing a C++ code where a sequence of N different frames is generated after performing some operations implemented therein. After each frame is completed, I write it on the disk as IMG_%d.png, and finally I encode them to a video through ffmpeg using the x264 codec. The summarized pseudocode of the main part of the program is the following one: std::vector<int> B(width*height*3); for (i=0; i<N; i++) { // void generateframe(std::vector<int> &, int) generateframe(B, i); // Returns different images for different i values. sprintf(s, "IMG_%d.png", i+1); WriteToDisk(B, s); // void WriteToDisk

How to solve bad instruction `vadd.i16 q0,q0,q0' when attempting to check gcc for neon instruction

点点圈 提交于 2019-11-28 11:16:29
问题 Checking gcc supports failed for neon instruction vadd.i16 q0,q0,q0 test.c int main () { __asm__("vadd.i16 q0, q0, q0"); return 0; } arm-linux-androideabi-gcc test.c /tmp/ccfc8m0G.s: Assembler messages: /tmp/ccfc8m0G.s:24: Error: bad instruction `vadd.i16 q0,q0,q0' Tried with flags -mcpu=cortex-a8 -mfpu=neon but stil no success Above code was used to test gcc support for neon instruction. Actually i am trying to build x264 with NEON support for ARM platformAfter running configure script x264

Unknown encoder 'libx264'

↘锁芯ラ 提交于 2019-11-28 03:05:34
I installed ffmpeg 0.8.9 on ubuntu11 by ./configure --enable-gpl --enable-nonfree --enable-pthreads --enable-libfaac --enable-libmp3lame --enable-libx264 When I run it ffmpeg -y -i test.mp4 -f mpegts -acodec libmp3lame -ar 48000 -ab 64k -vcodec libx264 -b 250k -flags +loop -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 -subq 5 -trellis 1 -refs 1 -coder 0 -me_range 16 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -bt 250k -maxrate 250k -bufsize 250k -rc_eq 'blurCplx^(1-qComp)' -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -level 30 -aspect 320:240 -g 30 -async 2 a.ts It said Unknown encoder

What is ffmpeg, avcodec, x264? [closed]

核能气质少年 提交于 2019-11-27 13:16:50
问题 From wiki, I read that FFmpeg is a free software project that produces libraries and programs for handling multimedia data. The most notable parts of FFmpeg are libavcodec, an audio/video codec library used by several other projects, libavformat, an audio/video container mux and demux library, and the ffmpeg command line program for transcoding multimedia files. So ffmpeg is a wrapper of avcodec? And I often hear that people encode video with x264 using ffmpeg. So ffmpeg is also a wrapper of

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