FFmpeg is a free software project that produces libraries and programs for handling multimedia data. The most notable parts of FFmpeg are libavcodec, an audio/video codec library used by several other projects, libavformat, an audio/video container mux and demux library, and the ffmpeg command line ...

learn more… | top users | synonyms

4
votes
1answer
76 views

Top and tail GoPro video based on volume

I'm thinking of using ffmpeg to automate a simple video task. I have lots of action videos that go like this, quiet/boring -> loud/exciting -> quiet/boring. Allowing for a few seconds at the start ...
1
vote
1answer
78 views

ffmpeg Cut a media preserving all streams but also all metadata, timecodes and everything else

Today I wanted to obtain a ts file cut preserving everything, so I tried with this command: ffmpeg -i "original.ts" -map 0 -c copy -t 00:30:0.0 -threads 1 "cutted.ts" The resulting file have ...
1
vote
1answer
30 views

ffmpeg encode in all-i mode h264 and h265 streams

Which params I can use to obtain a transcode all-i based? No B and P frames? I know that this is not efficient for compression purposes but this is not my case now. I guess i have to fiddle a bit ...
0
votes
0answers
54 views

ffmpeg based JAVE video conversion taking a long time

I am using ffmpeg to convert videos to mp4 format in my application I have used JAVE and Xuggler for the same. My issue is that, video conversions are taking way too much of time. For example, a 50MB ...
1
vote
0answers
73 views

best way to publish low latency video on ffmpeg

I am trying to publish a stream of live video that need to get to the client side in under 3 sec in latency. I am using vMix to capture a 720p/50 stream from a camera, that by virtual camera letting ...
0
votes
0answers
76 views

Fade in and Fade out drawtext and drawbox ffmpeg

I am using FFmpeg on andriod and the following is the configuration : ffmpeg version 2.8.2 Copyright (c) 2000-2015 the FFmpeg developers built with Apple LLVM version 7.0.0 (clang-700.1.76) ...
0
votes
0answers
31 views

ffmpeg: How to convert quicktime (iPhone) video to mp4 format?

I need to convert quicktime (.mov) video file recorded by iphone, into mp4 format using ffmpeg in php. I tried several commands but it did not work for me. I tried following command that converted ...
1
vote
1answer
83 views

How is possible for YouTube and Vimeo transcode so fast?

For the bit I read YouTube and Vimeo rely on servers powered by some modified libs i guess like libavcodec and tools like ffmpeg in a serious custom build. Let's assume a transcode to h264 but the ...
0
votes
1answer
23 views

ffmpeg audio video separate files 1 command

I'm trying to get ffmpeg to output separate audio and video files in 1 command. Here are the 2 commands I have: ffmpeg -ss 04:53 -i ./07.mkv -t 3 -c:v libx264 -crf 18 -filter:v "setpts=PTS-STARTPTS, ...
1
vote
1answer
89 views

ffv1 realtime capture throws out a lot of frame dropped messages!

Can you help me to figure out what's going on here? I'm trying to capture in realtime my screen and save it losslessy via ffv1 codec. CPU usage while recording is not so much, as comparison h264 ...
1
vote
1answer
99 views

FFmpeg script to clean up and compress iPhone video recordings from university lectures

I video record my university lectures using an iPhone 6 and then export them to OS X. The files can often become up to 4 GB/hour in size. I'm looking to create or use a pre-existing solution that can ...
1
vote
1answer
79 views

ffmpeg command to convert mpeg2 with ac3 audio codec to audible H264/ ProResHQ?

I try to convert a mpeg2 video to mov with codec ac3 but when put ffmpeg -i 1.mpg 1.mov the audio don't convert. ¿Anyone know why?
3
votes
1answer
112 views

ffmpeg: explicitly tag h.264 as bt.601, rather than leaving unspecified?

I want to tag video as explicitly bt.601, rather than "unspecified". I know players typically choose bt.601 as the default for videos less than 1280 pixels wide, but I want to make it explicit that ...
1
vote
1answer
99 views

FFMPEG - Image before video

I need to put an image before a video with FFMPEG. The image should not be instead of the video but before. The best is if I can choose a number of frames to show the image, instead of seconds. I'm ...
3
votes
2answers
76 views

ffmpeg bgr vs rgb and other similiar pixel formats

I was wondering about the difference between rgb and bgr pixel formats available in many codecs. It reminds me in some way the Big Endian and Little Endian flavours of computer processors. While I ...
4
votes
1answer
268 views

ffmpeg: overlay rotated video with transparency

