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

Processing h264 video/audio stream

I have separate raw audio and video frames from a camera that I'm trying to merge to a single file. Video processing I have JVT NAL sequence, H.264 video, main @ L 31 data, I had the frames separated ...
Dinamo's user avatar
  • 1
0 votes
0 answers
11 views

How to change resolution without compromising video quality using ffmpeg?

I'm trying to develop a simple video transcoding system. When you upload a video, After extracting the video and audio separately, I want to encode them at 360, 720, and 1080p resolutions respectively ...
blake banker's user avatar
0 votes
0 answers
16 views

batch generate thumbnails

I am looking for a way to batch generate thumbnails contact-sheets with ffmpeg. A single line bash command line will do but a script is also okay. This a example. -The dimensions of the jpg must be ...
Anton Harpitap's user avatar
0 votes
0 answers
6 views

Does FFMPEG rewrite HLS m3u8 playlist files from scratch every segment when -hls_playlist_type = event?

hls_playlist_type event means the playlist file is supposed to be appended with each new segment reference and segments are never removed. And yet I've always noticed in the ffmpeg log with each ...
hedgehog90's user avatar
1 vote
0 answers
15 views

How to get a 7.1 PCMle encode in an MOV container to stay a single track while also rendering as 8 mono tracks in an NLE like an MXF container

I've been trying to convert Blu-Ray footage to the most efficient, yet least time consuming format for editing footage from them. For a while, I would make an MXF container and encode the h264 to ...
varys_da_spidah's user avatar
0 votes
0 answers
10 views

Inverse Telecine (IVTC) anime DVDs

Issue I have a bunch of anime I've ripped from DVDs and even BDs that are 480i. I want to upscale these videos with Topaz Video AI for higher quality on a big screen, but also because subtitles are a ...
Kevin Ghadyani's user avatar
0 votes
0 answers
9 views

Non-monotonic DTS Errors in Concatenated FFmpeg Output with Multiple Streams

I've encountered an issue while concatenating video files using FFmpeg, specifically when including multiple streams using the -map 0 option. Here are the details: I have two FFmpeg commands to trim ...
lucemia's user avatar
  • 101
0 votes
0 answers
25 views

How to serve long duration HLS playlist (12 hours) without creating massive playlists in FFMPEG?

I'm serving an HLS stream with the following ffmpeg command: ffmpeg -f flv -i rtmp://127.0.0.1/live -crf 22 -ar 44100 -ac 2 -fps_mode passthrough -force_key_frames expr:gte(t,n_forced*2) -map 0:v:0 -...
hedgehog90's user avatar
0 votes
1 answer
35 views

Creating an 8K/4K video in ffmpeg from single image frame leads to video longer than audio

I want to make a video using a cover image and an audio file with the audio file as the length. What's the most optimal modern way to do this with new codecs and high resolutions? Reason why I want 4K/...
MyPreciousss's user avatar
0 votes
0 answers
19 views

FFmpeg video trimming without acodec is time-consuming

I am using yt-dlp to get a direct link to the video. Some 360p and 720p links have an acodec. yt-dlp formats In case if you trim a video with a segment of 5 minutes for example, a video that has ...
Keily's user avatar
  • 1
0 votes
0 answers
37 views

Convert video to hequirect while setting the background black and blur the transitional area

I am using ffmpeg -i input.mp4 -vf "v360=input=fisheye:ih_fov=122.6:iv_fov=94.4:output=hequirect:h_fov=180:v_fov=180:in_stereo=2d:out_stereo=sbs,format=yuv420p" -b:v 25M -maxrate 60M -...
Zurechtweiser's user avatar
0 votes
1 answer
41 views

Concatenated Video created with FFMPEG is longer than expected

I am using this Video-List: file 'C:\Users\X\Documents\test\input.mp4' inpoint 00:00:02.7650000 outpoint 00:00:04.7650000 and the following Command: ffmpeg -y -safe 0 -f concat -i output.txt -map 0:v ...
Snickbrack's user avatar
0 votes
1 answer
33 views

