Ffmpeg notes: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 6: | Line 6: | ||
</pre> | </pre> | ||
[https://www.reddit.com/r/ffmpeg/comments/cq9bbv/repairing_avi_file_brokenmissing_index/ | reddit link with more | [https://www.reddit.com/r/ffmpeg/comments/cq9bbv/repairing_avi_file_brokenmissing_index/| reddit link with more details] | ||
<pre> | <pre> | ||
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> | |||
Convert from H265 to H264 | |||
<pre> | |||
ffmpeg -xerror -i 'h265/The_Flash.mkv' -hide_banner -threads 2 -map 0 -c:a copy -c:s copy -c:v libx264 -pix_fmt yuv420p 'The_Flash.mkv' | |||
</pre> | |||
[[Category:ffmpeg]] | [[Category:ffmpeg]] |
Latest revision as of 05:04, 10 August 2023
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"
Convert from H265 to H264
ffmpeg -xerror -i 'h265/The_Flash.mkv' -hide_banner -threads 2 -map 0 -c:a copy -c:s copy -c:v libx264 -pix_fmt yuv420p 'The_Flash.mkv'