Re: [FFmpeg-user] -movflags faststart revisited
On Feb 27, 2017, at 6:55 PM, JD wrote: Well, could you at least provide the full args to ffplay, to play back an incomplete transcode to mp4? > On Mon, Feb 27, 2017 at 3:56 PM, PaulYurt wrote: > > JD, Can you substitute ffplay for ffmpeg in your tests? This way you can > immediately see results. > > Paul Yurt // Media Technologist // 310-439-8009 > > On Feb 25, 2017, at 10:28 PM, JD wrote: > > I retried to use this flag as it was indicated in a previous response by a > user. > Sorry that I was unable to continue on the original thread, because the > gmail web > interface deletes original message sent to this list by the OP, when the OP > deletes the > response from the list. > > So, even though I corrected the usage of the flag, I am still unable to > play the output > file before ffmpeg finishes the transcoding :( :( > > $ ~/bin/ffmpeg.d/ffmpeg -i video_Z11.mp4 -movflags faststart -vb 8000k -ab > 384k -s 1920x1080 -y video_Z11-1920x1080.mp4 > ffmpeg version 3.2.4-static http://johnvansickle.com/ffmpeg/ Copyright > (c) > 2000-2017 the FFmpeg developers > built with gcc 5.4.1 (Debian 5.4.1-5) 20170205 > configuration: --enable-gpl --enable-version3 --enable-static > --disable-debug --disable-ffplay --disable-indev=sndio > --disable-outdev=sndio --cc=gcc-5 --enable-fontconfig --enable-frei0r > --enable-gnutls --enable-gray --enable-libass --enable-libfreetype > --enable-libfribidi --enable-libmp3lame --enable-libopencore-amrnb > --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus > --enable-librtmp --enable-libsoxr --enable-libspeex --enable-libtheora > --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis > --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 > --enable-libxvid --enable-libzimg > libavutil 55. 34.101 / 55. 34.101 > libavcodec 57. 64.101 / 57. 64.101 > libavformat57. 56.101 / 57. 56.101 > libavdevice57. 1.100 / 57. 1.100 > libavfilter 6. 65.100 / 6. 65.100 > libswscale 4. 2.100 / 4. 2.100 > libswresample 2. 3.100 / 2. 3.100 > libpostproc54. 1.100 / 54. 1.100 > Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'video_Z11.mp4': > Metadata: > major_brand : isom > minor_version : 512 > compatible_brands: isomiso2avc1mp41 > creation_time : 2016-11-29T13:42:34.00Z > encoder : Lavf56.1.0 > Duration: 02:22:55.48, start: 0.00, bitrate: 379 kb/s > Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, > 480x360 [SAR 1:1 DAR 4:3], 246 kb/s, 29.95 fps, 29.97 tbr, 90k tbn, 59.91 > tbc (default) > Metadata: > creation_time : 2016-11-29T13:42:34.00Z > handler_name: VideoHandler > Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, > stereo, fltp, 125 kb/s (default) > Metadata: > creation_time : 2016-11-29T13:42:34.00Z > handler_name: SoundHandler > [libx264 @ 0x5a3c240] using SAR=3/4 > [libx264 @ 0x5a3c240] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 > [libx264 @ 0x5a3c240] profile High, level 4.0 > [libx264 @ 0x5a3c240] 264 - core 148 r333 90a61ec - H.264/MPEG-4 AVC codec > - Copyleft 2003-2017 - http://www.videolan.org/x264.html - options: > cabac=1 > ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 > mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 > fast_pskip=1 chroma_qp_offset=-2 threads=3 lookahead_threads=1 > sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 > constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 > weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 > intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=8000 ratetol=1.0 > qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 > Output #0, mp4, to 'video_Z11-1920x1080.mp4': > Metadata: > major_brand : isom > minor_version : 512 > compatible_brands: isomiso2avc1mp41 > encoder : Lavf57.56.101 > Stream #0:0(und): Video: h264 (libx264) ([33][0][0][0] / 0x0021), > yuv420p, 1920x1080 [SAR 3:4 DAR 4:3], q=-1--1, 8000 kb/s, 29.97 fps, 30k > tbn, 29.97 tbc (default) > Metadata: > creation_time : 2016-11-29T13:42:34.00Z > handler_name: VideoHandler > encoder : Lavc57.64.101 libx264 > Side data: > cpb: bitrate max/min/avg: 0/0/800 buffer size: 0 vbv_delay: -1 > Stream #0:1(und): Audio: aac (LC) ([64][0][0][0] / 0x0040), 44100 Hz, > stereo, fltp, 384 kb/s (default) > Metadata: > creation_time : 2016-11-29T13:42:34.00Z > handler_name: SoundHandler > encoder : Lavc57.64.101 aac > Stream mapping: > Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264)) > Stream #0:1 -> #0:1 (aac (native) -> aac (native)) > Press [q] to stop, [?] for help You can pass the same encoding arguments to ffplay and observe the results on screen as quickly as the machine can generate output. It's one way I like to test my encoding parameters, assuming your machine is local.
Re: [FFmpeg-user] -movflags faststart revisited
Well, could you at least provide the full args to ffplay, to play back an incomplete transcode to mp4? On Mon, Feb 27, 2017 at 3:56 PM, PaulYurt wrote: > JD, Can you substitute ffplay for ffmpeg in your tests? This way you can > immediately see results. > > Paul Yurt // Media Technologist // 310-439-8009 > > On Feb 25, 2017, at 10:28 PM, JD wrote: > > I retried to use this flag as it was indicated in a previous response by a > user. > Sorry that I was unable to continue on the original thread, because the > gmail web > interface deletes original message sent to this list by the OP, when the OP > deletes the > response from the list. > > So, even though I corrected the usage of the flag, I am still unable to > play the output > file before ffmpeg finishes the transcoding :( :( > > $ ~/bin/ffmpeg.d/ffmpeg -i video_Z11.mp4 -movflags faststart -vb 8000k -ab > 384k -s 1920x1080 -y video_Z11-1920x1080.mp4 > ffmpeg version 3.2.4-static http://johnvansickle.com/ffmpeg/ Copyright > (c) > 2000-2017 the FFmpeg developers > built with gcc 5.4.1 (Debian 5.4.1-5) 20170205 > configuration: --enable-gpl --enable-version3 --enable-static > --disable-debug --disable-ffplay --disable-indev=sndio > --disable-outdev=sndio --cc=gcc-5 --enable-fontconfig --enable-frei0r > --enable-gnutls --enable-gray --enable-libass --enable-libfreetype > --enable-libfribidi --enable-libmp3lame --enable-libopencore-amrnb > --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus > --enable-librtmp --enable-libsoxr --enable-libspeex --enable-libtheora > --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis > --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 > --enable-libxvid --enable-libzimg > libavutil 55. 34.101 / 55. 34.101 > libavcodec 57. 64.101 / 57. 64.101 > libavformat57. 56.101 / 57. 56.101 > libavdevice57. 1.100 / 57. 1.100 > libavfilter 6. 65.100 / 6. 65.100 > libswscale 4. 2.100 / 4. 2.100 > libswresample 2. 3.100 / 2. 3.100 > libpostproc54. 1.100 / 54. 1.100 > Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'video_Z11.mp4': > Metadata: >major_brand : isom >minor_version : 512 >compatible_brands: isomiso2avc1mp41 >creation_time : 2016-11-29T13:42:34.00Z >encoder : Lavf56.1.0 > Duration: 02:22:55.48, start: 0.00, bitrate: 379 kb/s >Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, > 480x360 [SAR 1:1 DAR 4:3], 246 kb/s, 29.95 fps, 29.97 tbr, 90k tbn, 59.91 > tbc (default) >Metadata: > creation_time : 2016-11-29T13:42:34.00Z > handler_name: VideoHandler >Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, > stereo, fltp, 125 kb/s (default) >Metadata: > creation_time : 2016-11-29T13:42:34.00Z > handler_name: SoundHandler > [libx264 @ 0x5a3c240] using SAR=3/4 > [libx264 @ 0x5a3c240] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 > [libx264 @ 0x5a3c240] profile High, level 4.0 > [libx264 @ 0x5a3c240] 264 - core 148 r333 90a61ec - H.264/MPEG-4 AVC codec > - Copyleft 2003-2017 - http://www.videolan.org/x264.html - options: > cabac=1 > ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 > mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 > fast_pskip=1 chroma_qp_offset=-2 threads=3 lookahead_threads=1 > sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 > constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 > weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 > intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=8000 ratetol=1.0 > qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 > Output #0, mp4, to 'video_Z11-1920x1080.mp4': > Metadata: >major_brand : isom >minor_version : 512 >compatible_brands: isomiso2avc1mp41 >encoder : Lavf57.56.101 >Stream #0:0(und): Video: h264 (libx264) ([33][0][0][0] / 0x0021), > yuv420p, 1920x1080 [SAR 3:4 DAR 4:3], q=-1--1, 8000 kb/s, 29.97 fps, 30k > tbn, 29.97 tbc (default) >Metadata: > creation_time : 2016-11-29T13:42:34.00Z > handler_name: VideoHandler > encoder : Lavc57.64.101 libx264 >Side data: > cpb: bitrate max/min/avg: 0/0/800 buffer size: 0 vbv_delay: -1 >Stream #0:1(und): Audio: aac (LC) ([64][0][0][0] / 0x0040), 44100 Hz, > stereo, fltp, 384 kb/s (default) >Metadata: > creation_time : 2016-11-29T13:42:34.00Z > handler_name: SoundHandler > encoder : Lavc57.64.101 aac > Stream mapping: > Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264)) > Stream #0:1 -> #0:1 (aac (native) -> aac (native)) > Press [q] to stop, [?] for help > ___ > ffmpeg-user mailing list > ffmpeg-user@ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-requ...@ffmpeg.org
Re: [FFmpeg-user] -movflags faststart revisited
JD, Can you substitute ffplay for ffmpeg in your tests? This way you can immediately see results. Paul Yurt // Media Technologist // 310-439-8009 On Feb 25, 2017, at 10:28 PM, JD wrote: I retried to use this flag as it was indicated in a previous response by a user. Sorry that I was unable to continue on the original thread, because the gmail web interface deletes original message sent to this list by the OP, when the OP deletes the response from the list. So, even though I corrected the usage of the flag, I am still unable to play the output file before ffmpeg finishes the transcoding :( :( $ ~/bin/ffmpeg.d/ffmpeg -i video_Z11.mp4 -movflags faststart -vb 8000k -ab 384k -s 1920x1080 -y video_Z11-1920x1080.mp4 ffmpeg version 3.2.4-static http://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2017 the FFmpeg developers built with gcc 5.4.1 (Debian 5.4.1-5) 20170205 configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-5 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gray --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzimg libavutil 55. 34.101 / 55. 34.101 libavcodec 57. 64.101 / 57. 64.101 libavformat57. 56.101 / 57. 56.101 libavdevice57. 1.100 / 57. 1.100 libavfilter 6. 65.100 / 6. 65.100 libswscale 4. 2.100 / 4. 2.100 libswresample 2. 3.100 / 2. 3.100 libpostproc54. 1.100 / 54. 1.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'video_Z11.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 creation_time : 2016-11-29T13:42:34.00Z encoder : Lavf56.1.0 Duration: 02:22:55.48, start: 0.00, bitrate: 379 kb/s Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 480x360 [SAR 1:1 DAR 4:3], 246 kb/s, 29.95 fps, 29.97 tbr, 90k tbn, 59.91 tbc (default) Metadata: creation_time : 2016-11-29T13:42:34.00Z handler_name: VideoHandler Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default) Metadata: creation_time : 2016-11-29T13:42:34.00Z handler_name: SoundHandler [libx264 @ 0x5a3c240] using SAR=3/4 [libx264 @ 0x5a3c240] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 [libx264 @ 0x5a3c240] profile High, level 4.0 [libx264 @ 0x5a3c240] 264 - core 148 r333 90a61ec - H.264/MPEG-4 AVC codec - Copyleft 2003-2017 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=3 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=8000 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 Output #0, mp4, to 'video_Z11-1920x1080.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf57.56.101 Stream #0:0(und): Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 1920x1080 [SAR 3:4 DAR 4:3], q=-1--1, 8000 kb/s, 29.97 fps, 30k tbn, 29.97 tbc (default) Metadata: creation_time : 2016-11-29T13:42:34.00Z handler_name: VideoHandler encoder : Lavc57.64.101 libx264 Side data: cpb: bitrate max/min/avg: 0/0/800 buffer size: 0 vbv_delay: -1 Stream #0:1(und): Audio: aac (LC) ([64][0][0][0] / 0x0040), 44100 Hz, stereo, fltp, 384 kb/s (default) Metadata: creation_time : 2016-11-29T13:42:34.00Z handler_name: SoundHandler encoder : Lavc57.64.101 aac Stream mapping: Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264)) Stream #0:1 -> #0:1 (aac (native) -> aac (native)) Press [q] to stop, [?] for help ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] -movflags faststart revisited
Reindle is correct - it still does n ot work for mp4. I tried it with and without the +. The manpage does not show a +. On Sat, Feb 25, 2017 at 8:53 PM, Tim Hiles wrote: > So, even though I corrected the usage of the flag, I am still unable to > play the output > file before ffmpeg finishes the transcoding :( :( > > $ ~/bin/ffmpeg.d/ffmpeg -i video_Z11.mp4 -movflags faststart -vb 8000k -ab > 384k -s 1920x1080 -y video_Z11-1920x1080.mp4 > ffmpeg version 3.2.4-static http://johnvansickle.com/ffmpeg/ Copyright > (c) > 2000-2017 the FFmpeg developers > > > > > > That usage is still not correct. It should be: > > -movflags +faststart > > You are forgetting the + symbol before the word faststart. > ___ > ffmpeg-user mailing list > ffmpeg-user@ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". > ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] -movflags faststart revisited
Am 26.02.2017 um 04:53 schrieb Tim Hiles: So, even though I corrected the usage of the flag, I am still unable to play the output file before ffmpeg finishes the transcoding :( :( $ ~/bin/ffmpeg.d/ffmpeg -i video_Z11.mp4 -movflags faststart -vb 8000k -ab 384k -s 1920x1080 -y video_Z11-1920x1080.mp4 what did you not understand in the fact that you can't play a MP4 until it's finished? ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] -movflags faststart revisited
So, even though I corrected the usage of the flag, I am still unable to play the output file before ffmpeg finishes the transcoding :( :( $ ~/bin/ffmpeg.d/ffmpeg -i video_Z11.mp4 -movflags faststart -vb 8000k -ab 384k -s 1920x1080 -y video_Z11-1920x1080.mp4 ffmpeg version 3.2.4-static http://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2017 the FFmpeg developers > > That usage is still not correct. It should be: -movflags +faststart You are forgetting the + symbol before the word faststart. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] -movflags faststart revisited
On 02/26/2017 07:49 PM, Reuben Martin wrote: Set the output format to flv. You can play flv before it’s finished encoding. If you decide you want to keep it, you can dump the video and audio streams from the flv into an mp4 file. (generally only takes a few seconds). Another option is to use something like -t 60 to encode a minute then check if the settings work for what you want. Ron ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] -movflags faststart revisited
I utilize ffplay a lot for previewing encoding settings.. make you might find it handy as well =] > On Feb 26, 2017, at 4:49 39PM, Reuben Martin wrote: > > On Sunday, February 26, 2017 5:44:56 PM CST JD wrote: >> On Sun, Feb 26, 2017 at 4:07 PM, Cley Faye wrote: >>> 2017-02-26 23:32 GMT+01:00 JD : Are there any flags that will let me playback an unfinished transcode? Reason I am asking is that if my various options in the transcode command did not yield what I like, then I would like to abort the transcode. >>> >>> mp4 files will never be playable without "finishing" them. But you can >>> interrupt the process at anytime with 'q'; that will properly close the >>> file so you can play it. >> >> Thanks - that is somewhat a panacea, especially if one >> is not 50% or more into the transcoding - so that issuing >> a 'q' will not lose too much is only say the transcoding is >> into 10 minutes of the video. >> >> Now how about ffplay? I mean is/are there options >> to ffplay that would allow the playing of the unfinsihed >> mp4 file (without quitting the trancoding)? >> > > Set the output format to flv. You can play flv before it’s finished encoding. > If you decide you want to keep it, you can dump the video and audio streams > from the flv into an mp4 file. (generally only takes a few seconds). > > -Reuben > ___ > ffmpeg-user mailing list > ffmpeg-user@ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] -movflags faststart revisited
On Sun, Feb 26, 2017 at 5:49 PM, Reuben Martin wrote: > On Sunday, February 26, 2017 5:44:56 PM CST JD wrote: > > On Sun, Feb 26, 2017 at 4:07 PM, Cley Faye wrote: > > > 2017-02-26 23:32 GMT+01:00 JD : > > > > Are there any flags that will let me playback an unfinished > transcode? > > > > Reason I am asking is that if my various options in the transcode > > > > command > > > > did not yield what I like, then I would like to abort the transcode. > > > > > > mp4 files will never be playable without "finishing" them. But you can > > > interrupt the process at anytime with 'q'; that will properly close the > > > file so you can play it. > > > > Thanks - that is somewhat a panacea, especially if one > > is not 50% or more into the transcoding - so that issuing > > a 'q' will not lose too much is only say the transcoding is > > into 10 minutes of the video. > > > > Now how about ffplay? I mean is/are there options > > to ffplay that would allow the playing of the unfinsihed > > mp4 file (without quitting the trancoding)? > > > > Set the output format to flv. You can play flv before it’s finished > encoding. > If you decide you want to keep it, you can dump the video and audio streams > from the flv into an mp4 file. (generally only takes a few seconds). > > -Reuben > Thanx a lot, Reuben!!! That's and excellent tip! ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] -movflags faststart revisited
On Sunday, February 26, 2017 5:44:56 PM CST JD wrote: > On Sun, Feb 26, 2017 at 4:07 PM, Cley Faye wrote: > > 2017-02-26 23:32 GMT+01:00 JD : > > > Are there any flags that will let me playback an unfinished transcode? > > > Reason I am asking is that if my various options in the transcode > > > command > > > did not yield what I like, then I would like to abort the transcode. > > > > mp4 files will never be playable without "finishing" them. But you can > > interrupt the process at anytime with 'q'; that will properly close the > > file so you can play it. > > Thanks - that is somewhat a panacea, especially if one > is not 50% or more into the transcoding - so that issuing > a 'q' will not lose too much is only say the transcoding is > into 10 minutes of the video. > > Now how about ffplay? I mean is/are there options > to ffplay that would allow the playing of the unfinsihed > mp4 file (without quitting the trancoding)? > Set the output format to flv. You can play flv before it’s finished encoding. If you decide you want to keep it, you can dump the video and audio streams from the flv into an mp4 file. (generally only takes a few seconds). -Reuben ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] -movflags faststart revisited
Am 27.02.2017 um 00:44 schrieb JD: On Sun, Feb 26, 2017 at 4:07 PM, Cley Faye wrote: 2017-02-26 23:32 GMT+01:00 JD : Are there any flags that will let me playback an unfinished transcode? Reason I am asking is that if my various options in the transcode command did not yield what I like, then I would like to abort the transcode. mp4 files will never be playable without "finishing" them. But you can interrupt the process at anytime with 'q'; that will properly close the file so you can play it. Thanks - that is somewhat a panacea, especially if one is not 50% or more into the transcoding - so that issuing a 'q' will not lose too much is only say the transcoding is into 10 minutes of the video. Now how about ffplay? I mean is/are there options to ffplay that would allow the playing of the unfinsihed mp4 file (without quitting the trancoding)? just read about what "faststart" does - it moves important information so that a file can start playing before it is completly loaded which are normally only available after encoding is finished fro the end of the file at the begin since that informations just don't exist before that you can answer that yourself here you go: http://www.adobe.com/devnet/video/articles/mp4_movie_atom.html ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] -movflags faststart revisited
On Sun, Feb 26, 2017 at 4:07 PM, Cley Faye wrote: > 2017-02-26 23:32 GMT+01:00 JD : > > > Are there any flags that will let me playback an unfinished transcode? > > Reason I am asking is that if my various options in the transcode command > > did not yield what I like, then I would like to abort the transcode. > > > > mp4 files will never be playable without "finishing" them. But you can > interrupt the process at anytime with 'q'; that will properly close the > file so you can play it. > Thanks - that is somewhat a panacea, especially if one is not 50% or more into the transcoding - so that issuing a 'q' will not lose too much is only say the transcoding is into 10 minutes of the video. Now how about ffplay? I mean is/are there options to ffplay that would allow the playing of the unfinsihed mp4 file (without quitting the trancoding)? ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] -movflags faststart revisited
2017-02-26 23:32 GMT+01:00 JD : > Are there any flags that will let me playback an unfinished transcode? > Reason I am asking is that if my various options in the transcode command > did not yield what I like, then I would like to abort the transcode. > mp4 files will never be playable without "finishing" them. But you can interrupt the process at anytime with 'q'; that will properly close the file so you can play it. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] -movflags faststart revisited
Thanx. Are there any flags that will let me playback an unfinished transcode? Reason I am asking is that if my various options in the transcode command did not yield what I like, then I would like to abort the transcode. Kind regards, JD On Sat, Feb 25, 2017 at 9:28 PM, Geek.Song wrote: > On Sun, Feb 26, 2017 at 11:28 AM, JD wrote: > > I retried to use this flag as it was indicated in a previous response by > a > > user. > > Sorry that I was unable to continue on the original thread, because the > > gmail web > > interface deletes original message sent to this list by the OP, when the > OP > > deletes the > > response from the list. > > > > So, even though I corrected the usage of the flag, I am still unable to > > play the output > > file before ffmpeg finishes the transcoding :( :( > > '-movflags faststart' will just move the header information from file > bottom to file top, it is only take effect after you have finished > encoding/muxing. > > So you can not use this flag in real time encoding and playback. > > > > > $ ~/bin/ffmpeg.d/ffmpeg -i video_Z11.mp4 -movflags faststart -vb 8000k > -ab > > 384k -s 1920x1080 -y video_Z11-1920x1080.mp4 > > ffmpeg version 3.2.4-static http://johnvansickle.com/ffmpeg/ Copyright > (c) > > 2000-2017 the FFmpeg developers > > built with gcc 5.4.1 (Debian 5.4.1-5) 20170205 > > configuration: --enable-gpl --enable-version3 --enable-static > > --disable-debug --disable-ffplay --disable-indev=sndio > > --disable-outdev=sndio --cc=gcc-5 --enable-fontconfig --enable-frei0r > > --enable-gnutls --enable-gray --enable-libass --enable-libfreetype > > --enable-libfribidi --enable-libmp3lame --enable-libopencore-amrnb > > --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus > > --enable-librtmp --enable-libsoxr --enable-libspeex --enable-libtheora > > --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis > > --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 > > --enable-libxvid --enable-libzimg > > libavutil 55. 34.101 / 55. 34.101 > > libavcodec 57. 64.101 / 57. 64.101 > > libavformat57. 56.101 / 57. 56.101 > > libavdevice57. 1.100 / 57. 1.100 > > libavfilter 6. 65.100 / 6. 65.100 > > libswscale 4. 2.100 / 4. 2.100 > > libswresample 2. 3.100 / 2. 3.100 > > libpostproc54. 1.100 / 54. 1.100 > > Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'video_Z11.mp4': > > Metadata: > > major_brand : isom > > minor_version : 512 > > compatible_brands: isomiso2avc1mp41 > > creation_time : 2016-11-29T13:42:34.00Z > > encoder : Lavf56.1.0 > > Duration: 02:22:55.48, start: 0.00, bitrate: 379 kb/s > > Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, > > 480x360 [SAR 1:1 DAR 4:3], 246 kb/s, 29.95 fps, 29.97 tbr, 90k tbn, 59.91 > > tbc (default) > > Metadata: > > creation_time : 2016-11-29T13:42:34.00Z > > handler_name: VideoHandler > > Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, > > stereo, fltp, 125 kb/s (default) > > Metadata: > > creation_time : 2016-11-29T13:42:34.00Z > > handler_name: SoundHandler > > [libx264 @ 0x5a3c240] using SAR=3/4 > > [libx264 @ 0x5a3c240] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 > > [libx264 @ 0x5a3c240] profile High, level 4.0 > > [libx264 @ 0x5a3c240] 264 - core 148 r333 90a61ec - H.264/MPEG-4 AVC > codec > > - Copyleft 2003-2017 - http://www.videolan.org/x264.html - options: > cabac=1 > > ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 > psy_rd=1.00:0.00 > > mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 > deadzone=21,11 > > fast_pskip=1 chroma_qp_offset=-2 threads=3 lookahead_threads=1 > > sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 > > constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 > > weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 > > intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=8000 ratetol=1.0 > > qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 > > Output #0, mp4, to 'video_Z11-1920x1080.mp4': > > Metadata: > > major_brand : isom > > minor_version : 512 > > compatible_brands: isomiso2avc1mp41 > > encoder : Lavf57.56.101 > > Stream #0:0(und): Video: h264 (libx264) ([33][0][0][0] / 0x0021), > > yuv420p, 1920x1080 [SAR 3:4 DAR 4:3], q=-1--1, 8000 kb/s, 29.97 fps, 30k > > tbn, 29.97 tbc (default) > > Metadata: > > creation_time : 2016-11-29T13:42:34.00Z > > handler_name: VideoHandler > > encoder : Lavc57.64.101 libx264 > > Side data: > > cpb: bitrate max/min/avg: 0/0/800 buffer size: 0 vbv_delay: -1 > > Stream #0:1(und): Audio: aac (LC) ([64][0][0][0] / 0x0040), 44100 Hz, > > stereo, fltp, 384 kb/s (default) > > Metadata: > > creation_time : 2016-11-29T13:42:34.00Z > > handler_name: Sou
Re: [FFmpeg-user] -movflags faststart revisited
On Feb 25, 2017 9:35 PM, "JD" wrote: I retried to use this flag as it was indicated in a previous response by a user. Sorry that I was unable to continue on the original thread, because the gmail web interface deletes original message sent to this list by the OP, when the OP deletes the response from the list. So, even though I corrected the usage of the flag, I am still unable to play the output file before ffmpeg finishes the transcoding :( :( As I wrote earlier, that will not work. Ever. You can't play an mp4 file of the file does not contain an moov atom. That atom cannot be written until the encoder is finished, because it contains info that cannot be determined until the encoder is finished encoding. If you want to view the output before the file is closed, your best bet is something like mpeg-ts, or flv. Or one of the segmented formats. -Reuben ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] -movflags faststart revisited
On Sun, Feb 26, 2017 at 11:28 AM, JD wrote: > I retried to use this flag as it was indicated in a previous response by a > user. > Sorry that I was unable to continue on the original thread, because the > gmail web > interface deletes original message sent to this list by the OP, when the OP > deletes the > response from the list. > > So, even though I corrected the usage of the flag, I am still unable to > play the output > file before ffmpeg finishes the transcoding :( :( '-movflags faststart' will just move the header information from file bottom to file top, it is only take effect after you have finished encoding/muxing. So you can not use this flag in real time encoding and playback. > > $ ~/bin/ffmpeg.d/ffmpeg -i video_Z11.mp4 -movflags faststart -vb 8000k -ab > 384k -s 1920x1080 -y video_Z11-1920x1080.mp4 > ffmpeg version 3.2.4-static http://johnvansickle.com/ffmpeg/ Copyright (c) > 2000-2017 the FFmpeg developers > built with gcc 5.4.1 (Debian 5.4.1-5) 20170205 > configuration: --enable-gpl --enable-version3 --enable-static > --disable-debug --disable-ffplay --disable-indev=sndio > --disable-outdev=sndio --cc=gcc-5 --enable-fontconfig --enable-frei0r > --enable-gnutls --enable-gray --enable-libass --enable-libfreetype > --enable-libfribidi --enable-libmp3lame --enable-libopencore-amrnb > --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus > --enable-librtmp --enable-libsoxr --enable-libspeex --enable-libtheora > --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis > --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 > --enable-libxvid --enable-libzimg > libavutil 55. 34.101 / 55. 34.101 > libavcodec 57. 64.101 / 57. 64.101 > libavformat57. 56.101 / 57. 56.101 > libavdevice57. 1.100 / 57. 1.100 > libavfilter 6. 65.100 / 6. 65.100 > libswscale 4. 2.100 / 4. 2.100 > libswresample 2. 3.100 / 2. 3.100 > libpostproc54. 1.100 / 54. 1.100 > Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'video_Z11.mp4': > Metadata: > major_brand : isom > minor_version : 512 > compatible_brands: isomiso2avc1mp41 > creation_time : 2016-11-29T13:42:34.00Z > encoder : Lavf56.1.0 > Duration: 02:22:55.48, start: 0.00, bitrate: 379 kb/s > Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, > 480x360 [SAR 1:1 DAR 4:3], 246 kb/s, 29.95 fps, 29.97 tbr, 90k tbn, 59.91 > tbc (default) > Metadata: > creation_time : 2016-11-29T13:42:34.00Z > handler_name: VideoHandler > Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, > stereo, fltp, 125 kb/s (default) > Metadata: > creation_time : 2016-11-29T13:42:34.00Z > handler_name: SoundHandler > [libx264 @ 0x5a3c240] using SAR=3/4 > [libx264 @ 0x5a3c240] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 > [libx264 @ 0x5a3c240] profile High, level 4.0 > [libx264 @ 0x5a3c240] 264 - core 148 r333 90a61ec - H.264/MPEG-4 AVC codec > - Copyleft 2003-2017 - http://www.videolan.org/x264.html - options: cabac=1 > ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 > mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 > fast_pskip=1 chroma_qp_offset=-2 threads=3 lookahead_threads=1 > sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 > constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 > weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 > intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=8000 ratetol=1.0 > qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 > Output #0, mp4, to 'video_Z11-1920x1080.mp4': > Metadata: > major_brand : isom > minor_version : 512 > compatible_brands: isomiso2avc1mp41 > encoder : Lavf57.56.101 > Stream #0:0(und): Video: h264 (libx264) ([33][0][0][0] / 0x0021), > yuv420p, 1920x1080 [SAR 3:4 DAR 4:3], q=-1--1, 8000 kb/s, 29.97 fps, 30k > tbn, 29.97 tbc (default) > Metadata: > creation_time : 2016-11-29T13:42:34.00Z > handler_name: VideoHandler > encoder : Lavc57.64.101 libx264 > Side data: > cpb: bitrate max/min/avg: 0/0/800 buffer size: 0 vbv_delay: -1 > Stream #0:1(und): Audio: aac (LC) ([64][0][0][0] / 0x0040), 44100 Hz, > stereo, fltp, 384 kb/s (default) > Metadata: > creation_time : 2016-11-29T13:42:34.00Z > handler_name: SoundHandler > encoder : Lavc57.64.101 aac > Stream mapping: > Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264)) > Stream #0:1 -> #0:1 (aac (native) -> aac (native)) > Press [q] to stop, [?] for help > ___ > ffmpeg-user mailing list > ffmpeg-user@ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". __
[FFmpeg-user] -movflags faststart revisited
I retried to use this flag as it was indicated in a previous response by a user. Sorry that I was unable to continue on the original thread, because the gmail web interface deletes original message sent to this list by the OP, when the OP deletes the response from the list. So, even though I corrected the usage of the flag, I am still unable to play the output file before ffmpeg finishes the transcoding :( :( $ ~/bin/ffmpeg.d/ffmpeg -i video_Z11.mp4 -movflags faststart -vb 8000k -ab 384k -s 1920x1080 -y video_Z11-1920x1080.mp4 ffmpeg version 3.2.4-static http://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2017 the FFmpeg developers built with gcc 5.4.1 (Debian 5.4.1-5) 20170205 configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-5 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gray --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzimg libavutil 55. 34.101 / 55. 34.101 libavcodec 57. 64.101 / 57. 64.101 libavformat57. 56.101 / 57. 56.101 libavdevice57. 1.100 / 57. 1.100 libavfilter 6. 65.100 / 6. 65.100 libswscale 4. 2.100 / 4. 2.100 libswresample 2. 3.100 / 2. 3.100 libpostproc54. 1.100 / 54. 1.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'video_Z11.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 creation_time : 2016-11-29T13:42:34.00Z encoder : Lavf56.1.0 Duration: 02:22:55.48, start: 0.00, bitrate: 379 kb/s Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 480x360 [SAR 1:1 DAR 4:3], 246 kb/s, 29.95 fps, 29.97 tbr, 90k tbn, 59.91 tbc (default) Metadata: creation_time : 2016-11-29T13:42:34.00Z handler_name: VideoHandler Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default) Metadata: creation_time : 2016-11-29T13:42:34.00Z handler_name: SoundHandler [libx264 @ 0x5a3c240] using SAR=3/4 [libx264 @ 0x5a3c240] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 [libx264 @ 0x5a3c240] profile High, level 4.0 [libx264 @ 0x5a3c240] 264 - core 148 r333 90a61ec - H.264/MPEG-4 AVC codec - Copyleft 2003-2017 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=3 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=8000 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 Output #0, mp4, to 'video_Z11-1920x1080.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf57.56.101 Stream #0:0(und): Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 1920x1080 [SAR 3:4 DAR 4:3], q=-1--1, 8000 kb/s, 29.97 fps, 30k tbn, 29.97 tbc (default) Metadata: creation_time : 2016-11-29T13:42:34.00Z handler_name: VideoHandler encoder : Lavc57.64.101 libx264 Side data: cpb: bitrate max/min/avg: 0/0/800 buffer size: 0 vbv_delay: -1 Stream #0:1(und): Audio: aac (LC) ([64][0][0][0] / 0x0040), 44100 Hz, stereo, fltp, 384 kb/s (default) Metadata: creation_time : 2016-11-29T13:42:34.00Z handler_name: SoundHandler encoder : Lavc57.64.101 aac Stream mapping: Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264)) Stream #0:1 -> #0:1 (aac (native) -> aac (native)) Press [q] to stop, [?] for help ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".