Questions tagged [ffmpeg]

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 program for transcoding multimedia files.

Filter by
Sorted by
Tagged with
2
votes
1answer
13k views

Problem converting TS to MP4 container with ffmpeg

I have a video stream I captured with VLC and saved as a TS file. The codecs within the file are h.264/AAC, so I thought it would be trivial to use ffmpeg to convert the file from a TS container to ...
2
votes
1answer
3k views

Concatenating split media files using “concat protocol”

I'm using the latest ffmpeg (3.2.4) on 64-bit Windows 10. My devices generally split up the files it saves to the SD cards, either with a 2G or 4G file size limit. Before importing the files into my ...
2
votes
1answer
640 views

Join 2 videos to play at the same time

Let's say that I have a file1.avi and a file2.avi. Each one of these files is the same size, for instance 300x100. How could I join them, so that both of them would play the first 10 seconds of each ...
2
votes
1answer
695 views

Is ffmpeg the solution to automate video building from multiple files

Need some help automating video & audio stitching and could use some help/direction. Let's say I have the following assets: Video 1 Video 2 Video 3 Music 1 And I want to build a few variations ...
2
votes
1answer
24k views

Encoding videos for MPEG-DASH

I read this article on encoding for MPEG-DASH, which has helped me a little and then follow up article. My end goal is to create a batch file that can read in a directory of MP4 files, and then ...
2
votes
2answers
2k views

VOB editing with FFMPEG

I read that it is better to extract from vob H264 files within a .ts to have a lossless and more accurate sample, easy to cut, is that correct ? I used these commands : ffmpeg -i VTS_01_1.VOB -...
2
votes
3answers
5k views

Using ffmpeg to cut out a scene by original timestamp

I have a recording (a simple, unprocessed TS from my satellite receiver, not encrypted) that has uneccessary stuff at the beginning and the ending. I want to cut out the main feature now with ffmpeg. ...
2
votes
1answer
2k views

Using a 265 encoded video with a container

Let me start by saying I'm not a video production guy. I am a programmer so I'm in over my head in certain areas. I've been trying to use ffmpeg to mess around with HEVC encoded video. I was told it ...
2
votes
1answer
206 views

How to convert video for viewing on Sony Ericsson C702?

I'd like to convert some of my videos for viewing them on Sony Ericsson C702 cell phone. But I couldn't find the right set of parameters (a/v codecs, container, etc.). I'd prefer a solution using ...
2
votes
2answers
257 views

Is CABAC encoding lossy or lossless in ffmpeg?

I've been looking into how to compress a video using ffmpeg when I stumbled across CABAC encoding which I could specify by using the libx264 for the video codec and pairing it with the proper ...
2
votes
1answer
1k views

Trim audio stream to video stream length

I have an mp4 file (converted from an mkv file) that has a longer audio than video stream. This file doesn't play back nicely in my media streaming app (or MPC-HC) when I reach the end of the file. ...
2
votes
1answer
1k views

Long video clip stabilization with ffmpeg and vidstab

I'm learning how to use ffmpeg to stabilize some footage I shot at a conference (my setup had a nasty wobble and I didn't realise how bad it was until I started editing). After trial and error I ...
2
votes
2answers
2k views

What is the correct format of media creation time?

I noticed my GH5 via ffprobe has metadata such as: Metadata: creation_time : 2018-12-31T09:17:48.000000Z timecode : 06:19:42;19 This is actually my local time, so off that bat, ...
2
votes
1answer
4k views

ffmpeg - Stretch 4:3 video to 16:9

I have a video track that is a 4:3 video with pillarboxing/black bars on the side making it a 16:9 video. The resolution of the video is 960x540 (16:9). How would I remove the blackbars and then ...
2
votes
2answers
582 views

Lossless color compression

I need to reduce the file size of an mp4 video. I don't need color information at all but pixel brightness resolution must be preserved. Videos consist of white background with a few (important) black ...
2
votes
1answer
4k views

Using ffmpeg to convert to Photo Jpeg with minimal loss of quality

I've a 30-second clip, which is HD 1080p, 30fps, "Photo JPEG" compression, 480MB. I've brought it into Fusion 9, made a small change, and rendered: but the Saver options (under Quicktime) are either ...
2
votes
1answer
1k views

Why isn't using ffmpeg to create a 2x2 video “mosaic grid” working for me?

