Skip to main content
17 votes
Accepted

convert KAZAM video file to a file, playable in windows media player

Your KAZAM video features YUV444P pixel format which WMP may not support without extra filters. Using ffmpeg, run ffmpeg -i in.mp4 -pix_fmt yuv420p -c:a copy -movflags +faststart out.mp4 You can ...
Gyan's user avatar
  • 33.4k
5 votes
Accepted

RTSP to RTMP converting fails after specific time only when IP camera enters night mode

I've solved the issue by rebuilding the timestamps from scratch with -use_wallclock_as_timestamps 1 and -fflags +genpts. /usr/bin/ffmpeg -use_wallclock_as_timestamps 1 -i "rtsp://${source}" -fflags +...
mjktfw's user avatar
  • 191
5 votes

How to get FFMPEG to join non-sequential image files? (skip by 3s)

For the missing sequence part, I used 2 liner CONCAT=$(echo $(ls *.png | sort -n -t _ -k 2) | sed -e "s/ /|/g") ffmpeg -framerate 25 -i "concat:$CONCAT" -c:v libx264 -profile:v high -pix_fmt yuv420p ...
Shakil Ahmed's user avatar
4 votes
Accepted

Export multiple clips from one video as separate files

I did it with shotcut. Credit to: https://forum.shotcut.org/t/export-one-track/7503/3 Steps Load video into shotcut click+drag video down to timeline move playhead to desired position & Split at ...
Reed's user avatar
  • 151
3 votes
Accepted

Add semi-transparent box around subtitle

Use ffmpeg -i movie.mkv -strict -2 -vf "subtitles=subtitle.srt:force_style='FontName=ubuntu,fontsize=30,BorderStyle=3,OutlineColour=&H80000000',scale=720:-1" -qscale:v 3 Movie.avi See Style ...
Gyan's user avatar
  • 33.4k
3 votes

Crop selected area in all videos

Basic command is ffmpeg -i in.mp4 -vf crop=iw:ih-25:0:0 -c:a copy out.mp4 Note that MP4s usually require the dimensions to be even, so the command above will actually crop 26 pixels from the bottom. ...
Gyan's user avatar
  • 33.4k
3 votes

How to encode Apple ProRes on Windows or Linux?

This is the command line I have used to encode ProRes 4444. If you do not include -bits_per_mb you will get low res results in Windows 10. Many posts do not mention this little aspect. ffmpeg -y -f ...
vjgalaxy's user avatar
3 votes

"ffmpeg" set fontsize and font

I did solved this with " " "subtitles=subtitle.srt:force_style='FontName=ubuntu,Fontsize=30'"
Slobodan Vidovic's user avatar
3 votes
Accepted

Convert TTML Subtitles to STL or SRT in Linux

The ttconv Python package will do it. It can be installed with pip.
Casey Jones's user avatar
2 votes

What is good software for camera recording under Linux?

OBS (Open Broadcaster Software) is multi-platform (OBS is widely used in video game streaming). I haven't tried it yet myself for multiple cameras, but I know it supports at least one (as many ...
Xavier's user avatar
  • 21
2 votes
Accepted

FFMPEG add resize to my comand

Use ffmpeg -i movie.mkv -strict -2 -vf "subtitles=subtitle.srt:force_style='FontName=ubuntu,fontsize=30',scale=720:-1" -qscale:v 3 Movie.avi All filters applied to a single input should be ...
Gyan's user avatar
  • 33.4k
2 votes

Audio/video sync software for Linux (preferably open source)

I assume that you have a sound channel recorded on the camera which is in sync with the picture. In that case you only have to find the offset between the audio channels. This tool claims just that: ...
beemtee's user avatar
  • 121
2 votes

FFmpeg with OpenCL support - Ubuntu 18.04

OpenCL is not what you need. In https://trac.ffmpeg.org/wiki/HWAccelIntro, see the section on “FFmpeg API Implementation Status” — Notice that OpenCL is not applicable for encoding and decoding, only ...
hedgepigdaniel's user avatar
2 votes

Encode a small proxy file with multiple audio streams for editing on Linux

I've come up with this ffmpeg command: ffmpeg -i original.mkv -c:v libx264 -tune animation -crf 35 -x264opts keyint=10 -pix_fmt yuv420p -c:a pcm_s16le -map 0 proxy.mkv What this will do: use h.264 ...
unfa's user avatar
  • 141
2 votes
Accepted

ffmpeg cut same video to multiple pieces

Use ss/to as input options. This seeks at the demuxer stage, which is much faster. ffmpeg -ss 00:22:23.345 -to 00:22:25.846 -i input.mp4 ... You'll need a very recent build of ffmpeg (> Nov 19 2017)
Gyan's user avatar
  • 33.4k
