[{"data":1,"prerenderedAt":935},["ShallowReactive",2],{"Categories":3,"NavIndexCategoriesCountFooter":203,"content-\u002F2018\u002F11\u002F27\u002Ftranscoding-with-mkv-and-ffmpeg\u002F":204},[4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,68,70,71,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202],{"category":5},"System Administration",{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":27},"Software Development",{"category":5},{"category":5},{"category":5},{"category":5},{"category":27},{"category":27},{"category":5},{"category":5},{"category":5},{"category":27},{"category":5},{"category":5},{"category":5},{"category":27},{"category":27},{"category":27},{"category":27},{"category":5},{"category":5},{"category":5},{"category":27},{"category":27},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":27},{"category":5},{"category":5},{"category":27},{"category":27},{"category":27},{"category":27},{"category":5},{"category":27},{"category":27},{"category":67},"Drones & RC",{"category":69},"DIY Projects",{"category":67},{"category":72},"Photography",{"category":69},{"category":69},{"category":69},{"category":67},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":67},{"category":69},{"category":69},{"category":67},{"category":67},{"category":72},{"category":72},{"category":72},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":5},{"category":5},{"category":72},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":5},{"category":67},{"category":67},{"category":72},{"category":72},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":72},{"category":67},{"category":138},"3D Printing - Laser Cutting - CNC",{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":5},{"category":138},{"category":27},{"category":27},{"category":138},{"category":138},{"category":72},{"category":158},"Photography,3D Printing - Laser Cutting - CNC",{"category":27},{"category":27},{"category":69},{"category":27},{"category":27},{"category":27},{"category":27},{"category":5},{"category":67},{"category":5},{"category":5},{"category":27},{"category":27},{"category":27},{"category":27},{"category":27},{"category":69},{"category":27},{"category":27},{"category":27},{"category":27},{"category":181},"Home Assistant",{"category":181},{"category":72},{"category":27},{"category":27},{"category":72},{"category":138},{"category":5},{"category":72},{"category":72},{"category":138},{"category":27},{"category":181},{"category":181},{"category":72},{"category":72},{"category":72},{"category":72},{"category":72},{"category":72},{"category":72},{"category":72},191,{"id":205,"title":206,"body":207,"category":916,"date":917,"description":918,"embedImage":916,"extension":919,"image":916,"intro":920,"meta":921,"navigation":922,"path":923,"seo":924,"series":916,"sitemap":925,"stem":926,"tags":927,"__hash__":934},"content\u002F2018\u002F11\u002F27\u002Ftranscoding-with-mkv-and-ffmpeg.md","Transcoding with MKV and ffmpeg",{"type":208,"value":209,"toc":908},"minimark",[210,228,231,234,237,240,243,246,249,252,255,258,277,282,309,312,320,324,330,353,356,359,365,368,372,375,408,411,417,420,423,427,430,514,517,520,538,541,547,551,554,611,614,617,658,661,672,675,680,683,689,692,695,699,702,714,717,723,726,739,742,748,761,771,774,825,832,835,838,898,904],[211,212,213],"p",{},[214,215,216,217,227],"em",{},"Update: I should have checked the plex support site to start with - this is already documented on ",[218,219,226],"a",{"href":220,"rel":221,"target":225},"https:\u002F\u002Fsupport.plex.tv\u002Farticles\u002F201358273-converting-iso-video-ts-and-other-disk-image-formats\u002F",[222,223,224],"nofollow","noopener","noreferer","_blank","this support article",".\nHowever - I did get to learn a fair bit more about how ffmpeg command line works :)",[229,230],"hr",{},[211,232,233],{},"To make it easier to use the films I buy easier for the kids - I use Plex.",[211,235,236],{},"But given that we're a two-language house - I often want to keep multiple audio and subtitle tracks around - so I don't want to burn them into the video track.",[211,238,239],{},"To do this - I've been keeping the files in the Matrovska\u002FMKV format.",[211,241,242],{},"Some clients need the server to transcode on the fly (for example if you want subtitles and the client needs them just in the video stream).",[211,244,245],{},"Now - some of these video files are using a VC-1 codec. Transcoding VC-1 on the fly is not a low CPU task for the server so I'd like to convert them to an easier format (in this case h264).",[211,247,248],{},"But I want to keep the MKV format and keep the audio and subtitles untouched.",[211,250,251],{},"So - there are various programs out there that can do parts of this - but how to batch it with ffmpeg? I have a few to go through- it would be nice to find a command line tool that can be run. FFmpeg looks like the best candidate here (in fact half or more of the GUIs that do this sort of stuff use it behind the scenes).",[211,253,254],{},"So - it means I guess I have to try to figure out the command line for FFmpeg.",[211,256,257],{},"The example file I have has the following track list:",[259,260,261,265,268,271,274],"ol",{},[262,263,264],"li",{},"video (VC-1)",[262,266,267],{},"audio (English)",[262,269,270],{},"audio (Norwegian)",[262,272,273],{},"subtitles (English PGS)",[262,275,276],{},"subtitles (Norwegian PGS)",[278,279,281],"h2",{"id":280},"getting-the-track-info","Getting the track info",[283,284,289],"pre",{"className":285,"code":286,"language":287,"meta":288,"style":288},"language-shell shiki shiki-themes github-dark","ffmpeg -i file.mkv\n","shell","",[290,291,292],"code",{"__ignoreMap":288},[293,294,297,301,305],"span",{"class":295,"line":296},"line",1,[293,298,300],{"class":299},"svObZ","ffmpeg",[293,302,304],{"class":303},"sDLfK"," -i",[293,306,308],{"class":307},"sU2Wk"," file.mkv\n",[211,310,311],{},"This gives a fair bit of info - including the tracks (streams):",[283,313,318],{"className":314,"code":316,"language":317},[315],"language-text","Stream #0:0(eng): Video: vc1 (Advanced) (WVC1 \u002F 0x31435657), yuv420p(bt709, progressive),\n  1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc\nStream #0:1(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb\u002Fs (default)\nMetadata:\n  title           : English 3\u002F2+1\nStream #0:2(nor): Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb\u002Fs\nMetadata:\n  title           : Norwegian 3\u002F2+1\nStream #0:3(eng): Subtitle: hdmv_pgs_subtitle (default)\nMetadata:\n  title           : English\nStream #0:4(nor): Subtitle: hdmv_pgs_subtitle\nMetadata:\n  title           : Norwegian\n","text",[290,319,316],{"__ignoreMap":288},[278,321,323],{"id":322},"attempt-1-tell-it-to-convert-the-video-stream","Attempt 1 - tell it to convert the video stream",[211,325,326,327],{},"So - the first thing I tried was ",[214,328,329],{},"can I tell it to convert any video stream and hope that the rest just works?",[283,331,333],{"className":285,"code":332,"language":287,"meta":288,"style":288},"ffmpeg -i file.mkv -c:v libx264 out.mkv\n",[290,334,335],{"__ignoreMap":288},[293,336,337,339,341,344,347,350],{"class":295,"line":296},[293,338,300],{"class":299},[293,340,304],{"class":303},[293,342,343],{"class":307}," file.mkv",[293,345,346],{"class":303}," -c:v",[293,348,349],{"class":307}," libx264",[293,351,352],{"class":307}," out.mkv\n",[211,354,355],{},"The answer here is - no - it doesn't do what you assume and to go back and read the manual :)",[211,357,358],{},"You can see this from the stream mapping it builds up:",[283,360,363],{"className":361,"code":362,"language":317},[315],"Stream mapping:\n  Stream #0:0 -> #0:0 (vc1 (native) -> h264 (libx264))\n  Stream #0:1 -> #0:1 (ac3 (native) -> vorbis (libvorbis))\n",[290,364,362],{"__ignoreMap":288},[211,366,367],{},"OK - so stream 0 is getting converted - but the audio is getting converted too. And there is no subtitle in the resulting file.",[278,369,371],{"id":370},"attempt-2-tell-it-to-copy-audio-and-subtitle-unchanged","Attempt 2 - tell it to copy audio and subtitle unchanged",[211,373,374],{},"The next step was to tell it to convert the video file, and to copy the audio and subtitles.",[283,376,378],{"className":285,"code":377,"language":287,"meta":288,"style":288},"ffmpeg -i file.mkv -c:v libx264 -c:a copy -c:s copy -n out.mkv\n",[290,379,380],{"__ignoreMap":288},[293,381,382,384,386,388,390,392,395,398,401,403,406],{"class":295,"line":296},[293,383,300],{"class":299},[293,385,304],{"class":303},[293,387,343],{"class":307},[293,389,346],{"class":303},[293,391,349],{"class":307},[293,393,394],{"class":303}," -c:a",[293,396,397],{"class":307}," copy",[293,399,400],{"class":303}," -c:s",[293,402,397],{"class":307},[293,404,405],{"class":303}," -n",[293,407,352],{"class":307},[211,409,410],{},"This does make some progress - it now gives the following stream mapping:",[283,412,415],{"className":413,"code":414,"language":317},[315],"Stream mapping:\n  Stream #0:0 -> #0:0 (vc1 (native) -> h264 (libx264))\n  Stream #0:1 -> #0:1 (copy)\n  Stream #0:3 -> #0:2 (copy)\n",[290,416,414],{"__ignoreMap":288},[211,418,419],{},"So - I got an h264 video stream and the English audio and the English subtitles.",[211,421,422],{},"So the next bit is to get more than one of each output file.",[278,424,426],{"id":425},"attempt-3-tell-it-to-process-more-than-one-of-each-type-of-stream","Attempt 3 - tell it to process more than one of each type of stream",[211,428,429],{},"Reading the manual again led me to the map command. This time I will tell it exactly what streams to include.",[283,431,433],{"className":285,"code":432,"language":287,"meta":288,"style":288},"ffmpeg -i file.mkv \\\n  -map 0:0 -map 0:1 -map 0:2 -map 0:3 -map 0:4 \\\n  -c:v libx264 -c:a:0 copy -c:a:1 copy -c:s:0 copy -c:s:1 copy \\\n  out.mkv\n",[290,434,435,446,478,508],{"__ignoreMap":288},[293,436,437,439,441,443],{"class":295,"line":296},[293,438,300],{"class":299},[293,440,304],{"class":303},[293,442,343],{"class":307},[293,444,445],{"class":303}," \\\n",[293,447,449,452,455,458,461,463,466,468,471,473,476],{"class":295,"line":448},2,[293,450,451],{"class":303},"  -map",[293,453,454],{"class":307}," 0:0",[293,456,457],{"class":303}," -map",[293,459,460],{"class":307}," 0:1",[293,462,457],{"class":303},[293,464,465],{"class":307}," 0:2",[293,467,457],{"class":303},[293,469,470],{"class":307}," 0:3",[293,472,457],{"class":303},[293,474,475],{"class":307}," 0:4",[293,477,445],{"class":303},[293,479,481,484,486,489,491,494,496,499,501,504,506],{"class":295,"line":480},3,[293,482,483],{"class":303},"  -c:v",[293,485,349],{"class":307},[293,487,488],{"class":303}," -c:a:0",[293,490,397],{"class":307},[293,492,493],{"class":303}," -c:a:1",[293,495,397],{"class":307},[293,497,498],{"class":303}," -c:s:0",[293,500,397],{"class":307},[293,502,503],{"class":303}," -c:s:1",[293,505,397],{"class":307},[293,507,445],{"class":303},[293,509,511],{"class":295,"line":510},4,[293,512,513],{"class":307},"  out.mkv\n",[211,515,516],{},"Here we ask it to include all of 0:0 through 0:4.",[211,518,519],{},"Then we say",[521,522,523,526,529,532,535],"ul",{},[262,524,525],{},"convert the video file",[262,527,528],{},"copy the first audio file",[262,530,531],{},"copy the second audio file",[262,533,534],{},"copy the first subtitle",[262,536,537],{},"copy the second subtitle",[211,539,540],{},"The stream map looks like this now:",[283,542,545],{"className":543,"code":544,"language":317},[315],"Stream mapping:\n  Stream #0:0 -> #0:0 (vc1 (native) -> h264 (libx264))\n  Stream #0:1 -> #0:1 (copy)\n  Stream #0:2 -> #0:2 (copy)\n  Stream #0:3 -> #0:3 (copy)\n  Stream #0:4 -> #0:4 (copy)\n",[290,546,544],{"__ignoreMap":288},[278,548,550],{"id":549},"attempt-4-simplification","Attempt 4 - simplification",[211,552,553],{},"Can we make the command simpler? We want to do the same thing for all audio and subtitle streams.",[283,555,557],{"className":285,"code":556,"language":287,"meta":288,"style":288},"ffmpeg -i file.mkv \\\n  -map 0:0 -map 0:1 -map 0:2 -map 0:3 -map 0:4 \\\n  -c:v libx264 -c:a -c:s copy \\\n  out.mkv\n",[290,558,559,569,593,607],{"__ignoreMap":288},[293,560,561,563,565,567],{"class":295,"line":296},[293,562,300],{"class":299},[293,564,304],{"class":303},[293,566,343],{"class":307},[293,568,445],{"class":303},[293,570,571,573,575,577,579,581,583,585,587,589,591],{"class":295,"line":448},[293,572,451],{"class":303},[293,574,454],{"class":307},[293,576,457],{"class":303},[293,578,460],{"class":307},[293,580,457],{"class":303},[293,582,465],{"class":307},[293,584,457],{"class":303},[293,586,470],{"class":307},[293,588,457],{"class":303},[293,590,475],{"class":307},[293,592,445],{"class":303},[293,594,595,597,599,601,603,605],{"class":295,"line":480},[293,596,483],{"class":303},[293,598,349],{"class":307},[293,600,394],{"class":303},[293,602,400],{"class":303},[293,604,397],{"class":307},[293,606,445],{"class":303},[293,608,609],{"class":295,"line":510},[293,610,513],{"class":307},[211,612,613],{},"Testing this gave the same stream map and the same output file - so it looks like we can say -c:s copy and get all subtitles in the map just copied.",[211,615,616],{},"But - in an example - it appears that there is a further simplification available:",[283,618,620],{"className":285,"code":619,"language":287,"meta":288,"style":288},"ffmpeg -i file.mkv \\\n  -map 0 \\\n  -c copy -c:v libx264 \\\n  out.mkv\n",[290,621,622,632,641,654],{"__ignoreMap":288},[293,623,624,626,628,630],{"class":295,"line":296},[293,625,300],{"class":299},[293,627,304],{"class":303},[293,629,343],{"class":307},[293,631,445],{"class":303},[293,633,634,636,639],{"class":295,"line":448},[293,635,451],{"class":303},[293,637,638],{"class":303}," 0",[293,640,445],{"class":303},[293,642,643,646,648,650,652],{"class":295,"line":480},[293,644,645],{"class":303},"  -c",[293,647,397],{"class":307},[293,649,346],{"class":303},[293,651,349],{"class":307},[293,653,445],{"class":303},[293,655,656],{"class":295,"line":510},[293,657,513],{"class":307},[211,659,660],{},"with the comment",[521,662,663,666,669],{},[262,664,665],{},"select all the input streams (first input = 0) to be processed (using \"-map 0\")",[262,667,668],{},"mark all the streams to be just copied to the output (using \"-c copy\")",[262,670,671],{},"mark just the video streams to be re-encoded (using \"-c:v libx265\")",[211,673,674],{},"And yes - this does the right thing:",[283,676,678],{"className":677,"code":544,"language":317},[315],[290,679,544],{"__ignoreMap":288},[211,681,682],{},"We can also compare the information to the original:",[283,684,687],{"className":685,"code":686,"language":317},[315],"Stream #0:0(eng): Video: h264 (High), yuv420p(progressive),\n  1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc\nMetadata:\n  ENCODER         : Lavc58.22.101 libx264\n  DURATION        : 00:21:26.077000000\nStream #0:1(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb\u002Fs (default)\nMetadata:\n  title           : English 3\u002F2+1\n  DURATION        : 00:21:27.040000000\nStream #0:2(nor): Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb\u002Fs\nMetadata:\n  title           : Norwegian 3\u002F2+1\n  DURATION        : 00:21:27.040000000\nStream #0:3(eng): Subtitle: hdmv_pgs_subtitle (default)\nMetadata:\n  title           : English\n  DURATION        : 00:21:23.866000000\nStream #0:4(nor): Subtitle: hdmv_pgs_subtitle\nMetadata:\n  title           : Norwegian\n  DURATION        : 00:21:23.866000000\n",[290,688,686],{"__ignoreMap":288},[211,690,691],{},"Here we can see that it has changed the video codec and also added some metadata (ENCODER and DURATION).",[211,693,694],{},"So we now have the streams in place - what about quality?",[278,696,698],{"id":697},"attempt-5-bitrate","Attempt 5 - bitrate",[211,700,701],{},"If we run:",[283,703,704],{"className":285,"code":286,"language":287,"meta":288,"style":288},[290,705,706],{"__ignoreMap":288},[293,707,708,710,712],{"class":295,"line":296},[293,709,300],{"class":299},[293,711,304],{"class":303},[293,713,308],{"class":307},[211,715,716],{},"we can see the bitrate:",[283,718,721],{"className":719,"code":720,"language":317},[315],"Duration: 00:21:27.01, start: 0.000000, bitrate: 10896 kb\u002Fs\n",[290,722,720],{"__ignoreMap":288},[211,724,725],{},"But if we run the command on the converted file:",[283,727,729],{"className":285,"code":728,"language":287,"meta":288,"style":288},"ffmpeg -i out.mkv\n",[290,730,731],{"__ignoreMap":288},[293,732,733,735,737],{"class":295,"line":296},[293,734,300],{"class":299},[293,736,304],{"class":303},[293,738,352],{"class":307},[211,740,741],{},"it now looks like:",[283,743,746],{"className":744,"code":745,"language":317},[315],"Duration: 00:21:27.04, start: 0.000000, bitrate: 3070 kb\u002Fs\n",[290,747,745],{"__ignoreMap":288},[211,749,750,751,756,757,760],{},"So - reading the ",[218,752,755],{"href":753,"rel":754,"target":225},"https:\u002F\u002Ftrac.ffmpeg.org\u002Fwiki\u002FEncode\u002FH.264",[222,223,224],"FFmpeg page on h264 encoding"," - the line ",[214,758,759],{},"Use this mode if you want to keep the best quality and don't care about the file size."," seems very appealing.",[211,762,763,764,767,768],{},"Let's try a crf of 17 (near the edge of the range that the page calls sane and ",[214,765,766],{},"visually lossless or nearly so",") and we'll go with a profile of ",[214,769,770],{},"slower",[211,772,773],{},"This gives us the new command:",[283,775,777],{"className":285,"code":776,"language":287,"meta":288,"style":288},"ffmpeg -i file.mkv \\\n  -map 0 \\\n  -c copy -c:v libx264 -preset slower -crf 17 \\\n  out.mkv\n",[290,778,779,789,797,821],{"__ignoreMap":288},[293,780,781,783,785,787],{"class":295,"line":296},[293,782,300],{"class":299},[293,784,304],{"class":303},[293,786,343],{"class":307},[293,788,445],{"class":303},[293,790,791,793,795],{"class":295,"line":448},[293,792,451],{"class":303},[293,794,638],{"class":303},[293,796,445],{"class":303},[293,798,799,801,803,805,807,810,813,816,819],{"class":295,"line":480},[293,800,645],{"class":303},[293,802,397],{"class":307},[293,804,346],{"class":303},[293,806,349],{"class":307},[293,808,809],{"class":303}," -preset",[293,811,812],{"class":307}," slower",[293,814,815],{"class":303}," -crf",[293,817,818],{"class":303}," 17",[293,820,445],{"class":303},[293,822,823],{"class":295,"line":510},[293,824,513],{"class":307},[211,826,827,828,831],{},"This runs a ",[214,829,830],{},"little"," slower :)",[211,833,834],{},"The original file is 30834 frames and was running the conversion at about 40fps on my laptop - taking about 12-13 minutes. This conversion is running at about 10-15fps and that gives an estimate of around 30-45 minutes. The longer the source file the more of a difference this will make.",[211,836,837],{},"But - this gives the following results:",[839,840,845,861],"table",{"className":841},[839,842,843,844],"table-dark","table-striped","table-bordered",[846,847,848],"thead",{},[849,850,851,855,858],"tr",{},[852,853,854],"th",{},"File",[852,856,857],{},"Size",[852,859,860],{},"Bitrate",[862,863,864,876,887],"tbody",{},[849,865,866,870,873],{},[867,868,869],"td",{},"file.mkv         ",[867,871,872],{},"1752999086",[867,874,875],{},"10896 kb\u002Fs",[849,877,878,881,884],{},[867,879,880],{},"no_preset.mkv    ",[867,882,883],{},"494040188 ",[867,885,886],{},"3070 kb\u002Fs ",[849,888,889,892,895],{},[867,890,891],{},"slower_preset.mkv",[867,893,894],{},"827987122 ",[867,896,897],{},"5146 kb\u002Fs ",[211,899,900,901,903],{},"Subjectively - the result is pretty good - as they said on the encoding page for crf 17 - ",[214,902,766],{}," - for my eyesight on my displays - this seems to be the case - YMMV :)",[905,906,907],"style",{},"html pre.shiki code .svObZ, html code.shiki .svObZ{--shiki-default:#B392F0}html pre.shiki code .sDLfK, html code.shiki .sDLfK{--shiki-default:#79B8FF}html pre.shiki code .sU2Wk, html code.shiki .sU2Wk{--shiki-default:#9ECBFF}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}",{"title":288,"searchDepth":448,"depth":448,"links":909},[910,911,912,913,914,915],{"id":280,"depth":448,"text":281},{"id":322,"depth":448,"text":323},{"id":370,"depth":448,"text":371},{"id":425,"depth":448,"text":426},{"id":549,"depth":448,"text":550},{"id":697,"depth":448,"text":698},null,"2018-11-27 14:34 +0100","Update: I should have checked the plex support site to start with - this is already documented on this support article.\nHowever - I did get to learn a fair bit more about how ffmpeg command line works :)","md","Learning ffmpeg unnecessarily :)",{},true,"\u002F2018\u002F11\u002F27\u002Ftranscoding-with-mkv-and-ffmpeg",{"title":206,"description":918},{"loc":923},"2018\u002F11\u002F27\u002Ftranscoding-with-mkv-and-ffmpeg",[928,929,930,931,932,300,933],"mkv","matrovska","codec","vc-1","h264","plex","QyiRizGe3_7sebWOw4XAlsNv6XpMzW-tPnSdliNBoOA",1775293009828]