When I tried to add a ts file to my m3u8 list, I opened the m3u8 file, but when it played my ts file, it stayed at that ts file without updating it.
My m3u8 file:
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:8
#EXT-X-MEDIA-SEQUENCE:18
#EXT-X-DISCONTINUITY
#EXTINF:1,
Changed/qc0.ts
#EXTINF:8.000000,
2022-05-292.ts
#EXTINF:8.000000,
2022-05-293.ts
#EXTINF:8.000000,
2022-05-294.ts
#EXTINF:7.966667,
2022-05-295.ts
#EXTINF:0.900000,
2022-05-296.ts
#EXT-X-ENDLIST
Please see this video: [youtu.be/JNYXZu5YhOY][1]
Please guide me on how to fix it. Thank you.
Sorry, my English is bad.
Related
I've downloaded a m3u8 file, I noticed two files which were strange to me.
Upon loading it I noticed one was just video and the other audio.
What would be the best way of merging the two? Would I need to completely recode my application or is there a feature within the m3u8 file that can do the job?
File 1:
#EXTM3U
#EXT-X-VERSION:6
#EXT-X-TARGETDURATION:6
#EXT-X-MEDIA-SEQUENCE:301
#EXT-X-MAP:URI="1617045851-6687-0-init.m4s"
#EXTINF:6.000000,
#EXT-X-PROGRAM-DATE-TIME:2021-03-29T19:54:22.000+0000
1617045851-6687-0-00301.m4s
#EXTINF:6.000000,
#EXT-X-PROGRAM-DATE-TIME:2021-03-29T19:54:28.000+0000
1617045851-6687-0-00302.m4s
#EXTINF:6.000000,
#EXT-X-PROGRAM-DATE-TIME:2021-03-29T19:54:34.000+0000
1617045851-6687-0-00303.m4s
#EXTINF:6.000000,
#EXT-X-PROGRAM-DATE-TIME:2021-03-29T19:54:40.000+0000
1617045851-6687-0-00304.m4s
#EXTINF:6.000000,
#EXT-X-PROGRAM-DATE-TIME:2021-03-29T19:54:46.000+0000
1617045851-6687-0-00305.m4s
File 2:
#EXTM3U
#EXT-X-VERSION:6
#EXT-X-TARGETDURATION:6
#EXT-X-MEDIA-SEQUENCE:389
#EXT-X-MAP:URI="1617045851-6687-3-init.m4s"
#EXTINF:5.994667,
#EXT-X-PROGRAM-DATE-TIME:2021-03-29T20:03:09.939+0000
1617045851-6687-3-00389.m4s
#EXTINF:5.994667,
#EXT-X-PROGRAM-DATE-TIME:2021-03-29T20:03:15.933+0000
1617045851-6687-3-00390.m4s
#EXTINF:5.994667,
#EXT-X-PROGRAM-DATE-TIME:2021-03-29T20:03:21.928+0000
1617045851-6687-3-00391.m4s
#EXTINF:6.016000,
#EXT-X-PROGRAM-DATE-TIME:2021-03-29T20:03:27.923+0000
1617045851-6687-3-00392.m4s
#EXTINF:5.994667,
#EXT-X-PROGRAM-DATE-TIME:2021-03-29T20:03:33.939+0000
1617045851-6687-3-00393.m4s
Much appreciated,
Ali
I have a file located at
content/post/data_for_posts/my_file.md
I have it there because it's quite easy to do htmltools::includeMarkdown("data_for_posts/my_file.md") and recycle this file in different posts.
My problem is that when I serve_site() this creates a public/post/data_for_posts/index.html, which means, it gets posted to my website (as a January 1 of 0001). I guess I could change the date to year 10000, but I would rather handle it the way I handle the .Rmd and other files, as suggested here
I have tried to modify my config.toml but have not managed to solve the issue.
ignoreFiles = ["\\.Rmd$", "\\.Rmarkdown$", "_files$", "_cache$", "content/post/data_for_posts/my_file.md"]
Here are a couple techniques that I use to do this:
Rename data_for_posts/my_file.md so it uses a file extension that hugo does not interpret as a known markup language, for example change .md to .markd or mdn.[*]
Rename data_for_posts/my_file.md so it includes a string that you will never use in a real content file, for example data_for_posts-UNPUBLISHED/my_file.md. Then add that string (UNPUBLISHED or whatever) to your config ignoreFiles list.[**]
[*] In the content/ directory, a file with one of the following file extensions will be interpreted by hugo as containing a known markup language: .ad, .adoc, .asciidoc, .htm, .html, .markdown, .md, .mdown, .mmark, .pdc, .pandoc, .org, or .rst (this is an excerpt of something I wrote).
[**] The strings listed in ignoreFiles seem to be case sensitive so I like to use all-upper-case characters in my ignored file names (because I never use upper-case chars in real content file names). Also note that there is no need to specify the path and my experience is that path delimiters (/ or \) cause problems.
can someone help to answer these?..not able to find anywhere on google.
What is the meaning of overmounting a file in Unix/aix?
what is the command to overmount a file
what happens if the file is overmounted?
I am quite new to postgresql full text search and I am setting up the configuration as where can I download the ispell *.dict and *.affix filefollowing (exactly as in docs):
CREATE TEXT SEARCH DICTIONARY english_ispell (
TEMPLATE = ispell,
DictFile = english,
AffFile = english,
StopWords = english
);
So, this I think expects files english.dict and english.affix on for example:
/usr/share/postgresql/9.2/tsearch_data
But these files are not there. I just have ispell_sample.dict and ispell_sample.affix - which when included above work fine - no problem.
So... I followed this post and downloaded the required dictionary from the open office people and renamed the .dic to .dict and .aff to .affix. Then I have checked (using file -bi dict.affix and file -bi english.dict and they are UTF8 encoded).
When I run the above text search dictionary, I get the error:
ERROR: wrong affix file format for flag
CONTEXT: line 2778 of configuration file "/usr/share/postgresql/9.2/tsearch_data/english.affix": "COMPOUNDMIN 1
"
I was wondering if anyone had clues on how to solve this problem or if anyone had encountered this before..
Thanks./.
UPDATE:1: I guess the question can be rephrased as follows:
where can I download the ispell *.dict and *.affix file for postgres
Here's a good reference: https://www.cs.hmc.edu/~geoff/ispell-dictionaries.html This is a good resource for those dictionaries of any language.
I would like to determine real file extension.
example :
file = "test.fakeExt"
// but the real extention is .exe // for security reason I wish to avoid using it!
How can I do that?
If you want to determine the extension you could use findmimefromdata.
It looks at the first part of the file to determine what type of file it is.
FindMimeFromData function
Sample code
The first two bytes of an .exe file are allways 'MZ'.
So you could read the binary file, and see if the first two bytes are MZ, then you know it's an .exe file...