Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: Where/how to get up-to-date ffmpeg onto ubuntu 16.04 desktop ?

  1. #11
    Join Date
    Jun 2007
    Beans
    17,306

    Re: Where/how to get up-to-date ffmpeg onto ubuntu 16.04 desktop ?

    Well till something better comes along maybe try mp4 > mkv, seems to work here ok. Before was trying a mpeg from hubble telescope so it didn't have audio. That went ok as far as avi > mkv. Just tried this sample with both a/v & the avi to mkv failed as you've seen.
    Code:
    wget http://samples.mplayerhq.hu/MPEG1/zelda%20first%20commercial.mpeg
    ex. here,.mpeg to .mp4 to .mkv

    Code:
    ~$ ffmpeg2 -i '/home/doug/zelda first commercial.mpeg' -c copy 1.mp4
    ffmpeg version N-80283-g84efdab Copyright (c) 2000-2016 the FFmpeg developers
      built with gcc 5.3.1 (Ubuntu 5.3.1-14ubuntu2.1) 20160413
      configuration: --extra-libs=-ldl --prefix=/opt/ffmpeg --enable-avresample --disable-debug --enable-nonfree --enable-gpl --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --disable-decoder=amrnb --disable-decoder=amrwb --enable-libpulse --enable-libfreetype --enable-gnutls --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-libvorbis --enable-libmp3lame --enable-libopus --enable-libvpx --enable-libspeex --enable-libass --enable-avisynth --enable-libsoxr --enable-libxvid --enable-libvidstab
      libavutil      55. 24.100 / 55. 24.100
      libavcodec     57. 46.100 / 57. 46.100
      libavformat    57. 37.101 / 57. 37.101
      libavdevice    57.  0.101 / 57.  0.101
      libavfilter     6. 46.101 /  6. 46.101
      libavresample   3.  0.  0 /  3.  0.  0
      libswscale      4.  1.100 /  4.  1.100
      libswresample   2.  0.101 /  2.  0.101
      libpostproc    54.  0.100 / 54.  0.100
    Input #0, mpeg, from '/home/doug/zelda first commercial.mpeg':
      Duration: 00:00:29.80, start: 0.070267, bitrate: 690 kb/s
        Stream #0:0[0x1e0]: Video: mpeg1video, yuv420p(tv), 160x120 [SAR 1:1 DAR 4:3], 614 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 29.97 tbc
        Stream #0:1[0x1c0]: Audio: mp2, 44100 Hz, mono, s16p, 64 kb/s
    [mp4 @ 0x3b10ae0] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
        Last message repeated 1 times
    Output #0, mp4, to '1.mp4':
      Metadata:
        encoder         : Lavf57.37.101
        Stream #0:0: Video: mpeg1video (j[0][0][0] / 0x006A), yuv420p(tv), 160x120 [SAR 1:1 DAR 4:3], q=2-31, 614 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 90k tbc
        Stream #0:1: Audio: mp2 (i[0][0][0] / 0x0069), 44100 Hz, mono, 64 kb/s
    Stream mapping:
      Stream #0:0 -> #0:0 (copy)
      Stream #0:1 -> #0:1 (copy)
    Press [q] to stop, [?] for help
    [mp4 @ 0x3b10ae0] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
    [mp4 @ 0x3b10ae0] pts has no value
        Last message repeated 144 times
    [mp4 @ 0x3b10ae0] pts has no value
    frame=  894 fps=0.0 q=-1.0 Lsize=    2498kB time=00:00:29.77 bitrate= 687.3kbits/s speed=2.26e+03x    
    video:2241kB audio:233kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.021057%
    
    doug@doug-Lenovo-IdeaPad-Y510P:~$ ffmpeg2 -i 1.mp4 -c copy 1.mkv
    ffmpeg version N-80283-g84efdab Copyright (c) 2000-2016 the FFmpeg developers
      built with gcc 5.3.1 (Ubuntu 5.3.1-14ubuntu2.1) 20160413
      configuration: --extra-libs=-ldl --prefix=/opt/ffmpeg --enable-avresample --disable-debug --enable-nonfree --enable-gpl --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --disable-decoder=amrnb --disable-decoder=amrwb --enable-libpulse --enable-libfreetype --enable-gnutls --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-libvorbis --enable-libmp3lame --enable-libopus --enable-libvpx --enable-libspeex --enable-libass --enable-avisynth --enable-libsoxr --enable-libxvid --enable-libvidstab
      libavutil      55. 24.100 / 55. 24.100
      libavcodec     57. 46.100 / 57. 46.100
      libavformat    57. 37.101 / 57. 37.101
      libavdevice    57.  0.101 / 57.  0.101
      libavfilter     6. 46.101 /  6. 46.101
      libavresample   3.  0.  0 /  3.  0.  0
      libswscale      4.  1.100 /  4.  1.100
      libswresample   2.  0.101 /  2.  0.101
      libpostproc    54.  0.100 / 54.  0.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '1.mp4':
      Metadata:
        major_brand     : isom
        minor_version   : 512
        compatible_brands: isomiso2mp41
        encoder         : Lavf57.37.101
      Duration: 00:00:29.83, start: 0.000000, bitrate: 686 kb/s
        Stream #0:0(und): Video: mpeg1video (mp4v / 0x7634706D), yuv420p(tv), 160x120 [SAR 1:1 DAR 4:3], 614 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 29.97 tbc (default)
        Metadata:
          handler_name    : VideoHandler
        Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 44100 Hz, mono, s16p, 63 kb/s (default)
        Metadata:
          handler_name    : SoundHandler
    [matroska @ 0x2771f00] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
        Last message repeated 1 times
    Output #0, matroska, to '1.mkv':
      Metadata:
        major_brand     : isom
        minor_version   : 512
        compatible_brands: isomiso2mp41
        encoder         : Lavf57.37.101
        Stream #0:0(und): Video: mpeg1video (mpg1 / 0x3167706D), yuv420p(tv), 160x120 [SAR 1:1 DAR 4:3], q=2-31, 614 kb/s, 29.97 fps, 29.97 tbr, 1k tbn, 90k tbc (default)
        Metadata:
          handler_name    : VideoHandler
        Stream #0:1(und): Audio: mp3 (U[0][0][0] / 0x0055), 44100 Hz, mono, 63 kb/s (default)
        Metadata:
          handler_name    : SoundHandler
    Stream mapping:
      Stream #0:0 -> #0:0 (copy)
      Stream #0:1 -> #0:1 (copy)
    Press [q] to stop, [?] for help
    frame=  894 fps=0.0 q=-1.0 Lsize=    2490kB time=00:00:29.78 bitrate= 685.1kbits/s speed=1.54e+03x    
    video:2241kB audio:233kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.692379%
    As far as 'not new', I've seen mailing list stuff about this error with mpeg-ts going back a couple of years or so.
    Last edited by mc4man; June 13th, 2016 at 04:57 AM.

  2. #12

    Re: Where/how to get up-to-date ffmpeg onto ubuntu 16.04 desktop ?

    Quote Originally Posted by mc4man View Post
    As far as 'not new', I've seen mailing list stuff about this error with mpeg-ts going back a couple of years or so.
    As I mentioned, the specific files that I personally am working with are actually MPEG-PS, not MPEG-TS. (But that's a small detail.)

    Anyway, I do agree that the evidence suggests that this specific ffmpeg bug is not particularly new. It's still a bug however. Too bad none of the ffmpeg folks think its worth fixing. (Several other programs, e.g. handbrake, kodi, vlc, smplayer, have no problems at all coping with the relevant input files. It's only ffmpeg that is balking when asked to copy the contained streams to a .mkv file. I have trouble understanding why ffmpeg can't either find or manufacture timestamps, as necessary, in order to make the MKV container format happy. Obviously, somewhere within the input files there must be some kinds of clues about when things are supposed to appear. Otherwise, how would all of the players I mentioned... and also handbrake... know how to play these same files properly... which they do.)

  3. #13
    Join Date
    Mar 2010
    Location
    London, UK
    Beans
    461
    Distro
    Ubuntu Studio 18.04 Bionic Beaver

    Re: Where/how to get up-to-date ffmpeg onto ubuntu 16.04 desktop ?

    Have you heard of FFmbc? A long time fork of FFmpeg with many fixes mainly aimed at broadcast situations and used by some of the biggest broadcasters around the world. It may well have the fixes you require.

    https://github.com/bcoudurier/FFmbc

    I've not used in a few years and seems the old Google Code site is empty so can only assume that above is the correct migration. Seems the latest version forked from the official FFmpeg not long again and patched. It definitely used to have a lot better transport stream handling and professional formats available for both input and output. (We used it on Linux boxes used for ingesting of news media for a company I used to work for where xmf and imx formats were required and not supported by FFmpeg.)
    Last edited by kazakore; June 13th, 2016 at 08:00 AM.

  4. #14
    Join Date
    Apr 2014
    Beans
    164

    Re: Where/how to get up-to-date ffmpeg onto ubuntu 16.04 desktop ?

    The following NEW packages will be installed:
    libavcodec57 libavdevice57 libavfilter6 libavformat57 libavresample3 libavutil55 libpostproc54 libswresample2
    libswscale4
    The following packages will be upgraded:
    ffmpeg

    Is there a way to install ffmpeg with all the dependencies listed without utilizing the PPA? I tried to install ffmpeg using the current .deb file on the ffmpeg web site however it stated that the listed dependencies are necessary for installation. Is there a way to install the dependencies because using GDebi does not install the dependencies like it normally does for other .deb installations. Lubuntu 16.04 (that PPA I think is the one which messed up my installation-be careful-apparently it uninstalls some very important files associated with Lubuntu and there is no other fix other than a complete reinstall).


Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •