Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

videos downloaded from Reddit and Twitter can' be open by a media player or browser #20370

Closed
TaktakTaktouk opened this issue Mar 16, 2019 · 4 comments
Labels

Comments

@TaktakTaktouk
Copy link

@TaktakTaktouk TaktakTaktouk commented Mar 16, 2019

I updated youtube-dl to the last version 2019.03.09. now when I download a video from Reddit or Twitter the video is saved correctly but I get an error when I try to play it with any media player or a browser. I tested that with on Mac and Linux Debian 8 also I have the last version fo FFmpeg 4.1.
Here are two examples you can test them and tell me if the video is playable or not.

youtube-dl https://www.reddit.com/r/funny/comments/b1dva5/run_bh/ -v
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'https://www.reddit.com/r/funny/comments/b1dva5/run_bh/', u'-v']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2019.03.09
[debug] Python version 2.7.10 (CPython) - Darwin-17.7.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 4.1, ffprobe 4.1, rtmpdump 2.4
[debug] Proxy map: {}
[RedditR] b1dva5: Downloading JSON metadata
[Reddit] d8jh94d2s9m21: Downloading m3u8 information
[Reddit] d8jh94d2s9m21: Downloading MPD manifest
[debug] Default format spec: bestvideo+bestaudio/best
[debug] Invoking downloader on u'https://v.redd.it/d8jh94d2s9m21/DASHPlaylist.mpd'
[download] Destination: Run B_h-d8jh94d2s9m21.mp4
[download] 100% of 1.55KiB in 00:00

youtube-dl https://twitter.com/i/status/1104329640989151233 -v
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'https://twitter.com/i/status/1104329640989151233', u'-v']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2019.03.09
[debug] Python version 2.7.10 (CPython) - Darwin-17.7.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 4.1, ffprobe 4.1, rtmpdump 2.4
[debug] Proxy map: {}
[twitter] 1104329640989151233: Downloading webpage
[twitter:card] 1104329640989151233: Downloading webpage
[twitter:card] 1104329640989151233: Downloading guest token
[twitter:card] 1104329640989151233: Downloading JSON metadata
[twitter:card] 1104329640989151233: Downloading m3u8 information
[debug] Default format spec: bestvideo+bestaudio/best
[debug] Invoking downloader on u'https://video.twimg.com/ext_tw_video/1104329606486728706/pu/pl/384x480/Lq0DeYPGw6OBkYEB.m3u8'
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 3
[download] Destination: i Love Gifs - A pack of rare land dolphins-1104329640989151233.mp4
[download] 100% of 833.70KiB in 00:01
[debug] ffmpeg command line: ffprobe -show_streams 'file:i Love Gifs - A pack of rare land dolphins-1104329640989151233.mp4'

@dstftw dstftw closed this Mar 16, 2019
@dstftw dstftw added the duplicate label Mar 16, 2019
@TaktakTaktouk
Copy link
Author

@TaktakTaktouk TaktakTaktouk commented Mar 16, 2019

I really need to know if this is an issue of youtube-dl or the problem is me.

@Hrxn
Copy link

@Hrxn Hrxn commented Mar 16, 2019

That twitter link seems to work for me, using the correct link:

PS D:\Test> youtube-dl --ignore-config --verbose 'https://twitter.com/AyLoveGifs/status/1104329640989151233'
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--ignore-config', '--verbose', 'https://twitter.com/AyLoveGifs/status/1104329640989151233']
[debug] Encodings: locale cp1252, fs utf-8, out utf-8, pref cp1252
[debug] youtube-dl version 2019.03.09
[debug] Python version 3.7.0 (CPython) - Windows-10-10.0.17134-SP0
[debug] exe versions: ffmpeg 4.1.1, ffprobe 4.1.1
[debug] Proxy map: {}
[twitter] 1104329640989151233: Downloading webpage
[twitter:card] 1104329640989151233: Downloading webpage
[twitter:card] 1104329640989151233: Downloading guest token
[twitter:card] 1104329640989151233: Downloading JSON metadata
[twitter:card] 1104329640989151233: Downloading m3u8 information
[debug] Default format spec: bestvideo+bestaudio/best
[debug] Invoking downloader on 'https://video.twimg.com/ext_tw_video/1104329606486728706/pu/pl/384x480/Lq0DeYPGw6OBkYEB.m3u8'
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 3
[download] Destination: i Love Gifs - A pack of rare land dolphins-1104329640989151233.mp4
[download] 100% of 833.70KiB in 00:01
[debug] ffmpeg command line: ffprobe -show_streams "file:i Love Gifs - A pack of rare land dolphins-1104329640989151233.mp4"
PS D:\Test> ffprobe '.\i Love Gifs - A pack of rare land dolphins-1104329640989151233.mp4'
ffprobe version 4.1.1 Copyright (c) 2007-2019 the FFmpeg developers
  built with gcc 8.2.1 (GCC) 20190212
  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth
  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
  libswscale      5.  3.100 /  5.  3.100
  libswresample   3.  3.100 /  3.  3.100
  libpostproc    55.  3.100 / 55.  3.100
