demuxer | A tool for demux ts/mp4/flv by typescript
kandi X-RAY | demuxer Summary
kandi X-RAY | demuxer Summary
This tool can be used on platforms such as HTML5 players or Node.js.
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 demuxer
demuxer Key Features
demuxer Examples and Code Snippets
Community Discussions
Trending Discussions on demuxer
QUESTION
I'm using ffmpeg filtergraphs to extract and concatenate chunks of videos. As a simple example, consider this, which takes an input file with a video stream and an audio stream and produces a 20-second output that includes timestamps 00:10-00:20 and 00:30-00:40 of the input:
...ANSWER
Answered 2022-Mar-21 at 20:18No, you cannot. FFmpeg filtergraph can only add subtitle text to video (e.g., subtitle
and ass
filters). It has no way of manipulating subtitle streams.
Your best bet is the concat
demuxer. You can list the same file multiple times with different start and end times. In your batch file, you can create the concat list in memory and pipe it into FFMpeg.
[edit]
Assuming that in.mkv
has it all: video, audio, and subtitle streams. Then you can prepare a concat demuxer file like:
listing.txt
QUESTION
I have set this duration for lists on Windows over the setting 'demuxer', however the android version does not contain this option.
I'm actually creating the list dynamically over a php file in a server, so it looks like this:
#EXTM3U #EXTINF:-1, image1.png #EXTINF:-1, video1.m4v
So I wonder if there is an option in android to make images (not videos) display over a minute and if there is no such option, maybe I can add something to the list to make images display longer?
I have seen a tutorial for the list to use 1000 but it is a tag based language (html?), which seems not to be the case of my list. (link to tutorial: http://chris-reilly.org/blog/vlc-slideshow-duration/)
It is worth mentioning that in the Android version there is a small input for VLClib, but I was unable to find anything related to what I'm looking for.
Any help will be appreciated.
...ANSWER
Answered 2022-Feb-28 at 13:03The answer is #EXTVLCOPT:image-duration=100 after each image file. (change 100 for the number of seconds.
QUESTION
ffmpeg.js uses a custom build of FFmpeg to keep its size low. I am trying to convert a .ts
into a .mp4
which has always been an easy task on my desktop (especially since they are even using the same codecs, aac and h.264), but on the custom build, I get the error sample1.ts: Invalid data found when processing input
.
The command being run is ffmpeg -i sample1.ts -report -c copy out.mp4
.
Other questions I see on this topic get past the initial reading of the input file and I cannot find good resources on what my problem is or how to fix it.
This is a rather nondescript error so I am not sure exactly what the problem is. I assume it means that this build does not have support for ts
files, but I am not even sure what that means in terms of codecs and muxers.
From the custom build make file, the enabled demuxers and decoders are
...ANSWER
Answered 2021-Nov-04 at 17:44This is very similar to How to compile ffmpeg to get only mp3 and mp4 support, but with a few different compilation options:
./configure --disable-everything --disable-network --disable-autodetect --enable-small --enable-demuxer=mpegts --enable-muxer=mp4 --enable-parser=aac,h264 --enable-decoder=aac,h264 --enable-protocol=file
The the link above for more details.
QUESTION
I'm writing a video/audio player that uses libav/ffmpeg for demuxing and decoding MPEGTS streams over UDP. One problem that I'm dealing with is that sometimes the stream is looping and when it loops, my player breaks down.
The issue is that once the stream loops, the new packets have widely different dts/pts. My player is relying on pts for video - audio synchronisation so it's important that I can handle pts properly.
Whenever the server loops the stream, it sends a discontinuity flag, which I can confirm is being correctly received by libav mpegts demuxer (I did some digging in the code and inspected the debug logs). However, it seems to me that the demuxer doesn't act on the discontinuity flag much. In other words, from the point of view of the user I can't tell that there's a discontinuity, apart from the dramatic jump in dts/pts.
Is there a way I can reliably tell that there was a discontinuty so I can recalculate my timestamps and continue playback smoothly?
...ANSWER
Answered 2021-Sep-24 at 12:41I had similar issues with libav's TS demuxer and gave up using it. Instead I found this project which lets you have greater control on demux process.
QUESTION
I have a discord bot hosted on heroku which among it's other functionalities, also provides members to listen to music (much like the famous Rythm bot). However, every time I play a song, the bot crashes and restarts itself after 7-10 of playing songs. This only seems to happen when I'm playing music. Other than that, the bot seems to operate smoothly without any issues or crashes. I've included the start of the error message I get below (full error is very long)
...ANSWER
Answered 2021-Sep-17 at 08:35Often times when making bots (such as music bots), we can get these strange errors that are very difficult to debug as it is likely an issue with the library/discord API. I've gotten similar errors regarding permissions.
Are you using .catch()
on events/promises? Based on the error message, it suggests you are not properly handling errors.
This could also be due to trying to play audio that is not downloaded yet. You should always use a promise when getting the audio and wait for it to return before trying to play it, then finally using .catch()
.
QUESTION
I am using the most recent version of the Discord.js API which requires the use of Discord.js/voice to play audio in a voice chat. I am trying to create my own music bot. I am, however, having trouble with actually playing the audio.
I think the issue is with how I create the AudioResource object although I have attempted to follow the examples on the discord guide.
Here are the relevant parts of the code:
...ANSWER
Answered 2021-Sep-18 at 00:11I have found the solution!
I was right in my assumption that the creation of the AudioResource was failing. Although it seems it was not me doing something wrong, rather the ytdl-core package. I haven't been able to find out what exactly was going wrong there, but having now switched to using the play-dl package to stream my music into an AudioResource as follows:
QUESTION
I have a problem with libav. I am using a demuxer (not libav) and I am sure that it is working well. So, problem starts after demuxing.
To decode H264 25 fps video, I am supplying PES PTS values to AVPacket PTS value. Libav then decodes AVPacket into AVFrame and calculates an increasing PTS. Everything seems normal, even trace log, but output video is stuttering constantly. I tried to use both pts and best_effort_timestamp.
I think something is wrong with PTS/DTS values. If values are correct, then problem may related to decoder setup. How can I solve this?
...ANSWER
Answered 2021-Aug-19 at 10:36Problem solved.
PTS values were valid all along. After decoding, I was converting pixel format with swscale. Instead, used avfilter and problem solved.
QUESTION
I'd like to be able to stream the video from my webcam to an Android app with a latency below 500ms, on my local network.
To capture and send the video over the network, I use ffmpeg.
...ANSWER
Answered 2021-May-20 at 11:24I do not know a native low latency player in Android.
However you can use a WebView
in Android Studio and use a player in the web.
With this solution I streamed the webcam of my pc to my phone (in the local network) with livecam.
They use websockets to transmit the video frame by frame, which is not ideal. With this method I had 370 ms of latency.
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 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 demuxer
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