Skip to main content

All Questions

Tagged with
0 votes
1 answer
340 views

ffmpeg: How to add two consecutive audio streams to a video file

I have following files: - video.mp4 (120sec, no audio) - audio1.mp3 (70sec) - audio2.mp3 (50sec) I want to combine these files in such a way that audio1.mp3 will start at the begining of a video, ...
PanJanek's user avatar
  • 163
10 votes
3 answers
20k views

Loop audio file to a given length

I'm currently facing an issue where I need to take some mp3 file and make another mp3 file where the first one is playing for a given amount of time, looped if needed. Preferably I'm looking for a ...
Tomcatus's user avatar
  • 350
4 votes
2 answers
20k views

How do I "grep" output in Windows [duplicate]

Every answer I've found to get a video's duration with ffmpeg contains grep, which cmd doesn't natively have. I know there's a "Grep for windows" thing, but I'd rather use a function that comes with ...
user avatar
0 votes
1 answer
3k views

Some ffmpeg command not working properly when I execute through java on ubuntu 14.04

When I execute ffmpeg command through java code then It is not executing properly Example-: I want to draw text in video through java code My code in java is String cmd="ffmpeg -i 12213blob.mp4 -...
Deepak Gupta's user avatar
0 votes
1 answer
1k views

FFmpeg error when doing first pass of WebM encoding: Unrecognized option 'auto-alt-ref'

I'm using OS X Mavericks (10.9.4) and installed ffmpeg from homebrew. When executing this command (assuming input file exists): ffmpeg -i ololo.wmv -vf scale=500:-1 -auto-alt-ref 1 -lag-in-frames 20 ...
Display Name's user avatar
  • 1,133
45 votes
7 answers
65k views

crossfade between 2 videos using ffmpeg

I've been trying to achieve a crossfade transition between 2 video clips using ffmpeg but have failed so far. I'm new to ffmpeg and am mostly relying on tweaking what I can find in the documentation ...
user avatar
2 votes
2 answers
1k views

How to replace part of audio in a video using the command line?

Part of a recorded audio contains sensitive information. I want to remove that information while keeping the video and rest of the audio intact. Ideally using command line and being able to exactly ...
sumek's user avatar
  • 697
2 votes
0 answers
382 views

Disappearing characters between youtube-dl, ffmpeg, and cmd

so what happens is that if the video title has a symbol that isn't supported by your current locale then ffmpeg won't be able to get to that file properly. Here's one example ►2 HOURS BEST MELODIC ...
user3407161's user avatar
4 votes
1 answer
17k views

Receiving FFMPEG error -22 when piping data to stdout

