Page 1 of 1

[NOT A BUG] 0.7.2. (Win 7 64bit) - Files in "Movies" folder not playing

Posted: Thu Dec 27, 2018 12:45 pm
by King of Worms
New animations located in the "Movies" folder in a "Streaming assets" are not being played ingame

Re: 0.7.2. (Win 7 64bit) - Files in "Movies" folder not playing

Posted: Thu Dec 27, 2018 2:33 pm
by pango
What's the name of the video file you're trying to inject?
Looking at the code, the replacement file should be named like the .VID original, but with .mp4 extension

Re: 0.7.2. (Win 7 64bit) - Files in "Movies" folder not playing

Posted: Thu Dec 27, 2018 3:10 pm
by King of Worms
pango wrote: Thu Dec 27, 2018 2:33 pm What's the name of the video file you're trying to inject?
Looking at the code, the replacement file should be named like the .VID original, but with .mp4 extension
Thats it, it worked in prev verions, now it doesnt.

Vid is
ANIM0000.VID
ANIM0001.VID

it seems its OGV tho

Re: 0.7.2. (Win 7 64bit) - Files in "Movies" folder not playing

Posted: Thu Dec 27, 2018 3:24 pm
by pango
New video player upgraded in September may have obsoleted .ogv support
https://github.com/Interkarma/daggerfal ... d54d051L46

Re: 0.7.2. (Win 7 64bit) - Files in "Movies" folder not playing

Posted: Thu Dec 27, 2018 3:57 pm
by King of Worms
hmm, might be...

but it appears it tryes something with ogv here... no idea... :)

// Seek from loose files
string path = Path.Combine(moviePath, name + ".ogv");
string path = Path.Combine(moviePath, name + ".mp4");
if (File.Exists(path))

Re: 0.7.2. (Win 7 64bit) - Files in "Movies" folder not playing

Posted: Thu Dec 27, 2018 3:59 pm
by TheLacus
I confirm you need mp4 files. Ogv was used with the old way to play videos, which has been deprecated in recent Unity versions. For future references, documentation for the modding system is always at /projects/daggerfall-unity/modding/. ;)
Like the other bug report, this can be marked with [NOT A BUG] and moved to Resolved section.

Re: 0.7.2. (Win 7 64bit) - Files in "Movies" folder not playing

Posted: Thu Dec 27, 2018 4:33 pm
by King of Worms
Oh thats unfortunate, I hope Rhymer will be able to convert it to mp4

Re: [NOT A BUG] 0.7.2. (Win 7 64bit) - Files in "Movies" folder not playing

Posted: Thu Dec 27, 2018 6:00 pm
by pango
I quickly converted Rhymer movies to MP4 format using ffmpeg (zero tweaking, just ffmpeg -i inputfile outputfile.mp4):
https://ufile.io/jxfkd

But they don't show up in-game for me, just clickable black screens...

Code: Select all

ᐅ mediainfo ANIM0000.mp4              
General
Complete name                            : ANIM0000.mp4
Format                                   : MPEG-4
Format profile                           : Base Media
Codec ID                                 : isom (isom/iso2/avc1/mp41)
File size                                : 21.0 MiB
Duration                                 : 44 s 350 ms
Overall bit rate mode                    : Variable
Overall bit rate                         : 3 978 kb/s
Writing application                      : Lavf57.83.100

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, ReFrames                : 4 frames
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 44 s 280 ms
Bit rate                                 : 3 856 kb/s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 25.000 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.074
Stream size                              : 20.4 MiB (97%)
Writing library                          : x264 core 152 r2854 e9a5903
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=16 / 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 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=23.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00

Audio
ID                                       : 2
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Format profile                           : LC
Codec ID                                 : mp4a-40-2
Duration                                 : 44 s 350 ms
Duration_LastFrame                       : -3 ms
Bit rate mode                            : Variable
Bit rate                                 : 122 kb/s
Maximum bit rate                         : 128 kb/s
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 kHz
Frame rate                               : 46.875 FPS (1024 SPF)
Compression mode                         : Lossy
Stream size                              : 660 KiB (3%)
Default                                  : Yes
Alternate group                          : 1

Code: Select all

ᐅ mediainfo ANIM0001.mp4 
General
Complete name                            : ANIM0001.mp4
Format                                   : MPEG-4
Format profile                           : Base Media
Codec ID                                 : isom (isom/iso2/avc1/mp41)
File size                                : 12.3 MiB
Duration                                 : 33 s 400 ms
Overall bit rate mode                    : Variable
Overall bit rate                         : 3 095 kb/s
Writing application                      : Lavf57.83.100

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, ReFrames                : 4 frames
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 33 s 400 ms
Bit rate                                 : 2 977 kb/s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 25.000 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.057
Stream size                              : 11.9 MiB (96%)
Writing library                          : x264 core 152 r2854 e9a5903
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=16 / 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 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=23.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00

Audio
ID                                       : 2
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Format profile                           : LC
Codec ID                                 : mp4a-40-2
Duration                                 : 33 s 137 ms
Bit rate mode                            : Variable
Bit rate                                 : 111 kb/s
Maximum bit rate                         : 128 kb/s
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 44.1 kHz
Frame rate                               : 43.066 FPS (1024 SPF)
Compression mode                         : Lossy
Stream size                              : 448 KiB (4%)
Default                                  : Yes
Alternate group                          : 1
PS: it seems MP4 is not supported natively on Linux
https://docs.unity3d.com/Manual/VideoSo ... ility.html

Re: [NOT A BUG] 0.7.2. (Win 7 64bit) - Files in "Movies" folder not playing

Posted: Thu Dec 27, 2018 7:55 pm
by King of Worms
Hmm, let me test those files on Win 7... yes, it works. And it plays more smoothly than with the old versions.

Thank you :)