Skip to content

Instantly share code, notes, and snippets.

@palashkulsh
Created March 30, 2020 04:54
Show Gist options
  • Save palashkulsh/2329387151837a052ff2cdb0f94981f1 to your computer and use it in GitHub Desktop.
Save palashkulsh/2329387151837a052ff2cdb0f94981f1 to your computer and use it in GitHub Desktop.
convert video audio format using ffmpeg
ffmpeg -i Good.Newwz.2019.Hindi.720p.HDRip.x264.mkv -acodec aac -filter_complex "channelmap=map=FL-FL|FR-FR|FC-FC|LFE-LFE|SL-BL|SR-BR:channel_layout=5.1" -vcodec copy new_Goodnews.mp4
@palashkulsh
Copy link
Author

#to split a video from custom start time to end time
#it copies audio and video codec and makes a new clip part_1_family_man.mp4 from start time 00:00:00 to 00:53:00

ffmpeg -i The.Family.Man.Season.1.Complete.720p.WEB-DL.x264.mp4 -vcodec copy -acodec copy -ss "00:00:00" -to "00:53:00" part_1_family_man.mp4

@palashkulsh
Copy link
Author

just change mkv to mp4

ffmpeg -i LostInTranslation.mkv -codec copy LostInTranslation.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment