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
21 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 ...
1
vote
1answer
155 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
0answers
96 views

python for loop result in ffmpeg command

hi im trying to insert for loop results in a ffmpeg command i tried some code but all i get is first text with no sound and it glitches and freezes i tried many modification but no success i ...
1
vote
1answer
343 views

What's wrong with this MP4 file? Is the pixel aspect ratio wrong?

Similar to this post, I've sent some video tapes off to be digitized. In this case, they are mini-DV tapes which should be 720x480 resolution (more or less). The resulting MP4 files do claim to be ...
0
votes
1answer
124 views

drawtext ffmpeg 'Unable to parse graph description substring'

hi im trying to add text to live video stream but i keep getting error with my command, i already tried -filter_complex but no success ffmpeg -loop 1 -i img1.jpg -vf 'pad=ceil(iw/2)*2:ceil(ih/2)*2:[0:...
0
votes
0answers
226 views

FFMPEG: Convert WebM VP8/VP9 multi-resolution video to MP4 (H.264)

I have been trying to convert a multi-resolution WebM video ( VP9/VP8/H.264 ) (1280 x 1080 till the half, thereafter 1080 x 1280) to MP4 container with H.264 encoding for video. When transcoded with ...
0
votes
0answers
77 views

FFmpeg start slowly with multiple instance on nvidia T4 GPU

environment: OS:Centos7 FFMPEG version: 4.2 GPU: NVIDIA Tesla T4 I have a requirement to work with multiple FFMPEG instance,command like this: ffmpeg -y -loglevel info -hwaccel cuvid -...
0
votes
1answer
25 views

Apple Quicktime cannot open a video that has been brightened using ffmpeg?

I changed the color level of an video ("ORIGINAL_VIDEO1.MP4") that had previously played well in Apple Quicktime. After brightening, ffmpeg -i ORIGINAL_VIDEO1.MP4 -vf colorlevels=romin=0.4:...
0
votes
0answers
445 views

How to stream a continuous video with ffmpeg (python)

My goal is to create images 'on the fly' using python code, turn those images into a video (one image lasting X number of seconds at a fixed framerate) and then stream this to a server. The goal here ...
0
votes
0answers
29 views

ffmpeg video analysis to command parameters

I want to convert a video to be played on a portable dvd/usb player. The original video is not recognized there. Is there a way to convert automatically an analysis video that I know it plays to ...
0
votes
1answer
358 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
229 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
23 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:...
0
votes
1answer
113 views

ffmpeg: convert an existing audio stream as an additional audio stream (keeping untouched original as well)

I have a video with 1 video stream, 2 audio streams (TrueHD 7.1 and E-AC3 5.1), a bunch of PGS subtitles and chapters. I want to copy the video, convert the 7.1 audio into AAC, copy over the original ...
0
votes
0answers
692 views

Adding separate WebVTT files to FFmpeg HLS muxer

I've been experimenting with adding WebVTT subtitles to an HLS playlist, but I'm starting to ask myself if what I'm trying to do is actually possible. My main file is containing a single video track ...
0
votes
1answer
181 views

Find duration only with ffprobe in Windows

I want to find video file duration only with ffprobe but ffprobe FILENAME.EXT 2| find "Duration:" does not filter output to show just the line with "Duration:" Instead, I got: ...
0
votes
0answers
30 views

ffmpeg pushing streams stops in middle

I am using ffmpeg command to push the RTSP stream to Wowza RTMP endpoint. I am using below command to push the stream to Wowza ffmpeg -stream_loop 1 -i rtsp://192.168.0.201:554/live0 -c copy -f flv ...
0
votes
0answers
23 views

Transcoding BlueRay's gives inconsistent filesizes

When I rip a BlueRay, the output file is usually between 15-30 GB. That's too large for archiving on my NAS, so I'd like to compress them down further. I'm targeting 6-8GB for 1080p movies. Obviously ...
0
votes
1answer
304 views

How to turn video with spherical, equirectangular projection into an actual “360° video” playable with VLC?

I have a video (MP4/AVC) that is in 2:1 aspect ratio and uses equirectangular projection for a spherical video (often called "360° video"). VLC can play spherical videos since version 3.0.0. ...
0
votes
0answers
44 views

