Hello,

85 views
Skip to first unread message

FFreestyleRR

unread,
Jun 3, 2023, 4:45:16 PM6/3/23
to Video DownloadHelper Q&A
The extension has a problem to download a HLS record.

Here is a sample url for testing purpose only:


It is starting to download it as it should:


but then this appeared:

Could not get information from media 'New Tab' from file 'D:\New Tab.m2ts'. The file might be corrupted.{ "file": "D:\\New Tab.m2ts", "stat": { "dev": 270801321, "mode": 33206, "nlink": 1, "uid": 0, "gid": 0, "rdev": 0, "blksize": 4096, "ino": 13229323905553636, "size": 127892759, "blocks": 249792, "atimeMs": 1685824974147.4265, "mtimeMs": 1685824943321.6902, "ctimeMs": 1685824943321.6902, "birthtimeMs": 1685824918551.1304, "atime": "2023-06-03T20:42:54.147Z", "mtime": "2023-06-03T20:42:23.322Z", "ctime": "2023-06-03T20:42:23.322Z", "birthtime": "2023-06-03T20:41:58.551Z" } } Exit code: 1 ffprobe version n4.1.5-vdhcoapp Copyright (c) 2007-2020 the FFmpeg developers built with gcc 9.3-win32 (GCC) 20200320 configuration: --cross-prefix=x86_64-w64-mingw32- --sysroot=/usr/x86_64-w64-mingw32/ --extra-ldflags=-static-libgcc --target-os=mingw32 --arch=x86_64 --prefix=/home/mig/git/vdhcoapp/converter/src-build/win/64/converter-build --extra-version=vdhcoapp --extra-cflags=-I/home/mig/git/vdhcoapp/converter/src-build/win/64/deps/include --extra-ldflags='-static-libgcc -L/home/mig/git/vdhcoapp/converter/src-build/win/64/deps/lib -L/home/mig/git/vdhcoapp/converter/src-build/win/64/zlib' --extra-libs=-lpthread --pkg-config=/usr/bin/x86_64-w64-mingw32-pkg-config --enable-shared --enable-gpl --enable-pthreads --disable-w32threads --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxvid --enable-libx264 --enable-libaom --enable-avresample --disable-doc libavutil 56. 22.100 / 56. 22.100 libavcodec 58. 35.100 / 58. 35.100 libavformat 58. 20.100 / 58. 20.100 libavdevice 58. 5.100 / 58. 5.100 libavfilter 7. 40.101 / 7. 40.101 libavresample 4. 0. 0 / 4. 0. 0 libswscale 5. 3.100 / 5. 3.100 libswresample 3. 3.100 / 3. 3.100 libpostproc 55. 3.100 / 55. 3.100 [mov,mp4,m4a,3gp,3g2,mj2 @ 000002a014d6b940] could not find corresponding track id 1 [mov,mp4,m4a,3gp,3g2,mj2 @ 000002a014d6b940] could not find corresponding trex [mov,mp4,m4a,3gp,3g2,mj2 @ 000002a014d6b940] error reading header D:\New Tab.m2ts: Invalid data found when processing input

Wild Willy

unread,
Jun 3, 2023, 6:40:22 PM6/3/23
to Video Download Helper Google Group

The URL you've posted is for an HLS manifest, not a video. A manifest describes a video.
It is not the video itself. Instead of posting the URL of a manifest, you should post
the URL of a web page that contains a video.

But a manifest is a useful object. It's just not useful to VDH. On the other hand, it
is quite useful to ffmpeg, as the attached file shows. As you can see, ffmpeg downloaded
this file just fine, although this web site was offering utterly putrid service. It
reminded me of YouTube. The download of a file of this size should take 2-3 minutes, not
what it did take.

This is "Blade Runner" dubbed into a language I did not recognize. Polish? Czech? But
it isn't the whole movie, just the first 58:03. There must be more to this but it's not
given in the manifest you provided.

You'll note the log file I have attached is not the full log file I generated. That file
contained a bit over 1100 lines logging the fact that ffmpeg skipped something. I didn't
think it would be a good use of resources to post that. This file contains the
meaningful information.

If you want real help here, you have to post the URL of the web page on which this video
is hosted. You need to give us information that will allow us to try what you did & see
if we get similar results. If you give us the URL of a web page, we might actually get
the complete movie. In short, click here:

https://groups.google.com/g/video-downloadhelper-q-and-a/c/BzPLK2YyL-s

