Log in

View Full Version : Blu ray structure problem - playback


onedev
27th August 2020, 09:15
Hello,
first I want to introduce myself. My name is Ingo and iam the former developer of DVD-Ranger and CinExHD. Since some years now I work as a senior developer in an company. Since Corvid-19 I started to work on a new project to convert my daughters DVDs to Blu-ray.
Yes, there are dozen apps available but I also developed one in the past and my ambition to solve it myself is high ;-)

However, back to my problem. I made a litte app that will write a simple BD structure for a ffmpeg encoded m2ts file. The MediaInfo data for this file you wil lfind at the end. Attached I have added the structure in a small ZIP file.
The BD looks well. BDEdit and BDInfo do not nag around. VLC plays the folder well, but PowerDVD and als a hardware Samsung player stop immediatly after the main movie starts. The mai nmovie is 10 minutes in this sample.
Because no app tells me a problem or error I think I need a fresh pair of eyes. Maybe someone can help me with my problem.

MediaInfo:

General
ID : 1 (0x1)
Complete name : D:\analzye\ffmpeg\out\out_data1.m2ts
Format : BDAV
Format/Info : Blu-ray Video
File size : 413 MiB
Duration : 10 min 3 s
Overall bit rate mode : Variable
Overall bit rate : 5 751 kb/s

Video
ID : 4113 (0x1011)
Menu ID : 1 (0x1)
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings : CABAC / 1 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference frames : 1 frame
Format settings, GOP : M=1, N=15
Codec ID : 27
Duration : 10 min 3 s
Bit rate : 5 322 kb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Stream size : 383 MiB (93%)

Audio
ID : 4352 (0x1100)
Menu ID : 1 (0x1)
Format : AC-3
Format/Info : Audio Coding 3
Commercial name : Dolby Digital
Codec ID : 129
Duration : 10 min 3 s
Bit rate mode : Constant
Bit rate : 192 kb/s
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Bit depth : 16 bits
Compression mode : Lossy
Delay relative to video : 32 ms
Stream size : 13.8 MiB (3%)
Service kind : Complete Main

Menu
ID : 256 (0x100)
Menu ID : 1 (0x1)
Duration : 10 min 3 s
List : 4113 (0x1011) (AVC) / 4352 (0x1100) (AC-3)
Service name : Service01
Service provider : FFmpeg
Service type : digital television

tebasuna51
27th August 2020, 13:41
I don't see FPS in your MediaInfo, but in the .mpls attached say about the Progressive video:

"stream_coding_type": "H.264",
"video_format": "1080p",
"frame_rate": "29.97",

I think the BD's 29.97 must be interlaced.

Also don't say nothing about colour space (it is not the same than the DVD's)

Check Encoding Video for Blu-Ray using H264/AVC (https://forum.doom9.org/showthread.php?p=1399419#post1399419) to see the required specs to be full BD compatible.

onedev
27th August 2020, 16:44
I tried today to use tsmuxer with the same input video. Same as media info I added here. After this the Blu-ray is played very well. So I think it is an issue of the ffmpeg muxed file. TSMuxer do not Interlace or Reencode the stream. Just remux I think.

That is my issue I think. But the logic tsmuxer is written the data, is different from my. Values look ok.
The issue I see in my ffmpeg muxed file is the additinal menu stream. This is not present in txmuxer output. Maybe this is an issue?

tebasuna51
27th August 2020, 17:48
Of course tsMuxeR (now Open Source) (https://forum.doom9.org/showthread.php?t=176668) is the recommended muxer to obtain a Bluray structure.

The issue I see in my ffmpeg muxed file is the additinal menu stream. This is not present in txmuxer output. Maybe this is an issue?

The 'Menu' showed in MediaInfo are the Chapters points to jump.
There are only one at end (10 m) without sense.
In your previous 00000.mpls the chapters are:
00:00:00.000
00:10:00.000
Begin and end of the movie.

Put your new 00000.mpls to see if are preserved, but maybe tsMuxeR don't copy that irrelevant info.
The proper location for chapters in a Bluray is the .mpls, not in the .m2ts (because there may be more than one)

If you make a real test with true chapters we can check it.

onedev
28th August 2020, 09:58
Ok, I have done now following:

used the tsMuxeR muxed m2ts stream to author with my own structure. Because the file is working with tsMuxeR Blu-ray structure I assume it is ok.

Now I have added 3 chapters to the Blu-ray, each 5 minutes.

The amazing thing is, that PowerDVD acts exact the same in compare when I use the ffmpeg m2ts. So I assume it is nothing about the video file. What I see in PowerDVD is
00:00:39 / 00:11:59 Title: 0/1 Kapitel 1/3
in compare PowerDVD shows on tsMuxeR playback
00:00:39 / 00:11:59 Title: 1/1 Kapitel 1/3

Maybe it jump in my structure to the wrong title?
Attached is the new structure.

tebasuna51
28th August 2020, 20:58
The chapters in the new 00000.mpls attached are:

00:00:00.000
00:05:00.000
00:10:00.000

like you say. Seems ok.

Over a single 00001.m2ts
Num Clips: 1 -- Duration: 11:59
PlayList:
00001.M2TS -- Duration: 11:59

With a content of:
"stream": [
{
"type": 1,
"pid": 4113,
"stream_coding_type": "H.264",
"video_format": "1080p",
"frame_rate": "29.97",
"reserved01": 0
},
{
"type": 1,
"pid": 4352,
"stream_coding_type": "AC-3",
"audio_presentation_type": "Stereo",
"sampling_frequency": "48 kHz",
"language_code": "eng"
}
]

I don't know what is your problem with the 00001.m2ts because is not present in your attached file.

When you play the BD you can jump by the 5m chapters?

Ghitulescu
29th August 2020, 08:08
DVDs can be put on BDs only by restructuring (remuxing and reauthoring) - I understand this may not be 100% legal, but never ever had an issue in practice, since I am doing this (10 years or so) and on a variety of players.

If you said you were what you said you were I am sure you remember the long-time-completely-forgotten line-doublers or scalers that cost 4-5 digits and were supposed to get HD out of crappy sources. People spent years upconverting LQ sources, only to find out these days a gas-station DVD player with HDMI @ 40€ can do this better in real time.

To put DVDs on BD one can use the freeware DVDtoBD. I wrote a guide on how to put a season onto a BD (if it fits 25/50GB) with the original menus if possible but at 2MB is still 8x larger than the forum allows for a PDF.

I look forward to hear from your tool as DVDtoBD has some issues (I discussed in that PDF guide).

onedev
31st August 2020, 10:49
Iam sorry, I asked for technical help in my structure not for any suggestions in other software. I think there are many and I think better than my. But I prefer to make it myself and to get a hero for my litte daughter ;-)

onedev
31st August 2020, 10:55
The chapters in the new 00000.mpls attached are:



like you say. Seems ok.

Over a single 00001.m2ts


With a content of:


I don't know what is your problem with the 00001.m2ts because is not present in your attached file.

When you play the BD you can jump by the 5m chapters?

In theory yes, but the video is not played. Window keeps black but I can jump on the timeline. Like written, I use now the video created by tsMuxeR to make sure that the video is not the reason. I think it is something inside the structure.

as written, I do not understand why PowerDVD plays Tiitle 1/1 on tsMuxeR created BD and in my 0/1 maybe it hangs in an non exsiting menu?

tebasuna51
31st August 2020, 13:32
Like I say in my first post:
I think the BD's 29.97 must be interlaced.

When you convert your DVD's preserve the interlace or convert to 23.976 progressive.

http://tom.niko.users.sbb.rs/resolutions.png

1) You can create BD's from 720x480 29.97 interlaced, just convert the MPEG2 video to h264

