How to increase the audio length using FFMPEG? [closed] - audio

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 7 years ago.
Improve this question
I have the MP3 audio file output.mp3 with 00:00:01 length.
I want to convert the audio file to output_test.mp3 with 00:00:50 length.
The audio file should be play repeat at end of length 00:00:50. How to do it?
$imgDir = 'upload/2016/01/tmp_81332';
$ffmpeg = '/usr/bin/ffmpeg';
// Convert Audio Length Path
$convAudioPath = $imgDir."/output.mp3";
$convAudioPath_test = $imgDir."/output_test.mp3";
exec("$ffmpeg -i $convAudioPath -vcodec copy -acodec copy -ss 00:00:00.000 -t 00:00:50.000 $convAudioPath_test");
Advise any idea!

Use
exec("$ffmpeg -stream_loop -1 -i $convAudioPath -vcodec copy -ss 00:00:00.000 -t 00:00:50.000 $convAudioPath_test");

Related

I need to add part of audio from one file to another [closed]

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 3 years ago.
Improve this question
I'm trying to add the fist 15 seconds from file1.wav to end of file2.wav with ffmpeg.
For this you can create a list.txt of files with inpoint and outpoint, something like this:
file file2.wav
file file1.wav
inpoint 00:00:00.000
outpoint 00:00:15.000
And run:
ffmpeg -f concat -i list.txt -c copy output.wav

How to Watermark videos with FFMPEG commands [closed]

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 5 years ago.
Improve this question
i need to watermark a video file.
i have FF-MPEG Linux server and ff-mpeg is installed by default
plz reply me the command of watermarking for below details
1. The source file is Input.mp4
2. the Target file is Output.mp4
3. the watermark file Watermark.png
please send me the Linux commands.
is there anyone know, please reply soon
According to this site it should be something like:
ffmpeg -i Input.mp4 -i Watermark.png -filter_complex "overlay=10:10" Output.mp4
10:10 are the coordinates from the top and from the right for the overlay. (In this example 10 pixels from the top and 10 pixels from the right)

Audio effects in ffmpeg [closed]

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
Does ffmpeg audio effects like reverb? Can I work with the channels (to detain them, mix)? If so please link to code samples or examples of codes. thanks in advance!
You can use "RUBBERBAND" for changing pitch and tempo of audio,
If you want to change/add effect of audio from video file then use following code with combination of ffmpeg and rubberband
ffmpeg -i w.mpg -vcodec copy -an tmpVideo.mpg
ffmpeg -i w.mpg tmpAudio.wav
rubberband -p 6 tmpAudio.wav tmpAudioRB.wav
ffmpeg -i tmpVideo.mpg -i tmpAudioRB.wav -vcodec copy finalVideow_6.mpg
This will generate a new video file with pitch change in audio
You're looking for SoX, which is like ffmpeg for audio.

how do I get a list of amplitudes from a audio file? [closed]

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 6 years ago.
Improve this question
how do I get a list of amplitudes from a audio file using a linux command line tool ?
Do you mean getting all the individual samples as text? SoX can do that.
$ sox file.wav file.dat
will take an audio file file.wav, and generate a text file file.dat with a column for the timebase in seconds, and a column for each audio channel scaled by the maximum possible value.

How to convert the MP4 video file from images without audio using FFMPEG? [closed]

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 7 years ago.
Improve this question
I am converting the MP4 video file $output from some images and one audio file.
But now I want to convert the same MP4 video file without audio.
How to do it?
Here is my sample code:
// Convert Video from audio and images
exec("$ffmpeg -framerate 1/5 -i $convImgPath -i $convAudioPath -c:v libx264 -c:a aac -strict experimental -b:a 16k -shortest $output");
Please update my code where I am change.
Disable audio via -an i.e.
exec("$ffmpeg -framerate 1/5 -i $convImgPath -i $convAudioPath -c:v libx264 -an -shortest $output");

Resources