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
0
votes
1answer
162 views

ffmpeg convert stereo to mono for multiple video files

I have a folder of video files listing: 1H.mp4; 1L.mp4; 2H.mp4; 2L.mp4; .... The sounds are unbalanced for two ears - it is probably due to the recording is stereo. How can I change the audio tracks ...
1
vote
1answer
91 views

Extract subtitles in time range using ffmpeg

I have original video (with subs) and cropped version of it (without subs). I need to add subtitles from original video into cropped in appropriate time range. I think the best way to do is: Extract ...
1
vote
2answers
844 views

FFmpeg for m2t and Sony Bravia - not working

-f mp4 -c:v libx264 -preset veryslow -tune grain -profile:v high422 -flags +ildct+ilme I am preparing video to be streamed (DLNA) from my NAS to an older Sony Bravia. I have successfully created ...
0
votes
2answers
56 views

Append part of the audio at the end of another audio

With audio files A and B: A : |--- Some content ---|--- Extra content --- | B : |--- Some content ---| Assume the end of B is where the start of the extra content in A. I want to append that extra ...
0
votes
1answer
830 views

FFmpeg Media Source Extension Examples and Adaptive VOD and Live Streaming

I have a quick questions. Has anybody examples or links for the use of FFmpeg with the Media Source Extension for pure JavaScript adaptive VOD-, or Live-Streaming? I mean really pure not HLS or DASH. ...
0
votes
1answer
39 views

ffmpeg best parameteres for fastest compression on FullHD mp4?

I need to compress a bunch of FullHD(1920x1080, 3Gb, mp4) videos, each ~2 hrs long. Some loss of quality is okay as is the lower resolution. I'm shooting for a 500Mb output video in ~10 min processing ...
0
votes
0answers
20 views

Video/audio unsynced after transcoding live rtmp video translation

Currently, I'm trying to create a live streaming service for internal purposes of my company; The scenario of work is pretty simple: We are receiving the RTMP stream from the user(over the internet) ...
0
votes
0answers
24 views

Removal of select subtitle tracks and audio tracks from mkv file in batch

My problem is that I have 2 subtitle tracks, one is named "English signs and songs" and another is called "English full". I also have English and Japanese audio tracks (dual audio)....
1
vote
1answer
489 views

How to find/detect the real video resolution?

Imagine you have recorded/captured the screen at 1080p, but it was displaying a 480p video maximized to fullscreen. The result file is technically 1080p, but it really is showing a 480p video, that is ...
0
votes
1answer
60 views

Saving audio while streaming video using ffmpeg

While I was checking streaming guide, I noticed that I can stream my webcam and mic using a command like the following: ffmpeg -f dshow -i video="screen-capture-recorder":audio="Stereo ...
0
votes
0answers
20 views

ffmpeg stable for only few minute then start eating memory and cpu

I'm trying to record a website to video at 1080p. Here are my steps I started a Xvfb screen at 1920x1080 and run chrome in it. I went to an Youtube video. Start ffmpeg to record this screen I ...
0
votes
1answer
779 views

FFmpeg raspberry pi OMX hardware encoder with inline_headers enabled = Increasing latency over the time

I managed to enable inline header on the OMX H.264 hardware encoder. inline header(SPS/PPS) are mandatory to play an already launched stream. https://github.com/Serveurperso/FFmpeg/commit/...
4
votes
3answers
7k 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 ...
0
votes
1answer
770 views

FFmpeg convert G.711 Audio to AAC Audio

Is it possible at all to convert G.711 audio to AAC audio in a stream using ffmpeg? My cam is streaming fine in Chrome (video + audio) but all the other browsers have no audio. I would appreciate any ...
0
votes
1answer
106 views

get metadata for video start time with ffmpeg

I need to get the start time of some videoclips (very precise, ideally precise at 0.1 sec). I have been told that I may be able to do so using ffmpeg. I managed to install it but am not sure how to ...
0
votes
1answer
95 views

How to “re-interlace” a video? How to convert a naïvely deinterlaced 480p video back to 480i?

I have a 480p video that was naïvely created from a 480i original and had no deinterlacing applied. The resulting format is 480p25. Combing is visible and I would like to convert it back to 480i50, so ...
0
votes
1answer
53 views

Need to concatenate several MP4 from Garmin dashcam with telemetry

