Questions tagged [video-encoding]

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

Filter by
Sorted by
Tagged with
3 votes
3 answers
1k views

Converting DVD video to .mp4 - getting skipping video and audio

I'm using Handbrake to rip old DVDs to .mp4 video, and the result I am getting is a video file that skips every second or so and repeats a previous section of the audio and video. Incidentally I got a ...
Mike Eng's user avatar
  • 385
2 votes
1 answer
679 views

Loop video to audio without increasing it's file size

Does any modern codec/container support looping video for certain amount of time/cycles? What I'm trying to achieve, is I have a small 15 second video file and a 3 minute audio file, and I want to ...
Jzuken's user avatar
  • 161
0 votes
1 answer
4k views

Intel Quicksync vs Nvidia CUDA in ffmpeg - how big is the encoding quality difference?

I'm just asking this out of pure curiosity. I use FFMPEG a lot. Sometimes, I just opt to use the good old CPU encoding and decoding, because of how effectively it preserves the original video quality, ...
pigeonburger's user avatar
  • 2,378
2 votes
1 answer
3k views

VP9 encoding with FFmpeg: relation between -speed and -deadline options

I've read in different places about -speed and -deadline options for VP9 encoding with ffmpeg, they seem to control more or less the same aspect (compression efficiency to execution time ratio), but I ...
Alexey's user avatar
  • 1,161
1 vote
1 answer
1k views

Check if Videos are corrupted automatically

I have 100 videos and I would like to check if they are all fully downloaded and not cut at a certain point, due to the internet breakout. Is there a way for this to be done automatically and for the ...
Rony's user avatar
  • 11
0 votes
1 answer
4k views

In ffmpeg, why won't this AVC video convert to H264?

C:\vids\aug2020\uploaded>mediainfo avideo.mp4 General Complete name : avideo.mp4 Format : MPEG-4 Format profile ...
barlop's user avatar
  • 23.8k
0 votes
0 answers
87 views

how to create new file without restarting?

I am using string ffmpeg64 -f decklink -i "DeckLink Studio 2@9" -f mp4 -movflags frag_keyframe -c:v mpeg2video -pix_fmt yuv422p -b:v 10M -vf fps=30 -s 1280x720 -g 30 -g 12 -mbd rd -trellis 1 ...
Jinrui Teki's user avatar
0 votes
0 answers
287 views

Is there a way in ffmpeg to double up the frame rate without changing the runtime length of a video?

I have a video (B) that has 30 fps, and another video (A) that has 60 fps. I need to merge them at 60 fps but I don't want video B to be shorter. All videos are separate files, so I want to merge ...
Joan Venge's user avatar
  • 1,494
0 votes
1 answer
646 views

Convert videos to 1080p without re-encoding

I have a large amount of 1280x1024 videos and I want to archive them on YouTube. The issue is that YouTube doesn't offer any height between 1080 and 720 and so the video gets scaled down to 900x720, ...
IS4's user avatar
  • 1,450
1 vote
1 answer
819 views

How to make old 4:3 video content into 16:9 with crop/zoom and slight stretch?