I am attempting to use FFMPEG to transcode avi files to mp4 and pipe the data to stdout using the following command (technically through NodeJS, but I receive the same error when executing the ...
dvlsg's user avatar
  • 185
1 vote
0 answers
2k views

Play two files in VLC dummy and give sout parameters to both of them

I want to add multiple files to VLC's web interface. And the commands below do exactly that. Two files are added to the VLC's web interface's playlist. But as you can see, that's not all I wanted - ...
user3596479's user avatar
7 votes
1 answer
5k views

Using ffmpeg to split mkv but get a few seconds video lost (cutting between keyframes without re-encoding?)

I am using ffmpeg (the real one from FFmpeg, not the fake one from Libav) to split some mkv files: ffmpeg -i input.mkv -ss 00:01:00 -to 00:02:00 -codec copy output.mkv However, when I open the ...
Zhuoyun Wei's user avatar
3 votes
1 answer
3k views

Why does ffprobe report an incorrect number of frames?

I have a small video file which ffprobe describes as:- Input #0, avi, from 'sample.avi': Metadata: encoder : Lavf55.12.100 Duration: 00:00:35.00, start: 0.000000, bitrate: 546 kb/s Stream #0:0: ...
Skeeve's user avatar
  • 61
2 votes
1 answer
2k views

Downmix drops low frequency channel

I have noticed a problem with FFmpeg downmixing. If I run a command such as ffmpeg -i infile.flac -ac 2 outfile.flac It will have identical result as ffmpeg -i infile.flac \ -map_channel 0.0.0 \ ...
Zombo's user avatar
  • 1
100 votes
9 answers
192k views

Use ffmpeg copy codec to combine *.ts files into a single mp4

I've got a bunch of ts segments described by a single index.m3u8 file: index.m3u8 segment1_0_av.ts segment2_0_av.ts segment3_0_av.ts segment4_0_av.ts segment5_0_av.ts I know they are ...
Ana's user avatar
  • 1,671
5 votes
1 answer
2k views

ffmpeg - different input and output duration

I have strange duration issue when converting videos from mp4 to flv. Also there is a different "start_time", what is that? What does start_time means? input duration - 0:00:29.577000 input ...
Andrew Surzhynskyi's user avatar
1 vote
1 answer
2k views

Getting batch file to auto rename input file

I'm trying to create a batch file to process videos and rename the output file automatically. I've got this so far: @ECHO OFF d:\audio\ffmpeg.exe -i "%~1" -vcodec copy -acodec libvo_aacenc -af ...
kinobe's user avatar
  • 13
6 votes
1 answer
17k views

FFMPEG converting media type aswell as relocating MOOV atom

I have found this line online ffmpeg -i input.mp4 -c:a copy -c:v copy -movflags faststart output.mp4 Which takes an input, and copies the audio, video and sets the MOOV atom to the beginning in an ...
Jim's user avatar
  • 63
0 votes
2 answers
1k views

How to batch insert same clip scene at the beginning of multiple videos?

Well, it has been a few days researching on a suitable auto or semi-automatic way of mass merging files this way. Basically, what I want to achieve is inserting the same clip, before a bunch of other ...
FLYqtFLY's user avatar
5 votes
0 answers
2k views

How to properly concaternate two audio files together?

I ripped two Blu-rays and I'm trying to combine the audio from both into one file. I've decoded it from DTS-HD MA to Wave64, and I used avisynth to remove the black screen audio (4 seconds) from the ...
MarcusJ's user avatar
  • 2,125
0 votes
1 answer
2k views

How can I upgrade ffmpeg in CentOS 6.x

At first, I've downloaded ffmpeg 0.6.5. and it works. But when I'm trying to use '-vf' option, Terminal said there's no such command. So I asked this on Super User and someone said that the cause is ...
Juneyoung Oh's user avatar
1 vote
1 answer
641 views

Can't type in CLI after running ffmpeg

I get a strange behaviour after running ffmpeg in console and piping its output to mplayer. After I close mplayer's window or I close ffmpeg with Ctrl+C sometimes I can't type anything in that console ...
ov1d1u's user avatar
  • 229
0 votes
1 answer
2k views

Extracting images from video in 1 minute intervals

I would like to extract images from a video Exp01.avi, the video is 24fps and 25 minutes long. I want the images to be extracted from the video after every 1 minute interval. Please someone tell me ...
parmeshwar89's user avatar
3 votes
2 answers
6k views

Using ffmpeg with decimal wildcard

I have a folder with PNG images of the following naming scheme: IMG_0423.png IMG_0424.png ... IMG_0509.png I would like to make an MP4 movie from these images, but I get an error message that ffmpeg ...
Alex Reynolds's user avatar
2 votes
4 answers
6k views

Batch process ffmpeg?

Given an AVI encapsulated video with WMA2 audio and MP4 video how do I pass-through the video, convert the audio to MP3; then re-encapsulate the entire file into an AVI? ffmpeg -i "foo bar.avi" -...
A T's user avatar
  • 801
5 votes
1 answer
3k views

VP8 and WebM, not working in ffmpeg-php

I need a help with ffmpeg-php and Ffmpeg. Ffmpeg: ffmpeg version 1.0.git built on Oct 6 2012 01:54:50 with gcc 4.4.6 (GCC) 20120305 (Red Hat 4.4.6-4) configuration: --enable-gpl --enable-libmp3lame ...
Olaf Erlandsen's user avatar
59 votes
4 answers
164k views

How to cut at exact frames using ffmpeg?

I'm trying to use ffmpeg to cut video files at precise times. The ffmpeg help shows an option -timecode_frame_start to specify the starting frame but I am unable to get this command to work. The ...
curmil's user avatar
  • 1,075
0 votes
0 answers
3k views

avconv and ffmpeg - drawtext filter text_w evaluates as 0 in Ubuntu Precise

I'm attempting to draw text onto a video using either the avconv or ffmpeg commands. When specifying x= for where on the final video to place the text, the 'text_w' value is evaluating to 0, rather ...
Chris White's user avatar
6 votes
1 answer
9k views

ffmpeg: extract frames and get their exact timestamps

I'm trying to extract frames from a variable framerate video every 5 seconds and get the exact timestamps of each frame extracted. This is what I have so so far: -i inputfile -vstats_file vstats.log ...
Mango's user avatar
  • 125
3 votes
5 answers
17k views

FFmpeg works on terminal not with PHP exec

If I execute a Ffmpeg command from terminal, I get the desired result: ffmpeg -i src.mp4 -ar 22050 -ab 32 -f flv -s 320x240 video.flv Terminal's output: ... video:3404kB audio:1038kB global ...
goliatone's user avatar
  • 592
3 votes
2 answers
3k views

ffmpeg to join videos

I previously learned that FFMpeg can join videos: However, I am attempting to join recorded over-the-air broadcasts (.ts files), and I believe that minor hiccups in signal quality are causing FFMpeg ...
bradvido's user avatar
  • 155
0 votes
1 answer
2k views

Is it possible in ffmpeg to seek to position of the file that is received through stdin

Is it possible to -ss in ffmpeg to the file, that is being received via pipe? So that I start reading it from a given timecode? I am not encoding the file. Thanks
stpn's user avatar
  • 197
11 votes
3 answers
53k views

Converting images to video using FFMPEG on Windows

I'm trying to convert a series of JPEG images into a time lapse video. They're in the format IMGP0001.JPG, IMGP0002.JPG, etc. From the looks of things, this should match the pattern IMGP%04.JPG. I've ...
CadentOrange's user avatar
4 votes
1 answer
4k views

Two FFMPEG commands simultaneoulsy

I want to multicast two videos to two different ports of a multicast address. I am able to send one video to one port at a time. But I want a command where both the videos are sent to the ports at the ...
iwant2learn's user avatar
0 votes
1 answer
229 views

Youtube "failed to convert" using ffmpeg CLI

I'm using ffmpeg to split videos to comply with their length but whenever I upload them it says "failed to convert". I'm using this settings ffmpeg -i "${file}" -ar 22050 -vcodec libx264 -acodec ...
allenskd's user avatar
  • 147
9 votes
2 answers
28k views

How to provide multiple input to ffmpeg?

I'm using ffmpeg to create time-lapses and it's working great. As input I have images named 001.jpg, 002.jpg, etc. and then with the command ffmpeg -i %3d.jpg -sameq -s 1440x1080 video.mp4 I create ...
tomm89's user avatar
  • 249
1 vote
1 answer
658 views

Reference on ffmpeg -i output

is there some site explaining in details what are the informations output by FFMPEG ? As an example, when displaying the result Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'chti_jug_maven_studio.mp4': ...
Riduidel's user avatar
  • 1,567
11 votes
2 answers
17k views

Join videos with split screen

I am looking for a command to join two video files, however I want the videos joined split-screen, frame by frame, instead of one after another. Any ideas? Seems this is not possible with ffmpeg.
hoju's user avatar
  • 937
599 votes
9 answers
833k views

Using ffmpeg to cut up video

I am using ffmpeg to cut out a section of a large file like this: ffmpeg -i input.wmv -ss 60 -t 60 -acodec copy -vcodec copy output.wmv The -ss part works fine but the -t is ignored. It correctly ...
Neil's user avatar
  • 6,119
3 votes
1 answer
16k views

Video Thumbnails using ffmpeg

I'm looking for a nice short easy way to create a series of thumbnails for any given video file. I'm almost there using ffmpeg, here's what I have: ffmpeg -i /tmp/video.avi -r 1 -ss 60 -r 1 foo-%03d....
Michael Lenzen's user avatar
38 votes
6 answers
47k views

Rotate a video file 90 degrees using Ubuntu

I want to use Ubuntu and preferably standard packages such as ffmpeg to rotate a .3gp video file by 90 degrees in any direction. Preferably a command line or Python script. How can I do that?
justinhj's user avatar
  • 1,382

15 30 50 per page
1 2 3 4 5
6