0

Can anyone please tell me what I am doing wrong, if anything?

I tried using youtube-dl to download a video from twitch, but it downloaded incorrectly, ultimately, I was only able to download the full video only, then the full audio only, into two .mp4 files. When attempting to merge, I end up with just the video in the output. Video is a few seconds shorter but what I understand from the documentation is that this is OK, video will be blank until end of audio.

I used the command: ffmpeg -i v.mp4 -i a.mp4 -c:v copy -c:a copy out.mp4 and ffmpeg -i v.mp4 -i a.mp4 -c copy -map 0:v:0 -map 1:a:0 out.mp4

The latter of the two produced the following output:

C:\Users\Anon\Desktop\Youtube-dl\ffmpeg\bin>ffmpeg -i d:\v.mp4 -i d:\a.mp4 -c copy -map 0:v:0 -map 1:a:0 out.mp4 ffmpeg version N-94174-gfeade2b403 Copyright (c) 2000-2019 the FFmpeg developers

built with gcc 9.1.1 (GCC) 20190621 configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfi g --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libb luray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enab le-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --e nable-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 --enab le-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --en able-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --en able-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --e nable-dxva2 --enable-avisynth --enable-libopenmpt libavutil 56. 30.100 / 56. 30.100 libavcodec 58. 53.101 / 58. 53.101 libavformat 58. 28.101 / 58. 28.101 libavdevice 58. 7.100 / 58. 7.100 libavfilter 7. 56.100 / 7. 56.100 libswscale 5. 4.101 / 5. 4.101 libswresample 3. 4.100 / 3. 4.100 libpostproc 55. 4.100 / 55. 4.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'd:\v.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf58.26.101 Duration: 42:24:45.68, start: 0.000000, bitrate: 6948 kb/s Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080 , 6801 kb/s, 59.98 fps, 60 tbr, 90k tbn, 120 tbc (default) Metadata: handler_name : VideoHandler Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, flt p, 128 kb/s (default) Metadata: handler_name : SoundHandler Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'd:\a.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2mp41 encoder : Lavf58.28.101 Duration: 42:24:47.21, start: 0.000000, bitrate: 194 kb/s Stream #1:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, flt p, 192 kb/s (default) Metadata: handler_name : SoundHandler Output #0, mp4, to 'out.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf58.28.101 Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080 , q=2-31, 6801 kb/s, 59.98 fps, 60 tbr, 90k tbn, 90k tbc (default) Metadata: handler_name : VideoHandler Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, flt p, 192 kb/s (default) Metadata: handler_name : SoundHandler Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #1:0 -> #0:1 (copy) Press [q] to stop, [?] for help frame=26882 fps=0.0 q=-1.0 size= 382976kB time=00:07:28.02 bitrate=7002.7kbits/ frame=30482 fps=30359 q=-1.0 size= 434176kB time=00:08:28.01 bitrate=7001.4kbit frame=34081 fps=22509 q=-1.0 size= 485376kB time=00:09:28.00 bitrate=7000.4kbit frame=36241 fps=17985 q=-1.0 size= 516096kB time=00:10:04.01 bitrate=6999.6kbit frame=39043 fps=15505 q=-1.0 size= 555776kB time=00:10:50.70 bitrate=6996.9kbit frame=40348 fps=14555 q=-1.0 Lsize= 575664kB time=00:11:12.44 bitrate=7012.9kbi ts/s speed= 243x

*this is where I cancelled as it would have ran over an hour. No errors at the end of any processing.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.