my array in Python looks like this [['0.3251', '6.5712', '12.8174', '13.3979', '13.9784', '14.5357', '14.9537', '15.1394', '15.5109', '16.3236', '16.5094', '16.6951', '17.2524', '17.6704', '18.0419']] and I need to put put one image on that exact same second like in that array with ffmpeg. How can I do that?
For an example I want a video with a song
on first 0.3251s of the video i want to put img1 second 6.5712s of the video i want to put img2 and so on.
ffmpeg put multiple pictures into different frames
769 Views Asked by dopuu At
1
There are 1 best solutions below
Related Questions in PYTHON
- How to store a date/time in sqlite (or something similar to a date)
- Instagrapi recently showing HTTPError and UnknownError
- How to Retrieve Data from an MySQL Database and Display it in a GUI?
- How to create a regular expression to partition a string that terminates in either ": 45" or ",", without the ": "
- Python Geopandas unable to convert latitude longitude to points
- Influence of Unused FFN on Model Accuracy in PyTorch
- Seeking Python Libraries for Removing Extraneous Characters and Spaces in Text
- Writes to child subprocess.Popen.stdin don't work from within process group?
- Conda has two different python binarys (python and python3) with the same version for a single environment. Why?
- Problem with add new attribute in table with BOTO3 on python
- Can't install packages in python conda environment
- Setting diagonal of a matrix to zero
- List of numbers converted to list of strings to iterate over it. But receiving TypeError messages
- Basic Python Question: Shortening If Statements
- Python and regex, can't understand why some words are left out of the match
Related Questions in FFMPEG
- I need an azure product that executes my intensive ffmpeg command then dies, and i only get charged for the delta. Any Tips?
- Converting MP3/MP4 to WAV in the Frontend Using ffmpegwasm with Next.js Results in Module Not Found Error
- Get remote MKV file metadata using nodejs
- After using ffmpeg to remove some streams in mkv file, it takes much longer to open the media file in potplayer in Windows
- Implementing trim and fade filters with ffmpeg - MP3
- Merge Azure mp4 blobs via API (Preferred Azure)
- Overlaying frame number with ffmpeg
- Merge (concat) all video file present in '43. DP (Part1)' and put it into '43. DP (Part1)' and give name merged (concat) file to folder name
- I get an error when republishing the image I shot with ros2 run ffmpeg
- libav audio latency / cannot set audio_buffer_size
- An error occurred after encoding with h264_nvenc
- ffmpeg - excerpt from a large video file, preserving its additional streams
- Babel Loader error when using ffmpeg.wasm in CRA react app
- define the input FPS of a stream using ffmpeg-python
- NodeJS stream MKV as MP4 video
Related Questions in VIDEO-PROCESSING
- How to extract video embedded subtitle from a video URL and show in a text widget in flutter?
- MediaMetadataretriver getFrameAtTıme is not working
- How to convert frame features and frame mask as a single variable data?
- How do I Circle Crop a video?
- Splitting a video into pieces
- Video compositon with moviepy, 'can't sync to MPEG frame' error
- Image-Processing using Action Camera through Wi-fi in raspberry pi 4
- cv2.VideoWriter_fourcc(*'mp4v') outputs seem to be corrupted
- How to record audio and video using gstreamer in c code
- 10 bit Video Processing in Python with OpenCV
- Retrieving VUI after AVC/HEVC decoding from *.yuv file?
- OpenCV video transparency too slow, video lagging, can i speed it up?
- Is it possible to get video frames with flutter media_kit?
- Libmpeg2 decoding errors
- Finding overlapping portion of two videos with slightly different start and end times
Related Questions in PYFFMPEG
- How to interpret ndarray in a pyAV AudioFrame?
- Getting an error from pyffmpeg when running as a submodule
- ffmpeg continue streaming to twitch use case
- How to merge two videos, so that the scale of the video takes up 50% of the size of the output video
- delay audio stream in ffmpeg python
- Extract single frame based on position provided by subtitle/srt file and generate video of extracted stills
- How we can get FFMPEG command from aftereffect json file(exported from bodymovin)?
- how to use multiple videos with background in it with color correction
- How to use -vf format="gray" in ffmpeg python
- FFMPEG change videos size
- Hide subprocess output and store it in a variable in Python
- FFMpeg : Convert image + audio to MP4 60FPS including FadeIn / FadeOut and overlay
- Merging mp4 files with different resolutions using ffmpeg
- Very small black video at the beginning after using ffmpeg to crop video?
- Is there a Python Library to extract video metadata such as [Title, Description, Caption/Subtitles]?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Unfortunately I do not know much about Python but here is an example of a Windows batch file how you can create a video with images and sound by using FFmpeg.
This example uses
mp3file with sound, threejpgfiles with images and two of your starting points:0.3251and6.5712. First image will be displayed since start of the output video to0.3251, second image will be displayed from0.3251to6.5712, third image will be displayed from6.5712to the end of the sound. You can easily add more input images and starting points by following the same pattern (I included one example at the end of this post).-itells FFmpeg to use the following input as the source of stream(s) for the next operations.input.mp3is the input file with a sound.inputX.jpgare the input files with an images.-looptells FFmpeg to loop the next input image.-filter_complextells FFmpeg to use the following filters.trimis the type of filter to set the duration of specific image, it can be used withdurationoption or withstartandendoptions (this is where you need to paste values of your starting points).concatis the type of filter to merge two previous parts of video into one part that can be used for the nextconcatoperation.-maptells FFmpeg what streams (video and audio) should be used to create the output file.-ctells FFmpeg what codecs should be used to encode video and audio to create the output file.-shortesttells the FFmpeg to use the shortest input stream as the duration of the output (in this case it is the input file with a sound as all images are in infinite loops).^is Windows batch specific character used to be able to split one long command to a several lines of code. You can delete all^and use one long command instead:How to add the next image?
You need to add one more image as the input and change last few lines in the current set of filters:
with:
The letters
[a],[b],[c]are the names of the variables - you can use any combination of letters here, not just one letter. For example:[aa][ab]concat[ac]would also work and[video]is a also a variable name used in this command.