Tagged Questions

Media tool with support for multiple codecs, filters, and containers. Include the full, uncut console output if you have problems with an FFmpeg command.

learn more… | top users | synonyms

0
votes
0answers
106 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 ...
1
vote
1answer
91 views

merging video and audio with different durations

Following http://superuser.com/a/762752/7796 I'm using the following to merge a video and audio file into one file with some custom audio panning rules. ffmpeg -i vid.mp4 -i rec.mp3 -filter_complex ...
0
votes
1answer
73 views

ffmpeg: convert and keep audio track

I have some video files in H.264 codec and DTS audio. My goal is to convert the audio tracks (mostly 2 tracks, English and German) to AAC, but also keep the DTS audio track. I tried this command, but ...
0
votes
1answer
45 views

How to execute ffmpeg via php on Windows

This is my script: echo "Starting ffmpeg...\n\n<br>"; $cmd = "ffmpeg -i video.mp4 -ss 00:01:30.35 -vframes 1 img.png"; echo shell_exec($cmd); When I run it from CMD it works just fine but ...
0
votes
1answer
23 views

Is it possible for ffmpeg to encode with a spatially variable bit rate?

I would like to reduce the overall bitrate of a 4K 180 degree FOV video by decreasing detail outside of 60 degrees while retaining it in the center. Is that possible?
1
vote
2answers
201 views

Remove .mp4 video top and bottom black bars using ffmpeg

I'm new to ffmpeg and I have heard that it has a filter for black. I want to remove black bars on top and bottom of the video so the video will be cropped to the remaining video without black bars. ...
0
votes
1answer
37 views

FFMPEG :Speed Gain libx264 codec Threads

I am wondering, how much the speed gain is, when using multiple threads (16), because there is more than just writing frames out simultaneously? Can someone give some information? thanks
0
votes
1answer
172 views

Scale watermark overlay by video size with ffmpeg

I would like to scale a watermark to 5% of the video width. I need something like that: ffmpeg -i 1.mp4 -i logo.png -filter_complex "[1:v] scale=1_MP4_VIDEO_WIDTH*0.05:-1 [logo1]; [0:v][logo1] ...
1
vote
1answer
81 views

How to join audio files of different formats in ffmpeg

I am trying to join multiple audio files in ffmpeg. I am using the following command: ffmpeg -f concat -i myfile.txt -c copy output.mp3 Where myfile.txt contains audio file paths. I am able to ...
0
votes
1answer
8 views

Is it possible to count from a given number when extracting images from a video with FFmpeg?

I am using ffmpeg to extract still images from a video. First from the beginning of the video, to a given time and then from the end of the video from a given time. So I am using two ffmpeg command ...
0
votes
0answers
117 views

I get wrong aspect ratio for images and video converted using ffmpeg

I am trying to convert some old movie files to images (and later to reencode as h.264). The problem is that the resulting images are stretched vertically. Here is the ffmpeg command: ffmpeg -i ...
3
votes
1answer
110 views

Use ffmpeg To Batch Process M4A To M4A?

I've been using the code shown below to copy the AAC audio stream from 1 M4A container into a new M4A container. ffmpeg -i "C:/Example/01 Example Song.m4a" -acodec copy "C:/Example2/01 Example ...
0
votes
0answers
86 views

FFMPEG EXR to TIFF works, TIFF TO JPG, but not EXR to JPG

I try to batch-convert EXR Images to JPG Images. Converting EXR to JPG doesn't work, i get a corrupt error when trying opening the file. ffmpeg.exe -y -i C:/test.exr C:/outs.jpg But Converting EXR ...
0
votes
1answer
57 views

Merge two audio and one video when reeconding

I know it seems this is answered, but I can't merge two audio files and one video. My command is: ffmpeg -i file.mp4 -i file.aac -i file.mp3 -itsoffset 4 -i file_1.mov -itsoffset 10 -i file_2.mov ...
0
votes
1answer
92 views

FFMPEG Windows Generate 360p Video conversion failed

Input : "C:/server/ffmpeg/bin/ffmpeg.exe" -y -i C:\server\websites\ps\public_www/media/com_hwdmediashare/files/50/4f/37/4185216cb9bb234fd47ee43bf2122e4f.avi -strict experimental -acodec aac -ac 2 -ab ...
0
votes
0answers
151 views

ffmpeg convert swf to mp4 error

my command: ffmpeg -i /Users/xxx/Downloads/demo.swf -y /Users/xxx/Downloads/demo.mp4 demo.swf has many frames and 9 photos, but ffmpeg convert result is only 9 frames: "frame=9 fps=0.0 q=-1.0 ...
0
votes
0answers
48 views

