Tomas Sinkunas | 11 Feb 13:08

FFMpeg H.264 to ProRez

Hello guys. I am totally new here. It's only second time I am trying to use
FFMpeg.

I've downloaded FFMpeg 0.10 and done everything I need to make ir run.
However I have a major problem. I am trying to export from H.264 to ProRez
with this line:

ffmpeg -i /_in.mov -vcodec prores -aspect 16:9 -s 1024x576 -an /_out.mov 

Exported file plays fine with QT and inspector shows correct info. But when
I try to open this file with Cinema Tools to confirm it to 25FPS, the button
Confirm is disabled.

If I use compressor to compress this file to mpeg-2 - I get super weird
outcome where frames are duplicated or there are jumps between the frames.

If I add this video FCP timeline - FCP pops up message if I want to make
sequence based on video spcs and etc. I choose YES. And everything plays out
nicely in timeline. But if I want to make a reference video out of timeline,
it renderes all video to a new huge file. I have "Make self contained"
disabled.

So after long hours of thinking and RnD, I think I miss something in this
compression line:

ffmpeg -i /_in.mov -vcodec prores -aspect 16:9 -s 1024x576 -an /_out.mov 

can someone help me out? As I only need to get prores file in the output,
that is good for reproduction and I can compress that file and do what ever
I want.
(Continue reading)

Boštjan Strojan | 11 Feb 21:53
Picon

Re: FFMpeg H.264 to ProRez

On Sat, Feb 11, 2012 at 1:08 PM, Tomas Sinkunas <Tomas <at> rendertom.com> wrote:

> ffmpeg -i /_in.mov -vcodec prores -aspect 16:9 -s 1024x576 -an /_out.mov

maybe
 ffmpeg -i /_in.mov -vcodec prores -aspect 16:9 -s 1024x576 -an -r 25 /_out.mov
?

b.
Boštjan Strojan | 11 Feb 21:56
Picon

Re: FFMpeg H.264 to ProRez

2012/2/11 Boštjan Strojan <bostjan.strojan <at> gmail.com>:

>  ffmpeg -i /_in.mov -vcodec prores -aspect 16:9 -s 1024x576 -an -r 25 /_out.mov

and/or

ffmpeg -i /_in.mov -vcodec prores -aspect 16:9 -s 1024x576 -an -r 25
-pix_fmt yuv422p /_out.mov

btw: you should provide full, uncut console output.

b.
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user <at> ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Tomas Sinkunas | 11 Feb 22:30

Re: FFMpeg H.264 to ProRez

Thank you Boštjan Strojan for trying to help me out here.

However, '-r 25' is not good at this point, as source video is 23.976 and
with -r 25 I see it duplicated frames. So that's not good.

And -pix_fmt yuv422p didn't do anything either:( Maybe that's just how it is
and there's no way to change it? I mean maybe the problem is in ffmpeg or
prores or something else under the hood?

Still appreciate your time. If you have any other suggestions I'd be more
then happy to hear you out.

--
View this message in context: http://ffmpeg-users.933282.n4.nabble.com/FFMpeg-H-264-to-ProRez-tp4378786p4379972.html
Sent from the FFmpeg-users mailing list archive at Nabble.com.
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user <at> ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Boštjan Strojan | 13 Feb 11:47
Picon

Re: FFMpeg H.264 to ProRez

On Sat, Feb 11, 2012 at 10:30 PM, Tomas Sinkunas <Tomas <at> rendertom.com> wrote:

> Still appreciate your time. If you have any other suggestions I'd be more
> then happy to hear you out.

 you should provide full, uncut console output.

b.
Tomas Sinkunas | 13 Feb 14:16

Re: FFMpeg H.264 to ProRez

I am afraid that this is all info from console. I don't think I cut something
out. Will check it later when be at my workstation.

--
View this message in context: http://ffmpeg-users.933282.n4.nabble.com/FFMpeg-H-264-to-ProRez-tp4378786p4383712.html
Sent from the FFmpeg-users mailing list archive at Nabble.com.
Tomas Sinkunas | 13 Feb 19:11

Re: FFMpeg H.264 to ProRez

OK, so I've tried it again. Here's full console window report:

