Ffmpeg notes: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 10: | Line 10: | ||
ffmpeg -i 'input' -map 0 -c copy 'output.mkv' | ffmpeg -i 'input' -map 0 -c copy 'output.mkv' | ||
</pre> | </pre> | ||
[https://www.reddit.com/r/ffmpeg/comments/9gm17g/convert_only_audio_dts_to_ac3_in_a_mkv_file/| Redit comment] | |||
<pre> | |||
ffmpeg -i input.mkv -c:v copy -c:a ac3 -b:a 320k /path/to/usb/output.mkv | |||
</pre> | |||
[https://www.technibble.com/forums/threads/guide-to-making-mkv-audio-work-on-your-device-roku-etc.81333/| Remux audio to work for Roku] | |||
<pre> | |||
To get 2 channel: | |||
the -ac:2 switch is used to tell it to use 2 channels | |||
ffmpeg -i "National Treasure.mkv" -c:v copy -c:a aac -ac 2 -b:a 256K "National Treasure.mp4" | |||
</pre> | |||
[[Category:ffmpeg]] | [[Category:ffmpeg]] |
Revision as of 20:41, 25 February 2022
ffmpeg when dealing with mp4 that skips and stutters in playback. Seen in MythTV.
ffmpeg -i ./foo.mp4 -c:v libx264 -crf 24 -pix_fmt yuv420p -tune film -c:a aac -b:a 192k -ar 44100 -vol 300 -strict -2 -speed fastest ./bar.mp4
ffmpeg -i 'input' -map 0 -c copy 'output.mkv'
ffmpeg -i input.mkv -c:v copy -c:a ac3 -b:a 320k /path/to/usb/output.mkv
To get 2 channel: the -ac:2 switch is used to tell it to use 2 channels ffmpeg -i "National Treasure.mkv" -c:v copy -c:a aac -ac 2 -b:a 256K "National Treasure.mp4"