Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [video-encoding]

Specific issues with encoding video to a certain format, also related to [video-conversion]

0
votes
0answers
22 views

FFMPEG: How to convert 24 bpp MP4 to 16 bpp AVI that has rgb565le format?

SUMMARY: I'm trying to figure out (get an example, I guess) how to use the scaler src_format/dst_format tags to convert to a specific 16 bpp RGB format for a target device. I'm dealing with some ...
0
votes
0answers
25 views

Video and Audio Sychronization issue

I am saving frames to H264 format and I saved audio to aac format. Then I concatenate of these format to creating mp4 format using ffmpeg player in android but When I concatenate Audio and Video, ...
1
vote
2answers
202 views

How do I convert 10-bit H.265 videos to H.264 without quality loss?

My laptop can't handle 10bit H.265 / HEVC videos, so I'm looking to convert them to 10bit H.264. How do I do this using, say, ffmpeg, with the least quality loss? And how can I convert 10-bit H.265 to ...
0
votes
0answers
29 views

Why is VLC playing a WTV file at half the frame rate?

I have a .wtv file of a 1080i network television broadcast I recorded using Windows Media Center on Windows 7. In Media Center and Windows Media Player, it appears to play back at a buttery smooth ...
1
vote
1answer
80 views

FFmpeg: Remove Unsupported Subtitle Streams (MKV)

I'm making a script which loops through a list of media files and then re-encodes them using FFmpeg. My issue is that I need to remove any subtitles that the MKV container doesn't support. This should ...
0
votes
1answer
191 views

libx265 & ffmpeg: the better compression, the larger files?

Trying to squeeze the last bit, I made the finding, that my files get larger then smaller. Unfortunately I must have misinterpreted some parameters. Maybe you can help me. The reference is -preset ...
1
vote
0answers
126 views

Cannot get lossless compression to work with ffmpeg with upscaling on windows 10

I am trying to convert a sequence of png images to a lossless video while upscaling (keeping the same aspect ratio). I have attached one png image . However, every lossless option I use either is ...
1
vote
2answers
45 views

How can I batch convert videos into 4:3? [closed]

I've got about 112 videos, each ~240MB. All of them are in 16:9 and I'd like to change them to 4:3. What's the most nonresource-intensive and convenient way I can accomplish this without losing any ...
0
votes
1answer
117 views

Video frame capture: I-frame vs P-frames

I'm trying to capture various frames within a x264-encoded video files into png files (in python), and then compare the quality of them: cap = cv2.VideoCapture(filename); //get frame_number for ...
0
votes
2answers
303 views

How to add additional key frames to video using ffmpeg?

I want to add key frames on the base of a specific interval (20 frames) to my video. Therefore I used the following command in ffmpeg: ffmpeg -i <input> -vcodec libx264 -x264-params keyint=20:...
0
votes
0answers
99 views

Ffmpeg Gaussian Filter (gblur) kernel size

I am applying a Gaussian filter to a video using ffmpeg's gblur-filter. The filter accepts the sigma option, but does not allow to choose the kernel size. To correctly report on my Gaussian blur usage,...
0
votes
0answers
29 views

Streaming low resolution game with nearest neighbour scaling and low bitrate

I want to stream an old game in resolution 320x200 to Twitch. The problem is, I can sacrifice only ~500 kbps bitrate for it, preferably even less. The problem is, streaming in 320x200 resolution ...
2
votes
1answer
123 views

Getting more than two NVENC video streams

I'm attempting to record (to a file) three or more 1080p webcams on a single computer simultaneously. I successfully used two instances of OBS studio to record two webcams. The third instance throws ...
0
votes
3answers
716 views

Get the list of I-Frames in a video in FFMPEG / Python

I'm trying to select say 10 frames from a given video, possibly with highest variety and scenes. I would like to experiment with various selection scenarios, but the good thing is that the notion of I-...
1
vote
2answers
1k views

ffmpeg: how to create an interlaced h.264 video?

I would like to convert a high quality non interlaced input video into a less quality but wider distributable H.264/MP4 format. The output should have some constraints - in particular: it should be ...
0
votes
0answers
304 views

RTP/UDP Video Stream Via Local File?

I'm stumped here... We use a signage software package here at work that for some weirdo reason, requires EVERYTHING to be coded in XML in order for anything to work... The problem is this: We ...
1
vote
0answers
134 views

FFMPEG command error for scene detection: Output file is empty