Last login: Mon Feb 13 19:50:33 on console
Tomas-Sinkunass-iMac:~ Tomas$ cd ~
Tomas-Sinkunass-iMac:~ Tomas$ cd ffmpeg
Tomas-Sinkunass-iMac:ffmpeg Tomas$ cd ffmpeg
Tomas-Sinkunass-iMac:ffmpeg Tomas$ ffmpeg -i /_in.mov -vcodec prores
-profile 2 -aspect 16:9 -s 1024x576 -an /_out.mov 
ffmpeg version 0.10 Copyright (c) 2000-2012 the FFmpeg developers
  built on Feb 12 2012 18:20:43 with gcc 4.2.1 (Apple Inc. build 5666) (dot
3)
  configuration: --enable-libmp3lame --enable-shared --disable-mmx
--arch=x86_64
  libavutil      51. 34.101 / 51. 34.101
  libavcodec     53. 60.100 / 53. 60.100
  libavformat    53. 31.100 / 53. 31.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 60.100 /  2. 60.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  6.100 /  0.  6.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/_in.mov':
  Metadata:
    major_brand     : qt  
    minor_version   : 537199360
    compatible_brands: qt  
    creation_time   : 2012-02-13 17:57:19
  Duration: 00:00:02.66, start: -9.259259, bitrate: 8490 kb/s
    Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p,
1920x1036 [SAR 1:1 DAR 480:259], 6956 kb/s, 23.98 fps, 23.98 tbr, 2997 tbn,
5994 tbc
(Continue reading)

Boštjan Strojan | 13 Feb 20:26
Picon

Re: FFMpeg H.264 to ProRez

On Mon, Feb 13, 2012 at 7:11 PM, Tomas Sinkunas <Tomas <at> rendertom.com> wrote:

> Please, if you have like three minutes, would you mind running my file to
> prorez and then send me the output? Or maybe you could check it yourself?

i did
./mp4box -isma ./_in.mov
prior to feeding that to ffmpeg and i got quicktime playable prores
stream, so maybe one step closer.

b.

p.s.
./mp4box -version
MP4Box - GPAC version 0.4.6-DEV (internal rev. 5)
GPAC Copyright: (c) Jean Le Feuvre 2000-2005
		(c) ENST 2005-200X
GPAC Configuration:
Features: GPAC_HAS_SSL
Boštjan Strojan | 13 Feb 20:31
Picon

Re: FFMpeg H.264 to ProRez

2012/2/13 Boštjan Strojan <bostjan.strojan <at> gmail.com>:
> On Mon, Feb 13, 2012 at 7:11 PM, Tomas Sinkunas <Tomas <at> rendertom.com> wrote:
>
>> Please, if you have like three minutes, would you mind running my file to
>> prorez and then send me the output? Or maybe you could check it yourself?
>
> i did
> ./mp4box -isma ./_in.mov
> prior to feeding that to ffmpeg and i got quicktime playable prores
> stream, so maybe one step closer.

p.s.2. here is the binary
http://penguintool.blogspot.com/
(only tested on Lion, but i think that is universal compile)

b.
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user <at> ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Tomas Sinkunas | 13 Feb 20:48

Re: FFMpeg H.264 to ProRez

Sorry, I lost you with "./mp4box -isma ./_in.mov "
What is it? How should I use it?

Will download your binary to test out the result. By the way, could you
please upload also the output prores file you are getting? I'd like to take
a look at it as well please.

--
View this message in context: http://ffmpeg-users.933282.n4.nabble.com/FFMpeg-H-264-to-ProRez-tp4378786p4385036.html
Sent from the FFmpeg-users mailing list archive at Nabble.com.
Tomas Sinkunas | 13 Feb 20:56

Re: FFMpeg H.264 to ProRez

Sorry, what should I be looking for on this site?
http://penguintool.blogspot.com/ ? I am not sure.

--
View this message in context: http://ffmpeg-users.933282.n4.nabble.com/FFMpeg-H-264-to-ProRez-tp4378786p4385057.html
Sent from the FFmpeg-users mailing list archive at Nabble.com.
Boštjan Strojan | 13 Feb 22:01
Picon

Re: FFMpeg H.264 to ProRez

On Mon, Feb 13, 2012 at 8:56 PM, Tomas Sinkunas <Tomas <at> rendertom.com> wrote:
> Sorry, what should I be looking for on this site?
> http://penguintool.blogspot.com/ ? I am not sure.

mp4box binary (Pre-Compiled MP4Box (Mar 30, 2010))

