Unknown decoder 'copy' on ubuntu trusty

1,095 views
Skip to first unread message

nighttrain

unread,
Apr 9, 2015, 12:51:50 PM4/9/15
to video-download...@googlegroups.com
hi guys,

(ubuntu 14.04 64 bit, firefox 37.0.1, video downloadhelper 5.1.2)

if i click on link adp 1920x1080 mp4,
then i have not achieve expected outcome, because error message:

ffmpeg version 2.6.1 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
  configuration: --prefix=/usr --extra-version= --build-suffix=-ffmpeg --toolchain=hardened --extra-cflags= --extra-cxxflags= --libdir=/usr/lib/x86_64-linux-gnu --shlibdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --enable-shared --disable-stripping --enable-avresample --enable-avisynth --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-libschroedinger --enable-libshine --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libwavpack --enable-libwebp --enable-libxvid --enable-opengl --enable-nonfree --enable-libfdk-aac --enable-libvo_aacenc --enable-version3 --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzvbi --enable-libzmq --enable-frei0r --enable-libvpx --enable-libx264 --enable-libsoxr --enable-gnutls --enable-openal --enable-libopencv --enable-librtmp --enable-libx265
  libavutil      54. 20.100 / 54. 20.100
  libavcodec     56. 26.100 / 56. 26.100
  libavformat    56. 25.101 / 56. 25.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 11.102 /  5. 11.102
  libavresample   2.  1.  0 /  2.  1.  0
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/tmp/user/1000/media.tmp':
  Metadata:
    major_brand     : dash
    minor_version   : 0
    compatible_brands: iso6mp41
    creation_time   : 2014-01-13 09:49:41
  Duration: 00:02:41.61, start: 0.000000, bitrate: 127 kb/s
    Stream #0:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default)
    Metadata:
      creation_time   : 2014-01-13 09:49:41
      handler_name    : SoundHandler
Unknown decoder 'copy'


but if i download the single files: media.mp4 & media.tmp
(i have renamed video.mp4 & audio.m4a)
and i run the command:
ffmpeg -i video.mp4 -i audio.m4a -acodec copy -vcodec copy output.mp4
then all it's ok!

ffmpeg version 2.6.1 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
  configuration: --prefix=/usr --extra-version= --build-suffix=-ffmpeg --toolchain=hardened --extra-cflags= --extra-cxxflags= --libdir=/usr/lib/x86_64-linux-gnu --shlibdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --enable-shared --disable-stripping --enable-avresample --enable-avisynth --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-libschroedinger --enable-libshine --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libwavpack --enable-libwebp --enable-libxvid --enable-opengl --enable-nonfree --enable-libfdk-aac --enable-libvo_aacenc --enable-version3 --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzvbi --enable-libzmq --enable-frei0r --enable-libvpx --enable-libx264 --enable-libsoxr --enable-gnutls --enable-openal --enable-libopencv --enable-librtmp --enable-libx265
  libavutil      54. 20.100 / 54. 20.100
  libavcodec     56. 26.100 / 56. 26.100
  libavformat    56. 25.101 / 56. 25.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 11.102 /  5. 11.102
  libavresample   2.  1.  0 /  2.  1.  0
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'video.mp4':
  Metadata:
    major_brand     : dash
    minor_version   : 0
    compatible_brands: iso6avc1mp41
    creation_time   : 2014-01-13 09:50:48
  Duration: 00:02:41.53, start: 0.000000, bitrate: 2008 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080, 2005 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc (default)
    Metadata:
      creation_time   : 2014-01-13 09:50:48
      handler_name    : VideoHandler
Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'audio.m4a':
  Metadata:
    major_brand     : dash
    minor_version   : 0
    compatible_brands: iso6mp41
    creation_time   : 2014-01-13 09:49:41
  Duration: 00:02:41.61, start: 0.000000, bitrate: 127 kb/s
    Stream #1:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default)
    Metadata:
      creation_time   : 2014-01-13 09:49:41
      handler_name    : SoundHandler
Output #0, mp4, to 'output.mp4':
  Metadata:
    major_brand     : dash
    minor_version   : 0
    compatible_brands: iso6avc1mp41
    encoder         : Lavf56.25.101
    Stream #0:0(und): Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1920x1080, q=2-31, 2005 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 90k tbc (default)
    Metadata:
      creation_time   : 2014-01-13 09:50:48
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz, stereo, 125 kb/s (default)
    Metadata:
      creation_time   : 2014-01-13 09:49:41
      handler_name    : SoundHandler
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #1:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame= 4841 fps=0.0 q=-1.0 Lsize=   42171kB time=00:02:41.61 bitrate=2137.6kbits/s   
video:39543kB audio:2478kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.357460%


i followed ffmpeg recommendation:

When you specify a codec option before "-i", you tell ffmpeg how to decode the input.
"copy" cannot be used as a decoder.
You can only use it as an encoder.

So, this is okay:
ffmpeg -i input -c:v copy output

This is not okay:
ffmpeg -c:v copy -i input output


 What is wrong in video downloadhelper?

thanks!

mig

unread,
Apr 9, 2015, 5:19:41 PM4/9/15
to video-download...@googlegroups.com
Yes, someone reported that issue (https://groups.google.com/d/msg/video-downloadhelper-q-and-a/pGN8YYpns3k/Gy7PlS50x54J) and also success with the fix in the latest dev version https://groups.google.com/forum/#!topic/video-downloadhelper-5/FLFioS-AOEY

Note that if you use libav instead of ffmpeg on ubuntu 14.04, it will work straight away.

nighttrain

unread,
Apr 11, 2015, 12:35:20 PM4/11/15
to video-download...@googlegroups.com
hi mig

i have installed ffmpeg (from ppa updated), for problems with other applications, and /usr/bin/avconv is a link to /usr/bin/ffmpeg

i have tested Video DownloadHelper 5.2.0a4, and it works, but conversion process hangs cpu 100%, then after 15 min. i get the result: name-video.mp4

furthermore, the video file is 59,3 MB (media.mp4 40,6 MB + media.tmp 2,6 MB), whereas, with the manual command into terminal, the video file is 43,2 MB and the conversion lasts less than 1 second!

See you there.

mig

unread,
Apr 11, 2015, 12:41:49 PM4/11/15
to video-download...@googlegroups.com
Can you open VDH Settings > "Conversion", check "Advanced" then uncheck "Force H264 tuning in aggregation" ?

This is a fix for a Windows player problem, you probably don't need this on Linux and it will be much faster.

nighttrain

unread,
Apr 11, 2015, 1:06:46 PM4/11/15
to video-download...@googlegroups.com
mind-blowing mig!

now all it's ok

many, many thanks

good job

nighttrain

unread,
Apr 12, 2015, 11:29:34 AM4/12/15
to video-download...@googlegroups.com
excuse me, mig

but dev extension is not auto update?

mig

unread,
Apr 12, 2015, 11:46:05 AM4/12/15
to video-download...@googlegroups.com
No, only public releases that are on addons.mozilla.org are auto-updated. This is all handled by Firefox.

Dev versions must be installed manually.

nighttrain

unread,
Apr 12, 2015, 11:48:29 AM4/12/15
to video-download...@googlegroups.com
ok, thank you

nighttrain

unread,
Apr 12, 2015, 5:16:45 PM4/12/15
to video-download...@googlegroups.com
hi mig

i have found a few inaccuracies into italian translation


i took the liberty of to correct those more evident (see attachment)

i append also the new it.json

i hope to have been a help to you

bye
Menu_001.png
it.json-new

mig

unread,
Apr 12, 2015, 5:24:12 PM4/12/15
to video-download...@googlegroups.com
That's very kind, thanks !

However, please could you register as an Italian translator to Babelzilla and make your changes there ? http://www.babelzilla.org/index.php?option=com_wts&Itemid=0&type=show&extension=4986

The point is that handling translations from within the addon is not manageable (we've tried a few years ago). Now, we upload special versions of the add-on in english-only to Babelzilla, and when we are about to make a release, we download what translators have done. So we are sure not to miss anything.

Thanks.

nighttrain

unread,
Apr 18, 2015, 2:00:52 PM4/18/15
to video-download...@googlegroups.com
hi mig

i'm sorry, i have tried to register me at babelzilla site, but i have always gotten an error message:

Registration failed.

Something is wrong with your supplied details.

Please remember that we don't accept temporary email addresses


i have emailed site...@babelzilla.org and postm...@babelzilla.org, but i have not received an answer.

however, if it is a pleasure for you, i send you the file adjourned of the translation in italian of the 5.3.0a2

are you in contact with those of babelzilla?

thank you
it.json-new-5-3-0-a2

mig

unread,
Apr 18, 2015, 5:55:30 PM4/18/15
to video-download...@googlegroups.com
I forwarded your message to an admin at Babelzilla i know is highly efficient. You are in cc.
Reply all
Reply to author
Forward
0 new messages