On my Windows 7 PC, I've used Windows Live Movie Maker and Windows Media Encoder extensively to make and edit videos (I've also used other software like "Showbiz", "Super C" and "AVIdemux"). Recently ...
2
votes
1answer
5k views

FFmpeg hardware cuda decoding and overlay picture

I can overlay a picture to the video stream with the following command: ffmpeg -thread_queue_size 1024 -i udp_source -i watermark.png -filter_complex "[0:v]scale=1920:1080,yadif=0 [base]; [base][...
2
votes
2answers
319 views

How to calculate the overhead of wrapping multiple elementary streams?

I run a web service which muxes multiple elementary streams (e.g., H.264 + FLAC) into a single matroska container/wrapper/file. There is no transcoding as I only copy the streams, using a process like ...
2
votes
1answer
6k views

Extract all audio channels as separate wave file from a multichannel file

I have this file, and would be cool use ffmpeg for extract all audio channels to separate files.. I know how to extract a single channel at time in a way like: ffmpeg -i input.mov -map 0:1 -c:a copy ...
2
votes
1answer
1k views

encoding with ffmpeg libx265 -pix_fmt gray gives unplayable vid

What am I missing? I encode an old black and white film clip with ffmpeg libx265 passing -pix_fmt gray. The output is unplayable in both vlc and mplayer (linux), so I assume I'm missing something... ...
2
votes
1answer
3k views

How to add a time stamp using ffmpeg to a screenshot capture of a video

I am trying to output a screenshot of a video at an specified time and the resulting picture should have a black square with the time that was given initially. So far I was only able to produce a ...
2
votes
1answer
473 views

What does it mean “This filter supports the following commands”?

In the FFmpeg Filters Documentation some filters have a subsection "Commands" which begins with the sentence This filter supports the following commands: e. g. in the section 6.68 volume. Filters ...
2
votes
2answers
978 views

Ffmpeg gui tool to apply filters

Are there any GUI applications (linux or windows) that allow you to apply ffpmeg filters to a video and observe the changes in a preview in real time?
2
votes
2answers
12k views

Why when you specify a video bitrate with ffmpeg does the resulting files displayed bit rate differ?

I'm fairly new to transcoding.I've been generating some mp4's from mxf files. I've been playing around with some settings on ffmpeg and been specifying various bitrate's for audio and video with the -...
2
votes
1answer
6k views

How to concatenate multiple videos with ffmpeg?

Need to: concatenate 3 mpg4 video clips (each around 1 minute long, and 800x500 size) + background mp3 -> into a 1-minute long (1920x1080) video composed of the first 20 seconds from each of the 4 ...
2
votes
2answers
3k views

What deinterlacing filter should I use to encode/compress a PAL MPEG-2 576i 25fps raw file?

I have a PAL MPEG-2 576i 25fps raw capture (presumably either straight from satellite or a DVD recorder) that I would like to encode to AVC. I'd like to deinterlace the file during compression with ...
2
votes
1answer
6k views

FFmpeg BMP to YUV x264 color shift

When I encode a particular sequence of BMP image files to AVC/H.264, the colors get shifted. Why does this happen? But if I convert the BMPs to PNGs before running ffmpeg, the video conversion ...
2
votes
1answer
177 views

Joining / Concat DNxHR HQ *without* re-encoding

is it possible to precisely concatenate multiple DNxHR (HQ) videos into one without re-encoding? It seems that ffmpeg can only handle MPEG streams.
2
votes
1answer
7k views

Changing the input frame rate of a series of images in FFmpeg

I am attempting to animate a series of PNG images at 30 frames per second (and add an audio track) with FFmpeg. On the command line, I specify the input and output frame rates as 30 fps. ffmpeg....
2
votes
1answer
814 views

ffmpeg statement for Anaglyph of Red-Cyan Color

I'm trying to take two input videos (can be in avi, mp4, whatever ffmpeg supports) and combine them into a stereoscopic video with the "ffmpeg" utility that uses simple red and cyan colored glasses (...
2
votes
1answer
2k views

ffmpeg - mapping an audio file with 2 channels to a video file?

I have a video file and an audio file (that contains 2 channels) and i want to map the video to stream 0 of the resulting file and the audio file to the next stream/s. Since the audio file has 2 ...
2
votes
1answer
1k views

Matroska format's framerate is not accurate with certain values