I'm trying to detect scenes in a given video and after playing around with scenecut thresholds, store the first frame of each scene as an image. I'm using the following command: ffmpeg -i input.mp4 ...
0
votes
0answers
459 views

FFmpeg scene detection and scenecut

This is a follow-up question from my previous question posted HERE. So basically using FFmpeg, I'm trying to detect scenes after choosing a good scenecut threshold, and grab a single representative ...
0
votes
2answers
451 views

Use FFmpeg to split video into multiple scenes

I am trying to use FFmpeg for splitting a video into multiple supposedly single-scene sub-videos using the scenecut feature and threshold. I found the following command on SE: ffmpeg -i myVideo.mp4 -...
0
votes
1answer
104 views

FFmpeg : using more than 15 audio streams

I encountered a problem with video encoding. Here it the command I use to create a video. ffmpeg -framerate 30 -i /Users/Images/image_%03d.png -ss 0.0 -t 3.333 -i /Users/Sounds/Info_01.wav -ss 0.0 -...
0
votes
0answers
56 views

ffmpeg create gif for multiple videos in a folder

I have hundreds of videos in a folder /home/videos/ and I would like to create a gif for each video. The gif should be comprised of 10 different screenshots across the videos length. So for example ...
0
votes
1answer
173 views

How to efficiently set the duration of the first frame of an mp4 movie?

I have a self-coded app that utilizes the Camera2Video sample Google published on GitHub. Unfortunately, there seems to be an issue from Android 6 on upwards that causes recorded videos to be broken. ...
0
votes
1answer
283 views

Set an excat GoP-length open and no-open in ffmpeg

ffmpeg -f rawvideo -vcodec rawvideo -s 1280x720 -r 50 -pix_fmt uyvy422 -i Test.yuv -c:v libx265 -x265-params keyint:150:open-gop -b:v 10M Test_open_150_10M.hevc As you can see, I'm trying to ...
0
votes
1answer
211 views

VLC can but Instagram and “Gallery” cannot play my videos

I've been busy over the past few days trying to compile a timelapse from a string of images using FFMPEG. After initial issues, I've got it working and have a perfect MP4 that plays in VLC player. It ...
2
votes
1answer
77 views

Why do people still backup their movies as mkv today? [closed]

Why anyone would use the matroska container when mp4 is way more compatible and has at least all mkv features as a container? Am I missing something ?
0
votes
0answers
211 views

extract all attachements (fonts) from mkv video and add them other without