b.
Boštjan Strojan | 13 Feb 22:08
Picon

Re: FFMpeg H.264 to ProRez

anyway, here is my prores "encode"
http://kravca.69.mu/deleteme/

b.
Tomas Sinkunas | 13 Feb 22:10

Re: FFMpeg H.264 to ProRez

As I said in my first post, I am a complete newby here.
I downloaded that file you provided, run the _in.mov file and what? What
should I get?
I don't know what I am doing here:)

--
View this message in context: http://ffmpeg-users.933282.n4.nabble.com/FFMpeg-H-264-to-ProRez-tp4378786p4385316.html
Sent from the FFmpeg-users mailing list archive at Nabble.com.
Boštjan Strojan | 13 Feb 22:15
Picon

Re: FFMpeg H.264 to ProRez

On Mon, Feb 13, 2012 at 10:10 PM, Tomas Sinkunas <Tomas <at> rendertom.com> wrote:
> As I said in my first post, I am a complete newby here.
> I downloaded that file you provided, run the _in.mov file and what? What
> should I get?
> I don't know what I am doing here:)

what i did:

1. mp4box -isma yourfile.mov (Do that on a copy of your material)
2. ffmpeg yourfile.mov outProres.mov

and i get a healthy quicktime playback, i did not test any further.

b.
Boštjan Strojan | 13 Feb 22:19
Picon

Re: FFMpeg H.264 to ProRez

2012/2/13 Boštjan Strojan <bostjan.strojan <at> gmail.com>:
> On Mon, Feb 13, 2012 at 10:10 PM, Tomas Sinkunas <Tomas <at> rendertom.com> wrote:
>> As I said in my first post, I am a complete newby here.

p.s. I will be on irc.freenode.net #ffmpeg for the next N minutes, so
maybe that would be a better way to solve this.

b.
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user <at> ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Andreas Gumm | 13 Feb 22:33
Picon
Picon

Re: FFMpeg H.264 to ProRez

Sadly, FCP is a bitch with attitudes!
I didn't get any complaint with non-Apple software!

It's a pitty that Apple is so closed with specs!

Cheers

Andreas

Am 13.02.2012 22:19, schrieb Boštjan Strojan:
> 2012/2/13 Boštjan Strojan<bostjan.strojan <at> gmail.com>:
>> On Mon, Feb 13, 2012 at 10:10 PM, Tomas Sinkunas<Tomas <at> rendertom.com>  wrote:
>>> As I said in my first post, I am a complete newby here.
> p.s. I will be on irc.freenode.net #ffmpeg for the next N minutes, so
> maybe that would be a better way to solve this.
>
> b.
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user <at> ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user

_______________________________________________
ffmpeg-user mailing list
ffmpeg-user <at> ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Boštjan Strojan | 13 Feb 23:44
Picon

Re: FFMpeg H.264 to ProRez

well, it appear as if:

ffmpeg -r 25 -i in.file -o.file

should assume fps to 25, but it isn't working, that would solve half
the render time.

b.

uncut:
-----------------

ffmpeg -r 25 -i '/Users/b/Downloads/_in 4.mov' -vf scale=720:576
-aspect 16:9 -pix_fmt yuv422p -vcodec prores -profile 3 -acodec
pcm_s16le -async 150 -ar 48000 '/Users/b/Downloads/_in 4_.mov'
ffmpeg version N-37510-g8c48652 Copyright (c) 2000-2012 the FFmpeg developers
  built on Feb  2 2012 22:02:52 with clang 3.0 (tags/Apple/clang-211.12)
  configuration: --prefix=/Volumes/tempdisk/sw --enable-gpl
--enable-libx264 --enable-libvpx --cc=clang --enable-runtime-cpudetect
  libavutil      51. 37.100 / 51. 37.100
  libavcodec     54.  0.102 / 54.  0.102
  libavformat    54.  0.100 / 54.  0.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 61.100 /  2. 61.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  6.100 /  0.  6.100
  libpostproc    52.  0.100 / 52.  0.100
Option framerate not found.
Carl Eugen Hoyos | 13 Feb 23:59
Picon

Re: FFMpeg H.264 to ProRez

Boštjan Strojan <bostjan.strojan <at> gmail.com> writes:

> ffmpeg -r 25 -i in.file -o.file

That will only work if in.file is rawvideo
(which would require other options, so the command-line 
cannot work as-is).

Carl Eugen

