
ну вот как-то так ...
1. Что из себя представляет ваш этот файлик :
Показать
General
Complete name : /home/green/Download/hd music.rec
Format : MPEG-TS
Format/Info : Advanced Video Codec
Format profile : No PAT/PMT
File size : 116 MiB
Duration : 3mn 26s
Overall bit rate : 4 716 Kbps
Video
ID : 1600 (0x640)
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Main@L4.0
Format settings, CABAC : Yes
Format settings, ReFrames : 4 frames
Format settings, GOP : M=1, N=64
Duration : 3mn 24s
Bit rate : 3 901 Kbps
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate : 25.000 fps
Standard : Component
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Interlaced
Scan order : Top Field First
Bits/(Pixel*Frame) : 0.075
Stream size : 94.9 MiB (82%)
Color primaries : BT.709-5, BT.1361, IEC 61966-2-4, SMPTE RP177
Transfer characteristics : BT.709-5, BT.1361
Matrix coefficients : BT.709-5, BT.1361, IEC 61966-2-4 709, SMPTE RP177
Audio #1
ID : 1610 (0x64A)
Format : MPEG Audio
Format version : Version 1
Format profile : Layer 2
Duration : 3mn 26s
Bit rate mode : Constant
Bit rate : 192 Kbps
Channel(s) : 2 channels
Sampling rate : 48.0 KHz
Compression mode : Lossy
Delay relative to video : -1s 578ms
Stream size : 4.72 MiB (4%)
Audio #2
ID : 1620 (0x654)
Format : AC-3
Format/Info : Audio Coding 3
Mode extension : CM (complete main)
Duration : 3mn 26s
Bit rate mode : Constant
Bit rate : 384 Kbps
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 KHz
Bit depth : 16 bits
Compression mode : Lossy
Delay relative to video : -1s 632ms
Stream size : 9.45 MiB (8%)
получено с помощью програмки mediainfo
2. Ну а имея эту информацию всё просто :
# ffmpeg -i hd_music.rec out.avi -vcodec h264 -acodec copy -map 0:0 -map 0:1 -map 0:2 -newaudio
качество конечно говёненькое , но с двухпроходного кодирования можно и поправить . Как и что можно нагуглить . Инфы полно :D