Author Topic: [help] I can't play certain mp4 on my TV  (Read 839 times)

Offline sawakosadako

  • Member
  • Posts: 665
[help] I can't play certain mp4 on my TV
« on: July 17, 2015, 09:43:13 pm »
I'm trying to play this file on my TV (Bravia) but for some reason I can't play it. Can someone help me with this? My guess is because the first file has some list of timeline (menu) in it while the second file (the one that works) don't. Do you think this is the culprit? Is there a way to remove those list of timeline (menu)? I'm using mp4box and I know nothing about video coding so I prefer a simple command line code that might solve this issue.

Thanks

Quote from: This one doesn't work
General
Format                         : MPEG-4
Format profile                 : Base Media
Codec ID                       : isom
File size                      : 1.75 GiB
Duration                       : 2h 18mn
Overall bit rate               : 1 803 Kbps
Writing application            : Lavf56.9.100

Video
ID                             : 1
Format                         : AVC
Format/Info                    : Advanced Video Codec
Format profile                 : [email protected]
Format settings, CABAC         : Yes
Format settings, ReFrames      : 4 frames
Codec ID                       : avc1
Codec ID/Info                  : Advanced Video Coding
Duration                       : 2h 18mn
Bit rate                       : 1 536 Kbps
Width                          : 1 280 pixels
Height                         : 536 pixels
Display aspect ratio           : 2.40:1
Frame rate mode                : Variable
Color space                    : YUV
Chroma subsampling             : 4:2:0
Bit depth                      : 8 bits
Scan type                      : Progressive
Stream size                    : 1.49 GiB (85%)
Writing library                : x264 core 142 r2409+42 04be48a tMod [[email protected]:2:0 X86_64]
Encoding settings              : cabac=1 / ref=3 / deblock=1:-1:-1 / analyse=0x3:0x113 / me=umh / subme=10 / psy=1 / fade_compensate=0.00 / psy_rd=0.80:0.00 / mixed_ref=1 / me_range=32 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=12 / lookahead_threads=3 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / fgo=0 / bframes=12 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=60 / rc=crf / mbtree=1 / crf=23.0000 / qcomp=0.60 / qpmin=0:0:0 / qpmax=69:69:69 / qpstep=4 / ip_ratio=1.40 / aq=3:0.80 / aq-sensitivity=10.00 / aq-factor=1.00:1.00:1.00 / aq2=0 / aq3=0
Language                       : English
Tagged date                    : UTC 2015-07-17 18:51:47

Audio
ID                             : 2
Format                         : AAC
Format/Info                    : Advanced Audio Codec
Format profile                 : LC
Codec ID                       : 40
Duration                       : 2h 18mn
Bit rate mode                  : Constant
Bit rate                       : 265 Kbps
Channel(s)                     : 6 channels
Channel positions              : Front: L C R, Side: L R, LFE
Sampling rate                  : 48.0 KHz
Compression mode               : Lossy
Delay relative to video        : 103ms
Stream size                    : 258 MiB (14%)
Language                       : Japanese
Tagged date                    : UTC 2015-07-17 18:51:47

Menu
00:00:00.000                   : 00:00:00.000
00:07:14.684                   : 00:07:14.684
00:20:50.457                   : 00:20:50.457
00:35:47.145                   : 00:35:47.145
00:49:13.784                   : 00:49:13.784
01:02:55.438                   : 01:02:55.438
01:18:15.440                   : 01:18:15.440
01:32:29.752                   : 01:32:29.752
01:40:35.154                   : 01:40:35.154
01:52:25.488                   : 01:52:25.488
02:03:46.836                   : 02:03:46.836
02:13:54.860                   : 02:13:54.860
02:18:41.313                   : 02:18:41.313



Quote from: This one works
General
Format                         : MPEG-4
Format profile                 : Base Media
Codec ID                       : isom
File size                      : 984 MiB
Duration                       : 2h 29mn
Overall bit rate mode          : Variable
Overall bit rate               : 923 Kbps
Encoded date                   : UTC 2014-12-20 00:19:02
Tagged date                    : UTC 2014-12-20 00:19:02

Video
ID                             : 1
Format                         : AVC
Format/Info                    : Advanced Video Codec
Format profile                 : [email protected]
Format settings, CABAC         : Yes
Format settings, ReFrames      : 4 frames
Codec ID                       : avc1
Codec ID/Info                  : Advanced Video Coding
Duration                       : 2h 29mn
Bit rate                       : 825 Kbps
Maximum bit rate               : 8 165 Kbps
Width                          : 1 280 pixels
Height                         : 534 pixels
Display aspect ratio           : 2.40:1
Frame rate mode                : Constant
Frame rate                     : 23.976 fps
Color space                    : YUV
Chroma subsampling             : 4:2:0
Bit depth                      : 8 bits
Scan type                      : Progressive
Bits/(Pixel*Frame)             : 0.050
Stream size                    : 880 MiB (89%)
Writing library                : x264 core 142 r2479 dd79a61
Encoding settings              : cabac=1 / ref=4 / deblock=1:-1:-1 / analyse=0x3:0x133 / me=umh / subme=9 / 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=48 / lookahead_threads=4 / 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=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=60 / rc=2pass / mbtree=1 / bitrate=825 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / vbv_maxrate=31250 / vbv_bufsize=31250 / nal_hrd=none / filler=0 / ip_ratio=1.40 / aq=1:1.00
Encoded date                   : UTC 2014-12-20 00:19:02
Tagged date                    : UTC 2014-12-20 00:19:13
Color primaries                : BT.709
Matrix coefficients            : BT.709

