PDA

View Full Version : profilo da h264 high l3.1 a h264 high l4.1


murillo
19-12-2020, 08:50
ho notato che molto probabilmente il mio televisore non legge i codec h264 con profilo high l3.1 mentre non ha problemi con il profilo high l4.1

conoscete qualche software per cambiare questi profilo ai vari file? mkvtoolnix lo può fare? o ffmpeg?

murillo
19-12-2020, 10:35
facendo ulteriori ricerche ho intuito che non è quello il problema, deve essere qualcos altro
metto i dati di due file, il primo non lo legge, il secondo, molto simile sì. che può essere? non penso che l'audio conti, quindi non posto i dati audio
General
Unique ID : 201089503397676944719152062150986831226 (0x97486DFAE44A8E22B2F3936157A)
Complete name : ....
Format : Matroska
Format version : Version 2
File size : 1.74 GiB
Duration : 2 h 35 min
Overall bit rate : 1 605 kb/s
Encoded date : UTC 2019-01-18 00:56:09
Writing application : mkvmerge v5.3.0 ('I could have danced') built on Feb 9 20:38:07
Writing library : libebml v1.2.3 + libmatroska v1.3.0

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L3.1
Format settings : CABAC / 3 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference frames : 3 frames
Muxing mode : Header stripping
Codec ID : V_MPEG4/ISO/AVC
Duration : 2 h 35 min
Nominal bit rate : 1 300 kb/s
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 4:3
Frame rate mode : Constant
Frame rate : 24.000 FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.059
Writing library : x264 core 148 r2665 a01e339
Encoding settings : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x133 / me= subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=2 / 8x8dct=1m=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=6 / lookahead_threads=1 / slicedads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=6 / b_pyr1 / b_adapt=1 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=1 / keyint=250 / keyint_min=2cenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=abr / mbtree=1 / bitrate=1300 / ratetol=1.0 / qc.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
Language : English
Default : Yes
Forced : No


General
Unique ID : 223552875563814589491502886348276711602 (0xA82EB7BC8332EC96AA8C84FC505940B2)
Complete name : ....
Format : Matroska
Format version : Version 4
File size : 1.18 GiB
Duration : 1 h 47 min
Overall bit rate : 1 572 kb/s
Encoded date : UTC 2015-10-28 01:30:06
Writing application : mkvmerge v8.5.1 ('Where you lead I will follow') 64bit
Writing library : libebml v1.3.3 + libmatroska v1.4.4

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings : CABAC / 4 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference frames : 4 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 1 h 47 min
Bit rate : 1 250 kb/s
Width : 1 920 pixels
Height : 1 040 pixels
Display aspect ratio : 1.85:1
Frame rate mode : Constant
Frame rate : 24.000 FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.026
Stream size : 964 MiB (79%)
Writing library : x264 core 142 r2479 dd79a61
Encoding settings : cabac=1 / ref=3 / deblock=1:-1:-1 / analyse=0x3:0x133 / me=umh / subme=10 / psy=1 / psy_rd=1.00:0.15 / mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=-3 / threads=6 / lookahead_threads=1 / 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=240 / keyint_min=24 / scenecut=40 / intra_refresh=0 / rc_lookahead=60 / rc=2pass / mbtree=1 / bitrate=1250 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / vbv_maxrate=62500 / vbv_bufsize=78125 / nal_hrd=none / filler=0 / ip_ratio=1.40 / aq=1:1.00
Default : Yes
Forced : No
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709

Katsaros
19-12-2020, 16:56
metto i dati di due file, il primo non lo legge, il secondo, molto simile sì. che può essere?Questo:
Muxing mode : Header stripping
Usa mkvmerge oppure ffmpeg o AviDemux per rimuxare:
https://www.hwupgrade.it/forum/showthread.php?t=2541538

murillo
19-12-2020, 17:26
grazie, ho rimuxato con mkvmerge così

mkvmerge -o output.mkv input.mkv

e ora li legge

ma se dovessi farlo con ffmpeg come si fa da riga di comando? chiedo in caso dovessi sistemare un file mp4

Katsaros
19-12-2020, 18:06
direi...
ffmpeg -i input_file -vcodec copy -acodec copy output_file

murillo
20-12-2020, 11:10
Video
ID : 1
Format : MPEG-4 Visual
Format profile : Simple@L1
Format settings, BVOP : No
Format settings, QPel : No
Format settings, GMC : No warppoints
Format settings, Matrix : Default (H.263)
Codec ID : V_MPEG4/ISO/ASP
Codec ID/Info : Advanced Simple Profile
Duration : 1 h 39 min
Bit rate : 1 187 kb/s
Width : 720 pixels
Height : 384 pixels
Display aspect ratio : 1.85:1
Frame rate mode : Constant
Frame rate : 23.976 (24000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Compression mode : Lossy
Bits/(Pixel*Frame) : 0.179
Stream size : 849 MiB (65%)
Writing library : Lavc54.92.100
Default : Yes
Forced : No


questo secondo voi perché non lo legge? al contrario di alcuni che pure non vengono letti, questo non me lo riconosce proprio

Katsaros
21-12-2020, 17:28
questo secondo voi perché non lo legge? al contrario di alcuni che pure non vengono letti, questo non me lo riconosce proprioPerché "MPEG-4 Visual" non è H.264/AVC ma H.263 con altro codec mpeg4,
tipo DivX, Xvid o Nero Digital che il TV probabilmente non legge.

https://en.wikipedia.org/wiki/MPEG-4_Part_2

murillo
22-12-2020, 16:32
e questo perché non lo legge? è h264

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings : CABAC / 8 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference frames : 8 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 2 h 3 min
Nominal bit rate : 1 129 kb/s
Width : 1 280 pixels
Height : 544 pixels
Display aspect ratio : 2.35:1
Frame rate mode : Constant
Frame rate : 23.976 (24000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.068
Writing library : x264 core 142 r2431 ac76440
Encoding settings : cabac=1 / ref=8 / deblock=1:0:0 / analyse=0x3:0x133 / me=umh / subme=10 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=24 / lookahead_threads=2 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=6 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=240 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=60 / rc=2pass / mbtree=1 / bitrate=1129 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / vbv_maxrate=62500 / vbv_bufsize=78125 / nal_hrd=none / filler=0 / ip_ratio=1.40 / aq=1:1.00
Default : Yes
Forced : No


ho provato a rimuxarlo con queste opzioni che ho trovato in giro
--clusters-in-meta-seek --engage no_cue_duration --disable-lacing --engage no_simpleblocks --engage no_cue_relative_position


sono andato a caso e le ho messe tutte, ma non lo legge lo stesso

Katsaros
22-12-2020, 23:14
e questo perché non lo legge? è h264Probabile che 8 Reference frames siano troppi per il player video del tuo TV

https://en.wikipedia.org/wiki/Context-adaptive_binary_arithmetic_coding
https://sites.google.com/site/linuxencoding/x264-ffmpeg-mapping