Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't detect lpcm in ts? #580

Closed
Randrianasulu opened this issue Apr 24, 2022 · 6 comments
Closed

can't detect lpcm in ts? #580

Randrianasulu opened this issue Apr 24, 2022 · 6 comments
Labels
error Error that does not appear to be related to code issue

Comments

@Randrianasulu
Copy link

https://cloud.mail.ru/public/jjGj/orJY9VFwM

~18 mb sample I made with (hacked) ffmpeg 4.4 with backported bluray-pcm encoder from ffmpeg git.

May be I did it wrong, but at least mplayer plays it...


tsmuxer complains
 
tsmuxer bd.m2ts
tsMuxeR version git-631be21. github.com/justdan96/tsMuxer
Track ID:    4113
Stream type: H.264
Stream ID:   V_MPEG4/ISO/AVC
Stream info: Profile: High@4.1  Resolution: 1920:1080p  Frame rate: 24
Stream lang:
 
Track ID:    4352
Can't detect stream type
 
Duration: 00:00:11.166
 
 
 

yet mediainfo says:
 
mediainfo bd.m2ts
General
ID                                       : 1 (0x1)
Complete name                            : bd.m2ts
Format                                   : BDAV
Format/Info                              : Blu-ray Video
File size                                : 16.8 MiB
Duration                                 : 10 s 417 ms
Overall bit rate mode                    : Variable
Overall bit rate                         : 12.1 Mb/s
 
Video
ID                                       : 4113 (0x1011)
Menu ID                                  : 1 (0x1)
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L4.1
Format settings                          : CABAC / 3 Ref Frames
Format settings, CABAC                   : Yes
Format settings, Reference frames        : 3 frames
Codec ID                                 : 27
Duration                                 : 11 s 250 ms
Bit rate mode                            : Variable
Bit rate                                 : 10 000 kb/s
Maximum bit rate                         : 40.0 Mb/s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate                               : 24.000 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.201
Stream size                              : 13.6 MiB (81%)
Writing library                          : x264 core 164
Encoding settings                        : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=8 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=6 / lookahead_threads=1 / sliced_threads=0 / slices=4 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=1 / constrained_intra=0 / bframes=2 / b_pyramid=1 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=1 / keyint=25 / keyint_min=1 / scenecut=40 / intra_refresh=0 / rc_lookahead=25 / rc=abr / mbtree=1 / bitrate=10000 / ratetol=1.0 / qcomp=0.60 / qpmin=3 / qpmax=33 / qpstep=4 / vbv_maxrate=40000 / vbv_bufsize=30000 / nal_hrd=vbr / filler=0 / ip_ratio=1.40 / aq=1:1.00
Color range                              : Limited
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709
 
Audio
ID                                       : 4352 (0x1100)
Menu ID                                  : 1 (0x1)
Format                                   : PCM
Format settings                          : Big / Signed
Muxing mode                              : Blu-ray
Codec ID                                 : 128
Duration                                 : 11 s 232 ms
Bit rate mode                            : Constant
Bit rate                                 : 1 536 kb/s
Channel(s)                               : 2 channels
Channel layout                           : L R
Sampling rate                            : 48.0 kHz
Bit depth                                : 16 bits
Stream size                              : 2.06 MiB (12%)
Language                                 : Russian
 
@jcdr428
Copy link
Collaborator

jcdr428 commented Apr 24, 2022

@Randrianasulu the lpcm frame size in the first m2ts lpcm header is incorrect: it is 2008 bytes, whereas it shoud be 960. Only the following values are permitted:

image

@jcdr428 jcdr428 added the error Error that does not appear to be related to code issue label Apr 24, 2022
@Randrianasulu
Copy link
Author

fixed in ffmpeg git... sorry, really not your bug

@jcdr428
Copy link
Collaborator

jcdr428 commented Apr 24, 2022

@Randrianasulu so no more issue in tsMuxer with the commit in ffmpeg.git ?

@Randrianasulu
Copy link
Author

Randrianasulu commented Apr 24, 2022 via email

@Randrianasulu
Copy link
Author

Randrianasulu commented May 2, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
error Error that does not appear to be related to code issue
Projects
None yet
Development

No branches or pull requests

3 participants
@Randrianasulu @jcdr428 and others