Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
I have a FLAC audio file that I want to slice into 5 second segments. I don't need to resample or change the data in any way.
What tools/libraries are there for this? Should I be looking at ffmpeg? I actually want to create a HLS stream so a tool that would do that would be a bonus but if I can simply chunk the audio data I can create the playlist myself.
Use the segment muxer:
ffmpeg -i input.flac -f segment -segment_time 5 output_%03d.flac
In this example outputs will be named output_001.flac, output_002.flac, etc.
Add -reset_timestamps 1 if your need to reset timestamps at the beginning of each segment.
Since you asked there is also the HLS muxer, but that's a different topic from the question title.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
Learning to speed up and slow down video using the ffmpeg setpts filter, but I am struggling to get a simple expression to work.
ffmpeg -i .\F5-ff.mp4 -filter:v "setpts=0.25*PTS" ff-test3.mp4
I get the output file, but it is not any faster than the original.
I'm sorry if this has already been addressed. Most related post I've found were trouble shooting more complex operations past this step. Im working in a powershell terminal fyi.
Just realized what was happening...I was looking at the total length of the video, but closer look showed that video portion was actually faster, but total length of file remained unchanged because audio track had not been shortened.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
For a one hour dash cam video in normal speed, is it possible to create a smooth timelapse video from it?
Most tutorials online I found about "timelapse + ffmpeg" are with static jpeg files combined into a timelapse video. These often result jiggle between frames, are the any specific parameters which would make the video looking very smooth & stable?
Should I just setpts=0.5*PTS for the trick? Any must-have or little-known tricks?
Update: this question is asking for specific programmable ffmpeg parameters.
Yes, that's the way specified in the ffmpeg wiki: How to speed up / slow down a video.
ffmpeg -i input.mkv -filter:v "setpts=0.5*PTS" output.mkv
setpts also supports expressions if you feel creative and want to speed up/ slow down based on a curve rather than a constant value.
Eg: -filter:v "setpts=gauss(T/100)*PTS"
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I have imported PAL DV. When trying this
ffmpeg -i my_video.dv output.mp4
I get interlacing issues.. So I need to deinterlace the input somehow...
This did the trick!
ffmpeg -i my_video.dv -vf yadif output.mp4
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I want to convert a song and jpg file into a mpg video. What is the exact command for that.
I tried this one Add an image to mp3, and convert it to a video file using ffmpeg, but couldnt understand what is loop input and things.
Help will be appreciated.
Parminder
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
any one can give me a hind how to split video (and can be played in separeat parts) ,by split here I mean to split it to 4 parts for example and each part can be running (paying)
You could try using ffmpeg with the -ss option to seek to a point in the video and then use -vframes or -t to extract a specific number of frames or seconds, respectively.
See http://ffmpeg.org/ffmpeg-doc.html