I'm new to ffmpeg (video encoding in general). I have two videos one larger than the other. I want to rotate, resize and overlay the shorter video on the larger one at defined coordinates. So far, ...
2
votes
1answer
65 views

Convert resolution 4096x2304 to 3840x2160 keeping the quality the same

I have recently come into possession of a couple of 4k movies with a resolution of 4096x2304. Unfortunately my Samsung 4k TV wont play anything over 3840x2160. I have managed to re-encode the videos ...
1
vote
0answers
120 views

Using ffmpeg to cut videos with more precision than key frames allow

I'm trying to cut a video (a debate on TV) with ffmpeg without re-encoding, and I need to cut between 2 sentences a guy pronounce. I think the precise moment is between two keyframes, because whatever ...
1
vote
0answers
38 views

ffmpeg - Specify FC (center) instead of mono‏

I am trying to specify a single mono channel to be named 'Center' when viewed in Quicktime player, I know that technically specifying FC is mono, but in my user case I need it to actually be named ...
1
vote
0answers
45 views

Is possible to use ffmpeg to capture directly a DSLR streaming via USB?

If i have an high end Canon or Nikon camera is possible to do what eos_movrec do but with a better quality? Could be useful to use this for streaming or recording purposes. And in case of something ...
2
votes
1answer
80 views

ffmpeg: white padding is light grey but not white

