New answers tagged

0

I figured it out; I hope my solution will help others. For some reason ZoomAudioDevice the '0' slot in my devices. Why in the world wouldn't that be reserved for the Built-in Microphone, ALWAYS? To make matters works, the ZoomAudioDevice was not in the Settings Panel in BigSur, so it couldn't be removed manually. I had to Uninstall Zoom, then do a command-...


0

Well, and yeah, all answers are wrong here. HDR is only the new transfer function, PQ or HLG. So that means you need to look into that, PQ is SMPTE 2084 and HLG is ARIB STD-B67. Yes, 8 bit file tagged as PQ will be played as HDR. Yes, 10 bit files tagged as BT.2020 transfer are SDR, because BT.2020 transfer is the same as BT.709 and BT.601. Moreover Rec. BT....


1

The entire filtergraph should be one argument. '-filter_complex','scale=1920:1080[main];[main][1]overlay=x=main_w-overlay_w-(main_w*0.01):y=main_h-overlay_h-(main_h*0.01)',


1

Use stream_loop to loop the input indefinitely and set output -t to limit the duration. ffmpeg -stream_loop -1 -i input -c copy -t 3600 output


0

If it is Windows then why not to use dshow instead of gdigrab? Please look at the https://github.com/rdp/screen-capture-recorder-to-video-windows-free If both video and audio would be via dshow then you could use ffmpeg like this: ffmpeg -f dshow -i video="VIDEO_DEVICE":audio="FIRST_AUDIO_DEVICE" -f dshow -i audio="...


0

That's a very general question, you will have to ask for a specific command if you want help since ffmpeg has a loooooot of options. But you can use the following command to get help: -h -- print basic options -h long -- print more options -h full -- print all options (including all format and codec specific options, very long) -h type=name -- print all ...


0

If you're familiar with an ass file, you can position your text by using \pos(150,250). Example: Dialogue: 0,0:01:00.00,0:01:15.00,Default,,0,0,0,,{\fad(500,500)\pos(150,250)}{\i1}{\b1}Your Text The first number is from the left, and the second one is from the top of the video. An easier solution, rather than write each line yourself, is to download Aegisub ...


1

An example of adding dilation might look like: ffmpeg -i example_in.mp3 -filter_complex \ "[0:a]showwaves=mode=p2p:s=1280x480:colors=Magenta|Azure|White:r=25; \ [v]dilation=threshold3=10[v]" \ -map "[v]" -map 0:a -pix_fmt yuv420p \ -b:a 360k -r:a 44100 example_out.mp4


1

I use this command to transcode video lectures primarily composed of static images with only the lecturer's voice overlaid. ffmpeg -ss 00:06:00 -i input.mp4 -filter_complex '[0:v]fps=fps=1[v1],[v1]interlace[v2],[0:a]dynaudnorm[a]' -c:v libx265 -x265-params bframes=16 -crf 45 -c:a libopus -ac 1 -b:a 24K -ar 16K -map "[v2]" -map "[a]" ...


0

Remove -vf scale=800:-1 to avoid rescaling. Remove -r 20 to avoid changing frame rate. You're transcoding from a stream in a MP4 to the GIF codec, so the bitrate will not remain the same, nor is there any sense in trying to keep it the same. A stream is scaled by using the scale filter in a simple filterchain -vf or a complex filterchain -filter_complex or ...


0

I would try TMPG Smart Renderer, https://tmpgenc.pegasys-inc.com/en/product/tmsr6.html. It should just "pass-through" any non-corrupted video, and will re-encode the portions of the file the need to be. Or you can manually cut those pieces out. It will depend how corrupt the input is as to what you'll need to do. It is a commercial product, but for ...


0

If the codecs of your input file are already h264 and aac for video and audio, respectively, you can just copy without decoding and encoding again. ffmpeg -i input.3gp -c:v copy -c:a copy output.mp4 If you need to encode again, an option -qscale 0 will result similar quality (but not lossless). below is an example. You might combine with -c:v copy or -c:a ...


0

After playing around with @Michael Macha's answer I figured out a way to do what I wanted without having stuck frames and extra seconds on the beginning of the video: ffmpeg -i "Input.mp4" -filter_complex \ "[0:v]select='between(t,45,50)'[v1], \ [0:v]select='between(t,23,30)'[v2], \ [v1][v2]concat[outv],[outv]scale=720:-1[outv], \ [outv]setpts=...


1

Here's the thing about modern video—most formats are actually designed presuming a varying frame rate. We like to think of them like digital filmstrips, but that model rarely works when we're streaming over a network or capturing from many kinds of devices. So, every frame has what's called a Presentation Time Stamp, or PTS. The problem here is that, while ...


1

A bit old one but Google still lists it... You can of course use RTSP "push" similar way as you'd do via FLV/RTMP. A bit less known method but also viable and supports H.265 (aka HEVC).


0

Did you try given different commands to copy the codecs? You're trying to mix sources, with different codecs in each source. Also, I will specify more precisely the video stream, if you stream is 0:0 I rather use that. Something like: ffmpeg -i input1.mkv -i input2.mp3 -map 0:0 -map 1 -c:v copy -c:a copy output.mkv It is not relevant if the length of the ...


1

@Gyan is correct. add -pix_fmt yuv420p I was in the exact situation @MatrixManAtYrService described and the video imported into Camtasia Studio correctly after converting with -pix_fmt yuv420p


0

Hellow. You need 4:4:4 pixel format and High444 profile in libx264 or h264_nvenc or other h264 encoder. And I guess that qp 0 is better then crf 0. For example: -c:v h264_nvenc -qp 0 -pix_fmt yuv444p -profile:v high444p For screenrecording gdigrab is the best way. P.S.: I use Nvidia HWacel of my GeForce1660 Ti Max-Q. It's very fast!


0

I know this is an old topic but wanted to answer in case someone else is having the same question. In general, you can use both the Live and On-Demand DASH profiles for VoD content, for live content you need to use the Live profile. The difference would be that if you have a 1:30 hrs VoD file if you are distributing it using DASH Live Profile you will have a ...


0

Found the answer to this problem in here. The mask should be first be white + transparent, instead of black and white. New code would be: ffmpeg -i video.mp4 -i mask.png \ -filter_complex "[0:v][1:v] overlay=0:0" -c:a copy \ output.mp4


0

If I understand the question correctly: yes! You can create a file that is a concatenation of different parts of the input video. The script you're looking for is something like: ffmpeg \ -i "$INPUT_FILE" \ -filter_complex \ "[0:v]trim=start=5:duration=10,setpts=PTS-STARTPTS[v0]; \ [0:a]atrim=start=5:duration=10,asetpts=PTS-STARTPTS[a0]; \ [...


Top 50 recent answers are included