I would like to know how do I leave my videos in this identical configuration in ffmpeg?

1

Format: MPEG-4

Format profile: Base Media

Codec ID: isom (isom / iso2 / avc1 / mp41)

File size: 202 MiB

Duration: 22 min 9 s

Overall bit rate: 1 278 kb / s

Writing application: Lavf57.2.100

Video

ID: 1

Format: AVC

Format / Info? : Advanced Video Codec

Format profile: High @ L4

Format settings: CABAC / 3 Ref Frames

Format settings, CABAC: Yes

Format settings, ReFrames? : 3 frames

Codec ID: avc1

Codec ID / Info: Advanced Video Coding

Duration: 22 min 8 s

Bit rate: 1 146 kb / s

Width: 1 920 pixels

Height: 1 080 pixels

Display aspect ratio: 16: 9

Frame rate mode: Variable

Frame rate: 23.976 (24000/1001) FPS

Minimum frame rate: 23,974 FPS

Maximum frame rate: 23,981 FPS

Color space: YUV

Chroma subsampling: 4: 2: 0

Bit depth: 8 bits

Scan type: Progressive

Bits / (Pixel * Frame): 0.023

Stream size: 182 MiB (90%)

Color range: Limited

Color primaries: BT.709

Transfer characteristics: BT.709

Matrix coefficients: BT.709

Audio

ID: 2

Format: AAC

Format / Info? : Advanced Audio Codec

Format profile: LC

Codec ID: mp4a-40-2

Duration: 22 min 9 s

Bit rate mode: Constant

Bit rate: 126 kb / s

Channel (s): 2 channels

Channel positions: Front: L R

Sampling rate: 44.1 kHz

Frame rate: 43,066 FPS (1024 SPF)

Compression mode: Lossy

Stream size: 19.9 MiB (10%)

Language: English

Default: Yes

Alternate group: 1

    
asked by anonymous 28.01.2018 / 01:12

1 answer

1

Based on the information given in the question. We conclude that:

Video

Resolução: 1920x1080p
Frame rate :  23 FPS
Bit rate : 1146 kb/s
Format : AVC    
Codec : mpeg4   

Audio

Bit rate : 126 kb/s
Format : aac    
Codec: mp4a-40-2
Channel(s) : 2 channels
Sampling rate : 44.1 kHz
Frame rate : 43.066 FPS (1024 SPF)

.. you can create the following pseudo-code in the CMD terminator:

ffmpeg -y -i "video_original.mpg" -vcodec mpeg4 -r 23.976 -b 1146k -s 1920x1080 -acodec mp4a-40-2 -ab 126k -ar 44100 -map 0.0 -map 1.0 "video_convertido.mp4"

Explaining each parameter:

Video

-vcodec - Faz cópia do vídeo original
-b      - Transferência do bitrate do vídeo
-r      - fps framerate do vídeo[Frames por segundo]
-s      - resolução do vídeo[tela]

Audio

-acodec - Faz cópia do áudio original
-ab     - Transferência do bitrate do áudio
-ar     - Taxa de amostragem frequência em Mega Hertz
-map    - Definir os canais 1 ou 2 [L R] (mono ou estereo)
  

Note - The most common codecs are MPEG4 and H264 for videos usually in the mp4 format.

    
28.01.2018 / 07:06