Be sure you carefully read the first 2 paragraphs there. Once you have read that, you
can check out the references within that web page that I am about to give you. But don't
just find the relevant link & click it. READ the context around the link. I recommend
you bookmark that link & read the entire page, if not now, if not in one sitting, bit by
bit over time.

You find a reference on that web page by searching the text of that page using various
search keys. The search keys I am suggesting are these:

problem report
stealth quote
short tutorial
cannot download

Next, look for "problem report" within the text of that web page. That will give you a
link. Click that, read what you find, & follow the advice. It's not good enough to just
name a web site. Help those who would help you by specifying URLs of particular web
pages on which you are finding content that you are having trouble downloading. I know
I'm not about to scrounge around on some site I've never heard of to see if maybe I can
find something that does or does not work. Make it easy for me to help you.

Next, look for "stealth quote" within the text of that web page. That will give you
another link to click. Click that, read what you find, & follow the advice, not just for
your posts in this thread, not just for your posts in this forum, but for your posts
anywhere on Google Groups.

Next, look for "short tutorial" within the text of that web page. That explains why your
response here will use the Reply all button. It also explains why you will NOT use the
Reply to author button.

Next, look for "cannot download" within the text of that web page. That will give you a
link to a tutorial on ffmpeg. That should answer any questions you have about what I did
here.
Testmp4 Log Filtered.txt

FFreestyleRR

unread,
Jun 4, 2023, 2:01:42 AM6/4/23
to Video DownloadHelper Q&A
Hello,

Thanks for the reply. I will take a look at the references you provided.

I extracted the m3m8 from these links. Video Download Helper didn't find any media on the pages:



The language is Bulgarian.

I used these links only for the test. I don't need these particular clips.

But they can be downloaded using the following services:



or they can be captured using the following extension


Or even recorded through VLC.

I know that VDH is usually able to download some HLS files, and also it is able to download other clips from https://www.videoclip.bg as well.

I just wondered why it failed to succeed on these two clips. Maybe some kind of protection is preventing him to do its job.

Thanks!

Wild Willy

unread,
Jun 4, 2023, 2:55:26 AM6/4/23
to Video Download Helper Google Group

I went to the page by trying to load it in Google Translate, since I don't know
Bulgarian. (Polish, Czech, I was close.) It let me see what it was saying on the page
but it wouldn't load the video itself. No problem. I just wanted to see what it was
saying so I didn't accidentally agree to something I'd regret. Then I went back to the
page in the original Bulgarian. Just loading the page left the VDH menu blank. So I
started playback & stopped it after a couple of seconds, & the VDH menu was still blank.

So I opened the Network Monitor & reloaded the page again. There was nothing interesting
in the Network Monitor so I launched playback in the player & stopped it after a couple
of seconds. This finally got me what you can see in attached image #01. There are many
things I could have found there but it turned out that the first entry of type
octet-stream had a telltale name. I popped up the context menu on that entry & executed
the Copy URL function on the cascaded menu (attached image #02). That put the URL of
that entry into my system clipboard. I pasted that URL into an invocation of ffprobe.
Those results are in attached file ffprobe.txt.

This content is NOT HLS. It is DASH. Michel has admitted on here that VDH does not
handle regular DASH streams. VDH handles the weird, proprietary, mutant version of DASH
used by YouTube. But regular DASH streams are beyond VDH's current capability. So that
explains the failure of VDH on this site. In any case, since this DASH manifest is
available, you can use it to download the video with ffmpeg, same as what I did earlier
with the HLS manifest you posted. There is no gear icon in the player on that page so
there is no way to select a different resolution. It looks like you're stuck with the
one resolution mentioned in the DASH manifest, as reported by ffprobe. I didn't actually
download this again. I'll leave that to you as an exercise. I also didn't check any of
the other links you posted. I'll let you figure out whether they are also DASH streams.

There is probably one more reference you should look up while you are checking the
references I gave you earlier. Look for "evasive maneuvers" within the text of that web
page. You will probably end up using the ideas explained in that thread.
#01.png
#02.png
ffprobe.txt

FFreestyleRR

unread,
Jun 4, 2023, 4:33:39 AM6/4/23
to Video DownloadHelper Q&A
Thanks, Willy.
I am glad to hear that is not a bug on VHD side.
I learned something new here.
Furthermore, I hope that Michel will somehow improve the add-on (if possible) to handle such streams in the near future.

Have a nice day and keep up the good work!

Best regards,
George
Reply all
Reply to author
Forward
0 new messages