2) If your DVD 29.97 is telecined (https://en.wikipedia.org/wiki/Telecine) obtain the 23.976 progressive and convert to 1280x720

3) If your DVD is a true 29.97 interlaced you can deinterlace to 59.940 with QTGMC and convert it to 1280x720 progressive.

I can't recommend upsample a DVD until a 1080

onedev
31st August 2020, 20:05
Like I say in my first post:


When you convert your DVD's preserve the interlace or convert to 23.976 progressive.

http://tom.niko.users.sbb.rs/resolutions.png

1) You can create BD's from 720x480 29.97 interlaced, just convert the MPEG2 video to h264

2) If your DVD 29.97 is telecined (https://en.wikipedia.org/wiki/Telecine) obtain the 23.976 progressive and convert to 1280x720

3) If your DVD is a true 29.97 interlaced you can deinterlace to 59.940 with QTGMC and convert it to 1280x720 progressive.

I can't recommend upsample a DVD until a 1080

Please read my comments. The ffmpeg file I created from my DVD, authored and remuxed with tsMuxeR works.
The same m2ts file with my structure hangs / not played. So it is definitly nothing about progressive or interlaced because tsMuxeR do just remux not re-encode.

Emulgator
31st August 2020, 23:23
onedev, where is your 00001.m2ts?
I can't test without.
Maybe you can upload the complete BD to wetransfer.com ? 2GB max for free.

tebasuna51
1st September 2020, 00:53
Please read my comments. The ffmpeg file I created from my DVD, authored and remuxed with tsMuxeR works.
The same m2ts file with my structure hangs / not played. So it is definitly nothing about progressive or interlaced because tsMuxeR do just remux not re-encode.

Sorry, then the structure in bdtest5.zip (+ the same 00001.m2ts) play black with PowerDVD and hardware players but the structure in foxtest8.zip play fine always.

The structure have the same folders and files, and there are identical files:
index.bdmv
MovieObject.bdmv

And different ones (because the 00001.m2ts reffered are different also):
00000.mpls
00001.clpi

Maybe if you use the same 00001.m2ts (and include it also) we can see anything more.

Emulgator
1st September 2020, 11:50
And I feel too like I would begin naming with 00000.m2ts and corresponding 00000.mpls and 00000.clpi.
Not sure if consecutive naming from 00000.* is a stringent requirement for BDAV/BDMV, but I would just give that.

outgoing
1st September 2020, 14:30
Not sure if consecutive naming from 00000.* is a stringent requirement for BDAV/BDMV, but I would just give that.

It is not mandatory, have seen structures that were not.

Ghitulescu
2nd September 2020, 06:01
You misunderstood my post.

1. I suggested you NOT to convert the DVDs but rather remux them (subtitles must however be converted) - I think you know why by now :)

2. I gave you a hint to look on how other softwares do this job.

So, you're stuck with a bad re-encoding, and you spent one week trying to figure out a detail that should have not been part of the initial problem.

Once you managed to fix the structure, you can then elaborate on encoding and other additional tasks.