[FFmpeg-user] view mp4 while still encoding?

Carles Vila cvilad at gmail.com
Thu Jul 14 17:44:23 EEST 2016


Thanks, will investigate!
seems faststart is what I need.

On 14 July 2016 at 14:10, Louis Letourneau <lletourn49 at gmail.com> wrote:

> If you encode your mp4 with '*-movflags faststart' it will put the moov
> atom at the beginning of the movie. This way ffplay can play it BUT it
> won't play it until the end.*
> *You'll just see the state of the video when you started ffplay.*
>
> *To see the encoding live until it ends, you need segmented encoding (HLS
> or segment muxers) to view the files.*
>
> *You could also use ffserver and split the output to the mp4 file and a
> stream and look at the stream. This is a more complicated setup though.,*
>
> *Louis*
>
> On Thu, Jul 14, 2016 at 6:29 AM, Carles Vila <cvilad at gmail.com> wrote:
>
> > Hi all,
> >
> > Is there an option to be able to view an mp4 (H.264) which is still being
> > encoded?
> > with mpeg-2 in mpeg container it works, it would be handy for mp4..
> > Thanks!
> >
> > ffplay throws following error:
> >
> > ffplay movie.mp4
> > ffplay version 2.7.2 Copyright (c) 2003-2015 the FFmpeg developers
> >   built with Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM
> 3.4svn)
> >   configuration: --prefix=/usr/local/Cellar/ffmpeg/2.7.2_1
> --enable-shared
> > --enable-pthreads --enable-gpl --enable-version3
> --enable-hardcoded-tables
> > --enable-avresample --cc=clang --host-cflags= --host-ldflags=
> > --enable-opencl --enable-libx264 --enable-libmp3lame
> --enable-libvo-aacenc
> > --enable-libxvid --enable-libfreetype --enable-libvorbis --enable-libvpx
> > --enable-libass --enable-ffplay --enable-libfdk-aac --enable-libopus
> > --enable-libquvi --enable-libx265 --enable-libopenjpeg
> >
> --extra-cflags='-I/usr/local/Cellar/openjpeg/1.5.2_1/include/openjpeg-1.5 '
> > --enable-nonfree --enable-vda
> >   libavutil      54. 27.100 / 54. 27.100
> >   libavcodec     56. 41.100 / 56. 41.100
> >   libavformat    56. 36.100 / 56. 36.100
> >   libavdevice    56.  4.100 / 56.  4.100
> >   libavfilter     5. 16.101 /  5. 16.101
> >   libavresample   2.  1.  0 /  2.  1.  0
> >   libswscale      3.  1.101 /  3.  1.101
> >   libswresample   1.  2.100 /  1.  2.100
> >   libpostproc    53.  3.100 / 53.  3.100
> > [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fabdc02b400] moov atom not found0/0
> > movie.mp4: Invalid data found when processing input
> > _______________________________________________
> > 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".


More information about the ffmpeg-user mailing list