Hello, I'm getting corrupted video file.
I shared archive via google drive. files.zip <https://docs.google.com/file/d/0B0RcUNcUERU5eGVubk85U3VyQ1k/edit?usp=drive_web> I was using this commands: ffmpeg -i google.mp4 -ss 00:00:00 -to 00:00:10 -c:a copy -vf "drawbox= : x=0 : y=0 : color=invert : t=15" cut1.mp4; ffmpeg -i google.mp4 -ss 00:00:10 -c copy cut2.mp4; ffmpeg -f concat -i mylist.txt -c copy output.mp4; +++ mylist.txt file 'cut1.mp4' file 'cut2.mp4' I tried with different files - getting the same output. Video is playable, but after 10 seconds I'm getting green screen ... ++++++++++++++++++++++ ffmpeg -i google.mp4 ffmpeg version 2.6.2 Copyright (c) 2000-2015 the FFmpeg developers built with Apple LLVM version 6.1.0 (clang-602.0.49) (based on LLVM 3.6.0svn) configuration: --prefix=/usr/local/Cellar/ffmpeg/2.6.2 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-libx264 --enable-libmp3lame --enable-libvo-aacenc --enable-libxvid --enable-vda libavutil 54. 20.100 / 54. 20.100 libavcodec 56. 26.100 / 56. 26.100 libavformat 56. 25.101 / 56. 25.101 libavdevice 56. 4.100 / 56. 4.100 libavfilter 5. 11.102 / 5. 11.102 libavresample 2. 1. 0 / 2. 1. 0 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 3.100 / 53. 3.100 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7faf29808c00] stream 0, timescale not set Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'google.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 artist : Google Developers album : comment : www.mediahuman.com date : 0 genre : title : Google Drive SDK: Writing your first Drive app in PHP encoder : Lavf56.4.101 Duration: 00:25:22.42, start: 0.000000, bitrate: 655 kb/s Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 854x480 [SAR 1280:1281 DAR 16:9], 526 kb/s, 30 fps, 30 tbr, 90k tbn, 60 tbc (default) Metadata: handler_name : VideoHandler Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default) Metadata: handler_name : SoundHandler Stream #0:2: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 1280x720 [SAR 1:1 DAR 16:9], 90k tbr, 90k tbn, 90k tbc +++ ffmpeg -i google.mp4 -ss 00:00:00 -to 00:00:10 -c:a copy -vf "drawbox= : x=0 : y=0 : color=invert : t=15" cut1.mp4; ffmpeg version 2.6.2 Copyright (c) 2000-2015 the FFmpeg developers built with Apple LLVM version 6.1.0 (clang-602.0.49) (based on LLVM 3.6.0svn) configuration: --prefix=/usr/local/Cellar/ffmpeg/2.6.2 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-libx264 --enable-libmp3lame --enable-libvo-aacenc --enable-libxvid --enable-vda libavutil 54. 20.100 / 54. 20.100 libavcodec 56. 26.100 / 56. 26.100 libavformat 56. 25.101 / 56. 25.101 libavdevice 56. 4.100 / 56. 4.100 libavfilter 5. 11.102 / 5. 11.102 libavresample 2. 1. 0 / 2. 1. 0 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 3.100 / 53. 3.100 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fce09012000] stream 0, timescale not set Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'google.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 artist : Google Developers album : comment : www.mediahuman.com date : 0 genre : title : Google Drive SDK: Writing your first Drive app in PHP encoder : Lavf56.4.101 Duration: 00:25:22.42, start: 0.000000, bitrate: 655 kb/s Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 854x480 [SAR 1280:1281 DAR 16:9], 526 kb/s, 30 fps, 30 tbr, 90k tbn, 60 tbc (default) Metadata: handler_name : VideoHandler Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default) Metadata: handler_name : SoundHandler Stream #0:2: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 1280x720 [SAR 1:1 DAR 16:9], 90k tbr, 90k tbn, 90k tbc [libx264 @ 0x7fce090fe600] using SAR=1280/1281 [libx264 @ 0x7fce090fe600] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2 [libx264 @ 0x7fce090fe600] profile High, level 3.1 [libx264 @ 0x7fce090fe600] 264 - core 144 r2533 c8a773e - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - 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=6 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=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 Output #0, mp4, to 'cut1.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 artist : Google Developers album : comment : www.mediahuman.com date : 0 genre : title : Google Drive SDK: Writing your first Drive app in PHP encoder : Lavf56.25.101 Stream #0:0(und): Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 854x480 [SAR 1280:1281 DAR 16:9], q=-1--1, 30 fps, 15360 tbn, 30 tbc (default) Metadata: handler_name : VideoHandler encoder : Lavc56.26.100 libx264 Stream #0:1(und): Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz, stereo, 125 kb/s (default) Metadata: handler_name : SoundHandler Stream mapping: Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264)) Stream #0:1 -> #0:1 (copy) Press [q] to stop, [?] for help frame= 300 fps=131 q=-1.0 Lsize= 430kB time=00:00:10.00 bitrate= 351.7kbits/s video:264kB audio:154kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 2.824564% [libx264 @ 0x7fce090fe600] frame I:2 Avg QP: 9.99 size: 2953 [libx264 @ 0x7fce090fe600] frame P:115 Avg QP:21.36 size: 1855 [libx264 @ 0x7fce090fe600] frame B:183 Avg QP:27.64 size: 276 [libx264 @ 0x7fce090fe600] consecutive B-frames: 16.0% 6.7% 4.0% 73.3% [libx264 @ 0x7fce090fe600] mb I I16..4: 93.4% 1.8% 4.8% [libx264 @ 0x7fce090fe600] mb P I16..4: 8.5% 7.8% 0.6% P16..4: 10.3% 3.1% 1.4% 0.0% 0.0% skip:68.3% [libx264 @ 0x7fce090fe600] mb B I16..4: 0.4% 0.2% 0.0% B16..8: 8.9% 0.6% 0.0% direct: 0.1% skip:89.9% L0:43.4% L1:54.3% BI: 2.3% [libx264 @ 0x7fce090fe600] 8x8 transform intra:41.7% inter:74.4% [libx264 @ 0x7fce090fe600] coded y,uvDC,uvAC intra: 10.6% 14.2% 3.5% inter: 2.0% 2.2% 0.2% [libx264 @ 0x7fce090fe600] i16 v,h,dc,p: 49% 44% 1% 5% [libx264 @ 0x7fce090fe600] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 31% 34% 27% 1% 1% 2% 1% 1% 1% [libx264 @ 0x7fce090fe600] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 31% 28% 22% 2% 4% 5% 3% 3% 1% [libx264 @ 0x7fce090fe600] i8c dc,h,v,p: 78% 15% 6% 1% [libx264 @ 0x7fce090fe600] Weighted P-Frames: Y:20.0% UV:18.3% [libx264 @ 0x7fce090fe600] ref P L0: 76.4% 9.9% 10.5% 3.2% 0.0% [libx264 @ 0x7fce090fe600] ref B L0: 90.0% 8.7% 1.3% [libx264 @ 0x7fce090fe600] ref B L1: 95.9% 4.1% [libx264 @ 0x7fce090fe600] kb/s:215.81 +++ ffmpeg -i google.mp4 -ss 00:00:10 -c copy cut2.mp4; ffmpeg version 2.6.2 Copyright (c) 2000-2015 the FFmpeg developers built with Apple LLVM version 6.1.0 (clang-602.0.49) (based on LLVM 3.6.0svn) configuration: --prefix=/usr/local/Cellar/ffmpeg/2.6.2 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-libx264 --enable-libmp3lame --enable-libvo-aacenc --enable-libxvid --enable-vda libavutil 54. 20.100 / 54. 20.100 libavcodec 56. 26.100 / 56. 26.100 libavformat 56. 25.101 / 56. 25.101 libavdevice 56. 4.100 / 56. 4.100 libavfilter 5. 11.102 / 5. 11.102 libavresample 2. 1. 0 / 2. 1. 0 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 3.100 / 53. 3.100 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f95c1800a00] stream 0, timescale not set Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'google.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 artist : Google Developers album : comment : www.mediahuman.com date : 0 genre : title : Google Drive SDK: Writing your first Drive app in PHP encoder : Lavf56.4.101 Duration: 00:25:22.42, start: 0.000000, bitrate: 655 kb/s Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 854x480 [SAR 1280:1281 DAR 16:9], 526 kb/s, 30 fps, 30 tbr, 90k tbn, 60 tbc (default) Metadata: handler_name : VideoHandler Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default) Metadata: handler_name : SoundHandler Stream #0:2: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 1280x720 [SAR 1:1 DAR 16:9], 90k tbr, 90k tbn, 90k tbc Output #0, mp4, to 'cut2.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 artist : Google Developers album : comment : www.mediahuman.com date : 0 genre : title : Google Drive SDK: Writing your first Drive app in PHP encoder : Lavf56.25.101 Stream #0:0(und): Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 854x480 [SAR 1280:1281 DAR 16:9], q=2-31, 526 kb/s, 30 fps, 30 tbr, 90k tbn, 90k tbc (default) Metadata: handler_name : VideoHandler Stream #0:1(und): Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz, stereo, 125 kb/s (default) Metadata: handler_name : SoundHandler Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) Press [q] to stop, [?] for help frame=45220 fps=7952 q=-1.0 Lsize= 121524kB time=00:25:12.41 bitrate= 658.2kbits/s video:96863kB audio:23186kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.228370% +++ ffmpeg -f concat -i mylist.txt -c copy output.mp4; ffmpeg version 2.6.2 Copyright (c) 2000-2015 the FFmpeg developers built with Apple LLVM version 6.1.0 (clang-602.0.49) (based on LLVM 3.6.0svn) configuration: --prefix=/usr/local/Cellar/ffmpeg/2.6.2 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-libx264 --enable-libmp3lame --enable-libvo-aacenc --enable-libxvid --enable-vda libavutil 54. 20.100 / 54. 20.100 libavcodec 56. 26.100 / 56. 26.100 libavformat 56. 25.101 / 56. 25.101 libavdevice 56. 4.100 / 56. 4.100 libavfilter 5. 11.102 / 5. 11.102 libavresample 2. 1. 0 / 2. 1. 0 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 3.100 / 53. 3.100 Input #0, concat, from 'mylist.txt': Duration: N/A, start: 0.000000, bitrate: 342 kb/s Stream #0:0: Video: h264 (High) (avc1 / 0x31637661), yuv420p, 854x480 [SAR 1280:1281 DAR 16:9], 216 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s Output #0, mp4, to 'output.mp4': Metadata: encoder : Lavf56.25.101 Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 854x480 [SAR 1280:1281 DAR 16:9], q=2-31, 216 kb/s, 30 fps, 30 tbr, 15360 tbn, 15360 tbc Stream #0:1: Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz, stereo, 125 kb/s Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) Press [q] to stop, [?] for help frame=45520 fps=33296 q=-1.0 Lsize= 121951kB time=02:28:39.53 bitrate= 112.0kbits/s video:97127kB audio:23340kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.231770% _______________________________________________ ffmpeg-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/ffmpeg-user
