sndio | Portable version of OpenBSD 's lightweight audio | Audio Utils library
kandi X-RAY | sndio Summary
kandi X-RAY | sndio Summary
Portable version of OpenBSD's lightweight audio & MIDI sub-system
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 sndio
sndio Key Features
sndio Examples and Code Snippets
Community Discussions
Trending Discussions on sndio
QUESTION
I'm using ffmpeg as:
...ANSWER
Answered 2022-Apr-07 at 22:14I think you are quite confused about the crop
filter options. Here are the descriptions of the first 4 options:
w, out_w The width of the output video. It defaults to iw. This expression is evaluated only once during the filter configuration, or when the ‘w’ or ‘out_w’ command is sent.
h, out_h The height of the output video. It defaults to ih. This expression is evaluated only once during the filter configuration, or when the ‘h’ or ‘out_h’ command is sent.
x The horizontal position, in the input video, of the left edge of the output video. It defaults to (in_w-out_w)/2. This expression is evaluated per-frame.
y The vertical position, in the input video, of the top edge of the output video. It defaults to (in_h-out_h)/2. This expression is evaluated per-frame.
- If you want to halve the width, then the first option must be
in_w/2
regardless of which side to crop from. - Height is unchanged, so always use
in_h
- To crop from left, x offset must match the width, so
in_w/2
. To crop from right, no pixels are removed on the left edge, so must be0
. - Because no rows are removed, use
y = 0
.
So to summarize:
- Crop the left edge:
crop=in_w/2:in_h:in_w/2:0
- Crop the right edge:
crop=in_w/2:in_h:0:0
QUESTION
I need to put overlay images to a video. It is working on Android without problem. But on iOS platform, if I try 23-24 overlay images, it is working correctly. If I try it with 30+ images, it gives memory allocation error.
Error while filtering: Cannot allocate memory
Failed to inject frame into filter network: Cannot allocate memory
Every overlay image is around 50 kb Video is around 250 MB I tried with smaller images, so I can use 40+ images without problem, so it is not related with counts, it is related with file size. I think there is a limit like 1MB for complex filter streams.
I tried lots of thinks but no luck.. I have two questions:
- Is my ffmpeg command correct?
- Can you suggest me any improvements, alternatives?
Update: What am I trying to do?
I'm trying to make burned subtitled video. But I also need to support emoji too. So I figured out it like these steps:
- Create all subtitle items as .png images.
- Overlay these images to video with correct timing.
FFmpeg Command:
...ANSWER
Answered 2022-Mar-20 at 00:13What you are experiencing is the nature of large filtergraphs. Every link between filters requires a frame buffer (at least 6 MB) and filtering operation itself may require additional memory space. So, it must use up your iDevice's memory (which must be smaller than the Androids).
So, the solution must be the one which minimizes the number of filters, and you can do that by using the concat
demuxer so all your images originates from one (virtual) source, and use overlay
with more complex enable
option.
png_list.txt
QUESTION
I have a application for Google App Engine(GAE), using Vue.js on the frontend and Flask on the backend. My app allows users to upload large video and will analyze it. But since GAE's upload size limit is 32MB, so I allow users to upload directly to Google Cloud Storage(GCS) using signed url.
The problem I am facing is that the user can successfully upload the video to GCS, but on the backend(flask) when downloading the video for analysis, get the error below:
...ANSWER
Answered 2022-Feb-13 at 07:16You are using formData with the HTTP PUT method which corrupts the upload as a binary data stream is expected and not MIME data.
To use formdata:
QUESTION
I converted an avi file to a mp4 file with the following command, but the converted mp4 file produced no audio when played with QuickTime (no such problem with other players). I was able to convert mkv to mp4 with the same command without the audio problem.
...ANSWER
Answered 2022-Feb-06 at 19:04From your log I can see that your input audio is MP3.
QUESTION
I am using flutter ffmpeg and try to save output video in local storage but getting error, plese help me I tried too many solutions but none of them worked. Thanking you :)
getting output path by path_provider package
ANSWER
Answered 2021-Dec-27 at 12:10I got solution so I answered here, issue is not of flutter_ffmpeg, issue is caused because app had not permission to write in external storage to resolve this add "MANAGE_EXTERNAL_STORAGE" in mainfest.xml file and set output path is File('storage/emulated/0/my_folder/o.mp4').path , and everything works fine.
QUESTION
Got this Dahua vto stream link: that works with omxplayer, but vlc won't play it:
...ANSWER
Answered 2021-Nov-10 at 05:29So what happened is that the library in Debian providing support for live555 was removed in February of this year, this affects all downstream distros including but not limited to RPi OS and Ubuntu:
https://askubuntu.com/a/1363113
The 2 active versions were 2020.01.19-1 and 2018.11.26-1.1, Live555 has since added GPL license headers to the offending files, however the RFC issue remains.
Now you may be tempted to just download the latest Live555 source code and compile it... it does not work. There have been changes to function names and structures referenced by VLC, and as such VLC will not compile against the source. You need to get an older version, I specifically used this one, which is a tweaked snapshot from 2020 prior to the modifications that prevent VLC compilation:
https://github.com/rgaufman/live555
The configuration you want is ./genMakefiles linux-with-shared-libraries
, I do not know if it is required but since my system is x86-64-bit I added -m64 to the compiler options first
After compilation and install, I went on to compile VLC, adding '--enable-live555'
and '--with-live555-tree=extras/live555-master'
after placing the root Live555 folder in the VLC extras folder, however VLC failed to compile, it turns out the Live555's make install does not copy all the header files needed to where VLC is looking. They were dropped as 4 subfolders into /usr/local/include/, and the actual libs into /usr/local/lib/. Adding the correct CXX/CPP flags will make it look where they were put, however I put them all in a single folder and used 1 flag.
I also had to '--disable-mod'
to work around a dependency version issue that I had no interest in fixing, since I do not use modplug or any mod files.
50 minutes later... VLC successfully compiled! However it was expecting the libraries for Live555 to be in /usr/lib/ not /usr/local/lib/, since it took so long to compile I was just fine with linking or copying the libraries into the expected folder, and after that VLC works with RTSP when linked to the new file. Or you can choose to maintain the original VLC and run the new file directly if you need to load the camera feeds.
QUESTION
I am trying to overlay a png over a transparent gif using FFMPEG. The problem is the command is running flawlessly but the output file in converting transparent pixels into black or white.
I am using the following command.
...ANSWER
Answered 2021-Oct-15 at 15:44QUESTION
I'm implementing a video editing feature on my Flutter App using the Flutter-FFmpeg package, [Adding watermarks on video] specifically, while executing the code I got this error:
...ANSWER
Answered 2021-Aug-07 at 04:41This happens when target output file already exists. Make sure it is not the same file as the input. Then add -y
to force overwrite output in case it already exists.
QUESTION
Issue : I have 7 images in a list (with different size, resolution and format). I am adding an mp3 audio file and fade effect while making a slideshow with them, as i am trying to do it by following command
...ANSWER
Answered 2021-Mar-17 at 17:49Remove -framerate 1/5
. That's too low of a value for your given -t
and it won't work well with fade (image a fade at 0.2 fps). You're only applying that to the first input, while the rest are using the default -framerate 25
. Remove it and the image will be visible.
Alternatively, use -framerate 1
for each image input, and add fps=25
after each setsar
. It will be significantly faster.
QUESTION
I am adding video stream capture functionality to a Xamarin Forms project. I am trying to use VLC's LibVLCSharp.Forms (https://github.com/videolan/libvlcsharp) package and the Mobile ffmpeg Xamarin wrapper package, Laerdal.Xamarin.FFmpeg.* (https://github.com/Laerdal/Laerdal.Xamarin.FFmpeg.iOS). However, the internal ffmpeg library from VLC is conflicting with the ffmpeg wrapper and is built with different flags which exclude functionality that I need.
For native development, it looks like you can configure a preferred library with the OTHER_LDFLAGS
flag in the Pods-.debug.xcconfig
file but I don't see where to do that with Xamarin.Forms.
Source: https://github.com/tanersener/mobile-ffmpeg/wiki/Using-Multiple-FFmpeg-Implementations-In-The-Same-iOS-Application
How can I configure Xamarin iOS builds to prefer the mobile ffmpeg library over the VLC ffmpeg library? If I am able to use the mobile ffmpeg library, will it cause issues with VLC?
Here is a log message when I try to run commands with ffmpeg. As you can see, ffmpeg's internal library paths reference "vlc":
...ANSWER
Answered 2021-Feb-26 at 05:52The solution is in one of the link you shared
For native development, it looks like you can configure a preferred library with the OTHER_LDFLAGS flag in the Pods-.debug.xcconfig file but I don't see where to do that with Xamarin.Forms. Source: https://github.com/tanersener/mobile-ffmpeg/wiki/Using-Multiple-FFmpeg-Implementations-In-The-Same-iOS-Application
Xamarin.Forms is still native development, so you can do this the same way a Swift iOS developer would.
- You need to open your native iOS app project in XCode (not the shared project one).
- Create a xcconfig file. This guide looks good enough with screenshots to help you navigate XCode.
- A xcconfig look like this. You want to put the mobile-ffmpeg frameworks before the mobilevlckit one.
- Xamarin.iOS might require some framework as well, so before all this I'd build your app in verbosity diagnostics mode to see what the current
OTHER_LDFLAGS
value is.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install sndio
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