Audio
ID                             : 2
Format                         : AAC
Format/Info                    : Advanced Audio Codec
Format profile                 : LC
Codec ID                       : 40
Duration                       : 2h 29mn
Bit rate mode                  : Variable
Bit rate                       : 93.8 Kbps
Maximum bit rate               : 99.7 Kbps
Channel(s)                     : 2 channels
Channel positions              : Front: L R
Sampling rate                  : 48.0 KHz
Compression mode               : Lossy
Stream size                    : 100 MiB (10%)
Language                       : English
Encoded date                   : UTC 2014-12-20 00:19:11
Tagged date                    : UTC 2014-12-20 00:19:13


Offline Bozobub

  • Member
  • Posts: 1744
  • Demon Lord of Clowns
Re: [help] I can't play certain mp4 on my TV
« Reply #1 on: July 23, 2015, 03:23:29 am »
The 2 main differences I see right off are different x.264 encoding modes and the one that failed uses 6-channel sound, while the working one uses stereo (also at a much lower bitrate for video AND audio).

Perhaps your TV doesn't like AAC audio encoded at 265 kbit?

Otherwise, no clue, sorry.

Offline Krudda

  • Member
  • Posts: 10323
  • 私は 日本語 が 上手 じゃ ありません
    • My Anime List
Re: [help] I can't play certain mp4 on my TV
« Reply #2 on: July 23, 2015, 05:24:40 am »
Quote from: first file
qpmax=69:69:69


The audio should only stop the audio from playing, not the video.

Offline Bozobub

  • Member
  • Posts: 1744
  • Demon Lord of Clowns
Re: [help] I can't play certain mp4 on my TV
« Reply #3 on: July 23, 2015, 05:57:57 am »
That's true in principle, sure, but not necessarily in reality.  I've had the audio stream crash a video both on PC and hardware players.

Offline Krudda

  • Member
  • Posts: 10323
  • 私は 日本語 が 上手 じゃ ありません
    • My Anime List
Re: [help] I can't play certain mp4 on my TV
« Reply #4 on: July 23, 2015, 06:09:46 am »
Depends on the tv then.

Test it.

Put the same audio in the working mp4, and see if that makes it fail.

By the way, who encoded these mp4s, the specs are all wrong. Threads=48 for instance.... What the hell was the encoder thinking, because 4 hypertheaded 8-core high-end CPUs are common

Edit:
The non-working file has the wrong color matrix coefficients and transfer. Its BG.601 when it should be BT.709
This might cause an issue
At the very least, the colors are wrong.

I'm gonna guess the files are bad quality, despite the reasonable bitrate.

« Last Edit: July 23, 2015, 06:26:51 am by Krudda »

Offline sawakosadako

  • Member
  • Posts: 665
Re: [help] I can't play certain mp4 on my TV
« Reply #5 on: July 23, 2015, 09:10:09 am »
The 2 main differences I see right off are different x.264 encoding modes and the one that failed uses 6-channel sound, while the working one uses stereo (also at a much lower bitrate for video AND audio).

Perhaps your TV doesn't like AAC audio encoded at 265 kbit?

Otherwise, no clue, sorry.

Depends on the tv then.

Test it.

Put the same audio in the working mp4, and see if that makes it fail.

By the way, who encoded these mp4s, the specs are all wrong. Threads=48 for instance.... What the hell was the encoder thinking, because 4 hypertheaded 8-core high-end CPUs are common

Edit:
The non-working file has the wrong color matrix coefficients and transfer. Its BG.601 when it should be BT.709
This might cause an issue
At the very least, the colors are wrong.

I'm gonna guess the files are bad quality, despite the reasonable bitrate.



It turns out as expected. It crashed because it has a chapter list in it (menu). After I remove it, it plays on my TV. I still don't know how to remove the chapter list correctly though. I have to extract both the video and the audio and make a new mp4 file out of it. Any idea on how to do this directly?

@krudda I'm not sure who encoded this file. I'm not the one who download it. Anyway about the wrong spec, how do you change specs using mp4box?

thanks
« Last Edit: July 23, 2015, 09:11:41 am by sawakosadako »

Offline Krudda

  • Member
  • Posts: 10323
  • 私は 日本語 が 上手 じゃ ありません
    • My Anime List
Re: [help] I can't play certain mp4 on my TV
« Reply #6 on: July 23, 2015, 09:56:14 am »
You can't. I was referring to the specs and settings used in the file's creation; there's no way to undo those.

However, using MP4Box you can "mux" a new MP4 stream without the need to re-encode. It just won't fix anything, only cleans it up and makes it compatible with certain devices.

MP4 is basically a labelled box, your TV accepts boxes marked MP4

Inside the box is audio and video
Your TV only plays certain kinds of audio and video.
muxing, adds or subtracts those things from within the "box"

This is why .mp4 is called a "container" and AAC and AVC (audio and video respectively) are called "codecs"

Offline sawakosadako

  • Member
  • Posts: 665
Re: [help] I can't play certain mp4 on my TV
« Reply #7 on: July 24, 2015, 12:06:12 am »
^ I see. Thanks for the info.