ffmpeg problem with split & combine portions of same video

I'm trying to split & combine multiple portions of the same video file. Since there are multiple portions that I want to combine, I want to use filtercomplex to do this. Also, since some of the ...
icyGuy's user avatar
  • 1
0 votes
0 answers
47 views

FFMPEG - converting interlaced 720x480 MPEG2 to scaled up progressive 1440x1080 HEVC (Nvidia available)

I am trying to improve the video of a ripped DVD. The current file is encoded in MPEG2 interlaced and 720:480. I am trying see if it is possible, with a bit of conversion, for it to look better... ...
PCSO SAR COMM's user avatar
1 vote
1 answer
32 views

How to fix an mp4 when 1/4 of the video is in one orientation and the other 3/4 is rotated 90 degrees?

I have an mp4 video shot on an iPhone. Part way through the video the user rotated the camera 90 degrees and kept shooting. The first 1/4 of the video is right side up, there is a small section where ...
user1045680's user avatar
0 votes
0 answers
13 views

ffmpeg fails to load lensfun database

I'm trying to correct lens distortion of a video. I use below code that I took from here: https://ffmpeg.org/ffmpeg-all.html#Examples-132 (I just change the input and output file paths). ffmpeg -i ...
filibis's user avatar
0 votes
0 answers
29 views

How do I get better sound quality when screencasting with ffmpeg without having to increase -r?

I wrote the following script to capture both the screen and the audio from the microphone, both lossless from my laptop: #!/bin/bash d=$(date +"%Y%m%d_%-H%M") dimensions=$(xdpyinfo |grep ...
John Smith's user avatar
0 votes
0 answers
13 views

Using FFMPEG for Bidirectional Voice Communication with Symmetric RTP

I am trying to make a voice communication between two peers. The first peer is my local machine which is behind a symmetric NAT. The second peer is my server running on an AWS EC2 device which has a ...
Batuhan Öksüz's user avatar
0 votes
0 answers
42 views

How do I add a "border" in showwaves filter with FFMPEG?

Im attempting to make a wave video script in bash that allows the user to input an audio file and a background and displaying a wave filter over that image, and 1 that has a border around it so it ...
Reiko's user avatar
  • 1
0 votes
0 answers
26 views

How can we use Ffmpeg to apply blur, overlay a logo and waveform, and add a border around a video, step by step?

We're looking to enhance a video using Ffmpeg by implementing several effects sequentially. First, we aim to apply a blur effect to the entire video. Then, we want to overlay a logo and a waveform ...
itsfaisalkhalid's user avatar
0 votes
0 answers
12 views

receive mpeg4 stream using gstreamer

I want to receive an mpeg4 stream with gstreamer, the stream information is(using ffprobe shows the following): Input #0, mpeg, from 'udp://[email protected]:8001': Duration: N/A, start: 19215....
Muhammad Mirab Br.'s user avatar
0 votes
0 answers
147 views

Ffmpeg input seeking - "Invalid NAL unit size"

I'm trying to use ffmpeg to get a 10-second clip from the middle of a video. The execution time of the command is important, that's why I've decided to use combined input & output seeking (as ...
Dimitris's user avatar
0 votes
1 answer
16 views

Getting an error when attempting to use FFmpeg to copy primary AC3 audio to aac_he secondary audio