Input #0, mpegts, from '.\i Love Gifs - A pack of rare land dolphins-1104329640989151233.mp4':
  Duration: 00:00:09.80, start: 3.000000, bitrate: 696 kb/s
  Program 1
    Metadata:
      service_name    : 2.4.28
      service_provider: Vireo
    Stream #0:0[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(progressive), 384x480, 30 fps, 30 tbr, 90k tbn, 60 tbc
PS D:\Test> mpv --volume=20 '.\i Love Gifs - A pack of rare land dolphins-1104329640989151233.mp4'
Playing: .\i Love Gifs - A pack of rare land dolphins-1104329640989151233.mp4
 (+) Video --vid=1 (h264 384x480 30.000fps)
VO: [gpu] 384x480 yuv420p
V: 00:00:09.766 / 00:00:09.800 (99%)

But same result for that reddit link, it seems:

PS D:\Test> youtube-dl --ignore-config --verbose 'https://v.redd.it/d8jh94d2s9m21'
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--ignore-config', '--verbose', 'https://v.redd.it/d8jh94d2s9m21']
[debug] Encodings: locale cp1252, fs utf-8, out utf-8, pref cp1252
[debug] youtube-dl version 2019.03.09
[debug] Python version 3.7.0 (CPython) - Windows-10-10.0.17134-SP0
[debug] exe versions: ffmpeg 4.1.1, ffprobe 4.1.1
[debug] Proxy map: {}
[Reddit] d8jh94d2s9m21: Downloading m3u8 information
[Reddit] d8jh94d2s9m21: Downloading MPD manifest
[debug] Default format spec: bestvideo+bestaudio/best
[debug] Invoking downloader on 'https://v.redd.it/d8jh94d2s9m21/DASHPlaylist.mpd'
[download] Destination: d8jh94d2s9m21-d8jh94d2s9m21.mp4
[download] 100% of 1.55KiB in 00:00
PS D:\Test> cat .\d8jh94d2s9m21-d8jh94d2s9m21.mp4
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<MPD mediaPresentationDuration="PT14.767S" minBufferTime="PT1.500S" profiles="urn:mpeg:dash:profile:isoff-on-demand:2011" type="static" xmlns="urn:mpeg:dash:schema:mpd:2011">
    <Period duration="PT14.767S">
        <AdaptationSet segmentAlignment="true" subsegmentAlignment="true" subsegmentStartsWithSAP="1">
            <Representation bandwidth="1100551" codecs="avc1.4d401f" frameRate="30" height="480" id="VIDEO-1" mimeType="video/mp4" startWithSAP="1" width="480">
                <BaseURL>DASH_480</BaseURL>
                <SegmentBase indexRange="918-997" indexRangeExact="true">
                    <Initialization range="0-917"/>
                </SegmentBase>
            </Representation>
            <Representation bandwidth="726835" codecs="avc1.4d401e" frameRate="30" height="360" id="VIDEO-2" mimeType="video/mp4" startWithSAP="1" width="360">
                <BaseURL>DASH_360</BaseURL>
                <SegmentBase indexRange="919-998" indexRangeExact="true">
                    <Initialization range="0-918"/>
                </SegmentBase>
            </Representation>
            <Representation bandwidth="596084" codecs="avc1.4d401e" frameRate="30" height="240" id="VIDEO-3" mimeType="video/mp4" startWithSAP="1" width="240">
                <BaseURL>DASH_240</BaseURL>
                <SegmentBase indexRange="917-996" indexRangeExact="true">
                    <Initialization range="0-916"/>
                </SegmentBase>
            </Representation>
        </AdaptationSet>
    </Period>
</MPD>
PS D:\Test>
@TaktakTaktouk
Copy link
Author

@TaktakTaktouk TaktakTaktouk commented Mar 16, 2019

I tried again with the direct link form Twitter but still getting the same problem. you used which media player to test the videos?
Capture d’écran 2019-03-16 à 18 40 07

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.