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

ffmpeg error: ERROR: To ignore this, add a trailing '?' to the map #7786

Closed
kim0 opened this issue Dec 7, 2015 · 3 comments
Closed

ffmpeg error: ERROR: To ignore this, add a trailing '?' to the map #7786

kim0 opened this issue Dec 7, 2015 · 3 comments

Comments

@kim0
Copy link

@kim0 kim0 commented Dec 7, 2015

Just hit this today. Any advice?

$ youtube-dl 'https://www.youtube.com/playlist?list=PLBBA04BF566F0E0D6' -f 247+242
[youtube:playlist] PLBBA04BF566F0E0D6: Downloading webpage
[download] Downloading playlist: Active Directory 70-640 Free Course
[youtube:playlist] playlist Active Directory 70-640 Free Course: Downloading 72 videos
[download] Downloading video 1 of 72
[youtube] OTpbQkW3kj4: Downloading webpage
[youtube] OTpbQkW3kj4: Downloading video info webpage
[youtube] OTpbQkW3kj4: Extracting video information
[youtube] OTpbQkW3kj4: Downloading DASH manifest
[youtube] OTpbQkW3kj4: Downloading DASH manifest
[download] MCITP 70-640 - Introduction To Active Directory-OTpbQkW3kj4.f247.webm has already been downloaded
[download] 100% of 17.26MiB
[download] MCITP 70-640 - Introduction To Active Directory-OTpbQkW3kj4.f242.webm has already been downloaded
[download] 100% of 3.90MiB
[ffmpeg] Merging formats into "MCITP 70-640 - Introduction To Active Directory-OTpbQkW3kj4.webm"
ERROR: To ignore this, add a trailing '?' to the map.

Trying to run ffmpeg command line myself, I got the below

$ ffmpeg -y -i 'file:MCITP 70-640 - Introduction To Active Directory-OTpbQkW3kj4.f247.webm' -i 'file:MCITP 70-640 - Introduction To Active Directory-OTpbQkW3kj4.f242.webm' -c copy -map 0:v:0 -map 1:a:0 'file:MCITP 70-640 - Introduction To Active Directory-OTpbQkW3kj4.temp.webm'
ffmpeg version 2.8.2 Copyright (c) 2000-2015 the FFmpeg developers
  built with Apple LLVM version 7.0.0 (clang-700.1.76)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/2.8.2 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-opencl --enable-libx264 --enable-libmp3lame --enable-libvo-aacenc --enable-libxvid --enable-libfdk-aac --enable-nonfree --enable-vda
  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 'file:MCITP 70-640 - Introduction To Active Directory-OTpbQkW3kj4.f247.webm':
  Metadata:
    encoder         : google
  Duration: 00:08:47.44, start: 0.000000, bitrate: 274 kb/s
    Stream #0:0(eng): Video: vp9 (Profile 0), yuv420p(tv), 1280x720, SAR 1:1 DAR 16:9, 25 fps, 25 tbr, 1k tbn, 1k tbc (default)
Input #1, matroska,webm, from 'file:MCITP 70-640 - Introduction To Active Directory-OTpbQkW3kj4.f242.webm':
  Metadata:
    encoder         : google
  Duration: 00:08:47.44, start: 0.000000, bitrate: 61 kb/s
    Stream #1:0(eng): Video: vp9 (Profile 0), yuv420p(tv), 426x240, SAR 1:1 DAR 71:40, 25 fps, 25 tbr, 1k tbn, 1k tbc (default)
Stream map '1:a:0' matches no streams.
To ignore this, add a trailing '?' to the map.
@dstftw
Copy link
Collaborator

@dstftw dstftw commented Dec 7, 2015

You are requesting to merge two video formats:

242          webm       426x240    DASH video  134k , vp9, 1fps, video only, 3.90MiB
247          webm       1280x720   DASH video 1001k , vp9, 1fps, video only, 17.26MiB
@dstftw dstftw closed this Dec 7, 2015
dstftw added a commit that referenced this issue Dec 7, 2015
@theltalpha
Copy link

@theltalpha theltalpha commented Nov 7, 2018

Hallo!

I hit the same problem, but I am quite sure I am trying to merge video and audio.

