ffmpeg: como converter mp4 para mp4?

2

O assunto está correto; -)

Meu problema é este: eu tenho um conjunto de arquivos MP4; todos eles jogam com vlc na minha caixa Ubuntu. Mas quando copiá-los para o USB; e quero tocá-los na minha TV ... algum trabalho; outros não fazem. O televisor é um Grundig, 28 VLE 5500WG. Não há mensagem de erro específica; apenas algo como "formato de arquivo desconhecido".

Mediainfo (arquivo de trabalho):

Format                                   : MPEG-4
Format profile                           : Base Media
Codec ID                                 : isom
File size                                : 368 MiB
Duration                                 : 1h 6mn
Overall bit rate mode                    : Variable
Overall bit rate                         : 770 Kbps

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : [email protected]
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 5 frames
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 1h 6mn
Bit rate                                 : 640 Kbps
Width                                    : 720 pixels
Height                                   : 404 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 25.000 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.088
Stream size                              : 306 MiB (83%)
Writing library                          : x264 core 142 r2479 dd79a61
Encoding settings                        : cabac=1 / ref=5 / deblock=1:0:0 / analyse=0x3:0x113 / me=umh / subme=8 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=12 / lookahead_threads=2 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=50 / rc=crf / mbtree=1 / crf=19.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
Matrix coefficients                      : BT.709

Audio
ID                                       : 2
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Format profile                           : LC
Codec ID                                 : 40
Duration                                 : 1h 6mn
Bit rate mode                            : Variable
Bit rate                                 : 124 Kbps
Maximum bit rate                         : 140 Kbps
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 KHz
Compression mode                         : Lossy
Stream size                              : 59.3 MiB (16%)

Arquivo quebrado do Mediainfo:

ormat                                   : MPEG-4
Format profile                           : Base Media
Codec ID                                 : isom
File size                                : 269 MiB
Duration                                 : 47mn 22s
Overall bit rate mode                    : Variable
Overall bit rate                         : 793 Kbps
Writing application                      : Stupid Ocelot

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : [email protected]
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 5 frames
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 47mn 22s
Bit rate                                 : 680 Kbps
Width                                    : 720 pixels
Height                                   : 404 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 25.000 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.094
Stream size                              : 231 MiB (86%)
Writing library                          : x264 core 142 r2479 dd79a61
Encoding settings                        : cabac=1 / ref=5 / deblock=1:0:0 / analyse=0x3:0x113 / me=umh / subme=8 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=12 / lookahead_threads=2 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=50 / rc=crf / mbtree=1 / crf=20.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
Language                                 : English
Matrix coefficients                      : BT.709

Audio
ID                                       : 2
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Format profile                           : LC
Codec ID                                 : 40
Duration                                 : 47mn 22s
Bit rate mode                            : Variable
Bit rate                                 : 96.0 Kbps
Maximum bit rate                         : 110 Kbps
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 KHz
Compression mode                         : Lossy
Stream size                              : 32.5 MiB (12%)
    
por GhostCat 29.03.2015 / 12:08

2 respostas

1

Eu percebi uma maneira que funciona (não tenho certeza se é ideal). Correndo

ffmpeg -i broken.mp4 -pix_fmt yuv420p -crf 18 good.mp4

Cria um MP4 que é um pouco maior (provavelmente minimamente pior em termos de qualidade) ... e isso funciona no meu aparelho de TV.

(mas ainda estou procurando outras respostas, se houver alguma)

    
por 29.03.2015 / 14:14
0

Use Super Encoder / Copiar vídeo / áudio para mp4 Apenas tentei no arquivo mp4 com tag FOV no nome do arquivo. Ocelot estúpido é o problema. Agora toca na TV e no Blu Ray Player // ambos da Panasonic. Boa sorte

    
por 05.04.2015 / 23:23