Audio sync issues when splitting mp4 with ffmpeg (editlist issues?)

I have an mp4 that is a screen recording prepared by ffmpeg (I think v 3.3.3), 10 FPS with a key frame every 250. Nothing about the avcodecs is specified on the command line so it's all default. Here ...
1
vote
0answers
156 views

Can ffmpeg be used to automatically tighten video by removing duplicate frames and quiet audio simultaneously?

I am working with gameplay footage from simulation games. Because they are simulations, even when well-optimized there are often framerate drops when the simulation becomes too computationally ...
2
votes
1answer
210 views

Can ffmpeg calculate a new starting keyframe when being asked to split/copy on a non-keyframe?

I understand from a question here that keyframes can (and do) occur anywhere in an h.264 stream, so I'm wondering why most of the advice I see where users want to cut on a specific time or frame (that ...
0
votes
1answer
86 views

ffmpeg amix filter command execution never stops

Hello I want to achieve something like in this pic below using ffmpeg: Initially I used below command: ffmpeg -i input1.mp4 -i input2.mp4 -i input3.mp4 -filter_complex nullsrc=size=960x304 [base]; [...
0
votes
0answers
195 views

Scale video without keeping aspect ratio in ffmpeg

I want to make a video 'wide', so the width is increased and the height stays the same as of the input image. I use the following command: ffmpeg -i test.mp4 -vf scale="1000:200" output.mp4. ...
0
votes
0answers
54 views

Hevc Transparent Channel? (Apple WWDC19)

So, Up until now, HEVC Supported Transparent. But there wasn't any encoding Software To Encode that Transparent Pixels in it. Until Apple made their Own Way of Putting Alpha pixels inside a consumer ...
3
votes
1answer
110 views

How to filter out overlapping audio? Given a mixed track and one stem track, what's the best way to “subtract” the stem from the mix?

Given two audio streams, I'd like to remove the audio in one stream that also exists in another. In this particular case the 1st stream contains everything mixed, and the 2nd stream contains just the ...
0
votes
1answer
82 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], ...
0
votes
0answers
29 views

Trim Audio Only of a Video file - FFMPEG

I have a mkv file containing a Video 1 minute shorter than audio. I want to Cut out first 1 Minute of Audio Stream. How Would I accomplish That With ffmpeg? I tried -ss 00:01:00.000, But that also ...
0
votes
0answers
20 views

iMagick has coalesce, is there an alternative for this on ffmpeg?

I want to convert a gif that contains changed pixels per frame to a gif that contains all pixels in all frames. Is this possible? So with imagick I would use coalesce
0
votes
2answers
392 views

Does HEVC Support 16-Bit RGB Color Format?

I have some 3D Rendered Frames in 16-bit rgba Color Format.... I don't Wanna Lose Any Data... Because I have to Use those in editing.... But With Thousands of Frames in 4K File Size Matters.... So Why ...
0
votes
0answers
121 views

Scale Video, Without 'ffmpeg Scaler' converting colorspace from RGBA to YUV

I have a video in RGBA space contained in MPNG codec. Which is in 4K. I need to Convert that into a 1080p File... SO i Used this - ffmpeg -i input.mkv -vcodec libx265 -vf scale=1920:1080 -sws_flags ...
0
votes
1answer
103 views

Valid Slideshow-Video created by ffmpeg is not accepted by Twitter

I create a video from a slideshow using ffmpeg. I have a valid video at the end. VLC plays that video, YouTube also. I want to display the final product directly on twitter. I checked the recommened ...
0
votes
1answer
17 views

Video not playing properly after ffmpeg vintage effect applied

I am using ffmpeg 3.3.4 for android. I am executing below simple command: ffmpeg -i input.mp4 -vf curves=vintage -c:a aac ouput.mp4 and ffmpeg -i input.mp4 -vf curves=vintage -c:a copy ouput.mp4 ...
1
vote
1answer
275 views

HLS.js player dropping frames at discontinuities in HLS stream

I have a need to play small pieces (1 or 2 seconds) of video in various orders via HLS. Think a highlights reel from a sporting match. Several HLS players struggle with playing a stream with ...
0
votes
1answer
57 views

FFmpeg pad filter calculating wrong width

