Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

avconv prores

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
sesbird
Posts: 21
Joined: 2013-10-23 15:38

avconv prores

#1 Post by sesbird »

Hi everyone,

untill now I used my laptop (Linux Mint 17) to convert GoPro videos into a more workable format using ffmpeg with prores_ks (kostya) encoder.

Having just come back from a diving trip with lots of footage I figured why not encode it on my server (more storage and more power). My first attempt at doing the same command made me realize something has to change with my workflow:

Code: Select all

The ffmpeg program is only provided for script compatibility and will be removed
in a future release. It has been deprecated in the Libav project to allow for
incompatible command line syntax improvements in its replacement called avconv
(see Changelog for details). Please use avconv instead.
No problem, lets look into avconv:

Code: Select all

#avconv -i movie1.MP4 -c:v prores -profile:v hq -an movie1.MOV
avconv version 0.8.16-6:0.8.16-1, Copyright (c) 2000-2014 the Libav developers
  built on Sep 16 2014 23:10:48 with gcc 4.7.2
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'movie1.MP4':
  Metadata:
    major_brand     : avc1
    minor_version   : 0
    compatible_brands: avc1isom
    creation_time   : 2015-02-13 10:02:00
  Duration: 00:11:38.29, start: 0.000000, bitrate: 45101 kb/s
    Stream #0.0(eng): Video: h264 (High), yuvj420p, 2704x1524 [PAR 1:1 DAR 676:381], 44961 kb/s, 29.97 fps, 29.97 tbr, 180k tbn, 59.94 tbc
    Metadata:
      creation_time   : 2015-02-13 10:02:00
    Stream #0.1(eng): Audio: aac, 48000 Hz, stereo, s16, 127 kb/s
    Metadata:
      creation_time   : 2015-02-13 10:02:00
    Stream #0.2(eng): Data: tmcd / 0x64636D74
    Metadata:
      creation_time   : 2015-02-13 10:02:00
Unknown encoder 'prores'
That is strange? No prores?
Let me check:

Code: Select all

me@server:~/Videos$ avconv -codecs | grep pro
avconv version 0.8.16-6:0.8.16-1, Copyright (c) 2000-2014 the Libav developers
  built on Sep 16 2014 23:10:48 with gcc 4.7.2
 D A D  adpcm_sbpro_2   ADPCM Sound Blaster Pro 2-bit
 D A D  adpcm_sbpro_3   ADPCM Sound Blaster Pro 2.6-bit
 D A D  adpcm_sbpro_4   ADPCM Sound Blaster Pro 4-bit
 D V D  cavs            Chinese AVS video (AVS1-P2, JiZhun profile)
 D V D  prores          Apple ProRes (iCodec Pro)
 D A D  wmapro          Windows Media Audio 9 Professional
me@server:~/Videos$
It is there? Why can't I use it?

sesbird
Posts: 21
Joined: 2013-10-23 15:38

Re: avconv prores

#2 Post by sesbird »

ok, I enabled testing repo and updated libav.

Now I have prores encoding.

Now all I need is a way to enable prores_kostya (prores_ks) encoding to speed up the process.

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 72 times

Re: avconv prores

#3 Post by stevepusser »

ok, I enabled testing repo and updated libav.
And now your system is broken! You installed Jessie's libc6, and you soon discover that was a very, very, bad idea.

https://wiki.debian.org/DontBreakDebian

There is a newer libav10 in wheezy-backports that may have solved your issue, or you could have just downloaded the static ffmpeg binary from the ffmpeg website and used that safely. (amd64 and i386 only) http://johnvansickle.com/ffmpeg/

A reinstall is in order. Sorry.

The backports libav:

Code: Select all

$ avconv -codecs | grep pro
avconv version 10.1-6:10.1-1~bpo70+1, Copyright (c) 2000-2014 the Libav developers
  built on Jun  1 2014 17:51:47 with gcc 4.7 (Debian 4.7.2-5)
D.V.L. cavs                 Chinese AVS (Audio Video Standard) (AVS1-P2, JiZhun profile)
DEVIL. prores               Apple ProRes (iCodec Pro)
D.A.L. adpcm_sbpro_4        ADPCM Sound Blaster Pro 4-bit
D.A.L. adpcm_sbpro_3        ADPCM Sound Blaster Pro 2.6-bit
D.A.L. adpcm_sbpro_2        ADPCM Sound Blaster Pro 2-bit
D.A.L. wmapro               Windows Media Audio 9 Professional
ffmpeg-2.5.4 (not static, but the MEPIS 12 ffmpeg-real that can coexist with libav)

Code: Select all

 D.V.L. cavs                 Chinese AVS (Audio Video Standard) (AVS1-P2, JiZhun profile)
 DEVIL. prores               Apple ProRes (iCodec Pro) (decoders: prores prores_lgpl ) (encoders: prores prores_aw prores_ks )
 D.A.L. adpcm_sbpro_2        ADPCM Sound Blaster Pro 2-bit
 D.A.L. adpcm_sbpro_3        ADPCM Sound Blaster Pro 2.6-bit
 D.A.L. adpcm_sbpro_4        ADPCM Sound Blaster Pro 4-bit
 D.A.L. wmapro               Windows Media Audio 9 Professional
The static version :

Code: Select all

 DEVIL. prores               Apple ProRes (iCodec Pro) (decoders: prores prores_lgpl ) (encoders: prores prores_aw prores_ks )

Also you asked about the stock codec in Wheezy:
It is there? Why can't I use it?

Code: Select all

 D V D  prores          Apple ProRes (iCodec Pro)
Note that you have no "E" for encoding capability before that, only "D" for playback decoding. That's why. The backports libav will encode, the real 2.54 ffmpeg will add that last codec.
MX Linux packager and developer

sesbird
Posts: 21
Joined: 2013-10-23 15:38

Re: avconv prores

#4 Post by sesbird »

Ok, I know testing repo's should not be used lightly and I only updated the needed packages I needed for libav

You are right: libc6 is in there too.

How bad is it? Seriously? Is there a fix other than a complete re-install?

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 72 times

Re: avconv prores

#5 Post by stevepusser »

I did do a backported libc6 for wheezy for MEPIS 12, and did find a way to downgrade from that to the stock Wheezy libc6 using aptitude. It's worth a try, and easier if you don't have a 64-bit system with 32-bit apps also installed. The method is detailed in the first posted of this thread:

http://forum.mepiscommunity.org/viewtop ... 97#p349597

Make sure you only accept the solution that downgrades packages, not any that removes anything that did not come from Jessie. This will get rid of the newer libav packages, too.
MX Linux packager and developer

sesbird
Posts: 21
Joined: 2013-10-23 15:38

Re: avconv prores

#6 Post by sesbird »

In that case, would I not be better off to just remove libc6, and libav with it, install the original wheezy versions and then just use the backported ffmpeg. All is good? Or did I break something in the proces if I do that?

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 72 times

Re: avconv prores

#7 Post by stevepusser »

Libc6 is the C language runtime library, and since the Linux kernel and just about every other program uses it, you can't remove it without wrecking the system. You can only try to downgrade it back to the Wheezy stock version, or try and upgrade your system all the way to Jessie.
MX Linux packager and developer

Post Reply