I want to generate 16:9 thumbnails from videos with white padding but the resulting picture has grey padding instead of white. This is the command line (input here is a jpg but the effect is the same ...
2
votes
0answers
111 views

Using h264 in loseless mode brings small unexpected results

I got curious on ffmpeg screen capture capabilities and started messing around with a simple realtime capture test in h264. ffmpeg -f dshow -i video="screen-capture-recorder" -video_size 1920x1080 ...
1
vote
1answer
25 views

Identifying source of audio drift between camcorder and recording PC

I'm recording our church's sermons using a standard consumer-grade camcorder (Handycam HDR-CX380). Depending on mixer circumstances (our church moves around a lot), I'll either run a line from our ...
3
votes
1answer
1k views

What CRF or settings I should choose for h265 in order to achieve a similiar quality of h264?

I'm doing some experiments with HEVC x265. I have a raw footage and the quality of details of h264 with same CRF setting looks better than h265. Shouldn't be the opposite? Maybe my setup isn't the ...
4
votes
1answer
193 views

ffmpeg - specify channel layout flags

I have the below file which I am re-mapping the audio and trying to set the channel layout flags on a Quicktime Prores file, but can't seem to get it working. I can successfully re-map the audio (from ...
2
votes
1answer
123 views

Streamable Container for HEVC (H.265)

flv is a container which can be used to stream videos while they are being encoded. flv supports h.264 codec. However, flv doesn't support hevc codec. Is there any container for hevc which is ...
1
vote
1answer
39 views

FFMPEG: Cut WMV video not playing on all the media players

This is the command line I use to cut videos with FFMPEG (example to cut from minute 1 to minute 6): ffmpeg -i OriginalVideo.wmv -c copy -s 1:00 -t 5:00 CutVideo.wmv It has always worked for me on ...
2
votes
1answer
66 views

ffmpeg cropped video changes aspect ratio

I have a heterogenous set of videos (codecs, dimensions, size) that I would like to crop off the top using ffmpeg. I've used this code successfully for year without any trouble (example here crops ...
5
votes
0answers
103 views

Trying to sync audio in mpeg2 video whose video freezes first 8 seconds in playback

So I have a handful of old mpeg2 (.mpg) files with the following profiles as provided by ffmpeg (the timecodes on each are different): Stream #0:0(eng): Video: mpeg4 (Advanced Simple Profile) (mp4v / ...
3
votes
1answer
201 views

How to trim out black frames with ffmpeg on windows?

I have a short video and I'm trying to cut-out all the blank or near blank frames. This isn't a case where I care about the breaks in a video that could be dark. I literally want all near ...
5
votes
2answers
92 views

How do I move (rearrange) the orientation of a video? Using ffmpeg

I want to crop the video at some position and move the part next to the part that wasn't cropped. (See image, it explains better)
4
votes
1answer
77 views

4x resample videoframes using ffmpeg

I need to speed up video by a factor of 4x, but do not want to drop the frames and instead average them. I.e. each 4 frames are averaged, and produce 1 output frame. Target frame-rate stays the same, ...
1
vote
0answers
65 views

ffmpeg not only writes mkv index at the end, but overwrites multiple places in file

According to Matroska options , the muxer writes the index at the end of file by default. However, if I save incomplete mkv file while encoding and compare it with the final clip, I can see more than ...
4
votes
2answers
93 views

ffmpeg, first second of cut video part freezed

I use this to cut a part out of a mp4 file: ffmpeg -i input.mp4 -vcodec copy -acodec copy -ss 00:36:18 -to 00:39:50 output.mp4 It works good but the video image is always freezed in the beginning ...
1
vote
0answers
151 views

Is there a simple explanation of x264 encoding parameters?

So, x264 is still the most popular (free) H.264 encoder out there. But it is also still considered ridiculously cryptic as well. There are tons of switches and options in the encoder that allow you to ...
2
votes
1answer
468 views

quickly extract video frames with ffmpeg

I am using ffmpeg to extract frames from videos. I have the following code thus far: ffmpeg -i vid.mp4 -vf fps=1/10 images%05d.png My issue is that it takes awhile! 6 seconds per image on average. ...
2
votes
0answers
244 views

Getting FFMPEG to stream video+audio through RTMP

Can someone help me with this : The video streams fine but I can't hear any audio. I just hear random click sounds.Please help : ffmpeg -f video4linux2 -channel 1 -i /dev/video0 -f alsa -i ...
3
votes
1answer
180 views

ffmpeg pixel format definitions

ffmpeg -pix_fmts lists many pixel formats. In my ffmpeg, there are 66 different pixel formats that start with yuv. A few of them are familiar to me (e.g., yuv422p), but most of them are not (e.g., ...
4
votes
2answers
2k views

How to use ffprobe to obtain certain information about mp4/h.264 files

I am but a lowly PHP developer that has been tasked with retrieving some basic information about 100's of thousands of video files. I've had some luck using ffmpeg extracting the video bitrate, video ...
5
votes
0answers
146 views

Converting GIMP curves files to Photoshop (.acv) for ffmpeg

I've seen a number of scripts for converting Photoshop .asv .acv files to a GIMP friendly format. Does anyone know if such a tool exists to do the opposite, i.e. converting a GIMP curve file to .asv ...
3
votes
1answer
68 views

FFMPEG standard transcoding settings

I am working on a project that provides video streaming to the users over the internet on web-browsers as well as mobile devices. I am using following sample FFMPEG command to transcode the video: ...
1
vote
0answers
23 views

How to make batch ffmpeg with this codes?

How i batch render with ffmpeg with this code on windows? Codes work well. ffmpeg -y -loop 1 -i background_image.png -i mainmovie.mov -filter_complex "[0:v]setpts=PTS-STARTPTS[V1]; ...
2
votes
1answer
86 views

Video with inconsistent exposed / rendered image sizes

I have an interlaced video with MTS file format, which was captured using a HD camera. When I play it using VLC, it is displayed at resolution 1920x1080 and if I take a snapshot with VLC, the saved ...
2
votes
1answer
38 views

Adding video into the picture with ffmpeg?

How to Adding video into the picture with ffmpeg? example:
2
votes
1answer
328 views

Removing / Overlaying logo on mp4 video format with ffmpeg on linux

I'm trying to remove logo from an .mp4 video format with ffmpeg on linux machine without re-encoding (for preserving the same quality) with the following command: ffmpeg -i input.mp4 -vf ...
2
votes
0answers
41 views

Unexpected filtering result with multiple outputs

Video capture device cycling through 4 cameras every 4 seconds. Want to split the video into four streams to reduce the amount of key frames, save internet traffic and soothe the motion detector. ...
1
vote
0answers
66 views

ffmpeg command to transcode video to multiple videos fit with MPEG-DASH

I need to transcode video and add it to Wowza server. is there any recommded command that I can use to transcode the vedeo in best way to work with mpeg-dash.
1
vote
0answers
35 views

What the equation that we should use to know the bitrate value?

I'm using ffmpeg to transcode mp4 file, I got the below command from: http://www.wowza.com/forums/content.php?192-Encoding-Suggestions-for-Video-on-Demand. ffmpeg -y -i Butterfly_HD_1080p.mp4 -s ...
2
votes
0answers
255 views

Fast encoding with ffmpeg

I know about presets but faster presets lose the video quality. Are there any hardware requirements I need to consider? Or are there any settings that I need to tweak? And lastly where do I place the ...
2
votes
1answer
111 views

ffmpeg concatenation introduces video stutter but does not affect audio

I've gone through several different variants of this process and it always causes me problems. I've gotten it working sometimes but it doesn't seem to be consistent. I have a video camera which ...