libx264

I can't use libx265 or hevc with ffmpeg in nginx

北战南征 提交于 2020-03-26 06:10:09
问题 exec_push /usr/bin/ffmpeg -re -i rtmp://10.254.20.186:1935/$app/$name ar 44100 -vcodec libx264 -g 25 -f flv rtmp://10.254.20.186/live/$name_hi; I can use this code in my nginx server. this is code running but dont run while write libx264 instead libx265. The interesting thing is that I can run the following commands on my linux computer without problems. ffmpeg -i input.mp4 -c:v libx264 -crf 28 -c:a aac -b:a 128k output.mp4 ffmpeg -i input.mp4 -c:v libx265 -crf 28 -c:a aac -b:a 128k output

Compiling FFmpeg : libx264 not found

一曲冷凌霜 提交于 2020-01-02 23:04:37
问题 I hope some one helps me the solve this problems. I was trying to compile FFmpeg 2.2.3 library under ubuntu 12.04LTS for android using android ndk r10e by following this tutorials: Tutorial1 Tutorial2 here is my build_android.sh file: #!/bin/bash NDK=/home/rango/Desktop/android-ndk-r10e SYSROOT=$NDK/platforms/android-19/arch-arm/ TOOLCHAIN=$NDK/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86 #ADDI_LDFLAGS="-L /usr/local/lib" #ADDI_CFLAGS="-I /usr/include" function build_one { .

ffpmeg drops last frame when compressing from MP4 to MP4 (libx264)

血红的双手。 提交于 2019-12-25 01:58:55
问题 So, I'm using this code to compress my *mp4 file. I need to get lower quality and decrease bitrate: ffmpeg -i input.mp4 -c:v libx264 output.mp4 The problem is: the last frame of footage is dropped after ffmpeg compression. Screenshot is here: screenshot_ffmpeg_drop frame I tried to use full preferences I need, but the problem is the same. ffmpeg -i input.mp4 -c:v libx264 -vf scale=1280:720 -preset fast -crf 29 -r 25 -c:a copy output.mp4 logfile during ffmpeg encoding: Input #0, mov,mp4,m4a

How to use ffmpeg for streaming mp4 via websocket

巧了我就是萌 提交于 2019-12-24 12:17:13
问题 I've written a sample in nodejs wich streams some input to the client via websocket connection in mp4 format. On the client side, the mp4 packages ar added to a MediaSourceBuffer. This runs fine, but only if the client gets the stream from the beginning with the first package. So another client can't play the current Stream, because he won't get the Stream from the beginning. I tried (try&error) to save the first package ffmpeg sends and send this at the beginning of a new connection, then

Why sliced thread affect so much on realtime encoding using ffmpeg x264?

空扰寡人 提交于 2019-12-22 05:05:02
问题 I'm using ffmpeg libx264 to encode a 720p screen captured from x11 in realtime with a fps of 30. when I use -tune zerolatency paramenter, the average encode time per-frame can be as large as 12ms with profile baseline. After a study of the ffmpeg x264 source code, I found that the key parameter leading to such long encode time is sliced-threads which enabled by -tune zerolatency. After disabled using -x264-params sliced-threads=0 the encode time can be as low as 2ms And with sliced-threads

Issue #2 when compiling Xuggler for Raspberry pi with libx264

∥☆過路亽.° 提交于 2019-12-20 07:14:52
问题 I am trying to compile Xuggler for Raspberry Pi(Running on Debian OS aka Raspbian), I followed the 'Basic Build Instructions' available here for compiling Xuggler. After I successfully installed all the prerequisites and set the correct paths, I ran the following command: ant run-tests After sometime I am facing the following error and the ant build fails at libx264: {scroll at the end of log to see the issue} common/arm/mc-c.c: In function âx264_weight_cache_neonâ: common/arm/mc-c.c:89:25:

FPS too high when saving video in mp4 container

你离开我真会死。 提交于 2019-12-18 16:47:52
问题 When I decode frames from avi file and then decode them in x264 and save to mp4 file, the fps of the output file is always 12,800. Therefore the file is played very fast. But, when I save the encoded in h264 frames in avi format and not mp4, so the fps is as I wanted - 25. What could be the problem? Here the code I wrote in VS2010: #include "stdafx.h" #include "inttypes.h" extern "C" { #include "libavcodec/avcodec.h" #include "libavformat/avformat.h" #include "libavutil/avutil.h" #include

ffmpeg for android, out of memory on encoding h264

与世无争的帅哥 提交于 2019-12-14 03:59:44
问题 I'm getting an weird error when enconding a video with ffmpeg on android Failed to inject frame into filter network: Out of memory Althoug is a pretty objective error, I do believe this is some "generic message" for another problem, because the video I used for testing is 17MB and less than 11 seconds length and I've sucessfully tested with videos bigger than 200MB and longer than 5min This problem happens to any video vertical videos recorded on my phone (the videos were recorded and play

compile ffmpeg with libx264 for android

余生颓废 提交于 2019-12-11 13:57:58
问题 What is wrong with the libx264 path please anyone help me? I have compiled libx264 latest source code. When I compiled the ffmpeg source using below x264 path . It wont allow me to record video. Note that: I am compiling libraries by linux #!/bin/bash ###################################################### # Usage: # put this script in top of FFmpeg source tree # ./build_android # It generates binary for following architectures: # ARMv6 # ARMv6+VFP # ARMv7+VFPv3-d16 (Tegra2) # ARMv7+Neon

Yet another ffmpeg/libx264 issue

两盒软妹~` 提交于 2019-12-11 10:24:12
问题 My current situation is; ffmpeg and libx264 has been compiled for Android, as shared and static libraries respectively. Since I have libx264.a and libffmpeg.so with me, only thing that remains is to link them and obtain a ffmpeg library that would allow me to proceed with my application. However, some questions remain unanswered. I am using Ubuntu with a virtual machine under Windows 7. I am using x264's last version, ffmpeg 0.10.4 release and NDK 7. I have tried to adjust flags (extracf and