text:
How do I impose a video with my face on a video with slides running on YouTube?
I would like to find out what the easiest way to take one video (of slides) as the main video and superimpose on it another video of a person speaking about those slides (in a small window at the upper right corner). These videos already exist (the two sync'ed videos), and I would like to upload them to YouTube. I am hoping there is an easy way to do that with a bunch of videos that doesn't require using too much editing (I know how to do it with iMovie, but it would take too much time to do it for all videos). Thanks.

You should check out https://obsproject.com/


text:
Processing h264 video/audio stream
I have separate raw audio and video frames from a camera that I'm trying to merge to a single file.
Video processing
I have JVT NAL sequence, H.264 video, main @ L 31 data, I had the frames separated and I appended (concat) the frames to one file.
here is the ffprobe output of the data:
ffprobe version 4.2.7-0ubuntu0.1 Copyright (c) 2007-2022 the FFmpeg developers
  built with gcc 9 (Ubuntu 9.4.0-1ubuntu1~20.04.1)
  configuration: --prefix=/usr --extra-version=0ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
  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
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  5.100 /  5.  5.100
  libswresample   3.  5.100 /  3.  5.100
  libpostproc    55.  5.100 / 55.  5.100
Input #0, h264, from 'frame_data.h264':
  Duration: N/A, bitrate: N/A
    Stream #0:0: Video: h264 (Main), yuvj420p(pc, bt709, progressive), 1280x720, 25 fps, 25 tbr, 1200k tbn, 50 tbc

the file is being played on vlc, however the video is played like it is on fast forward (every 2 seconds of the video should be about 1 second)
The video should run at max 15fps (according to the camera specification)
here is ffprobe output of avi file that contains the raw frames and plays the audio and video correctly after the frames had been processed somehow, This avi file info is for reference only - to compare it with the raw frames to help figure out how to process the frames:
Input #0, avi, from 't.avi':
  Duration: 00:03:29.00, start: 0.000000, bitrate: 1116 kb/s
    Stream #0:0: Video: h264 (Main) (H264 / 0x34363248), yuvj420p(pc, bt709, progressive), 1280x720, 849 kb/s, 30 fps, 15 tbr, 30 tbn, 60 tbc

I tried this command ffmpeg -i frame_data.h264 -filter:v fps=15 test.h264 on the raw frames but the video is still playing like its on fast forward
vlc data before changing fps to 15
vlc screenshot
vlc screenshot
vlc data after changing fps to 15
vlc screenshot
vlc screenshot
however playing the video via ffplay frame_data.h264 -framerate 15 make it much better, almost synced all the time, however occasionally the video become faster for couple of seconds (maybe it should be synced other way and not by frame rate?)
frames info (raw)
[FRAME]
media_type=video
stream_index=0
key_frame=1
pkt_pts=N/A
pkt_pts_time=N/A
-> pkt_dts=N/A
-> pkt_dts_time=N/A
best_effort_timestamp=N/A
best_effort_timestamp_time=N/A
-> pkt_duration=48000
-> pkt_duration_time=0.040000
pkt_pos=1476573
pkt_size=57677
width=1280
height=720
pix_fmt=yuvj420p
sample_aspect_ratio=N/A
pict_type=I
coded_picture_number=189
display_picture_number=0
interlaced_frame=0
top_field_first=0
repeat_pict=0
color_range=pc
color_space=bt709
color_primaries=bt709
color_transfer=bt709
chroma_location=left
[/FRAME]
[FRAME]
media_type=video
stream_index=0
key_frame=0
pkt_pts=N/A
pkt_pts_time=N/A
-> pkt_dts=N/A
-> pkt_dts_time=N/A
best_effort_timestamp=N/A
best_effort_timestamp_time=N/A
-> pkt_duration=48000
-> pkt_duration_time=0.040000
pkt_pos=1534250
pkt_size=3928
width=1280
height=720
pix_fmt=yuvj420p
sample_aspect_ratio=N/A
pict_type=P
coded_picture_number=190
display_picture_number=0
interlaced_frame=0
top_field_first=0
repeat_pict=0
color_range=pc
color_space=bt709
color_primaries=bt709
color_transfer=bt709
chroma_location=left
[/FRAME]

frame info from working (processed) avi
[FRAME]
media_type=video
stream_index=0
key_frame=0
pkt_pts=N/A
pkt_pts_time=N/A
-> pkt_dts=500
-> pkt_dts_time=16.666667
best_effort_timestamp=500
best_effort_timestamp_time=16.666667
-> pkt_duration=1
-> pkt_duration_time=0.033333
pkt_pos=1772182
pkt_size=3070
width=1280
height=720
pix_fmt=yuvj420p
sample_aspect_ratio=N/A
pict_type=P
coded_picture_number=191
display_picture_number=0
interlaced_frame=0
top_field_first=0
repeat_pict=0
color_range=pc
color_space=bt709
color_primaries=bt709
color_transfer=bt709
chroma_location=left
[/FRAME]

pkt_pts and pkt_dts are missing in the raw data, maybe that is the reason the video plays on fast forward? in the working (processed) avi pkt_dts, pkt_dts_time, pkt_duration_time are not missing.
pkt_duration_time is always 0.033333
pkt_dts always jumps by 2 (there is no odd pkt_dts)
Audio processing
I have raw pcm audio of the video:
here is an output of ffplay -f s16le -ar 16k -ac 1 frame_data2.h264 on the raw data
ffplay screenshot5
The raw audio does not playing well using this command.
I guessed the parameters (incorrectly?) from working avi file that contains the pcm data:
Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 16000 Hz, 1 channels, s16, 256 kb/s

here is frame info from working (processed) avi file
[FRAME]
media_type=audio
stream_index=1
key_frame=1
pkt_pts=4320
pkt_pts_time=0.270000
pkt_dts=4320
pkt_dts_time=0.270000
best_effort_timestamp=4320
best_effort_timestamp_time=0.270000
pkt_duration=480
pkt_duration_time=0.030000
pkt_pos=11670
pkt_size=960
sample_fmt=s16
nb_samples=480
channels=1
channel_layout=unknown
[/FRAME]

I'm trying to understand how should I process the video and the audio so that they will play well (merge them myself with the right av processing to avi/mp4 file)
I also find this extra data that was included for each frame:
I suspect the first column is a sequence number maybe related to dts somehow, second column is a timestamp (milliseconds/microseconds?)
600 0xd96533 (audio)
601 0xd9e1dd (audio)
602 0xda4f52 (audio)
603 0xda5a63 (video)
604 0xdacc4b (audio)
605 0xdb39a3 (audio)
606 0xdb5ee9 (video)
607 0xdbb6d8 (audio)
608 0xdc23fe (audio)
609 0xdcb255 (audio)
610 0xdd0e69 (audio)
611 0xdd8b96 (audio)
612 0xdd67d0 (video)
613 0xddf8bd (audio)
614 0xde75fe (audio)
615 0xde6c28 (video)
616 0xdee328 (audio)
617 0xdf6012 (audio)
618 0xdfcd9d (audio)
619 0xe04a7d (audio)
620 0xe07523 (video)
621 0xe0b80c (audio)
622 0xe134db (audio)
623 0xe1798b (video)
624 0xe1a251 (audio)
625 0xe21f5c (audio)
626 0xe28ce1 (audio)
627 0xe27df7 (video)
628 0xe309a7 (audio)
629 0xe376fe (audio)
630 0xe3826e (video)
631 0xe3f3fd (audio)
632 0xe46154 (audio)
633 0xe486e9 (video)
634 0xe4de79 (audio)
635 0xe54bbe (audio)
636 0xe58b79 (video)
637 0xe5c8cb (audio)
638 0xe6361e (audio)
639 0xe6b35b (audio)
640 0xe68fb7 (video)
641 0xe72093 (audio)
642 0xe79db1 (audio)
643 0xe7942f (video)
644 0xe80b09 (audio)
645 0xe887ed (audio)
646 0xe8f546 (audio)
647 0xe97256 (audio)
648 0xe99d2c (video)
649 0xe9dfbd (audio)
650 0xea5ca8 (audio)

Thanks.
Update
I fixed the audio frames, I'm able to play them fine, now I only need help with merging the audio and the video to one file and syncing them with the timestamp (microseconds).

source: Stack Exchange

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

sort: votes


text:
Editor between Davinci and Capcut?
Would you say Davinci Resolve is too advanced for the editing of shorts? Are there any other high quality yet simplistic editors you'd suggest that provide a lot of resources without paying? I've heard capcut is pretty good, and I even tried it for a while, yet in the free version, (which is the only version I've used) I felt like more advanced edits weren't available to me. Basically I'm asking about a free editing service in a level between both of them.

Is Resolve too advanced, (vs. Capcut)?

No. I would say they are different types of editors. One "feature" of Capcut-like editors is the template library.
Resolve has some libraries, like different styles to add text lower thirds and credits. You can get third-party libraries but it does not offer one by itself.
So, if what you need are those kind of templates, probably Canva. (The same case, a free limited version)
One editor that I used to recommend (that was pretty good) actually changed the business model, from editor alone to be part of a library. Hit Film is now part of Artist. It has a basic free plan.

I felt like more advanced edits weren't available to me.

What features? You need to define your specific needs, probably the software has them and you have not found them.

But if you are asking about free alternative software, as software, not services (which would include templates, assets, and cloud storage) Yes, there are several (besides the already mentioned). Look for Open source projects, like ShotCut And OpenShot.
Another one that has a free version, and a bit of a different interface is VSDC.
But, personally, I would stick to DaVinci Resolve. You do not need an OP computer to run it. And it is one of the best.
One open-source software to check is Blender. You could explore it as a simple video editor, but as an entry point to explore it as the 3D suite that it is.

I wouldn't say Davinci is too advanced for a YouTube short, but the workflows are more optimized for bigger projects. To simplify it, skip the media page and go straight to the edit page. Then, drag your footage into the media pool. Pretty much all you'll need is the edit page, the color page (for basic correction), and the deliver page for exporting. Once you get to know how to set up the project settings, it's pretty straightforward from there. You will just need to set your timeline resolution to a 9:16 aspect ratio or 1080x1920 (most are already presets in the dropdown menu). For other editors, I'm not sure what would be free, but I think that since Resolve is free, it might be worth learning when it could become a useful skill in the future if you ever end up doing some more complex projects. Hope this helps!

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


text:
Why can't I see set menu for switching between orientation and rotation in AE?
In the tutorial video, I saw that there's a Set menu for switching between Orientation and Rotation in AE. Here's a screen.

But I don't have it. There is just rotation and no way to turn on Orientation.

How to turn on this Set menu?

please add link to tutorial for reference, and the version of AE you're using

@tomh I added the link

are you using an old version of ae?

@tomh nope, 2023

I think you have selected the Selection Tool.
Make a text layer.
Make the layer 3d.
If you select the Rotation Tool, the options shown appear.
If you select the Selection Tool, they disappear.
If you try to use the weird new rotation tool (no idea what it does) that appears to the right, they also do not appear.

Yeah, I see this now. It's like there are 2 rotation tools. Thanks!


text:
Why can't I inherit scale as a property in AE?
As far as I understand, there is parenting by layers and individual properties. When inheritance goes by layer, then it occurs relative to the parent anchor point. But I need to make it so that the scale of the child can animate relative to its own anchor point. But for some reason, I can't inherit scale as a property. I can inherit scale only with the entire layer. What's the problem here?


text:
How to extract video tracks from an mp4 file and individually save them to file
My Mercedes-Benz dashcam saves to SD card the video feeds from the front and rear cameras (in 1-minute long chunks) as separate tracks in the same MP4 file. Track 1 is from the front camera; track 2 from the rear one.
Unsurprisingly, ordinary players such as Windows built-in ones can only play the first track. VLC player, on the other hand, can play any track no problem. However,  how can I extract say track No. 2 and save it as a single-track MP4 file?
I have tried VLC's Convert/Save function, ticking the De-Interlace box (assuming it matters), but ended up again with a two-track MP4 file.

After further research and experimenting, I've figured out how to do it using ffmpeg from command line.

Extract the relevant video stream (in my case track No. 2, which has index 1) into a temporary MP4 file, using the same codec as the source. The resulting video will have no audio:
ffmpeg -i original_video.mp4 -map v:1 -codec copy  rear_no_audio.mp4

Extract the audio stream into a temporary M4A file:
ffmpeg -i original_video.mp4 -map a:0 -codec copy  audio.m4a

Merge the two streams into the final MP4 file.
ffmpeg -i rear_no_audio.mp4 -i audio.m4a -codec copy  rear_with_audio.mp4

The argument of the -map option includes v for video and a for audio streams. The second digit is the stream ID, which can be found by running
ffprobe original_video.mp4


text:
How can I replace next frames using FFmpeg?
I have a folder named frames with images, named frame0001.png, frame0002.png, frame0003.png, etc, all the way to frame0061.png (or frames/frame%04d.png using FFmpeg).
I have an input video file simply named video.mp4.
Starting at 00:00:03 (3rd second), I want next frames to be replaced with all frames from under frames folder, and then save the output video as output.mp4 using ffmpeg.exe.
For example, starting at 3 seconds, next 61 frames (because there are 61 frame files under the frames folder) in video.mp4 will be overwritten with the frames under frames folder.
Which command-line options should I pass to FFmpeg to apply this task?

ffmpeg -i input.mp4 -itsoffset 3 -i frame%04d.png -lavfi "overlay=eof_action=pass" out.mp4

@БаярГончикжапов Thank you, the command you provided works. Can you post an answer instead of a comment so I mark it as accepted?

authors: Баяр Гончикжапов


text:
SCART To HDMI recurrently loses signal: hardware problem, firmware bug, or else?
I just bought a scart to hdmi adapter. It was not the cheapest as it also acts as a switch between 3 types of inputs : SCART, "3-cable AV", or just HDMI.
My goal is to video capture some VHS movies. Yet, even playing them on the TV fails with this adapter.
Here are the observations:

Plugging the SCART-SCART cable directly between the VHS player and the TV works perfectly fine.

Plugging the same SCART-SCART cable to the adapter and then plugging the HDMI to the TV results in the movie being "shredded": it oscillates between the actual movie and a "No Signal" blue screen

The same problem happens if I plug the HDMI from the adapter to a computer:

on MacOS, using QuickTime
on MacOS, using VLC
on a PC with Debian Linux, using VLC

Conclusion is easy: the problem comes from the adapter/converter
Some people are just returning the product online, claiming it is faulty, but I'd like to go deeper.
Personal Interpretation:
this is not a hardware problem, but I have the feeling that the adapter is actually looking for another channel, as if there was a chance it could find a higher-resolution input. These devices are supposed to handle Game Console and many other things, so I assume it would make sense in those cases.
In the case I would be right, would there be a way to stick to the same channel throughout the movie?
Otherwise, what could be the issue?

Edit your post and add a link to the exact model of adaptor - you’re more likely to get a good answer

Done, thank you.

These converters are wired in such a way that they display a blue screen when there is no recording on the tape. But because these things are poorly tuned, they display a blue screen when there is the slightest disturbance in the signal, or what the converter thinks is disturbance.


text:
What can be done in this video to solve "the air-conditioning problem"?
This lecture seems to have been filmed in a classroom with ar conditioning.  I can see the professor is using a microphone that's very close to his mouth.  I would like to also record lectures like that, but I think the sound result is very poor and I'd like to do anything I can do to resolve this.  What could be done?  Would buying a much better microphone really produce a much better result?  Can you recommend all the necessary equipment so that I try it out?  I'm willing to invest a good deal of money in the equipment.

The audio on this video isn't from the mic around his neck.
It's from a mic much further away. I would guess the wrong input was selected when the video was filmed. The main noise on the audio is electrical interference because it's a cheap mic in a laptop or phone.
Any radio mic or clip mic around the neck should work better than what we hear in this clip. Sennheiser make good expensive reliable radio mics. Rode make some cheaper clever rechargeable models. Even a £10 clip mic plugged into an iPhone in airplane mode and recording into the Voice Memo app can give good results in a situation like this, if you're prepared to re-sync the audio and video afterwards.

Thank you so much for your experience on this.  I did not notice what you did.


text:
disable automatic color correction and white balance in DaVinci Resolve
Please tell me how I can disable automatic color correction and white balance in DaVinci Resolve? I'm editing a video recorded on my iPhone. I imported it, cropped it, but the colors changed when it was exported.
I opened my project, made a right click on the timeline and selected Reset Node Grade, but after I reexported the video the colors remained unchanged.
My Deliver settings are default:
Video Format: QuickTime
Codec: H.264
Encoding Proflie: Auto
Entropy Mode: Auto
Advanced Settings:
Color Space Tag: Same as Project
Gamma Tag: Same as Project
This is what I have in my original video and what I want to get

This is what I get after exporting the video


text:
Seeking Feedback and Advice for My YouTube Video
Hello fellow creators and enthusiasts,
I recently created a music clip featuring "Be Our Guest" from Disney's Beauty and the Beast and uploaded it to YouTube. I'm reaching out to this community seeking constructive feedback and advice on various aspects of the footage, we are planning to record other footage of this kind in the future, but we are newbies at video shoot / mouting.
Here are some specific points I'd appreciate input on:
Editing and Visuals: I aimed for a visually captivating experience that complements the iconic song. Did the editing flow well with the music, and are there any specific visual elements that could be improved or enhanced?
Audio Quality: Ensuring clear and high-quality audio is crucial for a music clip. Did the audio come across crisply, and are there any adjustments needed in terms of volume or balance?
Engagement: Did the video capture your attention throughout, and were there any moments where you felt disengaged or distracted?
Overall Impact: What was your overall impression of the video? Did it effectively convey the essence of the song and the scene it represents from Beauty and the Beast?
Suggestions for Improvement: Any additional thoughts or suggestions you have for enhancing the video's impact and appeal would be greatly appreciated.
Feel free to provide as much detail as possible, including specific timestamps or examples if applicable. Your insights will be immensely valuable in refining and enhancing this project.
Thank you in advance for taking the time to watch and provide feedback. I'm eager to hear your thoughts!

Warm regards,


text:
Blend the brightest pixels of a frame to the next with ffmpeg?
I have googled for days, and I just can't figure out how to use ffmpeg to blend the brightest pixels to the next video frame. And lastly save the last frame as an image.
Similar to "evaluate sequence max" with ImageMagick:
convert *.jpg -evaluate-sequence max output.jpg

All filter complex variations found in forums, guides, or on this website just throws errors with FFMPEG 6.1.1 probably due to version incompatibility.
In summary, I want the maximum light in a frame to carry over to the next frame. It should remain until something even brighter replaces that pixel..
ffmpeg video.mp4 -filter_complex ... output.jpg

The lagfun filter can do this. Set decay to 1.

Wohoo this is exactly what I was looking for. -vf "lagfun=decay=1"Now I just need to save the last frame to an image. Is it doable?

The following works ffmpeg -i video.mp4 -vf "lagfun=decay=1" -update true output.jpg. If there are other proposed ways let me know. Otherwise I will accept this as the answer to the question.

Yes, that command is fine.


text:
To make 'trim' and 'atrim' work synchronously
The following command trims a video using the trim video filter:
ffmpeg -y -i input.mp4 -vf "trim='00\:00\:05':'00\:00\:10',setpts=PTS-STARTPTS" output.mp4

But if the video also contains audio stream, it will not be trimmed.
I tried
ffmpeg -y -i input.mp4 -vf "trim='00\:00\:05':'00\:00\:10',setpts=PTS-STARTPTS" -af "atrim='00\:00\:05':'00\:00\:10'" output.mp4

ffmpeg -y -i input.mp4 -filter "trim='00\:00\:05':'00\:00\:10',setpts=PTS-STARTPTS" output.mp4

but the 2nd version returns an error, and the 1st creates a "wrong" video. By "wrong" I mean that the output video is now somewhat consists of two parts, the 1st part is silent, and the 2nd does have a static image.
How to combine -vf trim and -af atrim so that they will work synchronously?


text:
How to prevent "auto-inserting filter 'auto_scale' between the filter..." within the filter_complex?
I'm using filter_complex string with vulkan(by hwupload and download).
FFmpeg keep saying that "auto-inserting filter 'auto_scale' between the filter..." and doing something I didn't indicate.
How to prevent get rid out the auto-scaling job within filter_complex?
(What I know is '-noautoscaling' option, but not working for filter_complex)


text:
Is there an efficient (and also free or cheap) way to turn a video file into a time based composite image?
I'm doing a physics project with my math class.
My students recorded a videos of balls being dropped.  (We are studying acceleration and how to model motion with quadratic equations.)
The goal is to turn this video into a composite image where the path of the ball is shown by taking every few frames and overlaying this image.
I'm going to try to use Mathematica (this is something I'm already familiar with) but I wondered if there was something out there that was already put together.

Are you on a mac or PC? Do you have access to Photoshop or any Adobe software?

Here's how you'd do it in Photoshop. I'm sure you could do something similar using GIMP which is free software.
Example using this video, saved as an mp4 using yt-dlp (or you could use an online video converter):

From the File menu, choose 'Import Video Frames to Layers'
Select the range of frames you want to import
Select all the layers
Make them all visible (clicking on the eye icons):

Set the layer mode to lighten:

Result:


text:
When compressing from a HEVC source, is H264 a better choice than H265 if I want to minimize information loss?
If a video source is 2160p HEVC and I wish to compress it to 1080p, will information loss be lesser if I compress it to H264 instead of H265?

Note that either codec may be used for either resolution.

No.
H.265 (a.k.a. HEVC) has better quality at the same bitrate when compared to H.264 (a.k.a. AVC). But you might want to convert to H.264 for wider compatibility.


text:
Please help me with this master m3u8 url with a long looking key to download a video
below is the video link and master m3u8 link obtained from dev tools inspect. It has got a ck and looks like the key

however when i use hlsdl to download this mater.m3u8 url with the long key it complains saying that the key has to be 32 bytes long in aes.
some more screenshots from dev tools