I'm using ffmpeg.exe -i in.jpg -filter_complex "[0:v]pad=iw:ih+10:0:0" out.jpg to add a padding of 10px at the bottom of images and videos. In most cases it works as expected but with some ...
0
votes
0answers
120 views

FFMPEG: How can I cut a mkv without considering keyframes?

I have an mkv video and i want to cut from seconds 3.3 to 22:07 minutes but i can't cut at that start timing because there isn't a keyframe. How can I bypass that?
0
votes
1answer
29 views

Efficiently compressing an AVI video

I have a few AVI videos of very high bit-rate ( 6.0 Second video is 72 MB in size ). I want to put these videos in a Microsoft PowerPoint presentation, and since there are a few 10 such videos the ...
0
votes
1answer
75 views

How to remove video streams from .wmv with FFmpeg?

I'm working on a method to programmatically remove video and subtitle streams from video files of various formats and have been having some trouble with most .wmv files. Below is what I believe to be ...
0
votes
1answer
141 views

ffmpeg concatenation of MP3 files to single M4A file fails

Instructions from this site, Can ffmpeg input mp4 and convert it to m4b or m4a? fail to concatenate and convert multiple MP3 files into one M4A file. I downloaded the ffmpeg static build for Windows ...
0
votes
0answers
9 views

Styling subtitle

I got some bunch of Kdrama and some subtitles, i mux them for watching but found the subtitle looks bad it need some style, thanking fully i am using VLC and it can style the subtitle itself and make ...
0
votes
0answers
37 views

Output Motion stream as discoverable compressed stream (ffmpeg)

I have a raspberry pi 3b+ (Manjaro Linux) Motion server broadcasting a webcam over the network. Motion creates an MJPG stream over HTTP. This consumes a lot of resources by any player playing the ...
0
votes
0answers
244 views

Want to Blend Frames when Converting from 60fps to 30fps with FFmpeg

I have created some videos of a game I played to upload to YouTube. The game plays at 60fps & the original videos have been recorded at 60fps. However, YouTube re-encodes them down to 30fps using ...
0
votes
0answers
11 views

FFmpeg to replace first and last 20 seconds of multiple videos with new clips

I have a lot of videos that need the intro and outro's replaced. I'm new to FFmpeg and haven't got a clue where to start! I think I need to keep the audio from the original too, if possible.
1
vote
1answer
103 views

Cropping 2048x1152 (16:9) to 1.85:1 removing black bars

for the past 48 hours I tried to crop the black bars of a 2048x1152 (16:9) video to a 1.85:1 aspect ratio (which is 2048x1107) so that the encoded video shows exactly what is meant to be. First ...
0
votes
1answer
460 views

I want to produce a scrolling image

I have an image (say .png) of big vertical size. I want to create a video that shows this image slowly scrolling from the top to the bottom. How? ffmpeg? pymovie?
0
votes
1answer
94 views

How do I crop multiple areas of each frame of the video using ffmpeg?

For each frame I want to crop multiple areas using ffmpeg but I am not sure how to proceed. This is what I have done to crop one part of the image, fmpeg -i video.mp4 -filter:v "fps=1,crop=759:41:...
1
vote
1answer
123 views

A specific MP4 file is not playable with avfoundation in iOS

I have an mp4 video file that I want to play it in iOS using avfoundation. Unfortunately, the file is not being played and save into the default gallery (photos) even it has h264 video codec and aac ...
1
vote
1answer
162 views

How can I prevent YouTube from distorting the audio in my QuickTime video?

I recorded about 20 MP4 clips: most on my Android phone with the stock camera, a couple from Facebook (downloaded from the mobile web view), and one from a Zoom session. I cropped or scaled and padded ...
0
votes
1answer
101 views

Trying to stabilize a video with FFMPEG so that it looks like it was taken with a tripod

I have tried to stabilize this video this video using ffmpeg. I have tried deshake and vidstabdetect/bidstabtransform. I would like the outcome to look like it was taken from a tripod I have tried it ...
0
votes
0answers
30 views

FFMPEG: crop a video every 10s without losing the quality

I have an mp4 video of 1080x720. I would like to crop the video to 480x270 without quality loss every 10s in video and then scale to 1080x720 (10s zoom in and then back to default repeat to the end of ...

1
3 4
5
6 7
35