ffplay | porting ffplay and sdl2 to android , based on FFmpeg decode | Media library
kandi X-RAY | ffplay Summary
kandi X-RAY | ffplay Summary
porting ffplay and sdl2 to android, based on FFmpeg decode.
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 ffplay
ffplay Key Features
ffplay Examples and Code Snippets
Community Discussions
Trending Discussions on ffplay
QUESTION
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:17I think Popen is what you are looking for.
Here is a code sample:
QUESTION
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:54You 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:
QUESTION
I'm trying to convert a .ts file with this output to mkv:
...ANSWER
Answered 2021-May-02 at 08:14Try to run with the -ss
flag.
QUESTION
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:17According 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
orgmtime
, 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:
QUESTION
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:42Tell it which audio you want with -map
:
QUESTION
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:06mpv
ffplay
is more of a concept or simple tool than a real player. mpv is like a "super" ffplay
and supports playlists:
QUESTION
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:10It was the issue with only that file which i used for any other files is working fine with this command
QUESTION
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 2I answered the question myself in a follow up answer, hopefully it can be useful for someone else with the same problem.
Update 1So 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"
- 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:27So 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.
Solutionffmpeg -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
QUESTION
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:43This 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.
QUESTION
I'm trying to rotate videos and increase its sound as well as change itsframe rate
...ANSWER
Answered 2021-Mar-28 at 20:44It looks like you are missing quotation marks "
character in two places.
The following command works (weird audio, but no errors):
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ffplay
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