demuxer | A tool for demux ts/mp4/flv by typescript

 by   goldvideo TypeScript Version: 2.3.0 License: MIT

kandi X-RAY | demuxer Summary

kandi X-RAY | demuxer Summary

demuxer is a TypeScript library. demuxer has no vulnerabilities, it has a Permissive License and it has low support. However demuxer has 3 bugs. You can download it from GitHub.

This tool can be used on platforms such as HTML5 players or Node.js.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              demuxer has a low active ecosystem.
              It has 49 star(s) with 20 fork(s). There are 2 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 1 open issues and 2 have been closed. On average issues are closed in 36 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of demuxer is 2.3.0

            kandi-Quality Quality

              demuxer has 3 bugs (0 blocker, 0 critical, 3 major, 0 minor) and 5 code smells.

            kandi-Security Security

              demuxer has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              demuxer code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              demuxer is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              demuxer releases are not available. You will need to build from source code and install.
              Installation instructions are not available. Examples and code snippets are available.
              It has 244 lines of code, 0 functions and 82 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of demuxer
            Get all kandi verified functions for this library.

            demuxer Key Features

            No Key Features are available at this moment for demuxer.

            demuxer Examples and Code Snippets

            No Code Snippets are available at this moment for demuxer.

            Community Discussions

            QUESTION

            In ffmpeg, how do I process subtitle streams when using filter_complex with trim and atrim?
            Asked 2022-Mar-21 at 22:25

            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:18

            No, 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

            Source https://stackoverflow.com/questions/71535722

            QUESTION

            How to change image display duration in VLC lists for Android?
            Asked 2022-Feb-28 at 13:03

            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:03

            The answer is #EXTVLCOPT:image-duration=100 after each image file. (change 100 for the number of seconds.

            Found in https://forum.videolan.org/viewtopic.php?t=148945

            Source https://stackoverflow.com/questions/71268497

            QUESTION

            FFmpeg custom build support for converting .ts to .mp4 files
            Asked 2021-Nov-04 at 20:52

            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:44

            This 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.

            Source https://stackoverflow.com/questions/69842795

            QUESTION

            libav MPEGTS demuxing - handle loop/discontinuity
            Asked 2021-Sep-28 at 08:17

            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:41

            I 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.

            https://github.com/mmoanis/mpegts_demux

            Source https://stackoverflow.com/questions/69255781

            QUESTION

            Discord.js music bot hosted on heroku crashes after couple minutes
            Asked 2021-Sep-19 at 16:46

            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:35

            Often 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().

            Source https://stackoverflow.com/questions/69192483

            QUESTION

            Discord.js/voice How to create an AudioResource?
            Asked 2021-Sep-18 at 00:11

            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:11

            I 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:

            Source https://stackoverflow.com/questions/69210258

            QUESTION

            Decoding H264 PES with PTS
            Asked 2021-Aug-19 at 10:36

            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:36

            Problem solved.

            PTS values were valid all along. After decoding, I was converting pixel format with swscale. Instead, used avfilter and problem solved.

            Source https://stackoverflow.com/questions/68831455

            QUESTION

            Low latency video player on android
            Asked 2021-May-20 at 11:24

            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:24

            I 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.

            Source https://stackoverflow.com/questions/67572522

            QUESTION

            ffmpeg blured bars on vertical movie - Error while opening encoder
            Asked 2021-Mar-14 at 17:24

            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:24

            Your ffmpeg is from 2015 and is too old. Try upgrading using SynoCommunity.

            Source https://stackoverflow.com/questions/66598423

            QUESTION

            Cannot use Mobile FFmpeg and LibVLCSharp together in Xamarin.Forms project
            Asked 2021-Feb-26 at 05:52

            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:52

            The 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.

            Source https://stackoverflow.com/questions/66340759

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install demuxer

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
          • npm

            npm i demuxer

          • CLONE
          • HTTPS

            https://github.com/goldvideo/demuxer.git

          • CLI

            gh repo clone goldvideo/demuxer

          • sshUrl

            git@github.com:goldvideo/demuxer.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link