Preparing 4K video sources

The LG 55UB850 TV has limited video formats that it can handle. 4K(4096x...) sizes are not allowed, only UHD sizes, the 3840x... are allowed. .mkv files are also not supported. I managed to play mp4 files only.

.mp4 and .mkv file names show the container file formats. A container can contain many video, audio and subtitle files of various formats. You can see the file formats supported by each type of containers from the wikipedia link at http://en.wikipedia.org/wiki/Comparison_of_container_formats.

That information is a life saver for me in solving the conversion of the 4K short movie, the Tears of Steel, https://www.youtube.com/watch?v=R6MlUcmOul8. It is the fourth movie created using the 3D editing software Blender, an open source project. No wonder it is based in the Netherlands.

You can download them using bittorrent more reliably. I got mine with many audio files of ac3 and flac formats. The video is in the h264 format. The subtitles in subrip formats. The original uses mkv container file.

ffmpeg is the best software that I had found because it comes with a lot of codecs and filters. No need to install additional filter etc. Virtualdub has a better GUI but ffmpeg is more complete as it is, so I used it first to convert all my downloaded 4K video sources into the format acceptable by my LG 4K TV.

Using ffmpeg is not difficult provided you know a few tricks.

From the doc directory of the ffmpeg installation.

ffmpeg -i <filename> 
will show all the streams in the file. Useful in knowing the file types available. The streams are labelled as x:x style.
-c copy
means all codecs for all types are passed through

ffmpeg -h
will give help info.
ffmpeg -codecs
list down the codecs that are supported and their names.

-c:v <name of video codec for all video streams>
-c:a <name of audio codec for all audio streams>


From the  ffmpeg wiki link:   https://trac.ffmpeg.org/wiki
-map 0
   selects all streams 0:0 ... 0.xxxx, which is usually all streams. Good if you want to copy all the file formats in the container file to another container or just make some changes in the video size.

-map 0:0   -map 0:4  -map 0:1   
    selects streams 0:0 , 0:4, 0:1 in that order to put output into another sequence in viorder to select the proper codecs. Before the video codec, you can insert the -s 3840x2160 parameter, to change the size of the video resolution.

Myvwas to use as few files as possible. One video and one English audio, originally in flac format, which is not supported by mp4, so change it to ac3.

 ffmpeg -i "tears of steel.mkv" -map 0:0 -map 0:4 -s 3840x2160 -c:v copy -c:a ac3 tears.mp4



Comments

Popular posts from this blog

DaVinci Resolve 17 Render Settings: Tips for Playback and Exporting

Best YouTube Render Settings for DaVinci Resolve

h265 and DaVinci - Less Space and Faster Encoding!