MyBB Community Forums

Full Version: OUGC Media Info Tag
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
[Image: cover_preview_25096_1597534487_2299aed1f...3f4d31.png]

Description
Allow users to paste Media Info in posts using a tag that renders gracefully.

Download
Download from the MyBB Extend page.

Check the official page for more information.
Nice one.
But how to add media info?
I adding below code but it asking for "The media info you inserted seems to be invalid."

[mediainfo]
General
Video : mpeg
Size : 900 MB[/mediainfo]

I add IMDB Link: https://www.imdb.com/title/tt9814458/
I disable now force to use media info tag for user Then it give below meaage - Using the media tag MyCode is quired in this forum eventhough I not used [mediainfo]xxx[/mediainfo] code in post.
Using the example from the following page:
https://github.com/bhutanio/mediainfo-pa...erTest.php

You should be pasting something similar to:
[mediainfo]
General
Unique ID                                : 219102665597174011678599313130461357976 (0xA4D5A371E8BF9508B5633D2484186798)
Complete name                            : E:\Hostel Part III 1080p BluRay REMUX AVC DTS MA 5.1-R2TC.mkv
Format                                   : Matroska
Format version                           : Version 4 / Version 2
File size                                : 24.8 GiB
Duration                                 : 1h 27mn
Overall bit rate mode                    : Variable
Overall bit rate                         : 40.5 Mbps
Movie name                               : Hostel: Part III
Encoded date                             : UTC 2015-06-22 14:21:06
Writing application                      : mkvmerge v7.8.0 ('River Man') 64bit built on Mar 27 2015 16:31:37
Writing library                          : libebml v1.3.1 + libmatroska v1.4.2
Attachements                             : cover.jpg
DURATION                                 : 01:27:02.238000000
NUMBER_OF_FRAMES                         : 3249
NUMBER_OF_BYTES                          : 17400158
_STATISTICS_WRITING_APP                  : mkvmerge v7.8.0 ('River Man') 64bit built on Mar 27 2015 16:31:37
_STATISTICS_WRITING_DATE_UTC             : 2015-06-22 14:21:06
_STATISTICS_TAGS                         : BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : [email protected]
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 2 frames
Codec ID                                 : V_MPEG4/ISO/AVC
Duration                                 : 1h 27mn
Bit rate                                 : 40.5 Mbps
Bit rate mode                            : Variable
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 23.976 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Language                                 : English
Default                                  : No
Forced                                   : No
DURATION                                 : 01:27:45.260000000
NUMBER_OF_FRAMES                         : 126240
NUMBER_OF_BYTES                          : 16404187559
_STATISTICS_WRITING_APP                  : mkvmerge v7.8.0 ('River Man') 64bit built on Mar 27 2015 16:31:37
_STATISTICS_WRITING_DATE_UTC             : 2015-06-22 14:21:06
_STATISTICS_TAGS                         : BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Audio #1
ID                                       : 2
Format                                   : DTS
Format/Info                              : Digital Theater Systems
Format profile                           : MA / Core
Mode                                     : 16
Format settings, Endianness              : Big
Codec ID                                 : A_DTS
Duration                                 : 1h 27mn
Bit rate mode                            : Variable
Bit rate                                 : Unknown / 1 509 Kbps
Channel(s)                               : 6 channels
Channel positions                        : Front: L C R, Side: L R, LFE
Sampling rate                            : 48.0 KHz
Bit depth                                : 16 bits
Compression mode                         : Lossless / Lossy
Title                                    : Surround 5.1
Language                                 : English
Default                                  : Yes
Forced                                   : No
DURATION                                 : 01:27:45.269000000
NUMBER_OF_FRAMES                         : 493619
NUMBER_OF_BYTES                          : 1499636572
_STATISTICS_WRITING_APP                  : mkvmerge v7.8.0 ('River Man') 64bit built on Mar 27 2015 16:31:37
_STATISTICS_WRITING_DATE_UTC             : 2015-06-22 14:21:06
_STATISTICS_TAGS                         : BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Audio #2
ID                                       : 3
Format                                   : DTS
Format/Info                              : Digital Theater Systems
Mode                                     : 16
Format settings, Endianness              : Big
Codec ID                                 : A_DTS
Duration                                 : 1h 27mn
Bit rate mode                            : Constant
Bit rate                                 : 1 509 Kbps
Channel(s)                               : 6 channels
Channel positions                        : Front: L C R, Side: L R, LFE
Sampling rate                            : 48.0 KHz
Bit depth                                : 16 bits
Compression mode                         : Lossy
Stream size                              : 947 MiB (4%)
Title                                    : Surround 5.1
Language                                 : English
Default                                  : No
Forced                                   : No
DURATION                                 : 01:27:45.269000000
NUMBER_OF_FRAMES                         : 493619
NUMBER_OF_BYTES                          : 993161428
_STATISTICS_WRITING_APP                  : mkvmerge v7.8.0 ('River Man') 64bit built on Mar 27 2015 16:31:37
_STATISTICS_WRITING_DATE_UTC             : 2015-06-22 14:21:06
_STATISTICS_TAGS                         : BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES

