[FFmpeg-user] Piping output of ffmpeg into ffmbc
Erik Dobberkau
erik.dobberkau at gmail.com
Fri Aug 19 18:46:51 EEST 2016
> > 2016-08-18 23:23 GMT+02:00 Paul B Mahol <onemda at gmail.com>:
> >
> > > On 8/18/16, Keith Reilly <kreilly at retroreport.com> wrote:
> > > > I use ffmbc to create Avid supported files for fast import (ffmpeg
> > > doesn't
> > > > do this). ffmbc is behind in development so there are codecs it
> cannot
> > > read
> > > > that i need it to. My solution is to simply read the file with ffmpeg
> > and
> > > > pass it on to ffmbc via standard output that way i can make Avid
> media
> > > with
> > > > anything ffmpeg reads. However i have an issue. I do not get the
> whole
> > > > video converted.
> > > >
> > > > I'm running on Mac os 10.11.6 ffmpeg was installed with macports,
> > ffmbc
> > > > from source. The video is about 1 hour 27 min long, i get roughly 5
> > > minutes
> > > > of the imx50 file that is perfect except for the missing hour and
> > 22min.
> > > >
> > > > console input:
> > > > ffmpeg -i _Youtube.webm -c:v rawvideo -c:a pcm_s16le -f avi pipe:1 |
> > > ffmbc
> > > > -i pipe:0 -r 29.97 -target imx50 _Youtube.mxf
> > > >
> > > > output:
> > > >
> > > > ffmpeg version 3.1.1 Copyright (c) 2000-2016 the FFmpeg developers
> > > >
> > > > built with Apple LLVM version 7.3.0 (clang-703.0.31)
> > > >
> > > > configuration: --prefix=/opt/local --enable-swscale
> --enable-avfilter
> > > > --enable-avresample --enable-libmp3lame --enable-libvorbis
> > > --enable-libopus
> > > > --enable-libtheora --enable-libschroedinger --enable-libopenjpeg
> > > > --enable-libmodplug --enable-libvpx --enable-libsoxr
> --enable-libspeex
> > > > --enable-libass --enable-libbluray --enable-lzma --enable-gnutls
> > > > --enable-fontconfig --enable-libfreetype --enable-libfribidi
> > > > --disable-indev=jack --disable-outdev=xv
> --mandir=/opt/local/share/man
> > > > --enable-shared --enable-pthreads --cc=/usr/bin/clang --enable-vda
> > > > --enable-audiotoolbox --enable-videotoolbox --arch=x86_64
> --enable-yasm
> > > > --enable-gpl --enable-postproc --enable-libx264 --enable-libxvid
> > > >
> > > > libavutil 55. 28.100 / 55. 28.100
> > > >
> > > > libavcodec 57. 48.101 / 57. 48.101
> > > >
> > > > libavformat 57. 41.100 / 57. 41.100
> > > >
> > > > libavdevice 57. 0.101 / 57. 0.101
> > > >
> > > > libavfilter 6. 47.100 / 6. 47.100
> > > >
> > > > libavresample 3. 0. 0 / 3. 0. 0
> > > >
> > > > libswscale 4. 1.100 / 4. 1.100
> > > >
> > > > libswresample 2. 1.100 / 2. 1.100
> > > >
> > > > libpostproc 54. 0.100 / 54. 0.100
> > > >
> > > > FFmbc version 0.7.4
> > > >
> > > > Copyright (c) 2008-2015 Baptiste Coudurier and the FFmpeg developers
> > > >
> > > > Input #0, matroska,webm, from '/Volumes/RR295-KENNEDY_1/_
> > Youtube.webm':
> > > >
> > > > Metadata:
> > > >
> > > > encoder : Lavf56.1.0
> > > >
> > > > Duration: 01:27:33.64, start: 0.000000, bitrate: 480 kb/s
> > > >
> > > > Stream #0:0(eng): Video: vp9 (Profile 0), yuv420p(tv), 640x480,
> SAR
> > > 1:1
> > > > DAR 4:3, 29.97 fps, 29.97 tbr, 1k tbn, 1k tbc (default)
> > > >
> > > > Stream #0:1(eng): Audio: vorbis, 44100 Hz, stereo, fltp (default)
> > > >
> > > > [avi @ 0x7fcd6c83f000] Using AVStream.codec to pass codec parameters
> to
> > > > muxers is deprecated, use AVStream.codecpar instead.
> > > >
> > > > Last message repeated 1 times
> > > >
> > > > Output #0, avi, to 'pipe:1':
> > > >
> > > > Metadata:
> > > >
> > > > ISFT : Lavf57.41.100
> > > >
> > > > Stream #0:0(eng): Video: rawvideo (I420 / 0x30323449), yuv420p,
> > > 640x480
> > > > [SAR 1:1 DAR 4:3], q=2-31, 200 kb/s, 29.97 fps, 29.97 tbn, 29.97 tbc
> > > > (default)
> > > >
> > > > Metadata:
> > > >
> > > > encoder : Lavc57.48.101 rawvideo
> > > >
> > > > Stream #0:1(eng): Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100
> > Hz,
> > > > stereo, s16, 1411 kb/s (default)
> > > >
> > > > Metadata:
> > > >
> > > > encoder : Lavc57.48.101 pcm_s16le
> > > >
> > > > Stream mapping:
> > > >
> > > > Stream #0:0 -> #0:0 (vp9 (native) -> rawvideo (native))
> > > >
> > > > Stream #0:1 -> #0:1 (vorbis (native) -> pcm_s16le (native))
> > > >
> > > > Press [q] to stop, [?] for help
> > > >
> > > > Input #0, avi, from 'pipe:0':
> > > >
> > > > Metadata:
> > > >
> > > > encoder: Lavf57.41.100
> > > >
> > > > Duration: 9951:59:45.52, bitrate: N/A
> > > >
> > > > Stream #0.0(und): Video: rawvideo, yuv420p, 640x480p, PAR 1:1 DAR
> > > 4:3,
> > > > 29.97 fps
> > > >
> > > > Stream #0.1(und): Audio: pcm_s16le, 44100 Hz, 2 channels, s16,
> 1411
> > > kb/s
> > > >
> > > > [scale @ 0x7fde69c03a00] w:640 h:480 fmt:yuv420p -> w:640 h:480
> > > fmt:yuv422p
> > > > flags:0x4 il:0
> > > >
> > > > Auto-rescaling to imx50 resolution
> > > >
> > > > [scale @ 0x7fde69c038a0] w:640 h:480 fmt:yuv420p -> w:720 h:486
> > > fmt:yuv422p
> > > > flags:0x4 il:-1
> > > >
> > > > [pad @ 0x7fde69c03cc0] w:720 h:486 -> w:720 h:512 x:0 y:26
> > > > color:0x108080FF[yuva]
> > > >
> > > > Output #0, mxf_d10, to '/Volumes/RR295-KENNEDY_1/_Youtube.mxf':
> > > >
> > > > Metadata:
> > > >
> > > > encoder: FFmbc 0.7
> > > >
> > > > Stream #0.0(und): Video: mpeg2video, yuv422p, 720x512i tff [PAR
> > > 128:135
> > > > DAR 4:3], cbr, 50000 kb/s, 29.97 fps
> > > >
> > > > Stream #0.1(und): Audio: pcm_s16le, 48000 Hz, 2 channels, s16,
> 1536
> > > kb/s
> > > >
> > > > Stream mapping:
> > > >
> > > > Stream #0.0 -> #0.0
> > > >
> > > > Stream #0.1 -> #0.1
> > > >
> > > > frame=157451 fps=212 q=-0.0 Lsize=71762491kB time=01:27:33.64
> > > > bitrate=111899.2kbits/s speed=7.09x
> > > >
> > > > video:70852950kB audio:905022kB subtitle:0kB other streams:0kB global
> > > > headers:0kB muxing overhead: 0.006298%
> > > >
> > > > frame= 9202 fps= 12 q=1.0 Lsize= 2346517kB time=00:05:07.04
> > > > bitrate=62606.4kbits/s
> > > >
> > > > video:1874018kB audio:57571kB global headers:0kB muxing overhead
> > > 21.481172%
> > > >
> > > > Homicidal-Psycho-Jungle-Cat: keithreilly$
> > >
> > > Not our bug.
> > > _______________________________________________
> > > ffmpeg-user mailing list
> > > ffmpeg-user at ffmpeg.org
> > > http://ffmpeg.org/mailman/listinfo/ffmpeg-user
> > >
> > > To unsubscribe, visit link above, or email
> > > ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
> > >
> > _______________________________________________
> > ffmpeg-user mailing list
> > ffmpeg-user at ffmpeg.org
> > http://ffmpeg.org/mailman/listinfo/ffmpeg-user
> >
> > To unsubscribe, visit link above, or email
> > ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
> >
>
> On Fri, Aug 19, 2016 at 7:10 AM, Erik Dobberkau <erik.dobberkau at gmail.com>
> wrote:
>
> > Hi Keith,
> >
> > you don't need ffmbc to create IMX MXF OP1a that can be read by Avid, you
> > can do this with ffmpeg alone. I guess you also mean AMA linking, not
> fast
> > importing, right? (I'm testing on MC 7.0.5 here and the only way to get
> an
> > MXF file into the project is AMA linking)
> > What ffmpeg can't do atm (or I'm just doing it wrong), is create OP-Atom
> > files that Avid accepts.
> >
> > The command most sites link to (the old ffmpeg_howto) is correct (in Avid
> > terms) for the most part, but you need to pad your scaled (active) video
> > with 32 VBI lines (black) at the top. You also need to manipulate your
> > audio to meet IMX standards.
> >
> > Erik
> >
>
> 2016-08-19 17:17 GMT+02:00 Keith Reilly <kreilly at retroreport.com>:
> Erik,
> I was specifically thinking of fast import. I haven't been able to get
> ffmpeg to create media for fast import, thats why i'm using ffmbc. Am I
> correct in understanding that for fast import ffmpeg will not work? That
is
> what i have read and all my experiments with ffmpeg to create media for
> fast import have failed.
>
> This is the first time i am trying to pipe the output of ffmpeg and i
> thought maybe there was something wrong with my command that was causing
> the error. I guess this is not the case and i'll just have to experiment.
> Thanks.
>
> Keith
Keith,
What MediaComposer version are you running? And you can right-click in your
bin, choose "Import..." and import a MXF file (created with ffmbc)?
Seriously?
Because I can't - just do AMA linking (and transcode afterwards). The only
file (containers) I know of to perform fast imports are QuicktTime MOVs.
Erik
More information about the ffmpeg-user
mailing list