2 votes
Accepted

ffmpeg log missing "dup" and "drop" key-value pairs

If no frames are dupped or dropped, then those fields are not printed. If you need a definitive statement, add -progress filename to print progress report to a file and search for dup_frames and ...
Gyan's user avatar
  • 33.4k
2 votes
Accepted

DaVinci Resolve ignores MOV (QuickTime) metadata

I wrote a simple LUA script extension that can be executed from Workspace > Scripts toolbar after copying the script to {resolve directory}/Fusion/Scripts/Comp. Here's the source code. Currently ...
Tombart's user avatar
  • 195
2 votes
Accepted

DaVinci Resolve Python 3.6 not found

Based on strace is seems that fuscript binary searches for libpython2.7.so and libpython3.6.so $ /opt/resolve/libs/Fusion/fuscript -l py3 DaVinci Resolve Script Interpreter Copyright (C) 2005 - 2020 ...
Tombart's user avatar
  • 195
2 votes

Is it possible to embed a thumbnail in a .mkv file?

I was also going down this rabbit hole and found that there's an option -attach filename that's more specific to mkv files. It's at the end of the "Main Options" section of the manual: https:...
Samuel Powell's user avatar
2 votes

Kdenlive does not seem to be leveraging proxy clips

You need to also tick the checkbox [x] Generate for videos larger than and set a suitable size.
Gerald Schneider's user avatar
1 vote
Accepted

Combining two video fields into one (to create an interlaced video)

Use ffmpeg -i top.avi -i bottom.avi -filter_complex vstack,il=l=i:c=i -c:v ffv1 il.avi See docs for http://www.ffmpeg.org/ffmpeg-filters.html#vstack and http://www.ffmpeg.org/ffmpeg-filters.html#il
Gyan's user avatar
  • 33.4k
1 vote

How to render Adobe Premiere or After Effects projects on Linux?

BlackMagic Davinci Resolve and Fusion run on both RHEL and Centos, and have Python2, 3 and LUA integrated for automation. The title of your question leads me to believe you're already using Adobe ...
Jason Conrad's user avatar
  • 4,514
1 vote

Video production at higher quality - alternatives and solutions

First variant: You can try to set resloution of your display to 1920x1080, but I think that you will have scroll on your screen. I know that with digital connect via DVI port on Windows PC with XP it ...
Viktor Liashenko's user avatar
1 vote

how to pipe:/// through a .sh or Python script, or use some sort of setting files with FFMPEG

I didn't find an actual answer, more a work around. As this was all part of a bigger, involving plex, I found a proxy (xteve) that includes ffmpeg transcoding, and I can set the options for ffmpeg. ...
Netspud2K's user avatar
1 vote

How to fix interlaced mpeg2 video marked as progressive?

Sorry for the late reply. For anyone wondering, the video actually is progressive. The next line in the mediainfo shows 2:3 pulldown, which is a software added telecine (soft telecine). You can also ...
user40165's user avatar
1 vote

Is there an app that can automatically separate scenes/clips from a video file and export them?

Most professional quality video editing software has this kind of functionality. You can take a look at DaVinci Resolve, which is available for free on Linux. This article has more details about how ...
AJ Henderson's user avatar
  • 19.4k
1 vote
Accepted

How to split video in small clip?

General speaking, you can not split already encoded video into some chunks with arbitrary length without re-encoding. The simplest way to make a cut is to get content between IDR frames. You could ...
PRu's user avatar
  • 36
1 vote
Accepted

Audio/video sync software for Linux (preferably open source)

It's a webtool but seems interesting: https://github.com/allisonnicoledeal/VideoSync This other is open, but - AFAIK - just for Windows: https://github.com/protyposis/AudioAlign
FORART npo's user avatar
1 vote

Nvenc produces corrupted video

Ok, this is a known bug in ssrr: https://github.com/MaartenBaert/ssr/issues/658 SOLUTION: You can use OBS, which is compatible with NVENC.
Adrian Lopez's user avatar
1 vote
Accepted

How to use MELT or FFMPEG for layering of a video (i.e. shifting an overlay of the same video by one frame to remove flicerking from LEDs)?

You would carry that out, like this: ffmpeg -i in.mp4 -filter_complex \ "[0]split=2[base][shifted]; \ [shifted]setpts=PTS+1/TB/FRAME_RATE,format=yuva444p,colorchannelmixer=aa=0.50[shifted]; \ ...
Gyan's user avatar
  • 33.4k

Only top scored, non community-wiki answers of a minimum length are eligible