How did you discover the content share thing, what made you think of it as a possibility? How much RAM is it freeing up? Why is a reboot needed afterwards?So far I've found the easiest option is to use--fixup warn
or--fixup never
for youtube-dl.
Alternatively temporarily disable content sharing - Settings/System/Internet Setting/Content Share after queuing the download. Your HDR may slow down to a miserable speed and the HDMI audio and video will disappear near the end of the fixup process. But, it will chug along to completion. You'll need to reboot the HDR to resume normal functions.
Content share - because I wasn't convinced it was only aThis was an edit I've only now noticed:
How did you discover the content share thing, what made you think of it as a possibility? How much RAM is it freeing up? Why is a reboot needed afterwards?
swapfile / ffmpeg
interaction issue. So I looked at my tests and noticed it look longer each time I ran similar tests when increasing the swapfile size. So that implied it was a swapfile thrashing issue, as mentioned by /df. But I gave it more thought - what about file contention? I looked at DLNA/Content Sharing. So, to get it through ffmpeg fixup
of youtube-dl
, the user can turn off DLNA/Content Sharing or save to /media/drive1 (if virtual-disk2
is installed).fixup
stage of youtube-dl
- quicker run time but I think the resultant mp4 will not have cue/review facility. The skip forward/backward will be there though.I don't understand what file contention there could be. I don't think the DLNA server/indexer would be interested in what files FFMPEG is producing, neither is there anything to trigger it to look.But I gave it more thought - what about file contention?
That's fair enough. We have a difference of opinion. But bear in mind I've based mine on the results I've got from the tests I've done.I don't understand what file contention there could be.
I think you're wrong on both counts. The DLNA server/indexer does serve MP4 files on the HDR (like those produced from iPlayer via YouTube-DL) - if they're saved in the media directory My Video (or sub directories). While I can't find the interval for the DLNA server/indexer I suspect the trigger for the service is obviously turning the Content Share on.I don't think the DLNA server/indexer would be interested in what files FFMPEG is producing, neither is there anything to trigger it to look.
Yes, someone who actually understands! To get it to work, very large swap file, no DLNA on the file ffmpeg is writing to, lots of patience, etc.I've had exactly the same effects as bottletop when trying to download stuff. it just kills the normal operation. The last one I tried needed two reboots to complete.
Never thought about DLNA, but it seems like an obvious thing, now you mention it. I will try the next download with Content Share turned off.
Of course, it would be better if it downloaded to somewhere outside "My Video" and then moved it after the process was complete.
The bold bit will be of interest, because it's not indexed by DLNA.Content share - because I wasn't convinced it was only aswapfile / ffmpeg
interaction issue. So I looked at my tests and noticed it look longer each time I ran similar tests when increasing the swapfile size. So that implied it was a swapfile thrashing issue, as mentioned by /df. But I gave it more thought - what about file contention? I looked at DLNA/Content Sharing. So, to get it throughffmpeg fixup
ofyoutube-dl
, the user can turn off DLNA/Content Sharing or save to /media/drive1 (ifvirtual-disk2
is installed).
There is the option of not using thefixup
stage ofyoutube-dl
- quicker run time but I think the resultant mp4 will not have cue/review facility. The skip forward/backward will be there though.
A reboot is needed because the HDR gets overtaxed during the last half of the fixup process. This leads to loss of TV video and sound (both live and recordings). WebIF, telnet and ssh access will slow down drastically but not actually stop, so you can check the queue progress etc.
Who knows what wackiness goes on in the Humax code.Why do either of you think DLNA is so problematic? What does it have to do to index a file other than record its presence?
Did you read #28 ?how about downloading to a directory outside the media directories (e.g. /mod/youtube) and then moving it the actual target directory after the download and fixup is complete
If DLNA processing is causing a problem how about downloading to a directory outside the media directories (e.g. /mod/youtube) and then moving it the actual target directory after the download and fixup is complete
That was why I suggested an alternative (to switching Contect Share Off) inDid you read#236#28 ?
virtual-disk2
and output to"/media/drive1/mydir/"
(store file out of DLNA indexing reach, easy access via Humax UI eg Media-Video/Storage(blue)/USB)--fixup warn
or --fixup never
for Youtube-DL
. The result will be an MP4 without cue/review functions./mod/etc/youtube-dl.conf
-f "best[height<=?576][fps<=?60]"
(to keep file size down)-o "/media/drive1/dir1/%(title)s.%(ext)s"
(store file out of DLNA indexing reach, easy access via Humax UI eg Media-Video/Storage(blue)/USB)I suppose we'll have to put it down to lucky accident that this effect was discovered, because it makes no sense to me.Who knows what wackiness goes on in the Humax code.
Black Hole said:It strikes me this whole discussion ought to be moved into the youtube-dl thread.
Post 209 onwards, post 212 will need patching up, and delete this post.
"/media/drive1" only necessarily applies if the user doesn't have any external storage plugged in. Is there a path string which will target virtual USB unambiguously?-o "/media/drive1/dir1/%(title)s.%(ext)s"
(store file out of DLNA indexing reach, easy access via Humax UI eg Media-Video/Storage(blue)/USB)
It was a little more than blind luck. But hey.I suppose we'll have to put it down to lucky accident that this effect was discovered, because it makes no sense to me.
That's not a bad idea. But as this is a niche issue, I'm not sure it'll be worth it. Anyone wishing to download these large files and require fixup are probably better off using a pc or laptop.Perhaps we need something similar to Maintenance Mode, with settop not running but the HDD still online and WebIF operational. That will free up maximum resources, similar to running fixdisk – especially if unnecessary WebIF background processes are also suspended. I guess youtube-dl can be run on the command line in Maintenance Mode without the qtube front-end, but still needs access to the HDD.
That's also not a bad idea. But there is the small issue of - my report onIt strikes me this whole discussion ought to be moved into the youtube-dl thread.
Post 209 onwards, post 212 will need patching up, and delete this post.
Who knows what other uses a "Non-PVR Mode" could be put to? Or maybe "PC Mode".But as this is a niche issue, I'm not sure it'll be worth it.
But there is the small issue of...
...so you could have made your initial report in either thread and the discussion would have continued the same. 20/20 hindsight.There may be a bug in the interaction between qtube and youtube-dl.
Fine by me.As an alternative - maybe append it to
https://hummy.tv/forum/threads/what-is-an-malformed-aac-bitstream.11136/ rather than qtube thread?
I don't think that would be a problem either. Click "report" and describe what you want the on-duty mod to do (your call). If splitting to a new thread, supply a thread title (but as yours will become post 1, you'll have title-editing privilege).Or or maybe on a new thread of it's own with links to the other two?
Did I say "blind" luck? It takes skill to spot these things. But I still don't know how you came up with the interaction with DLNA.It's not all blind luck!
missed itDid you read#236#28?
If you are willing, try enabling a swap file and running your youtube-dl command (with fix-up) in the shell in Maintenance Mode.That's not a bad idea. But as this is a niche issue, I'm not sure it'll be worth it. Anyone wishing to download these large files and require fixup are probably better off using a pc or laptop.