I have old video cam footage in 4:3 format that I'd like to have play better on modern 16:9 screens, specifically I'd like to: Crop/"Zoom" the video "a little" (cutting a tiny bit,...
Daniel Iversen's user avatar
1 vote
1 answer
2k views

h264/hevc 1366x768 videos encoded by ffmpeg seem to be broken in Linux

I'm running Linux and have AMD CPU with integrated graphics. I want to capture my screen and encode it in mp4 format. Here's what I tried: 1. Capture screen and encode it directly to mp4; ffmpeg -y -f ...
faex's user avatar
  • 13
0 votes
0 answers
117 views

ffmpeg creating small black bar on down scaled videos

I am running ffmpeg on a folder of videos all with various resolutions and I am down scaling them to 25% size. But all of my outputs have a tiny black border on one side. https://i.stack.imgur.com/...
Jewn Bergstein's user avatar
1 vote
2 answers
9k views

Is there any way to limit FFmpeg’s memory usage?

I am using FFmpeg via command line for some video encoding from within a Docker container on a VM running Windows Server 2016. My concern is that this is using up a large percentage of the available ...
Will B's user avatar
  • 11
1 vote
1 answer
665 views

ffmpeg - Variable CRF based on Bitare

I use ffmpeg to encode some videos I downloaded from various streaming sites to HEVC. In windows I use a batch file to convert all these files in a directory. ffmpeg -n -i input.mp4 -c:v libx265 -crf ...
Metallizer's user avatar
2 votes
1 answer
1k views

ffmpeg - Skip file if the bitrate is lower than certain amount

I use ffmpeg to encode some videos I downloaded from various streaming sites to hevc. In windows I use a batch file to convert these files. FOR /F "tokens=*" %%G IN ('dir /b *.mp4') DO ...
Metallizer's user avatar
1 vote
0 answers
439 views

Upscaling videos with artificial intelligence?

I am looking for a way to encode videos with AI upscaling (in Windows 10). I found this article but it uses a method where you must split the video into individual frames (from command line), then ...
Bricktop's user avatar
  • 313
1 vote
0 answers
213 views

looking to improve qaulity for video output

For the last 5 years I have been streaming a live stream 24/7 from a streaming studio which requires low latency rtmp output to a web based player client. I am using vMix to capture my sdi signal from ...
TLM's user avatar
  • 11
1 vote
0 answers
392 views

How to Get Video Lossless Rotation When Re-encoding Using FFmpeg?

I'm looking for how to rotate a video without losing any quality when re-encoding. I currently use ffmpeg -i "inputvideo" -crf 0 -vf transpose=2 -acodec copy "outputvideo". ...
fc2otica's user avatar
1 vote
1 answer
3k views

Audio/Video out of sync on concatenating videos using ffmpeg : Non-monotonous TDS output

I am trying to add two videos using ffmpeg and the output video/audio is out of sync (and fast forwarded). Goal is to put intro.mp4 before the original file clip.flv My approach is to Change the ...
invider's user avatar
  • 113
0 votes
1 answer
3k views

Transcoding 1080p h264 to h265 w/ FFmpeg - Unexpectedly Extreme Reduction In Size

I have a collection of h264 videos from a digital camera that I'm re-encoding to h265 (HEVC). The FFmpeg options I'm using are: -c:v libx265 -preset medium -x265-params crf=20:keyint=30 -c:a copy -...
J23's user avatar
  • 201
1 vote
0 answers
356 views

Second pass while using concat in FFmpeg

I'm converting a list of images to a Webm video using FFmpeg. The current command is this (I'm calling it from my C# application): -vsync 2 -safe 0 -f concat -i ".\concat.txt" -c:v libvpx-...
Nicke Manarin's user avatar
14 votes
1 answer
25k views

Using ffmpeg to denoise (reduce film grain)

I have a large collection of movies I'd like to re-encode to both reduce size and improve picture quality. A large number are old black and white movies that are pretty grainy, but even titles through ...
jbbarnes77's user avatar
1 vote
0 answers
2k views

FFMPEG - Why doesn't this ffmpeg converted video play on LG TV while another does?

I have two files created from same big mp4 file. One (A.mp4) plays fine on my LG TV while the TV complains about the other (B.mp4). A.mp4 is of 5 seconds while B.mp4 is of 10 minutes. The first one ...
RNP's user avatar
  • 11
1 vote
1 answer
134 views

How to encode selected frames in new video with fixed framerate?

I want to make a quick encoding of a VOB file to try the effect of applied video filters, so I am encoding only the key frames to a mjpeg video. I am using ffmpeg -i input.vob -vf ...,select=key -...
Paulo Barretto's user avatar
2 votes
2 answers
3k views

ffmpeg reducing frame rate doesn't decrease file size

My goal is to reduce the overall file size of a video without quality loss. The source video is at 30fps with keyframes every 90 frames. For our purposes we only need the video to be at 3fps and ...
Gcoop's user avatar
  • 121
1 vote
0 answers
193 views

ffmpeg input seeking to zero gives a different result than not input seeking

I'm using ffmpeg with input seeking to get fast results. When seeking using the below 2 commands I get different results although I would expect the same output file ffmpeg -loglevel debug -y -...
Tal Lempert's user avatar
1 vote
0 answers
893 views

Which versions of ffmpeg support "Encrypted fmp4"?

Using ffmpeg version 3.4.6-0ubuntu0.18.04.1, I think it successfully converted an input mp4 file to encrypted files: list_1080p_0000.m4s list_1080p_0001.m4s list_1080p_0002.m4s list_1080p.m3u8 ...
Ryan's user avatar
  • 1,934
0 votes
1 answer
62 views

Cross-Merge Many Videos

I have one folder with 30 videos, and another with 4. I want to merge the 30 first video as an intro to the 4, in order to create 120 different videos. In other words, imagine letters are intro videos ...
Don Bosco's user avatar
0 votes
1 answer
2k views

Cannot remove audio from video in FFMPEG (-an or -map doesnt work)

the following dont work ffmpeg -i <input> -an <output>.mp4 ffmpeg -i <input> -map 0:0 -v:c copy <output> The output returns the converted video WITH the audio still included....
cdpp's user avatar
  • 1
0 votes
1 answer
231 views

Phone got hung while shooting a video- How to get the mp4 file from the ".mp4.tmp0" file?

Title says it all, I was shooting a video and suddenly the phone got hung. I waited a few minutes with no avail, then had to reboot the phone. I then went to the Camera folder, and saw a file with the ...
SaintMartinsIsland's user avatar
3 votes
2 answers
25k views

How to decrypt video using FFmpeg?

I've managed to encrypt my video files using the ffmpeg command below; however, I can't find a way to save the decrypted output. ffmpeg -i {file} -encryption_scheme cenc-aes-ctr -encryption_key {key} ...
Peymon's user avatar
  • 31
0 votes
0 answers
5k views

ffmpeg RTSP stream from camera + Alsa audio mux to RTMP destination?

Folks, I have an IP Camera that I want to take the RTSP/H264 stream and use ffmpeg to send this to a youtube Live / RTMP service. The challenge I have is streaming the video with a separate audio ...
Jeremy's user avatar
  • 1
1 vote
0 answers
656 views

How can I create bookmarks in VLC Player that persist between sessions?

Using VLC Player & pressing Ctrl + B allows me to save a bookmark for a video, but the problem is that it disappears when the video is unloaded. Would be great if some solution existed to this!
Starnes Student's user avatar
1 vote
0 answers
321 views

ffmpeg delay in appearing the image

I am using ffmpeg with 264nvenc to transcode streaming channels. the result is very good the channels look great and are very stable, the problem is that when you open the channel, the sound is heard ...
pepe's user avatar
  • 11
1 vote
1 answer
2k views

How do I create CMAF content using Shaka Packager?

I am currently trying to create streaming content for testing and I must create CMAF content. I have this code, but I do not really know it this is creating real CMAF content: IN_VIDEO="$1" FILENAME=$...
Manuel Hernandez's user avatar
0 votes
1 answer
872 views

Ffmpeg : Overlay 2 images on a video

I currently use OBS to do this and I got to wait til the video has been recorded which can take 20 - 40 min depending on the video length ... It's so long.. What I'm trying to do is this: Background ...
Samoussa Binou Mymusicisinme's user avatar
0 votes
1 answer
225 views

Are JPEG snapshots of H.264 / MP4 videos lossless?

I have noticed that some apps (namely Firefox and, in default configuration, mpv) save snapshots of MP4 videos in JPEG format. Is this because individual frames can be losslessly extracted as JPEGs or ...
Ale's user avatar
  • 105
3 votes
1 answer
2k views

Can I add chapter metadata to a video file using only the FFmpeg CLI?

I've recently gotten into using FFmpeg and was wondering if there was a way of adding chapter markers entirely through the command line interface? I have had success with first writing out a metadata ...
Underscore's user avatar
0 votes
1 answer
91 views

ffmpeg: unexpected behavior during extraction of frames with specified interval

I need to obtain snapshots from a video with 30 seconds interval. It is recommended in the Internet to use the following command: ffmpeg -i <video_file_path> -vf fps=1/30 <directory>/%...
mSourire's user avatar
0 votes
0 answers
903 views

-b:v above 9.8M for DVD-Video

Details of Nache1080.mp4:- resolution=1920x1080 fps=60 Avg Video Bit Rate=11610 kbps duration=00:00:14 size=19.6 MB I produced mpeg2 video from this mp4 video using below command: ffmpeg -i ...
dira's user avatar
  • 101
0 votes
0 answers
2k views

How to ensure ffmpeg transcodes with a speed above 1x

I am trying to stream tv using hls. My setup is ffmpeg and nginx(with nginx-tx module for hls streaming). I am using the command below to scale the video to a height of 320, and sharpening it using ...
Goodman's user avatar
  • 31
0 votes
0 answers
2k views

I-frames not marked as key frames in ffmpeg

I've come across some weird piece of MP4 video, where I-Frames are not marked as Key-Frames. This is messing with my video exporting script (seeking is way off and the video doesn't start at the right ...
lieblo's user avatar
  • 11
0 votes
1 answer
305 views

create a video from stills playable on win7 powerpoint

with respect to image size H x W, and to total size of the video file, and what type of video file what is the best method of taking a bunch of still images to a smooth playable video file that will ...
ron's user avatar
  • 748
0 votes
0 answers
40 views

Video rendering issue after Windows update

I'm using a GoPro Hero7 Black for making some family and amateur videos, Sometimes I used Quick application for short clips and sometimes I used Davinci Resolve 15 for more complicated things.. ...
mohammed amine bourkadi's user avatar
0 votes
1 answer
1k views

Equivalent FFMPEG command with lossless clip

So, I need to save up a lot of space on my hard drive so I'm encoding PNG files to lossless video so I can delete the PNG files. I'm encoding one at 72fps and one slightly slowed down to 60fps. Let's ...
user245115's user avatar
12 votes
3 answers
26k views

Will I get any visual benefit if I use CRF values below 17/18 in x264 (FFmpeg)?

Will I get any visual benefit if I use CRF (Constant Rate Factor) values below 17/18 in x264 (FFmpeg)? Will there be any differences other than size? CRF 17/18 are visually lossless. CRF 0 means, ...
RvidD's user avatar
  • 404
-1 votes
1 answer
209 views

Generate mpeg 4 file with specific format with h.264 codec

I need a specific format in my .mp4 video file: 1. Only I and P frames 2. Each P frame based on only the previous (temporally) I frame 3. An I frame every second or so Is it possible to generate ...
TudorT's user avatar
  • 101
0 votes
1 answer
704 views

When required to re-encode video multiple times, is it wisest to use fastest preset until very last re-encode?

If a video requires re-encoding it multiple times with ffmpeg because it needs multiple changes done to it such as crop, resize, convert, compile (concat), convert again, etc... then wouldn't it be ...
Anonymous's user avatar
  • 179
0 votes
2 answers
2k views

What is the preferred GStreamer pipeline to encode a video for youtube?

I want to record a video in order to put it to youtube. What would be the pipeline that I can strap to my stream to get the best quality for youtube (minimize number of reencodings, etc)? I think it ...
alamar's user avatar
  • 133
0 votes
0 answers
1k views

ffmpeg Non-monotonous DTS Error During Stream copy

I am attempting to stream copy a DTS-HD MA audio stream into the matroska container. ffmpeg throws Non-motonous DTS errors that look like this: [matroska @ 00000294f0f902c0] Non-monotonous DTS in ...
Henry7720's user avatar

1 2
3
4 5
8