ffmpeg -concat slowing down AAC audio files

I am concatenating six m4a files with this command ffmpeg -f concat -i audiofiles.txt -c copy all_audio_edited.m4a each file has a duration of 4 hours (24 in total) but the concatenation doesn't ...
0
votes
0answers
176 views

Using FFmpeg to stream from webcam on Linux

I'm try to stream input from a webcam to an http server, using FFmpeg. I cannot seem to figure out how to do this. From v4l2, these are my options: $ ffmpeg -f v4l2 -list_formats all -i /dev/video0 ...
0
votes
0answers
109 views

Some transcoded streams delayed or not playable from ffmpeg

Some of the audio files in my music collection are unplayable when transcoding them using ffmpeg. Most audio files transcode nicely using the default settings for my Subsonic media server. I'm pretty ...
1
vote
2answers
216 views

ffmpeg - Normalize Audio With Varying Audio Volume

I have a .MOV file whose sound I would like to normalize. However, when I run the following command I see that the volume varies (mono to stereo and with varying max_volume levels) throughout the ...
0
votes
1answer
117 views

instalation ffmpeg in Ubuntu

I am using following steps for installing ffmpeg-php extension in Ubuntu Download ffmpeg-php-0.5.2.1.tbz2 extract it go to this directory run this "phpize" ./configure && make but when I ...
0
votes
0answers
71 views

ffmpeg speed up video but keep same quality

I made a timelapse out of an image sequence using ffmpeg and the copy codec to disable compression and keep the quality to a max. The timelapse is a bit too long (10 minutes and up) so I tried to use ...
0
votes
1answer
80 views

FFMPEG combine PNGs of different size into movie

Is it possible to combine PNG of different heights without rescaling (like tile does)? I have pairs of images of same width, but first has height 900px and second 200px. I would like them to merge ...
0
votes
0answers
31 views

How to split an MPEG-2 video stream accurately?

I got a NTSC DVD iso image, and the video stream was encoded to H.262/MPEG-2 format,but there are two chapters located in three seperated .vob files, the film in the first chapter has been processed ...
0
votes
0answers
93 views

FFmpeg trick mode (fast forward and rewind) during encode possible?

I'm trying to watch a live stream on my Roku (though this should apply to other devices) though my Roku only supports mkv and mp4 which I don't believe is the issue. if I pipe in the live stream and ...
0
votes
0answers
133 views

FFmpeg overlay two videos, one input with transparency

I am trying to create a karaoke from a CD+G file (converted to AVI using FFmpeg) and add a video as a background of the lyrics. Here's a screenshot of a the output from CD+G conversion, for ...
0
votes
0answers
103 views

Creating video from set of images on windows with java language

I am stuck making a video from set of images using ffmpeg on Windows. For a single image it is converting into mp4 but for a set of images it failed, I have converted single % to double % with double ...
1
vote
1answer
173 views

How to place metadata at beginning of MP4 video using ffmpeg

I am trimming the video using ffmpeg but the metadata position was founded at last in output video. Is there any way to put metadata at beginning of output.mp4
0
votes
0answers
68 views

Merging audio and video files of different length using mp4box

I have to merge video and audio file together. Currently I am using this command mp4box -flat -add <video> -add <audio> <outputfile>.mp4 But the problem is, if the video is of say ...
0
votes
1answer
128 views

error in convert video with ffmpeg

FFmpeg failed to transcode dsmall.mp4. Reported errors PHPVideoToolkit error: Execute error. It was not possible to encode ...
0
votes
1answer
46 views

How can I convert videos for Sony Xperia U on my Linux box?

I would like to send a few videos for my girlfriend, but I would ensure they are playable on her mobile phone. I want to carry out the encoding tasks on my Arch Linux box, because my PC is a low end. ...
1
vote
2answers
95 views

ffmpeg add audio but keep video length the same (not -shortest)

I'm adding audio to a video file using ffmpeg like so ffmpeg -i videofile.mp4 -i audiofile.wav output.mp4 However this extends the output video file to be the length of the audio file if it is ...
1
vote
1answer
125 views

How to make the cygwin fontconfig package inherit Windows fonts?

I'm using a cygwin64 build of ffmpeg (1, 2) to burn subtitles into a video file as follows: $ ffmpeg -i file.mp4 -vf subtitles=file.srt file.ts ffmpeg version 1.2.3 Copyright (c) 2000-2013 the FFmpeg ...
1
vote
1answer
110 views

How to remove fisheye from videos on Ubuntu

