This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
quick_command_list [2018/08/07 14:49] k2patel [Remove file with ASCII Name] |
quick_command_list [2018/10/06 06:21] k2patel [FFMpeg Conversion of 4K] |
||
---|---|---|---|
Line 469: | Line 469: | ||
cat < /dev/tcp/k2patel.in/3306 | cat < /dev/tcp/k2patel.in/3306 | ||
</code> | </code> | ||
+ | |||
+ | ==== FFMpeg Conversion of 4K ==== | ||
+ | I had issue of no audio while playing file over DLNA.\\ | ||
+ | I've did the transcoding so it can play audio on my Phillips 4K TV. | ||
+ | |||
+ | <code bash> | ||
+ | ffmpeg -i <input_file>.mp4 \ | ||
+ | -map 0:0 -map 0:1 -map 0:2 -map 0:3 -map 0:5 -map 0:12 \ | ||
+ | -c:v copy \ | ||
+ | -c:a:0 truehd -strict -2 \ | ||
+ | -c:a:1 ac3 \ | ||
+ | -c:s copy \ | ||
+ | <output_file>.mkv | ||
+ | </code> | ||
+ | OR | ||
+ | <code bash> | ||
+ | ffmpeg -i old_file.mp4 \ | ||
+ | -map 0:0 -map 0:1 -map 0:3 -map 0:5 \ | ||
+ | -c:v copy \ | ||
+ | -c:a:0 ac3 \ | ||
+ | -c:s copy \ | ||
+ | new_file.mp4 | ||
+ | </code> | ||
+ | |||
+ | - First thing list all mapping on your existing file using 'ffmpeg -i <file> | ||
+ | - Select all streams using map you would like to copy to your new file. | ||
+ | - each map should be listed using map so i selected only 6 out of 12. | ||
+ | - After that specify wich codecs to use. | ||
+ | - in -c:v i'm copying video as is. | ||
+ | - in -c:a:0 i'm converting audio to truehd | ||
+ | - in -c:a:1 i'm also adding second audio stream which is ac3. | ||
+ | - in -c:s i'm copying subtitles. |