Skip to content

Instantly share code, notes, and snippets.

@phnahes
Last active October 27, 2023 16:33
Show Gist options
  • Save phnahes/73de7e581497883d8d672fb120f42dfb to your computer and use it in GitHub Desktop.
Save phnahes/73de7e581497883d8d672fb120f42dfb to your computer and use it in GitHub Desktop.
Audio and Video Encoding for Pionner DVH-8580AVBT to play movies from USB
# Audio and Video Encoding for Pionner DVH-8580AVBT to play movies from USB
ffmpeg -i source_video.mp4 \
-c:v libxvid \
-b:v 192k \
-s 640x480 \
-ar 44100 \
-ac 2 \
-b:a 192k \
destination_video.avi
# ffmpeg: This is the FFmpeg command, a powerful command-line tool for manipulating and converting audio and video files.
# -i source_video.mp4: This part specifies the input file (source_video.mp4), which is the original video you want to convert.
# -c:v libxvid: Here, -c:v sets the video codec to be used for the output. In this case, the chosen codec is libxvid, which is a video codec based on the Xvid format.
# -b:v 192k: This option sets the video bitrate to 192 kbps. Bitrate is the amount of data used to represent each second of video. In this case, the video bitrate is set to 192 kbps, which determines the quality and size of the output video.
# -s 640x480: Sets the output video resolution as 640x480 pixels. This resizes the video to the desired resolution.
# -ar 44100: Sets the audio sample rate to 44.1 kHz. The sample rate is the number of audio samples per second and affects audio quality.
# -ac 2: Defines the number of audio channels as 2, representing stereo audio.
# -b:a 192k: Sets the audio bitrate to 192 kbps. This determines the quality and size of the output audio.
# destination_video.avi: Specifies the name of the output file, which will be a video in AVI format (destination_video.avi) with the specified settings.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment