Skip to content

Instantly share code, notes, and snippets.

@anildigital
Last active January 22, 2018 16:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anildigital/8b428c4e2d4d4e48b41ffb022494794d to your computer and use it in GitHub Desktop.
Save anildigital/8b428c4e2d4d4e48b41ffb022494794d to your computer and use it in GitHub Desktop.
$ ffmpeg -i 4485.mp4 -i 4485.opus -strict -2 -acodec copy output_yes.mp4
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
[h264 @ 0x16e4520] non-existing PPS 0 referenced
[h264 @ 0x16e4520] decode_slice_header error
[h264 @ 0x16e4520] no frame!
[h264 @ 0x16e4520] non-existing PPS 0 referenced
[h264 @ 0x16e4520] decode_slice_header error
[h264 @ 0x16e4520] no frame!
[h264 @ 0x16e4520] non-existing PPS 0 referenced
[h264 @ 0x16e4520] decode_slice_header error
[h264 @ 0x16e4520] no frame!
[h264 @ 0x16e4520] non-existing PPS 0 referenced
[h264 @ 0x16e4520] decode_slice_header error
[h264 @ 0x16e4520] no frame!
[h264 @ 0x16e4520] non-existing PPS 0 referenced
[h264 @ 0x16e4520] decode_slice_header error
[h264 @ 0x16e4520] no frame!
[h264 @ 0x16e4520] non-existing PPS 0 referenced
[h264 @ 0x16e4520] decode_slice_header error
[h264 @ 0x16e4520] no frame!
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '4485.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf56.40.101
Duration: 00:00:07.50, start: 0.000000, bitrate: 93 kb/s
Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 320x180, 90 kb/s, 29.85 fps, 30 tbr, 90k tbn, 180k tbc (default)
Metadata:
handler_name : VideoHandler
Input #1, ogg, from '4485.opus':
Duration: 00:00:06.88, start: 0.020000, bitrate: 29 kb/s
Stream #1:0: Audio: opus, 48000 Hz, stereo, fltp
[libx264 @ 0x1710e00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
[libx264 @ 0x1710e00] profile High, level 1.3
[libx264 @ 0x1710e00] 264 - core 148 r2643 5c65704 - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=1 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
[mp4 @ 0x170fb80] Codec for stream 1 does not use global headers but container format requires global headers
[mp4 @ 0x170fb80] Could not find tag for codec opus in stream #1, codec not currently supported in container
Output #0, mp4, to 'output_yes.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf56.40.101
Stream #0:0(und): Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 320x180, q=-1--1, 30 fps, 15360 tbn, 30 tbc (default)
Metadata:
handler_name : VideoHandler
encoder : Lavc56.60.100 libx264
Stream #0:1: Audio: opus, 48000 Hz, stereo
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
Stream #1:0 -> #0:1 (copy)
Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment