ffplay | porting ffplay and sdl2 to android , based on FFmpeg decode | Media library

 by   ericbars C Version: Current License: Apache-2.0

kandi X-RAY | ffplay Summary

kandi X-RAY | ffplay Summary

ffplay is a C library typically used in Media applications. ffplay has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

porting ffplay and sdl2 to android, based on FFmpeg decode.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              ffplay has a low active ecosystem.
              It has 11 star(s) with 3 fork(s). There are 1 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              ffplay has no issues reported. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of ffplay is current.

            kandi-Quality Quality

              ffplay has no bugs reported.

            kandi-Security Security

              ffplay has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              ffplay is licensed under the Apache-2.0 License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              ffplay releases are not available. You will need to build from source code and install.

            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 ffplay
            Get all kandi verified functions for this library.

            ffplay Key Features

            No Key Features are available at this moment for ffplay.

            ffplay Examples and Code Snippets

            No Code Snippets are available at this moment for ffplay.

            Community Discussions

            QUESTION

            Is there a way to run a subprocess that opens a window in the background in Python?
            Asked 2021-Jun-09 at 23:04

            I am attempting to call ffplay in Python using subprocess. When ffplay is called, it opens a window with the video and outputs information to the console until the window is closed. I'd like to scrap the output and return to the Python script while the video continues to play (i.e., not closing the window).

            Currently, I have:

            ...

            ANSWER

            Answered 2021-Jun-07 at 10:17

            I think Popen is what you are looking for.

            Here is a code sample:

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

            QUESTION

            missing audio of second video after combining video
            Asked 2021-May-27 at 21:54

            I am trying to add xfade filter and the command is working but audio of second video is missing in output video.

            command is -

            ...

            ANSWER

            Answered 2021-May-27 at 21:54

            You didn't tell ffmpeg what to do with the audio so it just picked the audio from the first input (see stream selection).

            Because you are using xfade you probably want to use acrossfade as shown in Merging multiple video files with ffmpeg and xfade filter:

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

            QUESTION

            Can't write packet with unknown timestamp av_interleaved_write_frame(): Invalid argument
            Asked 2021-May-26 at 18:42

            I'm trying to convert a .ts file with this output to mkv:

            ...

            ANSWER

            Answered 2021-May-02 at 08:14

            Try to run with the -ss flag.

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

            QUESTION

            When using ffplay, how to eliminate milliseconds from timestamp display in the video-filter
            Asked 2021-May-12 at 23:48

            So when specifying a video-filter to display current video-time in 'hms' layout, the filter appends a millisecond value after the seconds-field. I want to eliminate the milliseconds portion.

            So far, my invoked cmd looks like:

            ...

            ANSWER

            Answered 2021-May-07 at 17:17

            According to the documentation:

            hms stands for a formatted [-]HH:MM:SS.mmm timestamp with millisecond accuracy.

            And there's no way to customize this timestamp format. At least not for the hms format.
            The same documentation:

            If the format is set to localtime or gmtime, a third argument may be supplied: a strftime() format string. By default, YYYY-MM-DD HH:MM:SS format will be used.

            So text='%{pts\:gmtime}' without any additional arguments puts out 1970-01-01 00:00:00 (Unix epoch).

            To have it put out 00:00:00 set the 2nd argument to 0 and the 3rd to %H:%M:%S.

            As the pts function can take up to 3 arguments, make sure you escape the colons twice on Windows and three times on Unix to prevent %M and %S from being interpreted as a possible 4th or 5th argument.

            Windows:

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

            QUESTION

            How to include audio in an overlay ffmpeg command?
            Asked 2021-Apr-26 at 23:42

            Using ffmpeg I add a video overlay successfully over an origin video (origin has audio, overlay doesn't). However the audio of the origin video doesn't appear in the result video.

            ...

            ANSWER

            Answered 2021-Apr-26 at 23:42

            Tell it which audio you want with -map:

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

            QUESTION

            can we play ffplay videos continuously?
            Asked 2021-Apr-19 at 18:06

            My requirement is to play ffplay videos as they are joined I do know we can play the one after the other using

            ...

            ANSWER

            Answered 2021-Apr-19 at 18:06
            Use mpv

            ffplay is more of a concept or simple tool than a real player. mpv is like a "super" ffplay and supports playlists:

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

            QUESTION

            Using -ss and -to to play a video using ffplay
            Asked 2021-Apr-15 at 09:10

            I want to display the video before trimming it

            to trim we can use 2 ways:

            method 1:

            ...

            ANSWER

            Answered 2021-Apr-15 at 09:10

            It was the issue with only that file which i used for any other files is working fine with this command

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

            QUESTION

            Getting ffmpeg to capture the full screen of xfvb-run screen running puppeteer script, and send it over rtmp
            Asked 2021-Apr-14 at 13:27
            My problem

            I can't get ffmpeg or xvfb-run to stream the full screen to ffplay/videolan, it only captures a part of the screen.

            Update 2

            I answered the question myself in a follow up answer, hopefully it can be useful for someone else with the same problem.

            Update 1

            So the problem is definitely with xvfb-run, since the two following commands, still give a webm file, that only show parts of the screen

            ffmpeg -f x11grab -i :99 -g 50 -b:v 4000k -maxrate 4000k -bufsize 8000k -f webm -s 384x216 "blank.webm"

            xvfb-run -n 99 -a --server-args="-screen 0 1024x8000x24 -ac -nolisten tcp -dpi 96 +extension RANDR" "node index.js"

            What I've tried
            • I've tried changing ffmpeg command and xvfb-run, for example adding "-vf format=yuv420p" or "-filter:v "crop=iw-400:ih-40,scale=960:720" to ffmpeg command
            • I've tried to show other applications under xvfb-run instead of puppeteer (chrome..)
            • Recording screen with ffmpeg and saving it to a file, to see if there's a problem with the rtmp stream

            But still no luck. That's why I'm reaching out to the stackoverflow community.

            xvfb-run command

            xvfb-run -n 99 -a --server-args="-screen 0 1024x8000x24 -ac -nolisten tcp -dpi 96 +extension RANDR" "node index.js"

            ffmpeg command to capture xvfb-run virtual screen

            ffmpeg -f x11grab -i :99 -f pulse -i default -c:v libx264 -c:a aac -g 50 -b:v 4000k -maxrate 4000k -bufsize 8000k -f flv -listen 1 rtmp://localhost:4444/stream

            And finally to show the rtmp stream

            ffplay -fflags -nobuffer -flags low_delay -probesize 32 -flags low_delay -analyzeduration 0 -i rtmp://localhost:4444/stream

            The puppeteer script (index.js) which xfvb-runs

            ...

            ANSWER

            Answered 2021-Apr-14 at 13:27

            So I kept debugging and trying to solve it. And the problem was with ffmpeg and in which order I added flags.

            Note to self: When using ffmpeg order of flags is very important.

            Solution

            ffmpeg -video_size 640x1208 -f x11grab -i :99 -c:v libx264 -c:a aac -g 50 -b:v 4000k -maxrate 4000k -bufsize 8000k -f flv -listen 1 rtmp://localhost:4444/stream

            Where I added -video_size 640x1208 right after ffmpeg command.

            I found the video_size flag in this stackoverflow answer - https://stackoverflow.com/a/32748769/337587

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

            QUESTION

            How to downscale video using subprocess and then piping the data over to stdout and play using ffplay and save it as well
            Asked 2021-Apr-02 at 16:43

            I am trying to use ffmpeg to downscale a video and pipe the stdout data to ffplay to play the new downsized video by piping it to ffplay on aws lambda.

            This is the command I have so far, but for some reason adding a scale option is not working.

            I am trying to run this command locally before I deploy it on python with subprocess command. I need the raw video to be able to save into database for streaming the data in realtime.

            %ffmpeg -i sample.mp4 -vf scale=240:-2 -f mpegts -c:v copy -af aresample=async=1:first_pts=0 - | ffplay -

            adding the scale optioin for some reason is saving the video as the name scale=240:-2 which does not make sense.

            ...

            ANSWER

            Answered 2021-Apr-02 at 16:43

            This command makes it so that you can convert it in memory rather than saving the video to a local storage as mp4. You can remove the -movflags if you are formatting it as mpegts, but in the case of mp4 you need fragmented flag.

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

            QUESTION

            applying multiple filter ffmpeg
            Asked 2021-Mar-28 at 20:44

            I'm trying to rotate videos and increase its sound as well as change itsframe rate

            ...

            ANSWER

            Answered 2021-Mar-28 at 20:44

            It looks like you are missing quotation marks " character in two places.

            The following command works (weird audio, but no errors):

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

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

            Vulnerabilities

            No vulnerabilities reported

            Install ffplay

            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
            CLONE
          • HTTPS

            https://github.com/ericbars/ffplay.git

          • CLI

            gh repo clone ericbars/ffplay

          • sshUrl

            git@github.com:ericbars/ffplay.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