If the Matroska format is used, in certain framerates it doesn't record at exact input framerate, but rather at a little higher than the input framerate. As an example: ffmpeg -video_size 1920x1080 -...
2
votes
2answers
3k views

FFMPEG duplicates the first frame when encoding

Using ffprobe shows that both videos have the same framecount, still if I extract the frames as images the compressed one has an extra frame at the beginning (which is just the duplicated first frame)....
2
votes
2answers
4k views

Loop and mix audio on video

I want to mix audio on a video. The video already has audio stream in it. I'm adding another one. The new audio I'm adding is shorter than the video. So, I want to loop it as long as the video lasts. ...
2
votes
1answer
2k 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 ...
2
votes
1answer
441 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
2answers
1k views

avconv converting videos in really bad quality

I have this linux command line app called avcon. It is used to converting files. For instance if I have a file called video.mp4 I can run avconv -i video.mp4 video.ogg and it will convert this video....
2
votes
1answer
3k views

How to get FFMPEG output the same quality as Vimeo?

I like Vimeo, but I rather host a player and video myself. So I was wondering if someone knows how to get the closest result to Vimeo quality, but from FFMPEG? It seems that Vimeo uses 1280 pixels ...
2
votes
1answer
4k views

Lossy output with FFMPEG JPEG 2000

I'm trying to achieve a lossy JPEG 2000 output with FFMPEG, but no success so far. Using this command line: ffmpeg -i input.dpx -pix_fmt yuv420p -vcodec libopenjpeg output.jp2 As a result I get ...
2
votes
1answer
456 views

ffmpeg framemd5 format explanation

Does a frame consist of audio and video or just video? I am trying to verify if this can be used for confirming both audio and video data were successfully sent or if I need to handle the audio ...
2
votes
1answer
109 views

Is it possible to use ffmpeg to move part of the video to another position and crop the video at the same time?

I have a video file let's say it's the following one. What I want is the following operations: Copy the part in the red rectangle to the bottom-right corner for the whole video. Remove the left red ...
2
votes
1answer
991 views

.srt subtitles added to mkv with ffmpeg are not displayed

I try to add .srt subtitles to the mkv file and it doesn't work. I use the following very simple command: $ ffmpeg -y -i original.mkv -i sub_original.srt -map 0 -map 1 -c copy ~/temp.mkv ffmpeg ...
2
votes
1answer
262 views

Editing/Changing Cluster Timecode Element in mkv files (Amazon Kinesis Video)

I've tried researching this very thoroughly, but have not come across a similar issue. To sum up my problem first, I'm sending 3 second .mkv clips into Amazon Kinesis Video. Then I pull back random ...
2
votes
1answer
72 views

How to re-order the .wav file channels

I need to change the order of channels in .wav file. for example if .wav file contains 16 channel like "1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16" then need to change this order to "14 15 16 1 2 3 ...
2
votes
1answer
11k views

ffmpeg thread_queue_size warning: What does this mean?

*Edit: changing the render to -preset veryfast will no longer display the warning message. I also noticed that the video itself for the versions where the warning displayed had the last few minutes ...
2
votes
1answer
840 views

ffmpeg operations yielding changing fps values

I have a video that was rendered as 26.51 fps h.264 into an mkv by my video editor. Calling the file up in ffmpeg it displayed this file as 1k fps, 26.51 tbr. When I applied an operation to separate ...
2
votes
1answer
154 views

Is there any difference between changing video containers with ffmpeg vs just renaming with windows?

For example say I use the command: ffmpeg -i input.mkv -c copy output.avi (In my case I need to add -bsf:v h264_mp4toannexb) Well I can also just copy and rename the file from input.mkv to output....
2
votes
1answer
707 views

Improve performance on 4 x 4K mosaic with FFmpeg

I'm using a NVIDIA Quadro P4000 and my config is Intel i7 2.4 GHz with 8 Go of RAM. I'm working on Ubuntu 16.04, I've installed NVIDIA drivers using apt repo aswell as CUDA. I'm using FFmpeg in ...
2
votes
1answer
429 views

FFmpeg mosaic with hardware acceleration on Quadro P4000

I'm currently trying to achieve a mosaic including 4 videos using FFmpeg and hardware acceleration. I'm working on Ubuntu 16.04, I've installed NVIDIA drivers using apt repo aswell as CUDA. I'm using ...

1
5 6
7
8 9
34