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
0answers
3 views

How to obtain the correct framerate with ffmpeg image2pipe format?

I have 40 .jpg in my dir folder and want to create a video at 20fps from them. I've tried the following command: find dir/ -iname '*.jpg' | xargs cat | ffmpeg -f image2pipe -framerate 20 -i - -s ...
0
votes
1answer
1k views

How to cut and merge mp4 video segments without re-encoding?

I have some screencast video files in mp4 container (h.264/mp3 codecs) that I want at times merge (i.e. C.mp4 = A.mp4+B.mp4) or at times cut removing some intervals (e.g. D.mp4 = A.mp4[0,320{seconds}]...
1
vote
1answer
852 views

DASH Live vs OnDemand profiles

I've read about dash profiles and from what I understood the difference between live and on-demand profiles are that live furthermore splits each representation into segments (which is critical for ...
0
votes
1answer
73 views

FFMPEG - Apply opaque white with mask

This seems like a simple thing to do, but for my life I cannot find an answer that does this the way I need to. Using a mask image, I want to make the white parts of the mask still be white (not ...
0
votes
2answers
135 views

Horizontal to vertical video using ffmpeg

I want to make a horizontal video get converted to vertical video using FFMPEG for automation purposes. I tried with this, which works for vertical to horizontal ffmpeg -i input.mp4 \ -vf 'split[...
0
votes
1answer
8 views

ffmpeg to cut subtitle file in sync with the cut video

I managed to cut the video and keep subtitle in sync by embedding the subtitles in the video: $ ffmpeg -i sample-mp4-file.mp4 -hide_banner \ -vf subtitles=subtitles.srt -ss 0:30:00 -t 1:33:31 \ ...
1
vote
1answer
2k views

YUV to RGB/sRGB color space conversion using ffmpeg

How to convert an mp4 file with YUV color space to RGB or sRGB color space using ffmpeg? I am trying to upload my video to YouTube and I read somewhere that RGB video looks better than YUV one. Thanks....
0
votes
1answer
42 views

ffmpeg: concat without temp files?

Is it possible to concat without temp files using ffmpeg? eg; # nice ffmpeg -v error -f concat \ -ss "52.519" -copyts -to "53.153" -i in.mkv \ -ss "53.186" -copyts -...
0
votes
1answer
521 views

I need to modify a movie's displayed subtitles and display as an image overlay

I'm kind of at a loss on how to do this. I have access to gimp/inkscape/ffmpeg/vlc, and I can download font styles as needed off the web. So I have a movie. I play the movie in vlc player, I display ...
1
vote
1answer
1k views

FFmpeg only and only change H264 profile and level?

I am use FFmpeg v4.1 . I want to change H264 profile and level but I want other settings to stay the same. I just want to change the profile of H264. I'm using this code, but I'm getting the error. -...
0
votes
1answer
259 views

ffmpeg - Slow down video and loop/repeat audio

I am trying to use ffmpeg to slow down a video speed by 25% (75% speed) without changing the audio speed. ffmpeg -i input_video.mkv -filter:v "setpts=1.3*PTS" "SlowVideo25.mp4" On ...
0
votes
0answers
14 views

How does the bitrate option affect 2-pass h264 encoding?

I am trying to understand how 2-pass (h264) encoding works in more detail than "first pass analyzes, second pass encodes". Most tutorials I found online use the -b:v option on the first and ...
0
votes
0answers
4 views

Python opencv subprocess write return broken pipe

I want to read an rtsp video source, add overlay text and push it to the RTMP endpoint.I am using Videocapture to read the video source and python subprocess to write the frames back to RTMP endpoint. ...
0
votes
2answers
7k views

Convert HLS stream to fixed FPS mp4

I am using ffmpeg to convert an HLS stream to mp4 using this command: ffmpeg -i https://example.com/xxx.m3u8 -y -vcodec copy -c copy -bsf:a aac_adtstoasc test.mp4 I only have access to this video ...
0
votes
1answer
52 views

FFmpeg on windows cut and fade question

so i am using the following code to in a windows .BAT file to cut up a video at X time: bin\ffmpeg -hide_banner -loglevel 0 -i "%video%" -c copy -map 0 -f segment -segment_time %...
10
votes
3answers
14k views

How to hold the last frame when using ffmpeg

I'm cutting/converting some videos with ffmpeg. What I'd really like is to be able to have the output hold the last frame for a few seconds (with silence for audio). Is such a thing possible? Or ...
0
votes
1answer
62 views

I want to convert .mp4 to .ts using H264 at constant framerate 25fps

I've been trying to do this conversion for a couple of days reading through forums ffmpeg -i in1.mp4 -vcodec libx264 -s 720x576 -vf "fps=25"-vsync cfr -b:v 2300k -acodec aac -b:a 128k out1....
0
votes
0answers
28 views

How do I make ffmpeg create video that retains transparent background from *.png images with transparent background?

I am a researcher, trying to string together a bunch of png files of a protein to a short video. I have all the png images with transparent backgrounds, but I can't seem to get this in the video. I ...
0
votes
1answer
266 views

Final Cut output to FFmpeg workflow

If I use Apple Compressor, I could just 'Send to Compressor', without first exporting a ProRes master. However, I would like to use FFmpeg/x264 for better quality (at low bitrate). Do I have to ...
0
votes
1answer
304 views

Change the timecode with ffmpeg in the middle of the track?

I know you can change the timecode of a file with FFmpeg with the option –timecode. This modifies the whole timecode of the file starting from the -timecode added. Can you change the timecode with ...
0
votes
1answer
61 views

ASS subtitle - Different alignment at block and inner level

I am trying to achieve an ASS subtitle that aligns the rectangular bounding block at the horizontal center of the window, while maintaining left-justification inside that block for multiline subtitle ...
0
votes
1answer
4k views

FFMPEG - 5.1 EAC3 encode output quality

I have PCM Wave source files that are 5.1 surround. My goal is to convert this to EAC3 at 192k per Apple recommendations. Here is the MediaInfo of my source media: General Complete name ...
0
votes
1answer
11 views

How do you trim videos in FFMPEG?

I am tried to trim my videos in Virtualdub but I also wanted to make a stream copy of the same video that I am trimming. Unfortunately, Virtualdub does not always give me the results I want as it ...
5
votes
3answers
4k views

FFMPEG slow / fast motion part a video anywhere

am trying to cut a part of Video Here is the code i have tried Let's say i have 6 seconds video and i want to slow down 2:5 seconds video that 3 second video First approach after searching is, Cut ...
1
vote
1answer
767 views

ffmpeg: Why did my capture speed drop? (can no longer capture using same command)

I've been using the following command to capture video with ffmpeg for the past two months using my Blackmagic Intensity Pro 4K capture card: ffmpeg -bm_v210 1 -rtbufsize 1500M -threads 4 -f decklink ...
1
vote
1answer
254 views

FFmpeg Batch encoding error: CRF/CQP is incompatible with 2pass

I am trying to create a batch file with 2 passes. Pass 1 scales the video. Pass 2 pads a border around it. They both work separately but will not work together. Pass 1: @echo off REM Scale video to ...
0
votes
1answer
40 views

How to save HDR 10 bit MKV videos as an image sequence?

I tried both vlc and virtuadub2, they both save out washed out images. Both show and save out washed out images. How can I save out these images so they look in proper HDR space?
0
votes
1answer
803 views

How to split,reverse and concatenate video using single command in FFMPEG?

i want to create reverse video with audio and remov from large clip.for that first split video in segment then reverse splits video then concatenate all reverse video as single video file but it take ...
0
votes
0answers
19 views

Decode Multi-Layer HEVC

I'm trying to decode an HEVC/H.265+ rtsp stream to an image using ffmpeg as follows: ffmpeg -rtsp_transport tcp -stimeout 10000000 -i 'rtsp://user:passwd@url:port/Streaming/tracks/101?starttime=...
0
votes
0answers
8 views

ffmpeg get Thread message queue blocking after hours

I'm using ffmpeg to record Xvfb and pulse audio. After 1h 30mins, it stopped and show this error [pulse @ 0x3406240] Thread message queue blocking; consider raising the thread_queue_size option (...
0
votes
1answer
29 views

Hue Cycle .gif files with ffmpeg as percentage of duration

Suppose I have a set of 1000 .gif files, each of different durations, and I want to cycle the hue (hue as in the HLS color space) of each .gif file once over its duration. So, for example, at the ...
0
votes
1answer
207 views

Create 4x2 grid mosaic

trying to create a 4x2 grid from 8 videos using the terminal on a mac. The code I am using is not working: ffmpeg -i input0.mov -i input1.mov -i input2.mov -i input3.mov -i input4.mov -i input5.mov -i ...
0
votes
1answer
25 views

Add audio and subtitle in mkv video by one command

Add audio and subtitle in mkv video by one command. Code add subtitle: -i input.mkv -f srt -i subtitle.srt -map 0:0 -map 0:1 -map 0:2 -map 1:0 -c:v copy -c:a copy -c:s srt -c:s:0 srt -metadata:s:s:0 ...
0
votes
1answer
99 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
77 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
830 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
816 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
33 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
14 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
17 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
31 views

Using ffmpeg to strip image based subtitles

Is it possible to remove only image based subtitles using ffmpeg? I know that you can manually select/exclude streams using -map, however I'm trying to automate this process, and the input files have ...
0
votes
1answer
20 views

ffmpeg libx264rgb error

When i was using ffmpeg i use libx264rgb to convert videos. But when I converted a video there was a error. I will put you a video so that you can see what happened. Original: https://archive.org/...
1
vote
1answer
449 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
57 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
14 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
761 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
699 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
83 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 ...

1
2 3 4 5
37