Hot answers tagged

5

MPEG-2 doesn't seem to be an officially sanctioned codec for the Quicktime container. The official specification has a section related to MPEG-1 in MOV but not MPEG-2. The US Library of Congress also does not have an entry for the subtype MPEG-2 in MOV, like it does for MPEG-1 (just called QTV_MPEG). So, there's no official word on "allowable alternative ...


4

As you are hardcoding subtitles, the video (with the subtitles added) will be re-encoded. You can use the CRF rate control method to modulate the quality of the output. So, start with ffmpeg -i grdedFinal.mov -vf subtitles=portSbs.srt -crf 18 -c:a copy gradedFinalwithSubs.mov If the quality's not acceptable, lower that value till it is - in exchange ...


3

Use this filter expression: "drawtext=enable='between(t,2.5,6.5)':fontsize=50:fontcolor=Green:fontfile='ariblk.ttf': \ text='textline1':x=min(4*(tw\+10)-(abs(4-2*(t-2.5)))*(tw+10)-tw\,10):y=h-th-130" The above is for the first line. I've changed the values/expression for the enable and xparameters. The movement starts at 2.5 seconds, settles at 3s, stays ...


3

Your present command specifies stream copy, but 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 \ ...


3

I believe you can do it with ffmpeg with command drawtext ffmpeg -i input.mp4 -vf "drawtext=enable='between(t\,0,60)':fontfile=/Windows/Fonts/Tahoma.ttf:fontcolor='White':> > text='YourText'" -acodec copy output.mp4 See this tutorial, for batch conversion. You can add drawbox to make it more nice. See documentation here.


3

I would get as far away from EE as possible. Using the x264 tool, and mp4box, you can convert and segment out the files which are ready to be streamed to any dash compatible players. Especially since you mentioned using batch scripts, this is a great solution I think. This is a good guide: ...


3

This was bug in atrim filter, not supporting unknown channel layouts, it should be fixed in latest ffmpeg.


3

Use the box options i.e. drawtext=enable='between(t,2.5,6.5)':fontsize=50:fontcolor=White:fontfile='ariblk.ttf':text='textline1':x=min(4*(tw\+10)-(abs(4-2*(t-2.5)))*(tw+10)-tw\,10):y=h-th-130:box=1:boxborderw=12:boxcolor=black@0.45 This adds a box with padding of 12 pixels around the text boundary, and the color is black with 45% opacity. Using drawbox ...


3

You can do this with ffmpeg using either the concat filter or the concat demuxer. Which one to use depends whether or not your inputs have the same parameters or not. If they do not, you may have to perform additional filtering to make everything suitable to be concatenated properly. Example: concat filter For inputs that vary in frame rate, width, and ...


2

Ok, it can be done, but it's inelegant and has limitations, which make it in the end, not worthwhile. The limitation is that this only properly works with fixed-width fonts. And due to a still-unfixed-bug in ffmpeg, it will look somewhat ugly. But here it is, ffmpeg -i input.mp4 -lavfi "color=white:1280x120,fps=30[c]; \ [c]format=rgba, \ ...


2

Since these are for broadcast play-out over local storage, these commands are biased towards quality and away from filesize. For MP4s: ffmpeg -i input.mp4 -vf "text filters here" -c:v libx264 -crf 8 -c:a copy -map 0 -movflags +faststart output.mp4 For MPGs: ffmpeg -i input.mpg -vf "text filters here" -c:v mpeg2video -q:v 2 -c:a copy -map 0 output.mpg


2

filgergraph as described can not work, you can not use [alpha] twice, you need to split it: [0:v]split[bg][key]; [bg]crop=720:576:0:0, format=gbrap,setsar=0:1[rgb]; [key]crop=720:576:720:0,format=gray8,setsar=0:1,scale=720:576,split[alpha2][alpha]; [1:v]scale=720:576,format=yuv420p,setsar=0:1[video]; [alpha]negate[neg_alpha]; ...


1

FFmpeg have dynaudnorm filter, which increases audio volume where needed.



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