how can I extract all attachments (fonts) from Mkv video and add them other without adding one by one and without knowing their name? (without programs just FFmpeg working from CLI - MKV MKVToolNix ...
1
vote
0answers
712 views

Add soft subtitles with formatting and position

I’ve been using ffmpeg to do everything so far with a video, stringing animation frames together, adding audio, overlaying images, and adding subtitles. So I expect that the answer to my question ...
0
votes
2answers
199 views

Why do MPG files take up so much space? Is it an outdated format?

I tried googling this but I didn't actually find any conclusive evidence to sustain this so I'm going to present my case. A couple of years ago I took the time to convert all our family video tapes ...
3
votes
1answer
3k views

AV1 encoding with ffmpeg

Since the newest version (4.0), ffmpeg supports the AV1 codec. VLC should also be able to play AV1 videos. Unfortunately I haven't found the syntax to encode existing videos to AV1. I use ffmpeg ...
0
votes
1answer
75 views

How to remux .dav files to mkv/mp4?

It's common for security video footage to be exported as .dav and this proprietary is useless for most people! How can you remux it to mkv/mp4 without quality loss?
0
votes
1answer
264 views

Why ffmpeg increases file size?

I'm trying to encode the video in the same quality in the same format, but the output file is several times larger than the input file. Whyis it happens? I want to fix the encoding errors, but I can ...
1
vote
1answer
260 views

Add keyframe to middle of video without reencoding entire video

I need to add I-frames to the middle of mp4s at ad breaks so I can segment to HLS and have I-frames when the video cues back in. I know how to do this while reencoding the entire video and forcing key ...
0
votes
0answers
45 views

Merging a splitted .ts recorded by dvb reciever that uses fat32 file system without losing frames

My receiver uses fat32 file system which limits a single .ts file to 3.99 gb ~4gb which is equivalent to a certain duration depending on the recorded channel. If it's done recording the allowed 4 gb, ...
1
vote
0answers
48 views

FFMPEG Getting Error During Segmenting MP4 Video

I am getting below error while I am breaking an MP4 video into small segments, using below command. ffmpeg -i F:\video_data_set\non-profit-in-funnel-scripts.mp4 -f segment -segment_time 5 -...
0
votes
0answers
69 views

Adobe Media Encoder lengthen video duration by showing blank frames

I'm encoding an .mp4 using Adobe Media Encoder. It's currently 20:15:28 long, and I would like to make it exactly 20:30:00 long by showing black frames at the end. I've looked through all the ...
1
vote
1answer
260 views

Splitting, re-encoding and joining video files results in clicking audio

We want to encode large video files faster. To make encoding faster we are using multiple encoding servers. Below is our process of encoding flow First we split the video into small segments using ...
1
vote
1answer
355 views

Why is ffmpeg changing framerate from 60 to 120?

I'm using ffmpeg from powershell as ffmpeg.exe -i i.mp4 o.mp4 -crf 22 and the video frame rate is changed from 59.99 to 120 for some reason. Any ideas why this is happening and how to use the source ...
0
votes
0answers
28 views

Why Easy Video Maker won't create video in windows 10?

Easy Video Maker dashboard Easy video maker says video created successfully, but when i open the output folder, the video file is blank. I'm using windows 10. I have no problem using this same ...
0
votes
0answers
246 views

Getting ffmpeg error “Error initializing complex filters”

I'm using ffmpeg in my java program. Here is my command, it works fine on the terminal and Windows application, but when it runs on the Mac application, it keeps giving me this error Error ...
1
vote
1answer
403 views

OBS recording videos at 1000 FPS

I'm currently in the midst of digitising my VHS cassettes with OBS Studio. I've set the Video Capture Device to 25 FPS but it still records at 1000 FPS taking up horrendous amounts of disk space. I've ...
0
votes
0answers
56 views

Tool to fix video files where audio is playing at wrong rate (stretched audio)

I've looked through numerous similar questions about audio and video being out of sync, but this is different: I have a bunch of video files where the audio is playing at roughly half the rate it ...
1
vote
0answers
206 views

Time-based instead of frame-based zones (with different CRF) for ffmpeg+x264/x265 encoding?

x264/5 have a zones parameter to support different encode settings for part of a video, but it only accepts frame numbers, not timestamps. This is a minor inconvenience with constant-frame-rate video,...
0
votes
1answer
1k views

ffmpeg how to change video framerate without changing video duration?

I'm trying to encode a video with a diffrent constant framerate using ffmpeg. The duration of the output file is different than the original by a 0.02 seconds which is about a frame. How do I change ...
1
vote
2answers
1k views

VP8 single pass conversion with good quality in ffmpeg

I am working at a raw to timelapse program, and I am using ffmpeg to generate a video out of a sequence of JPGs that my program outputs. The user can select from different codecs, such as libx264, ...
0
votes
1answer
483 views

ffmpeg - mapping multiple audios to one channel

I want to output a video file with multiple sounds, but put them in one channel. I've tried couple ways to do it, but I'm always given a video with multiple sound streams. Like this My command is ...
1
vote
1answer
123 views

Reject DTS-HD MA

I have couple of video files containing both regular DTS as well as DTS-HD MA audio tracks. I want to get rid of the DTS-HD MA audio streams during transcoding, but have not figured out how to do so. ...
1
vote
0answers
174 views

Why is my ffmpeg output smaller than my input after only editing metadata?

I am using ffmpeg to edit mp4 creation_time metadata, using the command: ffmpeg -i input.mp4 -metadata creation_time="YYYY-MM-DD HH:MM:SS" -codec copy output.mp4 Creation date is successfully ...
0
votes
0answers
576 views

Uploading FFmpeg Video to Twitter, First Few Seconds Quality is Terrible

I'm using FFmpeg to create a video from an audio track and a sequence of jpeg images (it's a 5fps animation. I've tried variations of CRF 0, 17 and 23 and I've tried 2 pass encoding with a bit rate of ...
0
votes
1answer
183 views

Does an FFmpeg preset have any use if I'm using -crf 0?

I'm encoding a video for upload to YouTube and Facebook using libx264 and setting -crf 0. Is there any benefit to using a preset as well? My understanding is that the preset affects encoding speed/...
1
vote
0answers
547 views

FFMPEG split a video into multiple scenes/shot videos

I want to use FFMPEG (or ffprobe) to split a video into multiple shot videos/scenes (scene1.mp4 to sceneX.mp4, each a separate video). So whenever there is a scene change, it should cut it. What is ...