I have some videos I have taken using a head-mounted video-camera. The camera records the videos with a 'fisheye' effect. How do I remove it?
1
vote
0answers
132 views

How to save udp stream to .ts files whith ffmpeg while keeping timestamp?

I need to record a live udp stream containing multiple TV programs ( up to 30 ) to .ts files .To do so i'm using FFMPEG . I have a muxer at work , but i dont go there everyday so im using a sample ...
0
votes
1answer
287 views

How to replace an audio stream in a video file with multiple audio streams?

I want to replace the second audio stream (0:2) in a video file that has two audio streams and give it a label if possible. How would I go about this? All the ffmpeg commands I found won't let me keep ...
0
votes
0answers
19 views

ffmpeg default filter for input sources

I'd like to create a video from a bunch of still images (as described on the ffmpeg wiki) but I'd like to do a cross fade between each image. Is there any way to do this short of dynamically ...
0
votes
1answer
104 views

Ffmpeg drawtext on top of scaled video regardless of image size

I am making a video from single image using ffmpeg and draw text on top of the video. How can I drawtext that will overlay on top of the scaled video size instead of the image scale? Right now when ...
0
votes
1answer
110 views

ffmpeg video with single image and drawtext failed, -loop causes short freeze

I am trying to create a video from single image and add a text on top. Command on Ubuntu: ffmpeg -loop 1 -r 1 -i image.jpg -b:v 1M -vf scale=320:240 ...
0
votes
0answers
71 views

Trying to remove 1152 samples, but the queue is empty

I am streaming mp3 files,using this command : ffmpeg -re -i 'INPUT.mp3' -map_metadata -1 -map 0:0 URL I create a loop which stream files,and there is no problem with reviving stream,just from ...
0
votes
0answers
16 views

Overhead in ffmpeg

I am streaming mp3 files,I use libmp3lame for audio codec,there is 2 condition, 1- ffmpeg + nginx rtmp module 2- ffmpeg + ffserver when music is over,in first condition I get 3.8% overhead and with ...
1
vote
0answers
124 views

Re-stream (forward) UDP-Live-Video-Stream (using winsock) reduce video quality?

So, I used ffmpeg to stream the live webcam using UDP protocol to port 1111 : ffmpeg -f dshow -i video="Lenovo EasyCamera" -f mpegts udp://localhost:1111 When I played it directly by ffplay from ...
0
votes
1answer
73 views

Use FFMPEG to create xvid avi from image sequence

I'm having trouble encoding a sequence of images (that might not start from 0000) to an avi ffmpeg -y -f image2 -framerate 30 -start_number 560 -i "images_%04d.png" -an -vcodec rawvideo -pix_fmt ...
0
votes
0answers
15 views

silence in front of generated audio mpegts

./ffmpeg/ffmpeg -i a.ts -acodec aac -strict -2 -loglevel debug audio.ts Input #0, aac, from 'a.ts': Duration: 00:00:05.06, bitrate: 126 kb/s Stream #0:0: Audio: aac, 44100 Hz, stereo, fltp, ...
0
votes
1answer
57 views

Putting a lower bitrate of my video stream in my current mp4 container

What I have is an MP4 movie with a video stream and an audio stream. What I want in the output is an MP4 file containing: the same video stream the same audio stream the same video stream with a ...
1
vote
0answers
51 views

Why can't I get a delay between two audio files

I would like to delay only ONE of the two input files. But, even with a value of 5, itsoffset is not working....why?? ffmpeg -itsoffset 5 -i one.m4a -i five.m4a -strict -2 -filter_complex ...
0
votes
1answer
46 views

Ripping BluRay Audio Streams

I have a bluray audio disc. I've been trying to identify the streams with ffplay but I'm not sure how to do so. I was following the guide on gentoo's website, however ffplay does't show me the ...
0
votes
0answers
37 views

Ffmpeg not copying location metadata

I'm converting vidoes and even though I"m using -map_metadata 0 ffmpeg -i input.mp4 -map_metadata 0 output.mp4 The above code defaults to libx264/libvo_aacenc. The location metadata is not copied, ...
0
votes
2answers
189 views

Split MKV based on Chapters

I have a long MKV file which I want to split into its individual chapters. Running ffmpeg -i long.mkv gives me all the information about the chapters embedded in the file: Duration: 01:23:45.80, ...
1
vote
1answer
38 views

Secure ffmpeg streaming connection?

I've googled & "stackoverflow-ed" but have not found any article about securing the ffmpeg streaming. I want to stream my webcam/ desktop screen to the lan/internet but the first thing in my mind ...