Re: youtube-dl

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/28/2016 03:57 AM, Zoltan Hoppar wrote:
> Hi Jd,
> 
> Did you checked the older version? Downgrade perhaps to avoid bogus version?

Youtube (like most streaming services) take a VOD (video on demand)
asset file and breaks it into fragments based on either a time period
or fragment size. Ordinarily, your player code downloads a fragment and
plays it. While it's playing, the next fragment in sequence is
downloaded in the background and played when the first completes and
this cycle is completed. Technically this is called "progressive
download". When you see a video "buffering" or whatever, that's caused
by a delay in getting those fragments to you and you're seeing the
player waiting for them to appear.

What you're doing with the utility is downloading those individual
fragments rather than playing them in sequence. You can use a tool like
ffmpeg to concatenate those fragments back into a single asset file by
doing something like:

	$ cd /directory/where/you/downloaded/to
	$ ls -1 *.part-Frag* | \
	    awk '{print "file \x27"$1"\x27"}' >/tmp/chnklst.txt
	$ ffmpeg -f concat -i /tmp/chklst.txt -copyinkf -c:v copy \
	    -copyts -c:a libfdk_aac -avoid_negative_ts 1 \
	    -movflags faststart -f mp4 /output/directory/filename.mp4

That would concatenate all the chunks into a single file called
/output/directory/filename.mp4 (the options I'm using utilize the same
video encoder that was used on the original and converts the audio to
AAC, see the ffmpeg documentation for the gory details). Yes, it's
convoluted but that's what you do to reassemble the chunks.

YMMV

> 2016-10-28 5:22 GMT+02:00 jd1008 <jd1008@xxxxxxxxx>:
>> A new strange behavior of this util.
>> When downloading a format of the file that is pure video (i.e. no audio)
>> I end up with tens of small files each one labeled by the name of the listed
>> movie
>> appended with  .part-FragN   where N ranges from 0 to more than 200
>> sometimes.
>> I updated youtube-dl by running youtube-dl -U and retried. It does the same
>> thing.
>> After it finished getting all the fragments, it does not catenate them into
>> a single
>> video file.
>> How can I get around this problem?
>> Thanx!!
>> _______________________________________________
>> users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
>> To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
> 
> 
> 


-- 
----------------------------------------------------------------------
- Rick Stevens, Systems Engineer, AllDigital    ricks@xxxxxxxxxxxxxx -
- AIM/Skype: therps2        ICQ: 226437340           Yahoo: origrps2 -
-                                                                    -
-                       When in doubt, mumble.                       -
----------------------------------------------------------------------
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux