FFmpeg: Difference between revisions
Jump to navigation
Jump to search
| Line 67: | Line 67: | ||
<code style="background-color:#000; color:#fff; padding:1px 3px;">ffmpeg -i input.mp4 -af "pan=mono|c0=c0" output.wav</code> | <code style="background-color:#000; color:#fff; padding:1px 3px;">ffmpeg -i input.mp4 -af "pan=mono|c0=c0" output.wav</code> | ||
<code>-af "pan=mono|c0=c0"</code> extracts a single channel from the file. Use <code>c0=c0</code> for left channel, <code>c0=c1</code> for right channel. | <code>-af "pan=mono|c0=c0"</code> extracts a single channel from the file. Use <code>c0=c0</code> for left channel, <code>c0=c1</code> for right channel (assuming source audio is stereo). | ||
===Add audio to video=== | ===Add audio to video=== | ||