Text #1
ID                                       : 10
Format                                   : PGS
Muxing mode                              : zlib
Codec ID                                 : S_HDMV/PGS
Codec ID/Info                            : Picture based subtitle format used on BDs/HD-DVDs
Language                                 : English
Default                                  : No
Forced                                   : No
DURATION                                 : 01:27:04.365000000
NUMBER_OF_FRAMES                         : 1791
NUMBER_OF_BYTES                          : 7042373
_STATISTICS_WRITING_APP                  : mkvmerge v7.8.0 ('River Man') 64bit built on Mar 27 2015 16:31:37
_STATISTICS_WRITING_DATE_UTC             : 2015-06-22 14:21:06
_STATISTICS_TAGS                         : BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Text #2
ID                                       : 11
Format                                   : PGS
Muxing mode                              : zlib
Codec ID                                 : S_HDMV/PGS
Codec ID/Info                            : Picture based subtitle format used on BDs/HD-DVDs
Language                                 : English
Default                                  : No
Forced                                   : No
[/mediainfo]
Feature request:
input
Complete name                            : N:\download\Bosche Season 1\Bosch.mkv

output
Complete name                            : Bosch.mkv

could you please make the complete name output like this?
Find:
https://github.com/Sama34/OUGC-Media-Inf...r.php#L249

Replace with:
return basename($string);

Report back.
not worked. not sure if there is plugin cache
https://i.imgur.com/81aRrib.png

replacement screenshot
https://i.imgur.com/jNBS39I.png
can you please add audio language

here is media info showing
Audio Language : English
Please provide example data that has the audio information in it so I can test properly.
hmm, i think not possible. because audio and subtitle both language parameter is same. can you please check if you can fix the complete name? remove all till "\"

for given example

Complete name                            : [SubsPlease] Tensei Shitara Slime Datta Ken - 37 (1080p) [1FE9B194].mkv\[SubsPlease] Tensei Shitara Slime Datta Ken - 37 (1080p) [1FE9B194].mkv

to

Complete name                            : [SubsPlease] Tensei Shitara Slime Datta Ken - 37 (1080p) [1FE9B194].mkv



Sample example
General
Unique ID                                : 0 (0x0)
Complete name                            : [SubsPlease] Tensei Shitara Slime Datta Ken - 37 (1080p) [1FE9B194].mkv\[SubsPlease] Tensei Shitara Slime Datta Ken - 37 (1080p) [1FE9B194].mkv
Format                                  : Matroska
Format version                          : Version 4
File size                                : 1.35 GiB
Duration                                : 23 min 42 s
Overall bit rate                        : 8 149 kb/s
Encoded date                            : UTC 2010-02-22 21:41:29
Writing application                      : no_variable_data
Writing library                          : no_variable_data
Attachments                              : Roboto-Medium.ttf / Roboto-MediumItalic.ttf / arial.ttf / arialbd.ttf / comic.ttf / comicbd.ttf / times.ttf / timesbd.ttf / trebuc.ttf / trebucbd.ttf / verdana.ttf / verdanab.ttf

Video
ID                                      : 1
Format                                  : AVC
Format/Info                              : Advanced Video Codec
Format profile                          : High@L4
Format settings                          : CABAC / 4 Ref Frames
Format settings, CABAC                  : Yes
Format settings, Reference frames        : 4 frames
Codec ID                                : V_MPEG4/ISO/AVC
Duration                                : 23 min 42 s
Nominal bit rate                        : 8 000 kb/s
Width                                    : 1 920 pixels
Height                                  : 1 080 pixels
Display aspect ratio                    : 16:9
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.161
Writing library                          : x264 core 142
Encoding settings                        : cabac=1 / ref=4 / deblock=1:1:1 / analyse=0x3:0x113 / me=umh / subme=8 / psy=1 / psy_rd=0.40: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=0 / weightp=2 / keyint=96 / keyint_min=48 / scenecut=40 / intra_refresh=0 / rc_lookahead=48 / rc=2pass / mbtree=1 / bitrate=8000 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / vbv_maxrate=12000 / vbv_bufsize=18000 / nal_hrd=none / filler=0 / ip_ratio=1.40 / aq=1:0.60
Default                                  : Yes
Forced                                  : No
Statistics Tags Issue                    : no_variable_data 1970-01-01 00:00:00 / no_variable_data 2010-02-22 21:41:29
FromStats_BitRate                        : 7986121
FromStats_Duration                      : 00:23:42.006000000
FromStats_FrameCount                    : 34094
FromStats_StreamSize                    : 1419539082

Audio
ID                                      : 2
Format                                  : AAC LC
Format/Info                              : Advanced Audio Codec Low Complexity
Codec ID                                : A_AAC-2
Duration                                : 23 min 42 s
Channel(s)                              : 2 channels
Channel layout                          : L R
Sampling rate                            : 44.1 kHz
Frame rate                              : 43.066 FPS (1024 SPF)
Compression mode                        : Lossy
Language                                : Japanese
Default                                  : Yes
Forced                                  : No
Statistics Tags Issue                    : no_variable_data 1970-01-01 00:00:00 / no_variable_data 2010-02-22 21:41:29
FromStats_BitRate                        : 127999
FromStats_Duration                      : 00:23:42.083000000
FromStats_FrameCount                    : 61244
FromStats_StreamSize                    : 22753327

Text
ID                                      : 3
Format                                  : ASS
Codec ID                                : S_TEXT/ASS
Codec ID/Info                            : Advanced Sub Station Alpha
Compression mode                        : Lossless
Title                                    : English subs
Language                                : English
Default                                  : Yes
Forced                                  : No
Statistics Tags Issue                    : no_variable_data 1970-01-01 00:00:00 / no_variable_data 2010-02-22 21:41:29
FromStats_BitRate                        : 143
FromStats_Duration                      : 00:23:32.010000000
FromStats_FrameCount                    : 403
FromStats_StreamSize                    : 25394

https://regex101.com/r/zhST40/1

i tried to use regex word filter, but i guess world filter does not effect inside bbcode.
can you disable smiley convert in media info?

sometimes there is chapter like

Chapter : Don Fight (remove the space) which auto convert to smiley
Pages: 1 2