text:
Would a large grass field make a good green screen?

This is a picture of a green field that changes into a hill.
The idea is can you can have a large, organic 3D green-screen this way?

I used a program to normalize the darker green areas of the field using replace color and increasing the thresh hold without losing texture and wonder if this could be done to a live feed?

It's doable, so long as you have some time, diddling around in After Effects with the Keylight chromakey and the camera tracker... Here's an example I made a while back at 4m25,5m17,
6m04, 8m33 (and a few other sections):

Ye, this looks like the same method used to mark imaginary lines on a football field.

I should add - a bit of key-framed masking and possibly a little rotoscoping was also used to improve the overall key effect in some of the shots

Would this work in a horizontal setup? In the example the image is looking down at the grass. Ideally, in my picture the grass, also works as a back drop.

So, while you can,  use grass as a greenscreen, it won't make a good greenscreen.  The idea with a greenscreen is to get the screen to be as uniform as possible; ideally, the whole screen would have the exact same color value at every point, and ALSO, the talent would be placed as far away from the screen as possible, to keep green light from "spilling" onto their skin/hair/clothes,etc.  Standing on your screen makes this difficult.  Don't expect one-click results if you use grass, and expect to do a lot of rotoscoping and cleanup.  Pro screen lighting gets you closer, initially.

@JasonConrad what if I used a program to make it usable. I added a 2nd picture for an example.

Whatever operation you’re applying to the green field would also get applied to whatever’s standing in front of it, reducing the contrast in it as well, and giving you no better results. There’s a reason Hollywood converged on the solution they did.  If you don’t have the Hollywood budget, I’d recommend a can of green paint and a sheet of drywall. Try the field, too though, just to see the difference for yourself. It won’t be long before machine learning makes all of this obsolete anyway, but it’s good to know where film techniques came from to understand where they’re going next.

https://www.youtube.com/watch?v=sTe_-YOccdM

Jason did you manage to get that Colab sheet to work, based on that YouTube video? If you did I have a question for you! https://video.stackexchange.com/q/30275/4426