I am attempting to add secondary audio with FFmpeg to copy my primary audio over and encode it with libfdk_aac using profile aac_he. When I do, I am getting the following errors: [NULL @ ...
Tom Dimmer's user avatar
0 votes
0 answers
109 views

Ffmpeg outputting empty mp4 files for video concatenation command

When I run the following Ffmpeg command it produces empty mp4 files as an output. The command takes segments of a video as inputs, crops each input at particular locations, and then concatenates them :...
nonsequiter's user avatar
0 votes
0 answers
23 views

Ffmpeg dynamic cropping for every frame

I have different crop parameters for every frame. I was using sendcmd but apparently, that is not working. This is the format of my sendcmd file 0.00 crop 'w=466:h=432:x=1373:y=336'; 0.02 crop 'w=324:...
Aman Mehta's user avatar
0 votes
0 answers
28 views

Why does this HEVC HLS stream not play on browsers?

I have a HEVC HLS stream that does not play when I paste it e.g. in Safari. The video is encoded in HEVC and has a resolution of 4608x1728. The screen just stays black. The URL is: https://cdn2.taggy....
Sebastian's user avatar
1 vote
1 answer
51 views

ffmpeg, audio tracks, and QuickTime player

I tried to copy all streams (video, audio, subtitle) and add a tag with the following command in order to play the files using QuickTime player: ffmpeg -i in.mp4 -vcodec copy -tag:v hvc1 -acodec copy -...
janeden's user avatar
  • 121
0 votes
1 answer
29 views

How to insert alternate frames from multipule video sources to create a single output file using ffmpeg

I have a 4K 50fps video file that is split into 4 quadrants (only 3 are needed). It is generated by a slow motion camera running at 150 FPS. Each of the quadrants contains the same image shifted by a ...
openelectron's user avatar
0 votes
1 answer
36 views

How to create a video WITHOUT alpha, from a png sequence WITH alpha using ffmpeg

I have a sequence of pngs with alpha, and I'd like to encode to h264 without alpha, overlaid on black. My usual command for image sequence to h264 is ffmpeg -r 30 -i 'template %05d.png' -c:v libx264 -...
memo's user avatar
  • 103
0 votes
0 answers
20 views

FFMpeg: how to split a video, process only parts and merge everything back together

I have a question. Do you think I could do the following with FFMpeg: split a long video in MP4 format into three parts alter only the first and the third part, reencode them into MP4 finally, merge ...
Celdor's user avatar
  • 105
0 votes
0 answers
18 views

Downloading an HLS stream: ONLY in sync when downloading with ffmpeg. Possible explanations?

I'm trying to download a livestream that is just a plain hls with no encryption. I usually use streamlink, but this site I'm trying to use recently doesn't output a correct video/audio synced output ...
R.JEON's user avatar
  • 1
0 votes
0 answers
11 views

audio not offset with video in PIP using ffmpeg

I am trying to create a pip video from two separate sources while keeping the audio from both clips and delaying the pip video x number of seconds. I have successfully done it but sometimes the pip ...
Leetmouse's user avatar
0 votes
1 answer
24 views

Insert Audio at Every 60 Seconds and Delay Another Audio Stream until the End of the Inserted Audio with ffmpeg

I am trying to use FFmpeg to insert an audio clip at every 60 seconds into an audio file. I also want to delay the original audio stream until the end of the inserted audio clip , so that the ...
Aarav Shah's user avatar
0 votes
0 answers
11 views

Extreme Latency issues when streaming RTMP with FFMPEG

at the moment some colleagues and myself are working on our end-of-school-project, which is a FPV-Drone, where we're doing the electronics and more importantly the Live-Video ourselves. For this Video-...
LyffLyff's user avatar
0 votes
0 answers
33 views

How to use "youtube-dl + ffplay" to play youtube videos?

When I play the video using the code below, it plays normally. youtube-dl "https://www.youtube.com/watch?v=cqEp0Kr2kak" -o - | ffplay -autoexit -i - But when I specify the video format ...
bblew's user avatar
  • 1
0 votes
1 answer
46 views

librav1e cannot even utilize half of my CPU

Since I heard librav1e is kind of the fastest AV1 software encoder, I attempted to use it to convert an old MPEG-4 Visual video to AV1, but the result is way slower than the popular SVT-AV1 encoder. ...
Shanoa Ice's user avatar
0 votes
0 answers
19 views

ffmpeg broken pipeline error when push stream to rtmp server

I was trying to push stream to a rtmp server. firstly, I use OBS with default settings, it works ok. then I decide to use ffmpeg to do it. below is the command I use. ./ffmpeg -re -stream_loop -1 -i ...
tsang's user avatar
  • 1
1 vote
0 answers
102 views

Why does ffmpeg fail to "convert between the formats" with hevc_nvenc when I'm not doing video filtering?

I'm doing some nvidia GPU hevc transcoding to get stuff done at faster speeds. Most of the ~2000 titles that I'm transcoding work fine, but a handful are failing like Impossible to convert between the ...
Ryan Stewart's user avatar
0 votes
0 answers
24 views

FFMPEG: Remove entirely blue frames from a video

I'm trying to help my father who digitizes various video and audio tape formats. It appears that occasionally digitization hard- and software does not receive enough information from a frame and the ...
Kari's user avatar
  • 1
1 vote
1 answer
101 views

Setting the default subtitles

I managed to create the subtitle file, using different language with one single FFMPEG command: ffmpeg -y -loglevel "repeat+info" -i "file:Intervista.mp4" -i "file:...
Nicola Lepetit's user avatar
0 votes
0 answers
39 views

ffmpeg pass through video including Dolby Video

Given media that contains a video stream that includes Dolby Vision as one of the HDR metadata, how does one transcode the media and maintain the video stream as is (including the Dolby Vision and any ...
cmjordan's user avatar
0 votes
0 answers
17 views

Integration of FFMPEG filters into Adobe Premiere?

As Premiere allows to integrate third party plug-ins I wonder if there is an integration of free filters used in ffmpeg / libavfilter?
Chris's user avatar
  • 1
0 votes
1 answer
37 views

Vertical text with drawtext filter

Is there any way to overlay vertical (eg, Japanese) text using the ffmpeg drawtext filter? I've searched around but didn't find anything. The documentation makes reference to the ft_load_flags= ...
Danny's user avatar
  • 115
0 votes
0 answers
12 views

FPV-Camera Input in Black and White / losses Color on conversion with FFMPEG

so we're working on our end-of-school project and it's an FPV-Drone with an Analogue Camera on it. Plan is to send the video feed to a Raspberry Pi running an RTMP-Server from where a Phone-...
LyffLyff's user avatar
1 vote
0 answers
34 views

"top coded first"?

i notice that ffmpeg often provides four different scan modes (for example with -field_order) : top field first ; bottom field first ; top coded first, bottom displayed first ; and bottom coded first, ...
david furst's user avatar
0 votes
0 answers
17 views

How to achieve something like strftime but with rtp frame timstamp

I am trying to record a rtsp stream with ffmpeg, segmented by certain amount of time, and name the file with the start time. I used strftime to expand the output filename with timestamp, but I wonder ...
Harry Hsu's user avatar
  • 101
0 votes
0 answers
25 views

RTMP to decklink output using FFMPEG results in eventual "crunchy" audio

I'm using FFMPEG to take an RTMP stream and output it to a Decklink device. Here's the command I'm using: ffmpeg -i rtmp://192.168.1.4:1935:/publish/internal -async 1 -r 60 -b:a 320k -aspect 16:9 -vf ...
nwalke's user avatar
  • 101
1 vote
0 answers
55 views

Rotate Video Metadata - ffmpeg vs ExifTool

I created an ffmpeg script to rotate -90 some videos that I record on my Sony A7iii, with the camera vertically, this makes these videos display correctly. the script is this: ffmpeg -i input.mp4 -c:v ...
Tyrone Hirt's user avatar
1 vote
0 answers
15 views

Can you make if/then scripts in ffmpeg?

Is it possible to combine multiple scripts into one in ffmpeg? What I am trying to do is create one master script that changes commands based on the aspect ratio of the input video. For example, if ...
Bmcaps's user avatar
  • 11
1 vote
0 answers
25 views

ffmpeg - converting one audio track of a multi-track mp4

I'm having a few mp4 with two audio tracks, an english one in aac and a french one in dts. Now I want to convert only the french dts to eac3 with a single ffmpeg command. I use ffmpeg -hide_banner -i ...
Shaun.M's user avatar
  • 11

1
2 3 4 5
44