Created
November 1, 2023 18:00
-
-
Save phnahes/e8c46d774b0029809818081ed067218e to your computer and use it in GitHub Desktop.
# Audio and Video Encoding for Pionner AVH-P3180DVD to play movies from USB/CD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Audio and Video Encoding for Pionner AVH-P3180DVD to play movies from USB/CD | |
ffmpeg -i source_video.mp4 \ | |
-c:v mpeg4 \ | |
-q:v 5 \ | |
-tag:v DIVX \ | |
-s 640x480 \ | |
-c:a libmp3lame \ | |
-q:a 5 \ | |
-ac 2 \ | |
-ar 44100 \ | |
destination_video.avi | |
# ffmpeg: This is the FFmpeg command, a powerful command-line tool for manipulating and converting audio and video files. | |
# -i input.mp4: This part specifies the input file, which is the video you want to convert (input.mp4). | |
# -c:v mpeg4: Here, -c:v sets the video codec to be used for the output. In this case, the chosen codec is MPEG-4 (mpeg4). | |
# -q:v 5: This sets the video quality. A lower value, like 5, results in higher video quality. The value is a quantization parameter, and lower values indicate higher quality. | |
# -tag:v DIVX: This specifies the video tag as DIVX. | |
# -s 640x480: Sets the output video resolution to 640x480 pixels. | |
# -c:a libmp3lame: This sets the audio codec to be used as LAME MP3 (libmp3lame). | |
# -q:a 5: Similar to the video quality, this sets the audio quality. A lower value indicates higher audio quality. | |
# -ac 2: Defines the number of audio channels as 2, which represents stereo audio. | |
# -ar 44100: Sets the audio sample rate to 44.1 kHz. The sample rate is the number of audio samples per second. | |
# output.avi: Specifies the name of the output file, which will be in AVI format (output.avi). | |
# In summary, this command uses FFmpeg to convert the input video (input.mp4) into a new video in AVI format (output.avi). It uses the MPEG-4 video codec with specified video and audio quality settings, resolution, and other parameters. The result is a video with the desired settings and format. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment