Error trying to play youtube video or mp3 file.
I have tried playing a youtube video with the Youtube struct and I even tried to just run the sample in the repo to see if it was something I was doing wrong. What it seems to me after a bit of debugging is that the process for running ffmpeg is not working correctly saving the file. I have verified I have yotube-dl and ffmpeg installed in the correct locations. This is not working on ubuntu or osx. It gives me an error on linux that says:
ffmpeg -i IN\ THIS\ MOMENT\ -\ Blood\ \(OFFICIAL\ VIDEO\)-5ZF5m-vmDzM.webm -f webm -
ffmpeg version 2.8.11-0ubuntu0.16.04.1 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609
configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv
libavutil 54. 31.100 / 54. 31.100
libavcodec 56. 60.100 / 56. 60.100
libavformat 56. 40.101 / 56. 40.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 40.101 / 5. 40.101
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.101 / 1. 2.101
libpostproc 53. 3.100 / 53. 3.100
Input #0, matroska,webm, from 'IN THIS MOMENT - Blood (OFFICIAL VIDEO)-5ZF5m-vmDzM.webm':
Metadata:
encoder : google
Duration: 00:03:28.04, start: 0.007000, bitrate: 128 kb/s
Stream #0:0(eng): Audio: opus, 48000 Hz, stereo, fltp (default)
[libopus @ 0x1a07880] No bit rate set. Defaulting to 96000 bps.
Eߣ BBBBwebmBBSgMt@MSIfSMSTkS0 If E*ױ[email protected]+i Mx5N k Tk b YׁsŁ "engA_OPUSVc.VĴ @p bd cOpusHead8 Output #0, webm, to 'pipe:':
Metadata:
encoder : Lavf56.40.101
Stream #0:0(eng): Audio: opus (libopus), 48000 Hz, stereo, flt, 96 kb/s (default)
Metadata:
encoder : Lavc56.60.100 libopus
Stream mapping:
Stream #0:0 -> #0:0 (opus (native) -> opus (libopus))
Press [q] to stop, [?] for help
av_interleaved_write_frame(): Input/output error
size= 11kB time=00:00:01.01 bitrate= 86.0kbits/s
video:0kB audio:10kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 8.389662%
Conversion failed!
It also gives me an error on osx when trying to run the process.
Thanks!
I have also tried multiple version of the library all the way down to 0.6 and up to the dev branch for swift 4. Maybe I just have a wrong youtube-dl or ffmpeg version installed? Or some modification needs done to the library. Also ubuntu was giving me an error that said: "Cannot convert from Int to UInt32"
Thanks! (ps the discord link does not work anymore, would love an updated one so I can ask questions in there :P)
https://discord.gg/99a3xNk sorry there was an issue that wiped invites.