48
30
I stack with my high quality movie: 1080p with 60fps. The trouble is lags while playing.
I tried to convert it to 720p with ffmpeg:
ffmpeg -i MyMovie.mkv -r 60 -s hd720 MyMovie_720p.mkv
But I there is significant quality loss because bit rate decreased from 32.3 Mbps to 2.8 Mbps. How can I specify right bit rate for video stream, and left all other stream copied pristine?
Input file mediainfo:
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.2
Format settings, CABAC : Yes
Format settings, ReFrames : 4 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 2h 58mn
Bit rate : 32.3 Mbps
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate : 59.940 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.260
Stream size : 40.2 GiB (92%)
Writing library : x264 core 116 r2019 9cc407d
Encoding settings : cabac=1 / ref=4 / deblock=1:-2:-1 / analyse=0x3:0x113 / me=umh / subme=10 / psy=1 / psy_rd=0.80:0.20 / mixed_ref=1 / me_range=32 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=-3 / threads=6 / sliced_threads=0 / nr=0 / decimate=0 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=6 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=60 / rc=crf / mbtree=0 / crf=14.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / vbv_maxrate=50000 / vbv_bufsize=62500 / crf_max=0.0 / nal_hrd=none / ip_ratio=1.40 / pb_ratio=1.30 / aq=1:0.60
Language : English
Default : Yes
Forced : No
Matrix coefficients
: BT.709-5, BT.1361, IEC 61966-2-4 709, SMPTE RP177
1You example is setting height to 720 not width. – chovy – 2016-11-11T03:47:29.867
Can you do this backwards http://video.stackexchange.com/questions/20439/mask-720p-as-1080p-video
– William – 2017-01-17T19:37:24.0702To also copy subtitles in mkv without converting, you can add
-scodec copy
. – Casper – 2017-04-29T03:53:52.0502I think to get 720p you must set the width to 1280 i.e. not
-vf scale=-1:720
but-vf scale=1280:-1
. – cdlvcdlv – 2018-01-30T10:37:29.1401@chovy The question asked for 720p, which means a height of 720. The width can be anything, so leaving it as -1 is best to allow ffmpeg to decide based on the previous dimensions. Only time you'd need to specify the width is if it decides on an odd value for the new width. – Wlerin – 2019-04-15T00:34:12.267
2LordNeckbeard - thanks for edit. I didn't have enough time to type all the details – Nikola Dimitrijevic – 2014-02-11T14:04:47.830