Hot answers tagged

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
  • 32.3k
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
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

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
  • 32.3k
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
  • 32.3k
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
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
  • 141
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

120fps 720p footage with real time playback on Ubuntu? + editing?

If I read this right, you want to watch your 120fps videos at 0.25 their real speed, seeing every single frame but at 30fps. That's what I do (GoPro 3+, 720p, 120fps) but it's a bit involved. I use ...
miguev's user avatar
  • 121
2 votes

Can I use a Linux Render Farm with a MAC Workstation running Adobe Premiere?

There are two steps, broadly speaking, to rendering a project in a NLE such as Premiere. First step is for the NLE to generate the uncompressed final composite image for each output frame. This is ...
Gyan's user avatar
  • 32.3k
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
  • 32.3k
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
  • 32.3k
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

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

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 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
  • 32.3k
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
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
  • 32.3k
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
  • 32.3k
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.3k
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

Stream desktop (linux) with FFMPEG to VLC

No need to use ffmpeg here: Open VLC, go to Media > Open Capture Device and set Capture Mode to Desktop Also see: https://wiki.videolan.org/Documentation:Modules/screen/ https://wiki.videolan.org/...
sebix's user avatar
  • 132
1 vote

"ffmpeg" set fontsize and font

Remove the space. ffmpeg -i movie.avi -strict -2 -vf subtitles=subtile.srt:force_style='FontName=ubuntu,Fontsize=30' -qscale:v 3 out.avi
Gyan's user avatar
  • 32.3k
1 vote

Adobe Premiere Pro Rendering in Linux

At the moment, Adobe Premiere Pro struggles to run properly on the systems it supports--Windows 10 and Mac OS 10.10. As of today, Adobe does not even recommend running it on Mac OS 10.11! Premiere ...
Michael Tiemann's user avatar

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