_______________________________________________
ffmpeg-user mailing list
ffmpeg-user <at> ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Boštjan Strojan | 14 Feb 08:59
Picon

Re: FFMpeg H.264 to ProRez

On Mon, Feb 13, 2012 at 11:59 PM, Carl Eugen Hoyos <cehoyos <at> ag.or.at> wrote:
> Boštjan Strojan <bostjan.strojan <at> gmail.com> writes:
>
>> ffmpeg -r 25 -i in.file -o.file
>
> That will only work if in.file is rawvideo
> (which would require other options, so the command-line
> cannot work as-is).
>
> Carl Eugen

I see, would piping work?

ffmpeg -i input.mov -vcodec raw? - | another ffmpeg -r 25 - out.some ?

Worth trying? How to stretch the audio properly?

b.
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user <at> ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Carl Eugen Hoyos | 14 Feb 11:04
Picon

Re: FFMpeg H.264 to ProRez

Boštjan Strojan <bostjan.strojan <at> gmail.com> writes:

> >> ffmpeg -r 25 -i in.file -o.file
> >
> > That will only work if in.file is rawvideo
> > (which would require other options, so the command-line
> > cannot work as-is).
> 
> I see, would piping work?

It would "work" but I don't think it would solve any issue.
If the issue is really the framerate, change the framerate 
of the output file.

Carl Eugen

_______________________________________________
ffmpeg-user mailing list
ffmpeg-user <at> ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Boštjan Strojan | 14 Feb 11:55
Picon

Re: FFMpeg H.264 to ProRez

On Tue, Feb 14, 2012 at 11:04 AM, Carl Eugen Hoyos <cehoyos <at> ag.or.at> wrote:

> It would "work" but I don't think it would solve any issue.
> If the issue is really the framerate, change the framerate
> of the output file.
>
> Carl Eugen

What do you mean? example? what happens with audio? :)

b.

p.s. The task is standard conversion from 23.xx or 24 fps to 25 fps
(PAL), that includes audio.
And "we" decided that one old frame must fit exactly one new frame
(any kind of frame belnding or other manipulation is not wanted),
which changes the length of the clip, so audio needs to be stretched
and resampled to 48k.

afaik this is also the most used type of conversion.

b.
Boštjan Strojan | 15 Feb 22:22
Picon

Re: FFMpeg H.264 to ProRez

2012/2/14 Boštjan Strojan <bostjan.strojan <at> gmail.com>:
one old frame must fit exactly one new frame
> (any kind of frame belnding or other manipulation is not wanted),
> which changes the length of the clip, so audio needs to be stretched
> and resampled to 48k.

This kind of procedure seems to be working, 24fps to 25fps example:

a. ffmpeg -i 24.mov -r 25 -vsync drop -vcodec prores -profile 3 -an 25.mov
b. extract audio from 24.mov to 24.wav
c. sox 24.wav 25.wav speed 1.041666666666 (or tempo maybe)
etc

b.
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user <at> ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Boštjan Strojan | 15 Feb 23:00
Picon

Re: FFMpeg H.264 to ProRez

2012/2/15 Boštjan Strojan <bostjan.strojan <at> gmail.com>:
> This kind of procedure seems to be working, 24fps to 25fps example:
>
> a. ffmpeg -i 24.mov -r 25 -vsync drop -vcodec prores -profile 3 -an 25.mov
> b. extract audio from 24.mov to 24.wav
> c. sox 24.wav 25.wav speed 1.041666666666 (or tempo maybe)
> etc
>
> b.

p.s. sample with burned-in 24 and 25 fps timecode:
http://sourceforge.net/projects/resizecalc/files/osxffdrop/video/syncTestBunny/
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user <at> ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Tomas Sinkunas | 13 Feb 22:18

Re: FFMpeg H.264 to ProRez

Thanks man for helping me out. However, your file is the same as I produce -
Cinema Tools won't accept it. Any ways, at least we tried. So I can be
pretty sure now that that's a ffmpeg issue with prores codec. Well, let's
hope something will be changed in next version of ffmpeg.

Still, thank you helping me out. Appreciate that very much. Cheers.

--
View this message in context: http://ffmpeg-users.933282.n4.nabble.com/FFMpeg-H-264-to-ProRez-tp4378786p4385347.html
Sent from the FFmpeg-users mailing list archive at Nabble.com.

Gmane