I have a Garmin 66W dashcam for my work (street mapping surveyor) which produces several 1min. MP4 videos of my journey (60 min. = 60 videos). All these videos have telemetry data on it as metadata (...
0
votes
1answer
179 views

ffmpeg to convert .avi to .mp4 results in error: Could not find tag for codec dvvideo in stream #0, codec not currently supported in container

I'm trying to convert .avi files to .mp4 using ffmpeg, as lossless-ly as possible. I tried this command: ffmpeg -i filename.avi -c:v copy -c:a copy -y filename.mp4 and received this output: ...
0
votes
1answer
26 views

Extract audio from a multichannel video file

I have a QT ProRes which has 8 audio tracks. L/R/C/Lfe/Ls/Rs/Ltotal/Rtotal What I need to do is extract the 5.1 (tracks 1-6) into separate individual wav files without recompression and the last 2 (...
0
votes
0answers
67 views

How to force ffmpeg download live m3u8 from the first available segment?

When I use ffmpeg straight forward like this: ffmpeg -i 'playlist.m3u8' -c copy out.mp4 it searches for current segment (or maybe the last one) and drops all previous. I know that live playlist is a ...
1
vote
1answer
134 views

Concatenate videos by pipng to ffplay

I would like to dynamically generate infinite video stream from video clips, so that choose next one on the fly. I was inspired by ffplayout project which runs ffplay and make it read from stdin, and ...
0
votes
1answer
37 views

recomendations for conversion

I have a video in a very not compatible format and want to convert it to something like mpeg. I already have ffmpeg tool installed. Do you have any recommendations on what arguments to give ffmpeg for ...
0
votes
1answer
1k views

I am getting "Stream specifier ' ' in filtergraph description" in ffmpeg

I am generating 10 seconds of silence using an image. Here is my command ffmpeg -loop 1 -framerate 24 -t 10 image.jpg -f lavfi -t 10 -i anullsrc -filter_complex "[0][1]concat=n=2:v=1:a=1" out.mp4 ...
0
votes
1answer
38 views

replace video track and keep everything else

I want to use FFmpeg to replace a certain video track but keep everything else including chapters, audio, fonts etc… I know I should be using -map and -map_metadata but not sure how to do it.
0
votes
2answers
230 views

filter_script usage with ffmpeg and replacing inputs with a file

When using ffmpeg -i input1 -i input2 ... -filter_script filter_complex.txt output.mkv I can't seem to get the stream from the filter_complex.txt file to be recognized by ffmpeg. If I add -map [v], ...
5
votes
3answers
13k views

Concat two video files with fade effect using FFmpeg

Is there any way to concat two video files with a fading effect using FFmpeg? Something like this: ffmpeg -f concat -i input.txt -c copy "--with:fade:out-in" output.ogg
0
votes
1answer
942 views

ffmpeg invalid argument. Which argument was invalid?

UPDATED with info from -report I'm new to ffmpeg. I am trying to loop a video to a linux v4l2 device. ffmpeg -stream_loop -1 -re -f lavfi -i "movie=snail.mp4" -f v4l2 /dev/video4 -report ...
0
votes
1answer
38 views

Bulk re-muxing/re-encoding with ffmpeg in multiple folders

I'm quite new to the world of FFmpeg and video editing tools, but I essentially need to change the hash of a large set of videos that are organized in folders and subfolders and the easiest way I've ...
0
votes
1answer
20 views

What x264 encoder is better for upscaling pixel art? Is it x264 8bit or 10bit?

I mostly use Virtualdub2 to upscale my videos (although I am looking for other methods) via two resize filters, Nearest Neighbor and Lanzcos3. Recently I am looking at the x264 encoder to encode my ...
0
votes
1answer
218 views

ffmpeg and mapping against 2 target audio tracks!

Im trying to mux and encode a TS file with 2 audio tracks from a mov file. ffmpeg -loglevel verbose -i test.mov -map 0:1 -map 0:2 -acodec:0 aac -ab 160k -acodec:1 eac3 -ac 6 -ar 48000 -ab 640k -...
0
votes
1answer
451 views

Copy chapter metadata of input to output for Apple compatibility

I have a set of media where I'm trying to strip an audio track and copy everything else over. My command is like so: ffmpeg -i input.m4v -dn -map 0 -map -0:a:2 -c copy output.m4v The source file has ...
0
votes
1answer
34 views

Do modern devices support decoding 4:4:4 pixel formats?

I am recording and distributing relatively low motion screen content (not games). Using h264, fine text often appears very blurry due to the poor subsampling with 4:2:0 and 4:2:2 pixel formats. With 4:...
2
votes
1answer
265 views

Create a splitscreen video from two videos of different lengths with delay

I want to create a splitscreen video from two video clips. Left one is of duration 70seconds. Right one is of duration 80seconds. In the splitscreen video, the right video should start first. Left ...
0
votes
0answers
17 views

How to record two windows at once using ffmpeg?

I'm currently using this code: ffmpeg -f gdigrab -framerate 30 -i title="Chrome" -b:v 3M output.flv To capture a specific window title. Would like to ask how I could also capture a second ...
2
votes
1answer
1k views

ffmpeg: joining videos leads to "time skips" during playback

I hope that someone can help me. I have the following two videos: $ ffprobe 0.ts ffprobe version 3.2.4 Copyright (c) 2007-2017 the FFmpeg developers built with gcc 6.3.1 (GCC) 20170109 ...
0
votes
0answers
10 views

FFMPEG Audio Stream lengths

Ill make this as quick as possible. I recorded with obs, used ffmpeg to convert from .mkv to .mp4 with 3 audio tracks in .aac Command: @echo off & setlocal enabledelayedexpansion for %%v in ("...
1
vote
1answer
2k views

HLS to RTP multicast FFmpeg

I want to transmit HLS stream to RTP multicast via FFmpeg and use the following command: ffmpeg -re -i HLSstream -c copy -f rtp_mpegts rtp://ip:port But the output source сrumbles sometimes (I ...
0
votes
1answer
1k views

FFmpeg keep different sar and dar in multiple videos

I have two video that I'm working through filter_complex. First video is 1280x720 [SAR 1:1 DAR 16:9] and the second video is 1280x720 [SAR 203:640 DAR 203:360] I would like to merge the files with ...
1
vote
1answer
395 views

FFMpeg -filter_complex to place a video in a window on a larger image with text

I'm trying to work out how to combine both features of the following in one -filter_complex statement in order to take an image, write some text on it, and then do an additive composite of a small ...
1
vote
1answer
3k 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
1answer
213 views

resend headers NUT formats

If I do this ffmpeg -f dshow -video_size 720x480 -framerate 29.97 -i video="Roxio Video Capture USB":audio="Line (Roxio Video Capture USB)" -c:v mjpeg -c:a pcm_s16le -map 0:v -map 0:a -f fifo -...
0
votes
0answers
79 views

ffmpeg: copy an audio track and convert another in the same video file

After trying to find a solution for this for about two hours now I have to ask here or I'm going mad. I have a video with these tracks: Stream #0:0(eng): Video: h264 (High), yuv420p(progressive), ...
0
votes
1answer
291 views

Is there a way to use nlmeans_opencl filter with a 10 bits source?

So far I have only managed to run nlmeans_opencl filter with the following settings: ffmpeg -init_hw_device opencl=gpu:0.0 -filter_hw_device gpu -i 10bit_input.ts \ -vf "hwupload,...
1
vote
1answer
322 views

ffmpeg Auto Level, Auto Color etc similar to YouTubes Auto-Fix

I used to use YouTube Auto-Fix which presumably auto fixed levels, color, contrast and added a bit of vibrance (it was almost always a bit high saturated which i kinda liked). I am looking for an ...
0
votes
1answer
834 views

Batch add intro and outro to videos

I have 500+ videos. I need to add intro and outro to them. Found this .bat script on a different website, and tried it. But it didn't work for me. As the script only ads outro - still didn't work. ...
0
votes
1answer
46 views

ffmpeg and ffprobe existing library or an add-on, pros/cons of building one myself

I work with video creation, animation, or fix video elements for several broadcasters in my area. My pipeline includes ffmpeg suite of libraries, and I have written one plugin specifically for ffmpeg ...
0
votes
2answers
2k views

How to 2-pass h264 with CRF and maximum bitrate with ffmpeg?

Based on CRF Guide (Constant Rate Factor in x264, x265 and libvpx), quoting: Streaming nowadays is done a little more cleverly. YouTube or Netflix are using 2-pass or even 3-pass algorithms, ...
0
votes
1answer
2k views

Color changes after video to single frame images back to video using ffmpeg

Given master video in mov rle: Video: qtrle (rle / 0x20656C72), rgb24(progressive) Converted the video to a serie of single .bmp frames. ffmpeg -i source.mov $FRAMES/f%03d.bmp Frames from ...
0
votes
0answers
13 views

ffmpeg aborts streaming to SRT when client stops playing

I'm using ffmpeg to stream using the SRT protocol, with for example this command: ffmpeg -re -f lavfi -i testsrc \ -c:v libx264 -g 25 -preset veryfast -tune zerolatency -r 25 \ -f mpegts "srt:...
1
vote
1answer
1k views

change aspect ratio without stretching video ffmpeg

ffmpeg -i "a.mov" -i "b.mp4" -filter_complex "[0:v]setsar=sar=${SAR}[a]; [1:v]setsar=sar=${SAR}[b]; [a][0:a] [b][1:a] concat=n=2:v=1:a=1 [v] [a]" -map "[v]" -map "[a]" -preset veryfast -crf 18 "...

1 2
3
4 5
37