$ youtube-dl -f 137+398 "https://www.youtube.com/watch?v=vZPOiMzUBCE"
[youtube] vZPOiMzUBCE: Downloading webpage
[youtube] vZPOiMzUBCE: Downloading video info webpage
WARNING: Unknown codec av01.0.05M.08
WARNING: Unknown codec av01.0.05M.08
WARNING: Unknown codec av01.0.05M.08
WARNING: Unknown codec av01.0.05M.08
WARNING: Unknown codec av01.0.05M.08
[download] Destination: DJ Snake - Taki Taki (ft. Cardi B, Selena Gomez, Ozuna) (Letra) (Lyrics)-vZPOiMzUBCE.f137.mp4
[download] 100% of 5.91MiB in 00:06
[download] Destination: DJ Snake - Taki Taki (ft. Cardi B, Selena Gomez, Ozuna) (Letra) (Lyrics)-vZPOiMzUBCE.f398.mp4
[download] 100% of 3.53MiB in 00:07
[ffmpeg] Merging formats into "DJ Snake - Taki Taki (ft. Cardi B, Selena Gomez, Ozuna) (Letra) (Lyrics)-vZPOiMzUBCE.mp4"
ERROR: To ignore this, add a trailing '?' to the map.
137          mp4        1920x1080  1080p  380k , avc1.640028, 30fps, video only, 5.91MiB
398          mp4        audio only 720p  243k , 30fps, 3.53MiB

Is the "unknown codec" the problem?

ffmpeg on the command line says the following:

$ ffmpeg -y -i 'file:DJ Snake - Taki Taki (ft. Cardi B, Selena Gomez, Ozuna) (Letra) (Lyrics)-vZPOiMzUBCE.f248.webm' -i 'file:DJ Snake - Taki Taki (ft. Cardi B, Selena Gomez, Ozuna) (Letra) (Lyrics)-vZPOiMzUBCE.f398.mp4' -c copy -map 0:v:0 -map 1:a:0 'file:DJ Snake - Taki Taki (ft. Cardi B, Selena Gomez, Ozuna) (Letra) (Lyrics)-vZPOiMzUBCE.temp.mkv'
ffmpeg version 3.4.4-0ubuntu0.18.04.1 Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 7 (Ubuntu 7.3.0-16ubuntu3)
  configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --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-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --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-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
  WARNING: library configuration mismatch
  avcodec     configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --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-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --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-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared --enable-version3 --disable-doc --disable-programs --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libtesseract --enable-libvo_amrwbenc
  libavutil      55. 78.100 / 55. 78.100
  libavcodec     57.107.100 / 57.107.100
  libavformat    57. 83.100 / 57. 83.100
  libavdevice    57. 10.100 / 57. 10.100
  libavfilter     6.107.100 /  6.107.100
  libavresample   3.  7.  0 /  3.  7.  0
  libswscale      4.  8.100 /  4.  8.100
  libswresample   2.  9.100 /  2.  9.100
  libpostproc    54.  7.100 / 54.  7.100
Input #0, matroska,webm, from 'file:DJ Snake - Taki Taki (ft. Cardi B, Selena Gomez, Ozuna) (Letra) (Lyrics)-vZPOiMzUBCE.f248.webm':
  Metadata:
    encoder         : google/video-file
  Duration: 00:03:32.37, start: 0.000000, bitrate: 252 kb/s
    Stream #0:0(eng): Video: vp9 (Profile 0), yuv420p(tv, bt709), 1920x1080, SAR 1:1 DAR 16:9, 30 fps, 30 tbr, 1k tbn, 1k tbc (default)
Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'file:DJ Snake - Taki Taki (ft. Cardi B, Selena Gomez, Ozuna) (Letra) (Lyrics)-vZPOiMzUBCE.f398.mp4':
  Metadata:
    major_brand     : dash
    minor_version   : 0
    compatible_brands: iso6av01mp41
    creation_time   : 2018-10-25T20:09:44.000000Z
  Duration: 00:03:32.37, start: 0.000000, bitrate: 139 kb/s
    Stream #1:0(und): Video: av1 (av01 / 0x31307661), none, 1280x720, 2 kb/s, 30 fps, 30 tbr, 15360 tbn, 15360 tbc (default)
    Metadata:
      creation_time   : 2018-10-25T20:09:44.000000Z
      handler_name    : ISO Media file produced by Google Inc. Created on: 10/25/2018.
Stream map '1:a:0' matches no streams.
To ignore this, add a trailing '?' to the map.
@lopuhin
Copy link

@lopuhin lopuhin commented Nov 24, 2018

Hit the same error, as a word-around you can first list the formats by adding -F key, and then choose another format for download with -f, e.g. which does not have "video-only".

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
4 participants
You can’t perform that action at this time.