libavcodec and FFmpeg transcode ProRes video to H.264

1,823 views
Skip to first unread message

philippe

unread,
Sep 23, 2011, 1:48:39 PM9/23/11
to ResourceSpace
Hello,

I'm trying to make libavcodec and FFmpeg transcode ProRes video to H.
264.

- Since September 15 2011, libavcodec supports ProRes.
- I enabled GPL 3 (--enable-gpl --enable-version3)
- I updated libavcodec (53.14.0
- Libx264 is enabled (--enalbe-libx264)

I get "[buffer @ 0x393600] Invalide pixel format '-1'" error.

Someone had that work? Can give full details of how you installed it?


Thanks!

Philippe



FFmpeg output:

[CODE]
ffmpeg version N-32577-ga30ef63, Copyright (c) 2000-2011 the FFmpeg
developers
built on Sep 23 2011 10:58:29 with gcc 4.5.2
configuration: --enable-gpl --enable-version3 --enable-libfaac --
enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-
amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-
libxvid --enable-nonfree --enable-postproc --enable-version3 --enable-
x11grab
libavutil 51. 16. 0 / 51. 16. 0
libavcodec 53. 14. 0 / 53. 14. 0
libavformat 53. 12. 0 / 53. 12. 0
libavdevice 53. 3. 0 / 53. 3. 0
libavfilter 2. 40. 0 / 2. 40. 0
libswscale 2. 1. 0 / 2. 1. 0
libpostproc 51. 2. 0 / 51. 2. 0

Seems stream 0 codec frame rate differs from container frame rate:
2997.00 (2997/1) -> 29.97 (2997/100)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/administrator/Desktop/
ProResTest.mov':
Metadata:
major_brand : qt
minor_version : 537199360
compatible_brands: qt
creation_time : 2011-09-19 19:40:11
Duration: 00:00:15.08, start: 0.000000, bitrate: 59806 kb/s
Stream #0.0(eng): Video: prores (apcn / 0x6E637061), 1280x720,
59804 kb/s, 29.97 fps, 29.97 tbr, 2997 tbn, 2997 tbc
Metadata:
creation_time : 2011-09-19 19:40:11
File '/home/administrator/Desktop/output.mp4' already exists.
Overwrite ? [y/N] y
[buffer @ 0xa393600] Invalid pixel format '-1'
Error opening filters!
[/CODE]

Paul Manno

unread,
Sep 23, 2011, 8:58:36 PM9/23/11
to resour...@googlegroups.com
ProRes is apple proprietary and cannot be decoded or encoded with ffmpeg.  You have to use ffmbc (http://code.google.com/p/ffmbc/) but this change may require many code changes...




--
You received this message because you are subscribed to the Google Groups "ResourceSpace" group.
To post to this group, send email to resour...@googlegroups.com.
To unsubscribe from this group, send email to resourcespac...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/resourcespace?hl=en.


Paul Manno

unread,
Sep 23, 2011, 9:00:16 PM9/23/11
to resour...@googlegroups.com
Also, ffmbc will only decode, not encode prores.

Jeff Harmon

unread,
Sep 24, 2011, 6:36:41 PM9/24/11
to resour...@googlegroups.com, resour...@googlegroups.com
"FFmpeg on 15 September 2011 introduced a freedecoder for ProRes 422 for libavcodec."

Paul Manno

unread,
Sep 24, 2011, 9:27:47 PM9/24/11
to resour...@googlegroups.com
I stand corrected!

Anyone seen it work?

Paul Manno

unread,
Sep 24, 2011, 9:34:51 PM9/24/11
to resour...@googlegroups.com
Phillipe, 

See this thread.  I think it pertains to your situation:


Synopsis:
Changed 4 days ago by cehoyos
  • Status changed from open to closed
  • Resolution set to fixed

The ProRes? decoder is GPLv2 only, so you have to configure with "--enable-gpl --enable-version2".
(And since I also forgot I couldn't reproduce the fix before.)



Paul

paulvInet

unread,
Sep 26, 2011, 9:36:23 AM9/26/11
to ResourceSpace
Philippe,

You must enable gplv2 (--enable-gpl --enable-version2)

I think you also cannot enable libopencore* and libvo*, but you can
try with and without.

Paul

paulvInet

unread,
Sep 25, 2011, 10:11:30 AM9/25/11
to ResourceSpace
Philippe,

It appears that you MUST enable gpl version 2, the Prores decoding
does not work with version 3.
(--enable-gpl --enable-version2)

You CANNOT enable libopencore as it is incompatible with gpl version2.

There MAY be a problem with libvo*, but it doesn't look like you
enable it, so you should be ok anyway

Paul


On Sep 23, 1:48 pm, philippe <philippebo...@hotmail.com> wrote:

Emma Young

unread,
Sep 15, 2014, 4:30:21 AM9/15/14
to resour...@googlegroups.com
I followed a blog to convert my H.264 to ProRes. If you want to encode ProRes to H.264, then this blog also can help you.
Reply all
Reply to author
Forward
0 new messages