kandi X-RAY | ffserver Summary
kandi X-RAY | ffserver Summary
ffserver
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ffserver
ffserver Key Features
ffserver Examples and Code Snippets
Community Discussions
Trending Discussions on ffserver
QUESTION
I'm trying to use ffmpeg to prepare a mp4 file which is vertical recorded for upload to youtube. (on a synology DS220+) In the output file I want to have no black bars on the side but blured sodebars of the movie itself. This I'm trying to do whit this code (in the end I want to automate this process, but maybe there is a better way to do this):
...ANSWER
Answered 2021-Mar-14 at 17:24Your ffmpeg
is from 2015 and is too old. Try upgrading using SynoCommunity.
QUESTION
i follow instruction to install the ffmpeg (https://github.com/udacity/nd131-openvino-fundamentals-project-starter/blob/master/linux-setup.md)
...ANSWER
Answered 2020-Jul-04 at 17:11FFmpeg's FFServer feature has been removed from the main release.
You'll have to bring up and older version of FFmpeg and install that.
Here are some instructions:
Also if you use Docker you can use this version of the Alpine distro. The apk version of ffmpeg is a bit older so using the below Dockerfile actually installs an ffmpeg version that has ffserver.
QUESTION
I've been trying to get ffmpeg to stream in rtmp but connection to port 1935 is always refused. I really don't know what else I can do to allow this connection.
Here is what specs I'm running.
- Ubuntu 18.04 (tried with 19.04) however same issue - here is why I think I've made a mistake
- No Nginx installation at the moment
- FFMPEG "ffmpeg version 3.4.6-0ubuntu0.18.04.1 Copyright (c) 2000-2019 the FFmpeg developers built with gcc 7 (Ubuntu 7.3.0-16ubuntu3)"
This is the script I run:
...ANSWER
Answered 2019-Aug-09 at 12:21I figured it out, I was using Nginx RTMP module - Nginx RTMP for some reason doesn't work well on Ubuntu but fine with Alpine 3.8 - As soon as I started a nginx rtmp docker container and exposed 1935 and 80 everything started working fine. Listen learnt, never install nginx rtmp module on ubuntu.
QUESTION
I am using below command to merge videos removing audio-
...ANSWER
Answered 2020-May-03 at 17:24You have to concat the filtered streams, not the source streams, so change the input labels i.e.
[v0] [v1] concat=n=2:v=1:a=0
Add -an
to remove audio.
QUESTION
I am trying to append two .mp4 videos on Android. Following an unsafe file name error with command:
...ANSWER
Answered 2020-Apr-18 at 13:36Separate the option and value i.e. "–safe", "0"
QUESTION
I want to change video speed using ffmpeg framework. I used this command for that:
ffmpeg -y -i /storage/extSdCard/Video/1.avi -filter_complex [0:v]fps=50.0, setpts=0.5*PTS[v];[0:a]atempo=2.0[a] -map [v] -map [a] -preset ultrafast /storage/emulated/0/VID-20170716-VidRotate1.mp4
How can I guess the duration of the resulting video after slowing down or speeding up video?
This is my whole log in console:
...ANSWER
Answered 2017-Jul-16 at 14:51If you change each timestamp (Presentation Timestamp, PTS) to be half of its original value, your video will be half as long.
So, if the PTS is x * PTS
, then your final duration will be x * duration
.
Example:
QUESTION
I'm trying to install ffmpeg via a multistage docker build
Here is the ffmpeg image that contains the ffmpeg binaries
...ANSWER
Answered 2019-Jul-29 at 13:15It makes sense that you need to use the same base image for compatibility reasons. I was using jrottenberg/ffmpeg
(which defaults to ubuntu). I should have been using jrottenberg/ffmpeg:3.3-alpine
since I'm using the alpine-based pm2 image.
Also, building ffmpeg depends on some shared libraries, so copying /usr/local wasn't enough to make it work. I'm sure there's a more graceful solution, but I ended up just copying the root dir, which did the trick.
QUESTION
I have an EC2 instance with Apache as a reverse proxy and ffserver as a streaming server. There is an ELB (Classic) in front of the EC2 instance which works as an SSL termination point.
Apache configuration is rather simple:
...ANSWER
Answered 2019-Jul-20 at 02:21As OP shared with his edit, the issue of connections not getting closed can be resolved with a change of load balancer type. This answer focuses on why this change has such an affect?
There seems to be an issue within Classic Load Balancer (ELB
). I've found the following posts with very similar issues;
- ELB - server keeps sending data to disconnected clients for hours
- Is there a way to lower the LBS KeepAlive?
- AWS ELB servlet client disconnection detection
It seems the issue stems from ELB
not being able to detect the client dropping from a connection. Especially when back-end is supplying some sort of data in a periodical manner, e.g. live audio stream, heartbeat, etc.
There doesn't seem to be a way to disable the keep-alive
setting of load balancers, yet, somehow, only with ELB
this trouble occurs.
I couldn't find exact feature that is creating this behavioural difference between ELB
& ALB
. I think the reason is either due to;
- Improved Health Checks in
ALB
, and/or - an internal structural difference that is not visible to us users, that somehow keeps this issue from happening on
ALB
I think the issue resolves when Application Load Balancer (ALB
) is used due to said improvements and it being much more flexible.
Check here for more on the differences between ELB
, ALB
, and NLB
ps. AWS support forums are terrible, all the good support & tips are paywalled and stored within PMs between them & their premium customers.
QUESTION
I am trying to add text in the video, but I am getting -
Fontconfig error: Cannot load default config file [Parsed_drawtext_0 @ 0xea1aeaa0] impossible to init fontconfig
below cmd to add text using FFmpeg lib-
String[] cmd = new String[] { "-i", savedVideoFilePath, "-vf", "drawtext=text="+"'"+timeStamp+"'"+": fontfile=/android_asset/fonts/Poppins-Medium.ttf: fontcolor=white: fontsize=24: x=(w-tw)/2: y=(h/PHI)+th box=0:","-codec:a" ,"copy" , output_path };
log details -
Error opening filters! 2019-06-10 18:04:58.027 18678-18678/com.rs.vir.debug E/FFMPEG FAilure: FAILED with output : ffmpeg version n3.0.1 Copyright (c) 2000-2016 the FFmpeg developers built with gcc 4.8 (GCC) configuration: --target-os=linux --cross-prefix=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi- --arch=arm --cpu=cortex-a8 --enable-runtime-cpudetect --sysroot=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/sysroot --enable-pic --enable-libx264 --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-fontconfig --enable-pthreads --disable-debug --disable-ffserver --enable-version3 --enable-hardcoded-tables --disable-ffplay --disable-ffprobe --enable-gpl --enable-yasm --disable-doc --disable-shared --enable-static --pkg-config=/home/vagrant/SourceCode/ffmpeg-android/ffmpeg-pkg-config --prefix=/home/vagrant/SourceCode/ffmpeg-android/build/armeabi-v7a --extra-cflags='-I/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all' --extra-ldflags='-L/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie' --extra-libs='-lpng -lexpat -lm' --extra-cxxflags= libavutil 55. 17.103 / 55. 17.103 libavcodec 57. 24.102 / 57. 24.102 libavformat 57. 25.100 / 57. 25.100 libavdevice 57. 0.101 / 57. 0.101 libavfilter 6. 31.100 / 6. 31.100 libswscale 4. 0.100 / 4. 0.100 libswresample 2. 0.101 / 2. 0.101 libpostproc 54. 0.100 / 54. 0.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/data/user/0/com.rs.vir.debug/files/VIR_Customer/EVINV12207201906100303240000/Videos/sample.mp4': Metadata: major_brand : mp42 minor_version : 0 compatible_brands: isommp42 creation_time : 2019-06-10 12:34:55 com.android.version: 8.1.0 Duration: 00:00:06.66, start: 0.000000, bitrate: 3724 kb/s Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, smpte170m/smpte170m/bt709), 720x480, 3464 kb/s, SAR 1:1 DAR 3:2, 30.04 fps, 30 tbr, 90k tbn, 180k tbc (default) Metadata: rotate : 90 creation_time : 2019-06-10 12:34:55 handler_name : VideoHandle Side data: displaymatrix: rotation of -90.00 degrees Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 255 kb/s (default) Metadata: creation_time : 2019-06-10 12:34:55 handler_name : SoundHandle Fontconfig error: Cannot load default config file [Parsed_drawtext_0 @ 0xea1aeaa0] impossible to init fontconfig [AVFilterGraph @ 0xea1cb040] Error initializing filter 'drawtext' with args 'text=java.util.GregorianCalendar[time=1560170097814,areFieldsSet=true,areAllFieldsSet=true,lenient=true,zone=libcore.util.ZoneInfo[id="Asia/Kolkata",mRawOffset=19800000,mEarliestRawOffset=19800000,mUseDst=false,mDstSavings=0,transitions=5],firstDayOfWeek=2,minimalDaysInFirstWeek=4,ERA=1,YEAR=2019,MONTH=5,WEEK_OF_YEAR=24,WEEK_OF_MONTH=2,DAY_OF_MONTH=10,DAY_OF_YEAR=161,DAY_OF_WEEK=2,DAY_OF_WEEK_IN_MONTH=2,AM_PM=1,HOUR=6,HOUR_OF_DAY=18,MINUTE=4,SECOND=57,MILLISECOND=814,ZONE_OFFSET=19800000,DST_OFFSET=0]: fontfile=/android_asset/fonts/Poppins-Medium.ttf: fontcolor=white: fontsize=24: x=(w-tw)/2: y=(h/PHI)+th box=0:' Error opening filters!
please give me the solution for this.
...ANSWER
Answered 2019-Jun-28 at 06:41this problem with fonts which I was using, changed code as below-
QUESTION
I am attempting to build the Parrot SDK and when running the command it continuously fails due to multiple libav package variants not being found. Below is the error message.
...ANSWER
Answered 2019-Mar-19 at 07:49Assuming you followed FFmpeg Ubuntu compilation guidelines here:https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu
The path you looking for must be here: PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ffserver
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page