text:
dvdauthor spumux aborted: picture had 256 colors
spumux tmp.xml < tmp.mpg > output.mpg
INFO: Picture tmp.png had 255 colors
INFO: Picture tmp.select.png had 256 colors
spumux: subgen.c:313: findmasterpal: Assertion `s->numpal < 16' failed.
.MakeMenus.sh: line 70: 18832 Aborted (core dumped)

Picturies created:
head -c -1 tmp.txt | convert -background none -size 720x576 -font Courier -pointsize 20 -fill white -gravity center caption:@- tmp.png
head -c -1 tmp.txt | convert -background none -size 720x576 -font Courier -pointsize 20 -undercolor black -fill white -gravity center caption:@- tmp.select.png

File tmp.xml:
<subpictures format="PAL"><stream>
<spu start="00:00:00.00" force="yes" autoorder="rows" autooutline="infer" outlinewidth="6" image="tmp.png" highlight="tmp.select.png" select="tmp.png">
</spu>
</stream></subpictures>

COMMENT:
Spumux, the subtitle multiplexing tool in DVD authoring, supports a limited range of colors for subpictures. Here is a list of some commonly used colors in spumux along with their corresponding hexadecimal color codes:

White - #FFFFFF
Black - #000000
Red - #FF0000
Green - #00FF00
Blue - #0000FF
Yellow - #FFFF00
Magenta - #FF00FF
Cyan - #00FFFF
Gray - #808080
Light Gray - #C0C0C0

Remember, spumux has a limit of 16 colors for the subpicture palette, so you should choose your colors from this limited set.

head -c -1 tmp.txt | convert -background none -size 720x576 -font Courier -pointsize 20 -undercolor black -fill white -gravity center caption:@- -threshold 50% tmp.select.png

The "-threshold 50%" option converts all shades of gray to pure black and white, considering any pixel with a brightness level below 50% as black and anything above as white.

source: Stack Exchange

license: Creative Commons - Attribution Share-Alike - https://creativecommons.org/licenses/by-sa/4.0/

sort: votes


text:
Davinci Resolve: How to easily add background-colour to text?
I have created multiple text layers (which is ok) but then I had to create multiple solids, one for each line of text to add the black background-colour:

I am wondering if there is an easier way, maybe a built-in title effect that I don't know.

Use a Text+ for the title.  In the Inspector, go to the Shading Tab, and in the Shading Elements section, change the "Select Element" dropdown to "4" and check "Enabled."  Change the color of the background from the default blue to black, and if you don't want the black boxes to split between characters, then change Properties->Level to "Line" or "Word."
The numbered "Shading Elements," in case you're wondering, are preset slots, where you can save combinations of settings for Fusion Text+ nodes.  A few of the slots are pre-populated with commonly used defaults like this, outline, and drop shadow, for example.  Multiple elements can be active simultaneously.
I'm using Resolve 17Beta9.  I know that R17 allows more of Fusion's parameters to be published in the Edit and Cut page inspectors, but I don't remember if this particular control was new to those pages in R17.  If you don't see the controls in the Cut/Edit page inspectors, and you're using an earlier version of Resolve, switch to the Fusion page, and they'll be available there.
If you don't want to repeat the styling steps every time you want another title to appear, you can save a template by dragging the Text+ clip (after you've adjusted the look) from the timeline to the media pool.  Then, dragging the template from the media pool to the timeline will instantiate a new title, with the saved look, and you only need to change the text.  There are other ways to do this when you want to re-use the same style across projects, but this method is the simplest.

This is a great explanation, more than I was expecting, thanks a lot. It works perfectly on Davinci 16

all_licenses: Creative Commons - Attribution Share-Alike - https://creativecommons.org/licenses/by-sa/4.0/


text:
Cinema 4D R23.008 Black Viewport
I downloaded Cinema 4D R23.008 recently and since then it has only shown me a black viewport. What can I do about it?
I have an Intel Core i7, 8gb RAM, and an AMD Radeon HD 7570M laptop.

Laptops with dedicated graphic cards often have another simple graphic chip too. This usually causes problems. Check the manual of your laptop and see if you can disable the chip, so that the Radeon card is doing all the work. You probably have to do this in the BIOS menu.
Additionally, try updating the Radeon driver.
If all this doesn't help, open a support ticket at Maxon.


text:
Concat two video files with fade effect using FFmpeg
Is there any way to concat two video files with a fading effect using FFmpeg?
Something like this:
ffmpeg -f concat -i input.txt -c copy "--with:fade:out-in" output.ogg

Your present command specifies stream copy. Since you wish to alter the video frames during the transition, that won't work.
It can be done if you know the duration of the two videos and the duration of fade. Also, for the command below, the resolutions of the two videos should be the same.
ffmpeg -i first.ogg -i second.ogg \
-filter_complex \
"color=black:WxH:d=Video1Length+Video2Length-FadeDuration[base]; \
 [0:v]setpts=PTS-STARTPTS[v0]; \
 [1:v]format=yuva420p,fade=in:st=0:d=FadeDuration:alpha=1, \
      setpts=PTS-STARTPTS+((Video1Length-FadeDuration)/TB)[v1]; \
 [base][v0]overlay[tmp]; \
 [tmp][v1]overlay,format=yuv420p[fv]; \
 [0:a][1:a]acrossfade=d=FadeDuration[fa]" \
-map [fv] -map [fa] \
output.ogg

Replace:
WxH with the resolution of the videos i.e. 640x360
And:
Video1Length, Video2Length, and FadeDuration with their value in seconds.

what about adding a third, fourth, or nth video? I conceptualize this by running the above on first.ogg and second.ogg, producing output1.ogg. Then I would run the script with output1.ogg and third.ogg to get output2.ogg (and so on up to output[n-1].ogg). Is this efficient or is there a better way to do it all at once?

I tried to use "ffmpeg-gl-transition" and followed all instruction for my mac. The transition works. However, I loose audio on my second video for some reason. My command was: fmpeg -i input1.mp4 -i input2.mp4 -filter_complex "gltransition=duration=4:source=ZoomInCircles.glsl" -y out.mp4

Why would you overlay the first video over a black screen? It looks like waste of resources as it does nothing.

I've created a little site recently for generating the FFmpeg CLI command to create xfade + acrossfade command for several videos. Check it out maybe you find it useful.
https://romander.github.io/ffmpeg-script-generator/
Add also you can check source code or contribute
https://github.com/Romander/ffmpeg-script-generator

This is a great idea but it doesn't seem to produce working code. This is what I get after entering two inputs.

@HashimAziz  Do you really input everything correct it should look like that screenshot, sorry for the inconvenient UI

@RomanOgoreltsev I have tried and find that your website is very helpful. Thanks a lot!

@RomanOgoreltsev thank you for this. It helps and worked for me. I couldn't even get ChatGPT to get it a working xfade code.

ffmpeg-concat is the easiest way to accomplish what you want and allows you to use a bunch of sexy OpenGL transitions, with the default being crossfade.
ffmpeg-gl-transition is a custom ffmpeg filter which allows you to use GLSL to smoothly transition between two video streams. This filter is significantly easier to use and customize than the alternatives listed here.
This filter supports a large list of transition types, with the default being crossfade.
./ffmpeg -i 0.mp4 -i 1.mp4 -filter_complex "gltransition=duration=4:offset=1.5" out.mp4

Have you submitted this to ffmpeg-devel for integration?

Official patch will be coming soon :)

@fisch2 Any updates?

Note, ffmpeg-concat requires Python.

I installed Python on my Mac, but still it raise many error when installing ffmpeg-concat

all_licenses: Creative Commons - Attribution Share-Alike - https://creativecommons.org/licenses/by-sa/3.0/


text:
Can I use historical films from Weimar/Nazi Germany for research? (Copyright UK law)
According to the UK's copyright law, can I use historical films from the Weimar Republic and Nazi Germany for a video collage?
Does anyone know any good place where I could find such films?

Reach out to the European Film Gateway's FAQ and look for "May I use content found on the EFG for my own website or in other contexts?".
In addition to that you can ask for help in their contact form.


text:
What effect did they apply here?

I redrew the image on the left in Blender, but I want to use AE to achieve the "filmy" look on the right. What type of effect did they use here? You can see from the corner of the screenshot the blue area and the black lines are almost glowing?

Looks to me like a kind of "chromatic aberration" effect - where the red green and blue channels of an image are processed separately - sometimes shifted in position or blurred a little, then they are recombined back together. There are lots of ways to do this using built in plugins, or using 3rd party plugins such as Red Giant's.

Yes, that is subtle but nice.
I am not sure how you did the image. If it is a raster image I would duplicate and add a gaussian blur on it and add transparency.

You could play with the transparency to make some zones sharper


text:
Convert ProRes RAW to CinemaDNG or Blackmagic RAW
I want to convert ProRes RAW files (.mov extension) to an open source format such as CinemaDNG or Blackmagic RAW.  Is it possible?  If so, how?

A Czech film maker, Nikolaj Pognerebko, has created a paid app (macOS version, Windows version) that will convert ProRes RAW to CinemaDNG for use in software such as Davinci Resolve.

I want to advice against converting to any RAW format, I don't even know if that's possible at all. A RAW format is usually driven by the needs of the camera hardware and fits the purpose of efficiently storing the video data while providing very high flexibility, often much more than non-RAW codecs do. That's why you usually cannot convert to such a format, you can only convert from a RAW format to something else.
Regarding CinemaDNG, there is this unofficial information on Adobe community forums (Source):

The CinemaDNG format was dropped due to licensing issues and disputes. And only a few cameras were built to use it to begin with, so sadly support for that format was never great and is now nearly non-existent.

That said, it is best to avoid CinemaDNG.
But what should you do now? If I understand you correctly you need a codec for video editing, but ProRes doesn't work for you. There are a number of other options that are suitable as an high-quality intermediate codec (which means a codec that is suitable for doing video editing). Examples are Cineform, DNxHR or DPX. As far as I know, only Cineform is fully open source. Here's a table with codecs and their supported frame sizes, bit-depths and a few other key information: link
In order to transcode the ProRes file to your target codec, you need a tool that supports reading the first and writing the second one. It may be a little difficult to find something that can read ProRes RAW if you're on Windows, but you can install Apple's ProRes RAW. Beware, due to Apple's restrictive licensing politics, only the Adobe products listed there are officially supported on Windows. Other tools may be able to read the format too, but there is no guarantee that they correctly interpret the files. Which means, you should use Media Encoder or Premiere Pro to transcode the format to something else. In Premiere you can go to project settings-> ingest settings and choose another format. If you're unhappy with the choices add your own ingest preset. I have not yet worked with ProRes RAW in Premiere or Media Encoder on Windows, so I can't tell you if everything works well. But you can use a trial version of Premiere Pro or Media Encoder and test if this works for you. Also, Premiere Rush is supported too, but I've got no experience with that whatsoever.
On a Mac you can use Final Cut Pro, Motion, or Compressor to export ProResRAW to something else (see bottom of this article).

Thank you that is very helpful. I do not have a Apple computer but i have tried   Premiere Pro; after installing ProRes RAW I  can read in a ProRes RAW file  and export to Cineform, but it does not seem to be the CFA Bayer format.  If you know any way I couild get that, please let me know.

I'm sorry, I don't know how to help you with the bayer filter.

The quote about CinemaDNG licensing disputes makes no sense. First, the author is not Adobe staff. Second, CinemaDNG is an open format not encumbered by licensing. Third, Adobe themselves created CinemaDNG. Finally, Adobe themselves say it was removed because of performance (src).

@AndrewMarshall thanks for pointing that out. The person had a different title back then, because Adobe only introduced the "Community Expert" program in 2022, and  it looked like he was staff back then. Maybe he even was for some time. I don't know.

Note: Blackmagic RAW is not open source, there is no public source code available. They have a binary library/API which allows for decoding Blackmagic RAW in a host application.
Blackmagic RAW and ProRes RAW are both closed source codecs which provide video frames to the host application in a demosaic’d format - therefore neither of them can output something that can be re-encoded as RAW.
Very few RAW formats provide the ability to decode the data in such a way (mosaic’s in camera raw space) that can then be used as in the input to another RAW format. CinemaDNG is the only format which can do this due to being open source. There was once a tool that could read CinemaDNG and convert it to CineForm RAW (Both are open source so this could still exist)
Regarding CinemaDNG, it is a mature and well supported format (Adobe Premiere, Apple Compressor, DaVinci Resolve) and the only fully implemented true open source RAW format. It is also the only RAW video format which can be lossless.


text:
What is the project bin in kdenlive?
What is the project bin?
I went to Kdenlive's manual and it says "The Project Bin is a view in Kdenlive which lists all the clips that are associated with the project." But the problem is, that doesn't mean anything.

What is a view?
Why does the project bin exist?
What does the project bin do?
Why does the project bin do what it does?

I keep reading these articles for beginners but the most basic questions remain unanswered and I was just wondering if you guys could help. Thank you.

To add a few more aspects:
The project bin is a 'container' that can encompass items across multiple directories in the filesystem. That way you don't have to physically copy clips from scattered locations to a single working directory. but from the perspective of kdenlive, they are now all in one place when they're in the bin.
I believe this is a fairly generic concept which applies to other development software, like visual studio for example.
A view is just a smaller window within the kdenlive main window. there are so many sub windows in kdenlive they can't all be shown at once, so if you need to see something else, get rid of the project bin view.
Since project bin kind of glosses over the underlying file directory structure though, it doesn't take a very big project before you get hundreds or even thousands of items in the bin. therefore the bin has some extra features.

you can make virtual sub directories for it.
you can right-click any item and select 'locate' to find it in the physical directories.
a search bar... if you know part of the name of what you're looking for. if you don't, but you do remember where it is on the timeline, another way to go to an item in the bin is to right-click the item in the timeline, and select 'find in project bin'.

put it all together, and kdenlive project bin is about as fast and easy to use as anyone could want.

I'm also relatively new to KdenLive, but here is what I've learned about the Project Bin. This is where I drop video and/or image clips to add them to a project, from there I drag them onto the timeline to do the final editing.
As far as I understand it, you must load clips, images, or sounds into the project bin before you can actually use them in your project.
https://userbase.kde.org/Kdenlive/Manual/Projects_and_Files/Project_Tree
I see this same question cross posted on Reddit. More info there:
https://www.reddit.com/r/kdenlive/comments/mhs169/what_is_the_project_bin/


text:
ffmpeg 4.2.3 freezes in encoding which is extremely slow
I tried to encode some video files, from GOPRO action camera. The whole fuzz is about two specific video files that the video orientation is 180 degree. Therefore, I thought to implement complex filter instead of the simpler syntax, in order to change the orientation to these video files, while, in the same time, to recode them into a single file, with specific parameters.
However, ffmpeg freezes my computer. I was able to press ctrl + C, in order to paste this output, if it is of any help, together with the ffmpeg command that I used to recode my gopro action camera video files.
Secondary question: Is there a better way to set seriarly the ffmpeg filters in filter_complex?
  ffmpeg -f concat -safe 0 -i VIDEOFILES.txt -filter_complex  \
>  "[0:v] scale=1920:1080, fps=32, setpts=0.33*PTS, fifo [v1];  \
>   [0:v] scale=1920:1080, fps=32, setpts=0.33*PTS, fifo [v2];
>   [0:v] scale=1920:1080, fps=32, setpts=0.33*PTS, fifo [v3];
>   [0:v] scale=1920:1080, fps=32, setpts=0.33*PTS, fifo [v4];
>   [0:v] scale=1920:1080, fps=32, setpts=0.33*PTS, fifo [v5];
>   [0:v] scale=1920:1080, fps=32, setpts=0.33*PTS, fifo [v6];
>   [0:v] scale=1920:1080, fps=32, setpts=0.33*PTS, fifo [v7];
>   [0:v] scale=1920:1080, fps=32, setpts=0.33*PTS, fifo [v8];
>   [0:v] scale=1920:1080, fps=32, setpts=0.33*PTS, fifo [v9];
>   [0:v] scale=1920:1080, fps=32, setpts=0.33*PTS, fifo [v10];
>   [0:v] scale=1920:1080, fps=32, setpts=0.33*PTS, fifo [v11];
>   [0:v] scale=1920:1080, fps=32, setpts=0.33*PTS, fifo [v12];
>   [0:v] scale=1920:1080, fps=32, setpts=0.33*PTS, fifo [v13];
>   [0:v] scale=1920:1080, fps=32, setpts=0.33*PTS, fifo [v14];
>   [0:v] scale=1920:1080, fps=32, setpts=0.33*PTS, fifo [v15];
>   [0:v] scale=1920:1080, fps=32, setpts=0.33*PTS, fifo [v16];
>   [0:v] scale=1920:1080, fps=32, setpts=0.33*PTS, fifo [v17];
>   [0:v] scale=1920:1080, fps=32, setpts=0.33*PTS, fifo [v18];
>   [0:v] scale=1920:1080, fps=32, setpts=0.33*PTS, fifo [v19];
>   [0:v] scale=1920:1080, fps=32, setpts=0.33*PTS, fifo [v20];
>   [0:v] scale=1920:1080, fps=32, setpts=0.33*PTS, fifo [v21];
>   [0:v] scale=1920:1080, fps=32, setpts=0.33*PTS, fifo [v22];
>   [0:v] scale=1920:1080, fps=32,  vflip, hflip, setpts=0.33*PTS, fifo [v23];
>   [0:v] scale=1920:1080, fps=32, setpts=0.33*PTS, fifo [v24];
>   [0:v] scale=1920:1080, fps=32, setpts=0.33*PTS, fifo [v25];
>   [0:v] scale=1920:1080, fps=32, setpts=0.33*PTS, fifo [v26];
>   [0:v] scale=1920:1080, fps=32, setpts=0.33*PTS, fifo [v27];
>   [0:v] scale=1920:1080, fps=32, setpts=0.33*PTS, fifo [v28];
>   [0:v] scale=1920:1080, fps=32, setpts=0.33*PTS, fifo [v29];
>   [0:v] scale=1920:1080, fps=32, setpts=0.33*PTS, fifo [v30];
>   [0:v] scale=1920:1080, fps=32,  vflip, hflip, setpts=0.33*PTS, fifo [v31];
>   [0:v] scale=1920:1080, fps=32, setpts=0.33*PTS, fifo [v32];
>   [0:v] scale=1920:1080, fps=32, setpts=0.33*PTS, fifo [v33];
>   [v1][v2][v3][v4][v5][v6][v7][v8][v9][v10][v11][v12][v13][v14][v15][v16][v17][v18][v19][v20][v21][v22][v23][v24][v25][v26][v27][v28][v29][v30][v31][v32][v33]concat=n=33:v=1[out]" -map "[out]" -crf 14  -vcodec libx264  -vb 20M   video_out_33.avi
ffmpeg version 4.2.3 Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)
  configuration: --enable-gpl --enable-libx264 --enable-libvpx --enable-libmp3lame --enable-libopus
  libavutil      56. 31.100 / 56. 31.100
  libavcodec     58. 54.100 / 58. 54.100
  libavformat    58. 29.100 / 58. 29.100
  libavdevice    58.  8.100 / 58.  8.100
  libavfilter     7. 57.100 /  7. 57.100
  libswscale      5.  5.100 /  5.  5.100
  libswresample   3.  5.100 /  3.  5.100
  libpostproc    55.  5.100 / 55.  5.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x56154d2c3a40] Invalid mdhd time scale 0, defaulting to 1
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x56154d2c3a40] Auto-inserting h264_mp4toannexb bitstream filter
[concat @ 0x56154d2b73c0] Could not find codec parameters for stream 2 (Unknown: none): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[concat @ 0x56154d2b73c0] Could not find codec parameters for stream 4 (Unknown: none): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, concat, from 'VIDEOFILES.txt':
  Duration: N/A, start: 0.000000, bitrate: 60138 kb/s
    Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuvj420p(pc, bt709), 2704x1520 [SAR 1:1 DAR 169:95], 60010 kb/s, 50 fps, 50 tbr, 90k tbn, 100 tbc
    Metadata:
      creation_time   : 2020-06-12T17:51:41.000000Z
      handler_name    :     GoPro AVC
      encoder         : GoPro AVC encoder
      timecode        : 17:51:42:25
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s
    Metadata:
      creation_time   : 2020-06-12T17:51:41.000000Z
      handler_name    :     GoPro AAC
      timecode        : 17:51:42:25
    Stream #0:2: Unknown: none
    Stream #0:3(eng): Data: bin_data (gpmd / 0x646D7067), 0 kb/s
    Metadata:
      creation_time   : 2020-06-12T17:51:41.000000Z
      handler_name    :     GoPro MET
    Stream #0:4: Unknown: none
Stream mapping:
  Stream #0:0 (h264) -> scale
  Stream #0:0 (h264) -> scale
  Stream #0:0 (h264) -> scale
  Stream #0:0 (h264) -> scale
  Stream #0:0 (h264) -> scale
  Stream #0:0 (h264) -> scale
  Stream #0:0 (h264) -> scale
  Stream #0:0 (h264) -> scale
  Stream #0:0 (h264) -> scale
  Stream #0:0 (h264) -> scale
  Stream #0:0 (h264) -> scale
  Stream #0:0 (h264) -> scale
  Stream #0:0 (h264) -> scale
  Stream #0:0 (h264) -> scale
  Stream #0:0 (h264) -> scale
  Stream #0:0 (h264) -> scale
  Stream #0:0 (h264) -> scale
  Stream #0:0 (h264) -> scale
  Stream #0:0 (h264) -> scale
  Stream #0:0 (h264) -> scale
  Stream #0:0 (h264) -> scale
  Stream #0:0 (h264) -> scale
  Stream #0:0 (h264) -> scale
  Stream #0:0 (h264) -> scale
  Stream #0:0 (h264) -> scale
  Stream #0:0 (h264) -> scale
  Stream #0:0 (h264) -> scale
  Stream #0:0 (h264) -> scale
  Stream #0:0 (h264) -> scale
  Stream #0:0 (h264) -> scale
  Stream #0:0 (h264) -> scale
  Stream #0:0 (h264) -> scale
  Stream #0:0 (h264) -> scale
  concat -> Stream #0:0 (libx264)
Press [q] to stop, [?] for help
[swscaler @ 0x56154d57a0c0] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x56154d5c0bc0] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x56154da7fdc0] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x56154dac7000] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x56154db19e40] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x56154db6cc80] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x56154dbbfac0] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x56154dc12900] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x56154dc65740] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x56154dcb8580] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x56154dd0b3c0] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x56154dd5e200] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x56154ddb1040] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x56154de04100] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x56154de57d80] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x56154deaba00] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x56154deff680] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x56154df53380] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x56154dfa70c0] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x56154dffaf00] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x56154e04ec40] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x56154e0a2980] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x56154e617e00] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x56154e66b540] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x56154e6bf380] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x56154e7130c0] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x56154e766e00] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x56154e7bac40] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x56154e80e980] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x56154e8626c0] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x56154e8b6500] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x56154e90a240] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x56154e95df80] deprecated pixel format used, make sure you did set range correctly
[libx264 @ 0x56154e0f6a40] using SAR=1521/1520
[libx264 @ 0x56154e0f6a40] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 0x56154e0f6a40] profile High, level 4.2
Output #0, avi, to 'video_out_33.avi':
  Metadata:
    ISFT            : Lavf58.29.100
    Stream #0:0: Video: h264 (libx264) (H264 / 0x34363248), yuvj420p(pc), 1920x1080 [SAR 1521:1520 DAR 169:95], q=-1--1, 20000 kb/s, 32 fps, 32 tbn, 32 tbc (default)
    Metadata:
      encoder         : Lavc58.54.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/20000000 buffer size: 0 vbv_delay: -1
frame=    0 fps=0.0 q=0.0 size=       6kB time=00:00:00.00 bitrate=N/A speed=   frame=    2 fps=1.5 q=0.0 size=       6kB time=00:00:00.00 bitrate=N/A speed=   frame=    3 fps=1.6 q=0.0 size=       6kB time=00:00:00.00 bitrate=N/A dup=0 droframe=    4 fps=1.7 q=0.0 size=       6kB time=00:00:00.00 bitrate=N/A dup=0 droframe=    4 fps=1.3 q=0.0 size=       6kB time=00:00:00.00 bitrate=N/A dup=0 droframe=    5 fps=1.4 q=0.0 size=       6kB time=00:00:00.00 bitrate=N/A dup=0 droframe=    6 fps=1.4 q=0.0 size=       6kB time=00:00:00.00 bitrate=N/A dup=0 droframe=    7 fps=1.5 q=0.0 size=       6kB time=00:00:00.00 bitrate=N/A dup=0 droframe=    8 fps=1.5 q=0.0 size=       6kB time=00:00:00.00 bitrate=N/A dup=0 droframe=    9 fps=1.5 q=0.0 size=       6kB time=00:00:00.00 bitrate=N/A dup=0 droframe=   10 fps=1.5 q=0.0 size=       6kB time=00:00:00.00 bitrate=N/A dup=0 droframe=   10 fps=1.1 q=0.0 size=       6kB time=00:00:00.00 bitrate=N/A dup=0 droframe=   10 fps=0.8 q=0.0 size=       6kB time=00:00:00.00 bitrate=N/A dup=0 droframe=   10 fps=0.3 q=0.0 size=       6kB time=00:00:00.00 bitrate=N/A dup=0 droframe=   10 fps=0.3 q=0.0 size=       6kB time=00:00:00.00 bitrate=N/A dup=0 droframe=   10 fps=0.2 q=0.0 size=       6kB time=00:00:00.00 bitrate=N/A dup=0 droframe=   11 fps=0.2 q=0.0 size=       6kB time=00:00:00.00 bitrate=N/A dup=0 droframe=   11 fps=0.2 q=0.0 size=       6kB time=00:00:00.00 bitrate=N/A dup=0 droframe=   11 fps=0.2 q=0.0 size=       6kB time=00:00:00.00 bitrate=N/A dup=0 droframe=   11 fps=0.2 q=0.0 size=       6kB time=00:00:00.00 bitrate=N/A dup=0 droframe=   11 fps=0.2 q=0.0 size=       6kB time=00:00:00.00 bitrate=N/A dup=0 droframe=   11 fps=0.2 q=0.0 size=       6kB time=00:00:00.00 bitrate=N/A dup=0 droframe=   11 fps=0.2 q=0.0 size=       6kB time=00:00:00.00 bitrate=N/A dup=0 droframe=   11 fps=0.2 q=0.0 size=       6kB time=00:00:00.00 bitrate=N/A dup=0 droframe=   11 fps=0.2 q=0.0 size=       6kB time=00:00:00.00 bitrate=N/A dup=0 droframe=   11 fps=0.2 q=0.0 size=       6kB time=00:00:00.00 bitrate=N/A dup=0 droframe=   11 fps=0.2 q=0.0 size=       6kB time=00:00:00.00 bitrate=N/A dup=0 droframe=   11 fps=0.2 q=0.0 size=       6kB time=00:00:00.00 bitrate=N/A dup=0 droframe=   11 fps=0.2 q=0.0 size=       6kB time=00:00:00.00 bitrate=N/A dup=0 droframe=   11 fps=0.2 q=0.0 size=       6kB time=00:00:00.00 bitrate=N/A dup=0 droframe=   11 fps=0.2 q=0.0 size=       6kB time=00:00:00.00 bitrate=N/A dup=0 droframe=   11 fps=0.2 q=0.0 size=       6kB time=00:00:00.00 bitrate=N/A dup=0 droframe=   11 fps=0.2 q=0.0 size=       6kB time=00:00:00.00 bitrate=N/A dup=0 droframe=   11 fps=0.2 q=0.0 size=       6kB time=00:00:00.00 bitrate=N/A dup=0 droframe=   11 fps=0.2 q=0.0 size=       6kB time=00:00:00.00 bitrate=N/A dup=0 droframe=   11 fps=0.2 q=0.0 size=       6kB time=00:00:00.00 bitrate=N/A dup=0 droframe=   11 fps=0.2 q=0.0 size=       6kB time=00:00:00.00 bitrate=N/A dup=0 droframe=   11 fps=0.2 q=0.0 size=       6kB time=00:00:00.00 bitrate=N/A dup=0 droframe=   11 fps=0.2 q=0.0 size=       6kB time=00:00:00.00 bitrate=N/A dup=0 droframe=   11 fps=0.2 q=0.0 size=       6kB time=00:00:00.00 bitrate=N/A dup=0 droframe=   11 fps=0.2 q=0.0 size=       6kB time=00:00:00.00 bitrate=N/A dup=0 droframe=   11 fps=0.2 q=0.0 size=       6kB time=00:00:00.00 bitrate=N/A dup=0 droframe=   11 fps=0.2 q=0.0 size=       6kB time=00:00:00.00 bitrate=N/A dup=0 droframe=   11 fps=0.2 q=0.0 size=       6kB time=00:00:00.00 bitrate=N/A dup=0 droframe=   11 fps=0.2 q=0.0 size=       6kB time=00:00:00.00 bitrate=N/A dup=0 droframe=   11 fps=0.2 q=0.0 size=       6kB time=00:00:00.00 bitrate=N/A dup=0 droframe=   11 fps=0.2 q=0.0 size=       6kB time=00:00:00.00 bitrate=N/A dup=0 droframe=   11 fps=0.2 q=0.0 size=       6kB time=00:00:00.00 bitrate=N/A dup=0 droframe=   11 fps=0.2 q=0.0 size=       6kB time=00:00:00.00 bitrate=N/A dup=0 droframe=   11 fps=0.2 q=0.0 size=       6kB time=00:00:00.00 bitrate=N/A dup=0 droframe=   11 fps=0.2 q=0.0 size=       6kB time=00:00:00.00 bitrate=N/A dup=0 droframe=   11 fps=0.2 q=0.0 size=       6kB time=00:00:00.00 bitrate=N/A dup=0 droframe=   11 fps=0.2 q=0.0 size=       6kB time=00:00:00.00 bitrate=N/A dup=0 droframe=   11 fps=0.2 q=0.0 size=       6kB time=00:00:00.00 bitrate=N/A dup=0 droframe=   11 fps=0.2 q=0.0 size=       6kB time=00:00:00.00 bitrate=N/A dup=0 droframe=   11 fps=0.2 q=0.0 size=       6kB time=00:00:00

> ^C
> elias@eliasc:/media/elias/MyPassport/prx/Podilato_Poreia_Kamatero_12Jun2020/1$
> ^C

You cannot address individual files from the concat demuxer like this. You have to process them individually.

Finally, I found out what to do. Firstly, I concetrated all my video files into one big file, using a simpler syntax, and not filter_complex syntax:
ffmpeg -f concat -safe 0 -i VIDEOFILES.txt -r 32 -crf 14  -vcodec libx264 -vb 20M -vf "scale=1280:720,setpts=0.33*PTS" -fflags +genpts  -an   video_output_01.avi

-f concat -safe 0 -i VIDEOFILES.txt: concetrate all videofiles into one
vcodec libx264: the encoder
r: number of frames
crf: 0=uncompress
vb 20M: video bitrate
scale: resize resolution
setpts=0.33*PTS:Speeding 3 times the video
-fflags +genpts:  They fix timestamps, I dont know if they are needed in ffmpeg 4.2.3
an: Removing audio track from the videofile

Then:
I tried to find out between what times-seconds/frames I wanted to change the orientation in the merged videofile. I implemented the following ffmpeg command:
ffmpeg -i video_output_01.avi -filter_complex  "[0:v]trim=start=0:duration=513[clpA];\
  [0:v]trim=start=513:duration=27,setpts=PTS-STARTPTS[clpB];\
  [clpB]vflip, hflip[clpBf];\
  [clpA][clpBf]concat[clpAB];\
  [0:v]trim=start=540:duration=762,setpts=PTS-STARTPTS[clpC];\
  [0:v]trim=start=1302:duration=120,setpts=PTS-STARTPTS[clpD];\
  [clpD]vflip, hflip[clpDf];\
  [clpC][clpDf]concat[clpCD];\
  [clpAB][clpCD]concat[clpABCD];\
  [0:v]trim=start=1422:duration=439,setpts=PTS-STARTPTS[clpE];\
  [0:v]trim=start=1861:duration=19,setpts=PTS-STARTPTS[clpF];\
  [clpF]vflip, hflip[clpFf];\
  [clpE][clpFf]concat[clpEF];\
  [clpABCD][clpEF]concat[out1]" -map [out1] Hflip.mp4

So, in three parts in the videofiles, between specific seconds/frames
change 180o degrees orientation: ClipB, ClipD, and ClipF
ClipA, CLipC and CLipE are intact.
it was weird that the quality of the video that was produced remained the same with the merged videofile, even no additional parameters of video encoding were given
Start: in seconds
Duration: how many seconds this transformation to happen from the given start point (in seconds)?

However, with that method, you must find exactly the second that you would like to start / apply transformation filter/s. If the transformation is about only whole individual videofiles, then it is not the best solution.
Also, I dont want to encode multiple times my files, which, I think with these two commands, this does not happen.
UPDATE: The first video was of 5.7GB.
The second ffmpeg command resulted a video file of ~1.5GB, very worse quality. I am searching yet what to do...
UPDATE No2:
The folowing command also freezes my computer:
 ffmpeg -f concat -safe 0 -i VIDEOFILES_short.txt -filter_complex  \
>  "[0:v] setpts=PTS-STARTPTS[v1];  \
>   [0:v] setpts=PTS-STARTPTS[v2];  \
>   [v1][v2]concat[v12];            \
>   [0:v] setpts=PTS-STARTPTS[v3];  \
>   [0:v] setpts=PTS-STARTPTS[v4];  \
>   [v3][v4]concat[v34];            \
>   [0:v] setpts=PTS-STARTPTS[v5];  \
>   [v5]vflip, hflip[v5flip];       \
>   [v12][v34][v5flip]concat=n=3:v=1, scale=1920:1080, setpts=0.33*PTS[out]" -map "[out]" -r 32 -crf 14  -vcodec libx264  -vb 20M   video_out_FF.avi
ffmpeg version 4.2.3 Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)
  configuration: --enable-gpl --enable-libx264 --enable-libvpx --enable-libmp3lame --enable-libopus
  libavutil      56. 31.100 / 56. 31.100
  libavcodec     58. 54.100 / 58. 54.100
  libavformat    58. 29.100 / 58. 29.100
  libavdevice    58.  8.100 / 58.  8.100
  libavfilter     7. 57.100 /  7. 57.100
  libswscale      5.  5.100 /  5.  5.100
  libswresample   3.  5.100 /  3.  5.100
  libpostproc    55.  5.100 / 55.  5.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55f6fdeab480] Invalid mdhd time scale 0, defaulting to 1
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55f6fdeab480] Auto-inserting h264_mp4toannexb bitstream filter
[concat @ 0x55f6fdea0b80] Could not find codec parameters for stream 2 (Unknown: none): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[concat @ 0x55f6fdea0b80] Could not find codec parameters for stream 4 (Unknown: none): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, concat, from 'VIDEOFILES_short.txt':
  Duration: N/A, start: 0.000000, bitrate: 60138 kb/s
    Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuvj420p(pc, bt709), 2704x1520 [SAR 1:1 DAR 169:95], 60010 kb/s, 50 fps, 50 tbr, 90k tbn, 100 tbc
    Metadata:
      creation_time   : 2020-06-12T17:51:41.000000Z
      handler_name    :     GoPro AVC
      encoder         : GoPro AVC encoder
      timecode        : 17:51:42:25
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s
    Metadata:
      creation_time   : 2020-06-12T17:51:41.000000Z
      handler_name    :     GoPro AAC
      timecode        : 17:51:42:25
    Stream #0:2: Unknown: none
    Stream #0:3(eng): Data: bin_data (gpmd / 0x646D7067), 0 kb/s
    Metadata:
      creation_time   : 2020-06-12T17:51:41.000000Z
      handler_name    :     GoPro MET
    Stream #0:4: Unknown: none
Stream mapping:
  Stream #0:0 (h264) -> setpts
  Stream #0:0 (h264) -> setpts
  Stream #0:0 (h264) -> setpts
  Stream #0:0 (h264) -> setpts
  Stream #0:0 (h264) -> setpts
  setpts -> Stream #0:0 (libx264)
Press [q] to stop, [?] for help
[swscaler @ 0x55f6fe10b680] deprecated pixel format used, make sure you did set range correctly
[libx264 @ 0x55f6fdedf700] using SAR=1521/1520
[libx264 @ 0x55f6fdedf700] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 0x55f6fdedf700] profile High, level 4.2
Output #0, avi, to 'video_out_FF.avi':
  Metadata:
    ISFT            : Lavf58.29.100
    Stream #0:0: Video: h264 (libx264) (H264 / 0x34363248), yuvj420p(pc), 1920x1080 [SAR 1521:1520 DAR 169:95], q=-1--1, 20000 kb/s, 32 fps, 32 tbn, 32 tbc (default)
    Metadata:
      encoder         : Lavc58.54.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/20000000 buffer size: 0 vbv_delay: -1
frame=    6 fps=4.7 q=0.0 size=       6kB time=00:00:00.00 bitrate=N/A dup=0 drop=13 speed=  frame=   11 fps=6.2 q=0.0 size=       6kB time=00:00:00.00 bitrate=N/A dup=0 drop=34 speed=  frame=   11 fps=4.8 q=0.0 size=       6kB time=00:00:00.00 bitrate=N/A dup=0 drop=34 speed=  frame=   11 fps=4.0 q=0.0 size=       6kB time=00:00:00.00 bitrate=N/A dup=0 drop=34 speed=  frame=   11 fps=3.4 q=0.0 size=       6kB time=00:00:00.00 bitrate=N/A dup=0 drop=34 speed=  frame=   11 fps=2.9 q=0.0 size=       6kB time=00:00:00.00 bitrate=N/A dup=0 drop=34 speed=  frame=   11 fps=2.6 q=0.0 size=       6kB time=00:00:00.00 bitrate=N/A dup=0 drop=34 speed=  frame=   11 fps=2.3 q=0.0 size=       6kB time=00:00:00.00 bitrate=N/A dup=0 drop=34 speed=  frame=   11 fps=2.1 q=0.0 size=       6kB time=00:00:00.00 bitrate=N/A dup=0 drop=34 speed=  frame=   11 fps=1.9 q=0.0 size=       6kB time=00:00:00.00 bitrate=N/A dup=0 drop=34 speed=  frame=   11 fps=1.7 q=0.0 size=       6kB time=00:00:00.00 bitrate=N/A dup=0 drop=34 speed=  frame=   11 fps=1.6 q=0.0 size=       6kB time=00:00:00.00 bitrate=N/A dup=0 drop=34 speed=  frame=   11 fps=1.5 q=0.0 size=       6kB time=00:00:00.00 bitrate=N/A dup=0 drop=34 speed=  frame=   11 fps=1.3 q=-1.0 Lsize=    1906kB time=00:00:00.28 bitrate=55512.7kbits/s dup=0 drop=35 speed=0.0323x
video:1900kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.309726%
[libx264 @ 0x55f6fdedf700] frame I:1     Avg QP:17.05  size:386448
[libx264 @ 0x55f6fdedf700] frame P:3     Avg QP:18.57  size:251059
[libx264 @ 0x55f6fdedf700] frame B:7     Avg QP:19.85  size:115138
[libx264 @ 0x55f6fdedf700] consecutive B-frames:  9.1%  0.0% 54.5% 36.4%
[libx264 @ 0x55f6fdedf700] mb I  I16..4:  8.8% 57.2% 34.1%
[libx264 @ 0x55f6fdedf700] mb P  I16..4:  3.2% 25.8% 11.6%  P16..4: 23.4% 19.9% 14.6%  0.0%  0.0%    skip: 1.4%
[libx264 @ 0x55f6fdedf700] mb B  I16..4:  0.9%  5.9%  2.6%  B16..8: 29.0% 17.6%  7.6%  direct:23.5%  skip:12.9%  L0:41.5% L1:19.2% BI:39.4%
[libx264 @ 0x55f6fdedf700] 8x8 transform intra:61.1% inter:45.4%
[libx264 @ 0x55f6fdedf700] coded y,uvDC,uvAC intra: 87.6% 81.5% 50.9% inter: 66.0% 41.4% 2.5%
[libx264 @ 0x55f6fdedf700] i16 v,h,dc,p: 26%  4%  5% 65%
[libx264 @ 0x55f6fdedf700] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 15% 15% 15%  8%  6%  7%  6%  7% 20%
[libx264 @ 0x55f6fdedf700] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 15% 10%  8%  7% 12%  6%  7% 17%
[libx264 @ 0x55f6fdedf700] i8c dc,h,v,p: 51% 22% 18%  8%
[libx264 @ 0x55f6fdedf700] Weighted P-Frames: Y:66.7% UV:33.3%
[libx264 @ 0x55f6fdedf700] ref P L0: 75.7% 10.1%  7.3%  5.5%  1.4%
[libx264 @ 0x55f6fdedf700] ref B L0: 94.2%  4.9%  0.9%
[libx264 @ 0x55f6fdedf700] ref B L1: 99.7%  0.3%
[libx264 @ 0x55f6fdedf700] kb/s:45279.23
Exiting normally, received signal 2.


text:
ffmpeg compress video in fast motion in high quality
I would like to compress a video and in the same time to be in fast motion, and this must have as a result a high quality fast motion video.
I tried to run this ffmpeg command which compress video in high quality and in fast motion (~four times faster):
ffmpeg -i video_to_encode.avi  -r 16 -crf 18  -vcodec libx264  -filter:v "setpts=0.25*PTS" -vb 10M -vf scale=1280:720 video_output.avi

However, while video is compressed in high quality, the command for fast motion  -filter:v "setpts=0.25*PTS" is not executed. I have an idea that "-filter:v" may must be removed. Is that right?
UPDATE 1:
This command do what I would like to do, however, it creates a negative timestamp. This means that if I have a video of 21 seconds, and it is compressed in fast motion four times faster, then it will be resulted a video of 5 seconds and not of 21. However, this command generates a video of incorrent timestamp of 21 seconds where only the first 5 seconds are running as a proper video, and then it is frozen until 21th second.
ffmpeg -i video_to_encode.avi  -r 16 -crf 18  -vcodec libx264 -vb 10M -vf "scale=1280:720,setpts=0.25*PTS" video_output.avi

This can happen if your input has other streams, such as a silent audio track.

I, finally, found the answer!
The problem was created from the mismatch of Video frames duration, and audio duration. So the video seems to be frozen after some moment, and it seems it continues to play frozen to last video frame. However, audio continued to play. It continue to paly until audio duration finish. Therefore, I decided to remove the audio track entirely while compressing the file. This resulted a video-only file with correct playing time using "-an" ffmpeg option.
ffmpeg -i video_out.avi  -r 16 -crf 18  -vcodec libx264 -vb 10M -vf "scale=1280:720,setpts=0.25*PTS"  -an  gp.avi


text:
using ffmpeg, how to concetrate multiple videos into one, but audio will be sync per video in linux?
using ffmpeg, using ffmpeg, how to concetrate multiple videos into one, but audio will be sync per video in linux?
I have tried async, vsync, atempo but i dont know how make ffmpeg to autosync audio for each video.
In other words, how to match audio with video frame rate in each video independently when framerate is different in each video, otherwise freeze frames are produced. If -an parameter is specified no freeze frames exists  in video output.
I found that tuning atempo can match video duration. How i can making work automatically in each video?
ffmpeg  -f concat -safe 0 -i "./vids.txt"  -c:v libx265   -video_track_timescale 90000    -x265-params  crf=18  -pix_fmt yuvj420p    -af atempo=1.1     vid_outatempo1_1.mkv
video 1
General
Complete name :
/mnt/temp_dir/v1_tyes.mp4
Format :
MPEG-4
Format profile :
Base Media
Codec ID :
isom (isom/iso2/mp41)
File size :
94.3 MiB
Duration :
49 s 174 ms
Overall bit rate :
16.1 Mb/s
Frame rate :
29.480 FPS
Writing application :
Lavf59.27.100
Video
ID :
1
Format :
HEVC
Format/Info :
High Efficiency Video Coding
Format profile :
Main@L4@Main
Codec ID :
hev1
Codec ID/Info :
High Efficiency Video Coding
Duration :
49 s 153 ms
Bit rate :
16.0 Mb/s
Width :
1 920 pixels
Height :
1 080 pixels
Display aspect ratio :
16:9
Frame rate mode :
Variable
Frame rate :
29.480 FPS
Minimum frame rate :
14.750 FPS
Maximum frame rate :
29.500 FPS
Original frame rate :
29.500 FPS
Color space :
YUV
Chroma subsampling :
4:2:0 (Type 0)
Bit depth :
8 bits
Scan type :
Progressive
Bits/(Pixel*Frame) :
0.262
Stream size :
93.8 MiB (100%)
Title :
VideoHandle
Writing library :
x265 3.5+1-f0c1022b6:[Linux][GCC 12.2.0][64 bit] 8bit+10bit+12bit
Encoding settings :
cpuid=1111039 / frame-threads=4 / wpp / no-pmode / no-pme / no-psnr / no-ssim / log-level=2 / input-csp=1 / input-res=1920x1080 / interlace=0 / total-frames=0 / level-idc=0 / high-tier=1 / uhd-bd=0 / ref=3 / no-allow-non-conformance / no-repeat-headers / annexb / no-aud / no-hrd / info / hash=0 / no-temporal-layers / open-gop / min-keyint=25 / keyint=250 / gop-lookahead=0 / bframes=4 / b-adapt=2 / b-pyramid / bframe-bias=0 / rc-lookahead=20 / lookahead-slices=6 / scenecut=40 / hist-scenecut=0 / radl=0 / no-splice / no-intra-refresh / ctu=64 / min-cu-size=8 / no-rect / no-amp / max-tu-size=32 / tu-inter-depth=1 / tu-intra-depth=1 / limit-tu=0 / rdoq-level=0 / dynamic-rd=0.00 / no-ssim-rd / signhide / no-tskip / nr-intra=0 / nr-inter=0 / no-constrained-intra / strong-intra-smoothing / max-merge=3 / limit-refs=1 / no-limit-modes / me=1 / subme=2 / merange=57 / temporal-mvp / no-frame-dup / no-hme / weightp / no-weightb / no-analyze-src-pics / deblock=0:0 / sao / no-sao-non-deblock / rd=3 / selective-sao=4 / early-skip / rskip / no-fast-intra / no-tskip-fast / no-cu-lossless / b-intra / no-splitrd-skip / rdpenalty=0 / psy-rd=2.00 / psy-rdoq=0.00 / no-rd-refine / no-lossless / cbqpoffs=0 / crqpoffs=0 / rc=crf / crf=18.0 / qcomp=0.60 / qpstep=4 / stats-write=0 / stats-read=0 / ipratio=1.40 / pbratio=1.30 / aq-mode=2 / aq-strength=1.00 / cutree / zone-count=0 / no-strict-cbr / qg-size=32 / no-rc-grain / qpmax=69 / qpmin=0 / no-const-vbv / sar=1 / overscan=0 / videoformat=5 / range=1 / colorprim=5 / transfer=2 / colormatrix=2 / chromaloc=1 / chromaloc-top=0 / chromaloc-bottom=0 / display-window=0 / cll=0,0 / min-luma=0 / max-luma=255 / log2-max-poc-lsb=8 / vui-timing-info / vui-hrd-info / slices=1 / no-opt-qp-pps / no-opt-ref-list-length-pps / no-multi-pass-opt-rps / scenecut-bias=0.05 / hist-threshold=0.03 / no-opt-cu-delta-qp / no-aq-motion / no-hdr10 / no-hdr10-opt / no-dhdr10-opt / no-idr-recovery-sei / analysis-reuse-level=0 / analysis-save-reuse-level=0 / analysis-load-reuse-level=0 / scale-factor=0 / refine-intra=0 / refine-inter=0 / refine-mv=1 / refine-ctu-distortion=0 / no-limit-sao / ctu-info=0 / no-lowpass-dct / refine-analysis-type=0 / copy-pic=1 / max-ausize-factor=1.0 / no-dynamic-refine / no-single-sei / no-hevc-aq / no-svt / no-field / qp-adaptation-range=1.00 / scenecut-aware-qp=0conformance-window-offsets / right=0 / bottom=0 / decoder-max-rate=0 / no-vbv-live-multi-pass
Language :
English
Color range :
Full
Color primaries :
BT.601 PAL
Codec configuration box :
hvcC
Audio
ID :
2
Format :
AAC LC
Format/Info :
Advanced Audio Codec Low Complexity
Codec ID :
mp4a-40-2
Duration :
49 s 174 ms
Source duration :
49 s 195 ms
Bit rate mode :
Constant
Bit rate :
69.5 kb/s
Channel(s) :
1 channel
Channel layout :
M
Sampling rate :
48.0 kHz
Frame rate :
46.875 FPS (1024 SPF)
Compression mode :
Lossy
Stream size :
417 KiB (0%)
Source stream size :
417 KiB (0%)
Title :
SoundHandle
Language :
English
Default :
Yes
Alternate group :
1

video 2
General
Complete name :
/mnt/temp_dir/v2_h265.mp4
Format :
MPEG-4
Format profile :
Base Media
Codec ID :
isom (isom/iso2/mp41)
File size :
36.3 MiB
Duration :
54 s 763 ms
Overall bit rate :
5 554 kb/s
Frame rate :
29.529 FPS
Writing application :
Lavf59.27.100
Video
ID :
1
Format :
HEVC
Format/Info :
High Efficiency Video Coding
Format profile :
Main@L4@Main
Codec ID :
hev1
Codec ID/Info :
High Efficiency Video Coding
Duration :
54 s 727 ms
Bit rate :
5 478 kb/s
Width :
1 920 pixels
Height :
1 080 pixels
Display aspect ratio :
16:9
Frame rate mode :
Variable
Frame rate :
29.529 FPS
Minimum frame rate :
9.861 FPS
Maximum frame rate :
29.583 FPS
Original frame rate :
29.583 FPS
Color space :
YUV
Chroma subsampling :
4:2:0 (Type 0)
Bit depth :
8 bits
Scan type :
Progressive
Bits/(Pixel*Frame) :
0.089
Stream size :
35.7 MiB (99%)
Title :
VideoHandle
Writing library :
x265 3.5+1-f0c1022b6:[Linux][GCC 12.2.0][64 bit] 8bit+10bit+12bit
Encoding settings :
cpuid=1111039 / frame-threads=4 / wpp / no-pmode / no-pme / no-psnr / no-ssim / log-level=2 / input-csp=1 / input-res=1920x1080 / interlace=0 / total-frames=0 / level-idc=0 / high-tier=1 / uhd-bd=0 / ref=3 / no-allow-non-conformance / no-repeat-headers / annexb / no-aud / no-hrd / info / hash=0 / no-temporal-layers / open-gop / min-keyint=25 / keyint=250 / gop-lookahead=0 / bframes=4 / b-adapt=2 / b-pyramid / bframe-bias=0 / rc-lookahead=20 / lookahead-slices=6 / scenecut=40 / hist-scenecut=0 / radl=0 / no-splice / no-intra-refresh / ctu=64 / min-cu-size=8 / no-rect / no-amp / max-tu-size=32 / tu-inter-depth=1 / tu-intra-depth=1 / limit-tu=0 / rdoq-level=0 / dynamic-rd=0.00 / no-ssim-rd / signhide / no-tskip / nr-intra=0 / nr-inter=0 / no-constrained-intra / strong-intra-smoothing / max-merge=3 / limit-refs=1 / no-limit-modes / me=1 / subme=2 / merange=57 / temporal-mvp / no-frame-dup / no-hme / weightp / no-weightb / no-analyze-src-pics / deblock=0:0 / sao / no-sao-non-deblock / rd=3 / selective-sao=4 / early-skip / rskip / no-fast-intra / no-tskip-fast / no-cu-lossless / b-intra / no-splitrd-skip / rdpenalty=0 / psy-rd=2.00 / psy-rdoq=0.00 / no-rd-refine / no-lossless / cbqpoffs=0 / crqpoffs=0 / rc=crf / crf=18.0 / qcomp=0.60 / qpstep=4 / stats-write=0 / stats-read=0 / ipratio=1.40 / pbratio=1.30 / aq-mode=2 / aq-strength=1.00 / cutree / zone-count=0 / no-strict-cbr / qg-size=32 / no-rc-grain / qpmax=69 / qpmin=0 / no-const-vbv / sar=1 / overscan=0 / videoformat=5 / range=1 / colorprim=5 / transfer=2 / colormatrix=2 / chromaloc=1 / chromaloc-top=0 / chromaloc-bottom=0 / display-window=0 / cll=0,0 / min-luma=0 / max-luma=255 / log2-max-poc-lsb=8 / vui-timing-info / vui-hrd-info / slices=1 / no-opt-qp-pps / no-opt-ref-list-length-pps / no-multi-pass-opt-rps / scenecut-bias=0.05 / hist-threshold=0.03 / no-opt-cu-delta-qp / no-aq-motion / no-hdr10 / no-hdr10-opt / no-dhdr10-opt / no-idr-recovery-sei / analysis-reuse-level=0 / analysis-save-reuse-level=0 / analysis-load-reuse-level=0 / scale-factor=0 / refine-intra=0 / refine-inter=0 / refine-mv=1 / refine-ctu-distortion=0 / no-limit-sao / ctu-info=0 / no-lowpass-dct / refine-analysis-type=0 / copy-pic=1 / max-ausize-factor=1.0 / no-dynamic-refine / no-single-sei / no-hevc-aq / no-svt / no-field / qp-adaptation-range=1.00 / scenecut-aware-qp=0conformance-window-offsets / right=0 / bottom=0 / decoder-max-rate=0 / no-vbv-live-multi-pass
Language :
English
Color range :
Full
Color primaries :
BT.601 PAL
Codec configuration box :
hvcC
Audio
ID :
2
Format :
AAC LC
Format/Info :
Advanced Audio Codec Low Complexity
Codec ID :
mp4a-40-2
Duration :
54 s 763 ms
Source duration :
54 s 784 ms
Bit rate mode :
Constant
Bit rate :
70.0 kb/s
Channel(s) :
1 channel
Channel layout :
M
Sampling rate :
48.0 kHz
Frame rate :
46.875 FPS (1024 SPF)
Compression mode :
Lossy
Stream size :
468 KiB (1%)
Source stream size :
468 KiB (1%)
Title :
SoundHandle
Language :
English
Default :
Yes
Alternate group :
1

My tries failed - either 2nd video audio is truncuated, or video is truncuated or produce freezed frames.

UPDATE:
Finally, fixing frame rates to 30 for each video, as well fixing audio encoder,
ffmpeg  -i v1.mp4 -strict -2 -c:v libx265   -video_track_timescale 90000   -vf fps=30   -x265-params  crf=18   -pix_fmt yuvj420p -c:a flac -ar 48000  -b:a 64k   v2_same.mp4
then concetrated them without rencoding them, solved my problem
ffmpeg  -f concat  -safe 0 -i './vids.txt'  -strict -2  -c copy  -fflags  +genpts output.mp4
However, I feel that ffmpeg must provide an option to "fix frame rate to audio sync" without needing to run a second ffmpeg to concentrate them.


text:
Merge multiple video files using ffmpeg by adding multiple compress options
I would like to merge multiple video files, performing in the same time complex compressing options.
How can I do that? The following ffmpeg command resulting this error:
 Filtergraph 'scale=1280:720,setpts=0.20*PTS' was specified through the -vf/-af/-filter option for output stream 0:0, which is fed from a complex filtergraph.
-vf/-af/-filter and -filter_complex cannot be used together for the same stream.

The ffmpeg command that i used:
ffmpeg -i GOPR0003.MP4 -i GOPR0004.MP4 -i GOPR0005.MP4 -i GOPR0005.MP4 -i GOPR0006.MP4 -i GOPR0007.MP4 -i GOPR0007.MP4 -i GOPR0008.MP4 -i GOPR0009.MP4 -i GOPR0010.MP4 -i GOPR0012.MP4 -i GOPR0013.MP4 -i GOPR0015.MP4 \
   -filter_complex "[0:v] [1:v] [2:v] [3:v] [4:v] [5:v] [6:v] [7:v] [8:v]  [9:v]  [10:v] concat=n=11:v=1 [v]" \
    -r 24 -crf 18  -vcodec libx264 -vb 20M -vf "scale=1280:720,setpts=0.20*PTS"  -an   -map "[v]"   video_output_01.avi

All filtering should be performed in the same filtergraph. Each -filter_complex or -vf defines a different filtergraph. You can use
-filter_complex "[0:v] [1:v] [2:v] [3:v] [4:v] [5:v] [6:v] [7:v] [8:v]  [9:v]  [10:v] concat=n=11:v=1,scale=1280:720,setpts=0.20*PTS [v]"

using ffmpeg -i GOPR0009.MP4 -i GOPR0010.MP4 \ -filter_complex "[0:v] [1:v]  concat=n=2:v=1,vcodec=libx264,vb=20M,crf=14,r=32,scale=1280:720,setpts=0.20*PTS [v]" \ -map "[v]"   video_output_01.avi gave this error: No such filter: 'vcodec'

and how can i add -fflags +genpts?

vcodec=libx264,vb=20M,crf=14,r=32 --> none of these are filters. These all belong as -key value outside the filtergraph.

-fflags +genpts goes before each input to which you wish to apply it.

How can I transpose 180o degrees a video file while merging it? e.g.
ffmpeg -f concat -safe 0 -i VIDEOFILES_short.txt -filter_complex  \   "[0:1] [v0]; \    [1:1]vflip, hflip[v1];\    [v0][v1]concat[out]" -map "[out]" -r 32 -crf 14  -vcodec libx264  -vb 20M   video_out_FF.avi

Finally,
I used that command that resulted to compress multiple video files, while in the same time setting a range of compressing options in ffmpeg:
VIDEOFILES.txt contains a list of the videos that are to merged in a specific way:
ffmpeg -f concat -safe 0 -i VIDEOFILES.txt -r 32 -crf 14  -vcodec libx264 -vb 20M -vf "scale=1280:720,setpts=0.20*PTS" -fflags +genpts  -an   video_output.avi


text:
Why effects flow during camera movement in After Effects 2020?
I have a few vector layers that are parent to Null Object. If I apply Rough Edges or Turbulant Displace to any of these layers, and then animate the scale on my Null, my layers begin to move/flow/leak.
What is the problem and how can I fix it?
I want them to remain static after applying the effects.

I think it's because the Roughen Edges effect is a pixel-based effect applied to the entire display of your comp.  If you pre-comp the effect first, it won't display the animating edges.
Or you could try applying this expression to the Roughen Edges offset (transform) property, as explained here:
parent.position * 400 / effect(“Roughen Edges”)(“Scale”)

I am working with vector graphics on a current project. If I pre-comp the effect first, it won't display the animating edges but my layer will no longer be in the vector. In the case of expression, the result is the same. As a result, I need vector graphics, which I can enlarge by 1000% without loss of quality. Is it really impossible to do this in After Effects?


text:
In what order are After Effects layer effects applied?
Pardon the noob question – If I have say a "brightness" effect and a "sharpen" effect appearing in this order (first is on top of the other), will "brightness" be applied first, then "sharpen"? or the other way around?

Yes, it works the way you suspected it would. Applied effects on a layer work from top to bottom, same with adjustment-layers and layer-modes applying from top to bottom.


text:
compress video for backup
I want to compress a video to store it for backup purpose.
By that, I mean that I don't need to play video when it is compress format. So I don't want to lose quality or something like that, just compress it.
I have tried to compress with 7zip, but size not decrease. Is it possible to compress a video ?
For example, I use 7zip on a 3.92Go mkv video. I try :

zip format : 3.92Go
gz format : 3.88Go

Generally no. Compression algorithms search for repetitive data and replace it with a shorter code and keep a dictionary with all codes. Compressing text works excellent because in longer texts a lot of words repeat.
With video this work has been done most of the time already. Usually the encoder is  performing a similar operation: looking for repeating patterns and replacing them with a shorter code. Most video files you see are already compressed, most repetitive patterns already encoded and therefore any further compression won't do much.
Sometimes re-encoding videos with a much newer encoder saves a lot of space, but this process is always a bit lossy and requires more work.
You could check if the files have any additional unwanted audio tracks and remove them, like tracks in languages you don't speak anyway.

Many thanks Matt


text:
what handbrake influences to get its results
I have used handbrake on a 40GB video.
I only have choosed mp4 format and launched the work.
After few hours of work, I obtain a 2GB video, with same quality...
How is it possible ?
(I ask it before made this change on all my big videos...)
Mediainfo output for 40GB video :
General
Unique ID                                : 238228999256890016546824715230238210616 (0xB3393C800F190F03AD96939C4A7BFA38)
Complete name                            : C:\Users\xxx\Desktop\Inception.mkv
Format                                   : Matroska
Format version                           : Version 4
File size                                : 30.9 GiB
Duration                                 : 2 h 28 min
Overall bit rate mode                    : Variable
Overall bit rate                         : 29.9 Mb/s
Movie name                               : Inception 2010 Blu-ray Remux 1080p VC-1 DTS-HD MA 5.1-HomeTheater
Encoded date                             : UTC 2017-09-03 16:37:28
Writing application                      : mkvmerge v14.0.0 ('Flow') 64bit
Writing library                          : libebml v1.3.4 + libmatroska v1.4.5

Video
ID                                       : 1
Format                                   : VC-1
Format profile                           : Advanced@L3
Codec ID                                 : V_MS/VFW/FOURCC / WVC1
Codec ID/Hint                            : Microsoft
Duration                                 : 2 h 28 min
Bit rate                                 : 24.0 Mb/s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 23.976 (24000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Compression mode                         : Lossy
Bits/(Pixel*Frame)                       : 0.483
Stream size                              : 24.8 GiB (80%)
Title                                    : VC-1 / 24014 kbps / 1080p / 23,976 fps / 16:9 / Advanced Profile 3
Default                                  : Yes
Forced                                   : No

Audio #1
ID                                       : 2
Format                                   : DTS XLL
Format/Info                              : Digital Theater Systems
Commercial name                          : DTS-HD Master Audio
Codec ID                                 : A_DTS
Duration                                 : 2 h 28 min
Bit rate mode                            : Variable
Bit rate                                 : 3 689 kb/s
Channel(s)                               : 6 channels
Channel layout                           : C L R Ls Rs LFE
Sampling rate                            : 48.0 kHz
Frame rate                               : 93.750 FPS (512 SPF)
Bit depth                                : 24 bits
Compression mode                         : Lossless
Stream size                              : 3.82 GiB (12%)
Title                                    : DTS-HD MA / 5.1 / 48 kHz / 3689 kbps / 24-bit
Language                                 : English
Default                                  : No
Forced                                   : No

Audio #2
ID                                       : 4
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Commercial name                          : Dolby Digital
Codec ID                                 : A_AC3
Duration                                 : 2 h 28 min
Bit rate mode                            : Constant
Bit rate                                 : 640 kb/s
Channel(s)                               : 6 channels
Channel layout                           : L R C LFE Ls Rs
Sampling rate                            : 48.0 kHz
Frame rate                               : 31.250 FPS (1536 SPF)
Compression mode                         : Lossy
Stream size                              : 678 MiB (2%)
Title                                    : VFF AC3 5.1
Language                                 : French
Service kind                             : Complete Main
Default                                  : Yes
Forced                                   : No

Audio #3
ID                                       : 5
Format                                   : DTS
Format/Info                              : Digital Theater Systems
Codec ID                                 : A_DTS
Duration                                 : 2 h 28 min
Bit rate mode                            : Constant
Bit rate                                 : 1 509 kb/s
Channel(s)                               : 6 channels
Channel layout                           : C L R Ls Rs LFE
Sampling rate                            : 48.0 kHz
Frame rate                               : 93.750 FPS (512 SPF)
Bit depth                                : 24 bits
Compression mode                         : Lossy
Stream size                              : 1.56 GiB (5%)
Title                                    : VO DTS 5.1
Language                                 : English
Default                                  : No
Forced                                   : No

Text #1
ID                                       : 3
Format                                   : PGS
Muxing mode                              : zlib
Codec ID                                 : S_HDMV/PGS
Codec ID/Info                            : Picture based subtitle format used on BDs/HD-DVDs
Duration                                 : 2 h 27 min
Bit rate                                 : 32.7 kb/s
Count of elements                        : 3482
Stream size                              : 34.4 MiB (0%)
Title                                    : SDH
Language                                 : English
Default                                  : No
Forced                                   : No

Text #2
ID                                       : 6
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Duration                                 : 2 h 26 min
Bit rate                                 : 0 b/s
Count of elements                        : 5
Stream size                              : 111 Bytes (0%)
Title                                    : Forces
Language                                 : French
Default                                  : Yes
Forced                                   : Yes

Text #3
ID                                       : 7
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Duration                                 : 2 h 26 min
Bit rate                                 : 46 b/s
Count of elements                        : 1741
Stream size                              : 50.2 KiB (0%)
Title                                    : Complets
Language                                 : French
Default                                  : No
Forced                                   : No

Mediainfo output for 2GB video :
General
Complete name                            : C:\Users\xxxx\Desktop\Inception-1.m4v
Format                                   : MPEG-4
Format profile                           : Base Media / Version 2
Codec ID                                 : mp42 (isom/iso2/avc1/mp41)
File size                                : 2.84 GiB
Duration                                 : 2 h 28 min
Overall bit rate                         : 2 746 kb/s
Movie name                               : Inception 2010 Blu-ray Remux 1080p VC-1 DTS-HD MA 5.1-HomeTheater
Encoded date                             : UTC 2020-06-14 09:28:20
Tagged date                              : UTC 2020-06-14 09:28:20
Writing application                      : HandBrake 1.3.2 2020050300

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : Main@L4
Format settings                          : CABAC / 4 Ref Frames
Format settings, CABAC                   : Yes
Format settings, Reference frames        : 4 frames
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 2 h 28 min
Bit rate                                 : 2 579 kb/s
Width                                    : 1 920 pixels
Height                                   : 800 pixels
Display aspect ratio                     : 2.40:1
Frame rate mode                          : Variable
Frame rate                               : 23.976 (24000/1001) FPS
Minimum frame rate                       : 23.974 FPS
Maximum frame rate                       : 23.981 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.070
Stream size                              : 2.67 GiB (94%)
Writing library                          : x264 core 157 r2935 545de2f
Encoding settings                        : cabac=1 / ref=2 / deblock=1:0:0 / analyse=0x1:0x111 / me=hex / subme=6 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=12 / lookahead_threads=2 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=1 / keyint=240 / keyint_min=24 / scenecut=40 / intra_refresh=0 / rc_lookahead=30 / rc=crf / mbtree=1 / crf=22.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / vbv_maxrate=20000 / vbv_bufsize=25000 / crf_max=0.0 / nal_hrd=none / filler=0 / ip_ratio=1.40 / aq=1:1.00
Encoded date                             : UTC 2020-06-14 09:28:20
Tagged date                              : UTC 2020-06-14 09:28:20
Color range                              : Limited
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709
Codec configuration box                  : avcC

Audio
ID                                       : 2
Format                                   : AAC LC
Format/Info                              : Advanced Audio Codec Low Complexity
Codec ID                                 : mp4a-40-2
Duration                                 : 2 h 28 min
Bit rate mode                            : Constant
Bit rate                                 : 161 kb/s
Channel(s)                               : 2 channels
Channel layout                           : L R
Sampling rate                            : 48.0 kHz
Frame rate                               : 46.875 FPS (1024 SPF)
Compression mode                         : Lossy
Stream size                              : 170 MiB (6%)
Title                                    : DTS-HD MA / 5.1 / 48 kHz / 3689 kbps / 24-bit
Language                                 : English
Default                                  : Yes
Alternate group                          : 1
Encoded date                             : UTC 2020-06-14 09:28:20
Tagged date                              : UTC 2020-06-14 09:28:20

Please elaborate on what you mean with 40Go and 2Go - I found nothing like this with google...

Sorry, it is Giga Byte (GB), "Go" is in french. I edit OP.

The basics of video compression is a pretty broad topic. There are whole books on it. It is also hard for us to say what was changed without knowing what your source video was and what your Handbrake settings were. (You can post the full text mode output from [MediaInfo] (https://mediaarea.net/en/MediaInfo) for the source info). Can you narrow your question down or post additional information?

Thanks for your answer, I edit OP with mediainfo information

I noticed that the Handbrake MP4 is a different size and aspect ratio than the original -- 800px high instead of 1080px. That would make it a little smaller and lower quality too.

Input and output video formats are from the same generation (similar quality for similar bitrate). Handbrake default settings are prioritizing smaller size over better quality. Video bitrate is divided by 10, which is seriously impacting quality. Not so much because input is strongly standardized (Blu-ray) and Blu-ray tools are not optimized, but 2.5 Mbps is still low for HD, recommended bitrate for HD compressed in AVC are more around 5-10 Mbps.
Input and output audio formats are very different, input is lossless and output is lossy compressed, not speaking about the channel count (from 5.1 to stereo). This is a serious loss, and not speaking about the trashed French track...
Input subtitles tracks are not big, but trashed.
You say "with same quality", which is totally wrong (for both video and 1st audio), and some data is completely lost (2nd audio track + all subtitle tracks). The right sentence is "with a quality I accept for personal reasons". If all the quality and data loss is acceptable for you (for example you plan to only watch this film on your laptop during a noisy travel, and never on a big TV with a 5.1 soundbar in a quite room), go for it, else tweak Handbrake e.g. at the minimum for a not too bad experience on TV+soundbar 5 Mbps video + 5.1 512 kbps AAC for both audio tracks + copy of subtitle tracks (for 2nd audio and all subtitles: if you don't want to trash them, else it is fine to trash them). This would lead to a 6 GB file in your case.

Thank you very much for this very qualitative response! I will follow your advice.

Sorry, I have another question : what mean cursor named "Constant Quality" in Handbrake (Video tab) : when I use your recommended configuration and a value of 23 for it, I have only a 2,5GB video. 23 is the recommended value for hight definition source say the documentation. I don't understand how to use this parameter.

You can have a global overview of of this settings on e.g. https://slhck.info/video/2017/02/24/crf-guide.html , and 23 is usually OK, here if you have such small file with this setting it may just need that your video content is easy to compress, it may do a bigger file with another content (the quality is constant, not the file size). You may try a lower value for better quality, e.g. 20. Handbrake recommends 20-24 for HD https://handbrake.fr/docs/en/latest/workflow/adjust-quality.html.

Thanks Jérôme !


text:
Post-production editing audio/video out of sync
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 format of clip.flv to clip.mp4
Concat intro.mp4 with clip.mp4

I get a video where intro plays well and then when clip starts it's audio is not in sync with video also the video seems to be fast forwarded with sound seems to be high pitch
I have used both handbrake and ffmpeg for conversion and concatenating.

Files Metadata
Original source file clip.flv metadata
Stream #0:0: Video: h264 (High), yuv420p(progressive), 1280x720, 1500 kb/s, **30 fps**, 30 tbr, **1k tbn**, 60 tbc
Stream #0:1: Audio: aac (LC), 44100 Hz, stereo, fltp, 160 kb/s

Intermediary file intro.mp4 metadata
Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 1280x720 [SAR 1:1 DAR 16:9], 130 kb/s, **30 fps**, 30 tbr, **30k tbn**, 60k tbc (default)
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 317 kb/s

File clip.mp4 metadata
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720, 1500 kb/s, 30 fps, 30 tbr, 16k tbn, 60 tbc (default)
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 160 kb/s (default)

Things I have tried

As you'll see that the both videos have same frame rate but different timescale, I have tried changing the timescale of one of the video to match the other before combining the video but with no luck.
Update: I tried a workaround to convert the video to intermediary format .MTS, then concat the videos and then convert output video to .mp4 as final output. Initially that seems to work but on performing more operations(trim and concat again) on the output video reveals that the video has unspecified pixal format and won't let me do those operations further

If you need more info to help, please ask. It's quite important for me to solve this.

Welcome! Please be aware, it is considered poor etiquette to ask the same question on more than one SE site at the same time.

Thanks Michael for sharing. I shared it to get different perspective. Programming level perspective on SO. Production level perspective(how other video producers do this) here. Which is why I did not include the code here. Not a good approach?

You are correct that isn't the encouraged approach. You can get high quality help with all aspects of FFmpeg here, but only if you share the information in the SO question and then some (full logs, Mediainfo debug output, sample files, etc.). SE questions are encouraged to stand on their own and not need links to external resources so that the question and answer remain useful over time.

Understood, some more questions

For long list of debug output, should I include an external file ?
I haven't received any response here, what should I do?

About your suggestion to keep question only at one place, I don't have enough reputation here, so I would like to first see if there is any response here, if so, I will keep it here and remove SO question. Otherwise I will remove this one put up bounty on SO (I have some reputation to spend on there). 7 hrs to go.


text:
How do you remove transulscent watermarks from videos?
I found a black and white video with a transluscent watermark that I want to remove. I have no experience with video editing and I prefer to use free and open-source software exclusively. Any help would be appreciated. Thank you!
Note: The video is in the public domain in the US. The work was published between 1925 and 1963 and although there may or may not have been a copyright notice, the copyright was not renewed. See this for more info.

Load the clip into After Effects and add a mask to the mark.
Add an underlying track with matching or near matching background content. The mask will hide the top layer to reveal the bottom layer.
Add blurs, softening etc to smooth the underlay.


text:
Working on audio effects for multiple clips at once
My problem is that I have many clips with audio and I need to remove, modify and apply audio effects to all of them at once.
Initially, I added an audio effect to a long clip and then I split it in many smaller clips. My problem is that now I want to remove all audio effects so I can start again from scratch. I can select multiple audios but the options available to be changed at once are only the standard options (volume, etc), not the effects, even though the selected audios have the same effects applied.
I can use the Edit Index to select Audio tracks and then Audio with effects. But apparently this only identifies the offensive tracks, I can't select them all at once:

I have checked Resolve manual and I couldn't find anything.
How can I remove the applied effects from the multiple tracks at once?
After that, I will need to apply some effects to multiple tracks at once, but I believe this can be done by selecting all tracks and dragging and dropping the effect on them.

You can lasso them on the timeline, right-click and choose "remove attributes..."  Then, make sure "plugins" is checked, and click "apply."

After that, I will need to apply some effects to multiple tracks at once, but I believe this can be done by selecting all tracks and dragging and dropping the effect on them.

Yes, you can do that.  You can also apply effects to a whole track, which often saves a lot of mouse clicks, and helps you stay consistent.  There's a row of tiny plus signs on the mixer channel strips labeled "effects" where you go to do that.  It's also possible to group multiple tracks together, send that through a submix, and apply effects to the whole group at once.  So you could affect dialogue uniformly, for instance.

That was very helpful. Additionally, do you know if there is a way to select the tracks via the "Edit Index" as in the image of the question instead of using the "lasso"?

I don't think you can select multiple things via the edit index, but you can select one thing at a time if you have "selection follows playhead" turned on in the timeline menu.  That's something I use a lot, so I map a shortcut to it.  Then, with the edit index filtered the way you want it, you can step through with the up and down arrow keys.   You could work out a sequence of hot keys and use 3rd party macro software, which is always helpful for the inevitable edge cases.  Black Magic are very responsive to feature requests, though.  They implemented my last one in under a month.


text:
How to convert 10-bit H.265 videos to H.264 without losing quality
I have a MPEG-H Part2/HVEC (H.265) .mkv file (Planar 4:2:0 YUV 10-bit LE).
Since my LG PF 1500 beamer does not read H.265 but H.264 I would like to convert it (HVEC -> H.264).
I think handbrake is a handy software to do so.
What settings should I use to get a H.264 file with equal quality like the original (HVEC)?
I think I have to chose H.264 10-bit as videoencoder.
However I am not sure about the Quality (RF) setting. How do I know what the HVEC quality setting is and how can I pick an equal one for H.264?
This is the info extracted with MediaInfo:

Format                                   : Matroska Format version
  : Version 4 File size                                : 1.48 GiB
  Duration                                 : 52 min 46 s Overall bit
  rate                         : 4 012 kb/s Encoded date
  : UTC 2018-05-26 19:19:57 Writing application                      :
  mkvmerge v20.0.0 ('I Am The Sun') 64-bit Writing library
  : libebml v1.3.5 + libmatroska v1.4.8 Writing frontend
  : StaxRip v1.7.0.6
Video ID                                       : 1 Format
  : HEVC Format/Info                              : High Efficiency
  Video Coding Format profile                           : Main
  10@L4@Main Codec ID                                 : V_MPEGH/ISO/HEVC
  Duration                                 : 52 min 46 s Bit rate
  : 3 529 kb/s Width                                    : 1 920 pixels
  Height                                   : 1 080 pixels Display aspect
  ratio                     : 16:9 Frame rate mode
  : Constant Frame rate                               : 23.976
  (24000/1001) FPS Color space                              : YUV Chroma
  subsampling                       : 4:2:0 Bit depth
  : 10 bits Bits/(Pixel*Frame)                       : 0.071 Stream size
  : 1.30 GiB (88%) Writing library                          : x265
  2.7+346-69aafa6d70ad:[Windows][GCC 7.3.0][64 bit] 10bit Encoding settings                        : cpuid=1111039 / frame-threads=2 /
  numa-pools=4 / wpp / no-pmode / no-pme / no-psnr / ssim / log-level=2
  / input-csp=1 / input-res=1920x1080 / interlace=0 / total-frames=75917
  / level-idc=0 / high-tier=1 / uhd-bd=0 / ref=3 /
  no-allow-non-conformance / no-repeat-headers / annexb / no-aud /
  no-hrd / info / hash=0 / no-temporal-layers / open-gop / min-keyint=23
  / keyint=250 / gop-lookahead=0 / bframes=8 / b-adapt=2 / b-pyramid /
  bframe-bias=0 / rc-lookahead=50 / lookahead-slices=6 / scenecut=40 /
  radl=0 / no-intra-refresh / ctu=64 / min-cu-size=8 / no-rect / no-amp
  / max-tu-size=32 / tu-inter-depth=1 / tu-intra-depth=1 / limit-tu=0 /
  rdoq-level=0 / dynamic-rd=0.00 / no-ssim-rd / signhide / no-tskip /
  nr-intra=0 / nr-inter=0 / no-constrained-intra /
  no-strong-intra-smoothing / max-merge=3 / limit-refs=3 /
  no-limit-modes / me=3 / subme=3 / merange=57 / temporal-mvp / weightp
  / no-weightb / no-analyze-src-pics / deblock=0:0 / sao /
  no-sao-non-deblock / rd=3 / no-early-skip / no-rskip / no-fast-intra /
  no-tskip-fast / no-cu-lossless / no-b-intra / no-splitrd-skip /
  rdpenalty=0 / psy-rd=2.00 / psy-rdoq=0.00 / no-rd-refine / no-lossless
  / cbqpoffs=0 / crqpoffs=0 / rc=crf / crf=20.0 / qcomp=0.60 / qpstep=4
  / stats-write=0 / stats-read=0 / ipratio=1.40 / pbratio=1.30 /
  aq-mode=3 / aq-strength=1.00 / cutree / zone-count=0 / no-strict-cbr /
  qg-size=32 / no-rc-grain / qpmax=69 / qpmin=0 / no-const-vbv / sar=0 /
  overscan=0 / videoformat=5 / range=0 / colorprim=2 / transfer=2 /
  colormatrix=2 / chromaloc=0 / display-window=0 / max-cll=0,0 /
  min-luma=0 / max-luma=1023 / log2-max-poc-lsb=8 / vui-timing-info /
  vui-hrd-info / slices=1 / no-opt-qp-pps / no-opt-ref-list-length-pps /
  no-multi-pass-opt-rps / scenecut-bias=0.05 / no-opt-cu-delta-qp /
  no-aq-motion / no-hdr / no-hdr-opt / no-dhdr10-opt /
  no-idr-recovery-sei / analysis-reuse-level=5 / scale-factor=0 /
  refine-intra=0 / refine-inter=0 / refine-mv=0 / no-limit-sao /
  ctu-info=0 / no-lowpass-dct / refine-mv-type=0 / copy-pic=1 /
  max-ausize-factor=1.0 / no-dynamic-refine / no-single-sei Default
  : Yes Forced                                   : No

Tried to find a solution in the book: Video Coding Standards and Video Formats by Rao, however, I could not find a good hint.

It looks like the Video is encoded in 4000 kbit/s, instead of a Rate Factor (RF).
But that isn't the issue here. The issue is: while 264 does support lossless encoding, it not widely compatible! (you would do this by setting the color format to hi444 and -cq 0 (Thanks to Gyan for pointing this out))
If you want the best quality, but also the largest file, you want RF = 1.
If you want very good quality, but still huge files, you want RF <= 16
good quality with big files 16 < RF <=24
mediocre quality with medium filesize 24 < RF <= 28
up to 51 gets worse and smaller.
You might also want to consider using ffmpeg for transcoding video files, that you don't want to edit, since most video editors also loose quality in the process of re-rendering the inputs for the encoder.
ffmpeg stuff
Link: https://ffmpeg.zeranoe.com/builds/
Full Documentation: https://ffmpeg.org/documentation.html
If you want good quality, but long encoding times use this in a CMD that can see the ffmpeg.exe:
ffmpeg -i my_input_file.mkv -map 0:v? -map 0:a? -map 0:s? -c:v libx264 -preset:v medium -profile:v high -rc-lookahead 900 -crf 16 -c:a copy -c:s copy my_output_file.mkv

The parameters mean the following:
-i <file> the file to transcode
-map 0:v? use all video stream(s) from input 0. The question mark means "if they exist"
-map 0:a? use all audio streams
-map 0:s? use all subtitle streams
-map 0:d? use all data
-map 0:t? use all attachments
-c:v libx264 convert the video using the libx264 encoder.
-preset:v medium use medium speed. Alternatives are ultrafast, superfast, veryfast, faster, fast, medium, slow, slower, veryslow, placebo (the faster, the larger the file, slower profile have diminishing results. placebo takes a multiple of the time of veryslow, but results in less than 0.1% smaller size
-profile:v high use high-quality encoding. (other options are just there for backward compatibility)
-rc-lookahead 900 look up to 900 frames ahead to find the best encoding of the current frame. More results in slightly (like placebo) better quality per size, smaller the opposite. Same principle as in -preset applies.
-crf 16 the rate factor. The higher the number, the smaller the size and uglier the picture. About every 6 points, half the file size. Most humans won't notice a difference with -crf 20. Many not even with -crf 24
-c:a copy leave audio as is.
-c:s copy leave subtitles as is.
If you have an nVidia GPU you might want to use the integrated encoding unit. Use this command instead:
ffmpeg -i my_input_file.mkv -map 0:v? -map 0:a? -map 0:s? -c:v h264_nvenc -preset:v medium -profile:v high -rc constqp -qp 16 -c:a copy -c:s copy my_output_file.mkv

Similar paramters. preset is limited to fast, medium, slow, where slow would require additional configuration beyond this answer.
The main change is, that the nvidia encoder doesn't support lookahead and because of that not the crf option. For that reason we use the cq option (Constant Quantization). The difference between these two is, that crf tries to jiggle around the defined value, based on the current and following pictures, while cq stays at that exact value for the entire time.
You can try using constant bitrates, but that is discouraged, because your video quality will be all over the place, because most frames don't have the same difficulty as their predecessors.
Hope this helps
Greetings

264 does not support lossless encoding --> both the H.264 standard and x264 encoder support lossless encoding as part of Hi444p profile, but it's not widely compatible.

You are right O.O Fixing this in the answer

Just if someone has the same problem like me that a smart beamer device not read 10-bit (only 8-bit): add -vf format=yuv420 to the solution from @PinggerShikkoken to convert from 10-bit H.265 to 8-bit H.264