Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ffmpeg -ss 00:01:00 -noaccurate_seek -i $1 -t 2 -c copy cut1.mp4
- ffmpeg -ss 00:02:00 -noaccurate_seek -i $1 -t 2 -c copy cut2.mp4
- ffmpeg -ss 00:03:00 -noaccurate_seek -i $1 -t 2 -c copy cut3.mp4
- ffmpeg -ss 00:04:00 -noaccurate_seek -i $1 -t 2 -c copy cut4.mp4
- ffmpeg -ss 00:05:00 -noaccurate_seek -i $1 -t 2 -c copy cut5.mp4
- ffmpeg -ss 00:06:00 -noaccurate_seek -i $1 -t 2 -c copy cut6.mp4
- ffmpeg -ss 00:07:00 -noaccurate_seek -i $1 -t 2 -c copy cut7.mp4
- ffmpeg -i cut1.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts -y intermediate1.ts
- ffmpeg -i cut2.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts -y intermediate2.ts
- ffmpeg -i cut3.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts -y intermediate3.ts
- ffmpeg -i cut4.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts -y intermediate4.ts
- ffmpeg -i cut5.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts -y intermediate5.ts
- ffmpeg -i cut6.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts -y intermediate6.ts
- ffmpeg -i cut7.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts -y intermediate7.ts
- ffmpeg -i "concat:intermediate1.ts|intermediate2.ts|intermediate3.ts|intermediate4.ts|intermediate5.ts|intermediate6.ts|intermediate7.ts" -c copy -bsf:a aac_adtstoasc -y $1.mp4
- # cleanup
- rm -f cut*.mp4
- rm -f intermediate*.ts
- ###### FILE BELOW HAS CUTS > 2 SECONDS (TOTAL APPROX. 40 SECS)
- processing# ffprobe yifod7jj.mp4
- ffprobe version 2.4.3-1ubuntu1~trusty6 Copyright (c) 2007-2014 the FFmpeg developers
- built on Nov 22 2014 17:07:19 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
- configuration: --prefix=/usr --extra-version='1ubuntu1~trusty6' --build-suffix=-ffmpeg --toolchain=hardened --extra-cflags= --extra-cxxflags= --libdir=/usr/lib/x86_64-linux-gnu --shlibdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --enable-shared --disable-stripping --enable-avresample --enable-avisynth --enable-fontconfig --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-opengl --enable-x11grab --enable-libxvid --enable-libx265 --enable-libdc1394 --enable-libiec61883 --enable-libzvbi --enable-libzmq --enable-frei0r --enable-libx264 --enable-libsoxr --enable-openal --enable-libopencv
- libavutil 54. 7.100 / 54. 7.100
- libavcodec 56. 1.100 / 56. 1.100
- libavformat 56. 4.101 / 56. 4.101
- libavdevice 56. 0.100 / 56. 0.100
- libavfilter 5. 1.100 / 5. 1.100
- libavresample 2. 1. 0 / 2. 1. 0
- libswscale 3. 0.100 / 3. 0.100
- libswresample 1. 1.100 / 1. 1.100
- libpostproc 53. 0.100 / 53. 0.100
- Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'yifod7jj.mp4':
- Metadata:
- major_brand : isom
- minor_version : 512
- compatible_brands: isomiso2avc1mp41
- encoder : Lavf54.29.104
- Duration: 00:28:38.32, start: 0.000000, bitrate: 12402 kb/s
- Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 12283 kb/s, 24 fps, 24 tbr, 24 tbn, 48 tbc (default)
- Metadata:
- handler_name : VideoHandler
- Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 114 kb/s (default)
- Metadata:
- handler_name : SoundHandler
- ###### FILE BELOW HAS INTENDED OUTPUT (TOTAL 14 SECS, 2 SECS x 7 CUTS)
- processing# ffprobe
- 0kssnwxg/ 3st6vxs8/ 8fb55sbs/ am1ykiga/ cjqhsn6k/ clipmaker2.sh output3.mp4 output6.mp4 yifod7jj.mp4 yo4cfhwb.mp4
- 0kssnwxg.mp4 3st6vxs8.mp4 8fb55sbs.mp4 am1ykiga.mp4 cjqhsn6k.mp4 clippy.sh output4.mp4 output7.mp4 yifod7jj.mp4.keyframes yo4cfhwb.mp4.keyframes
- 0kssnwxg.mp4.keyframes 3st6vxs8.mp4.keyframes 8fb55sbs.mp4.keyframes am1ykiga.mp4.keyframes cjqhsn6k.mp4.keyframes concat.sh output5.mp4 yifod7jj/ yo4cfhwb/
- root@pornbot-nzb:/srv/pbot/processing# ffprobe cjqhsn6k.mp4
- ffprobe version 2.4.3-1ubuntu1~trusty6 Copyright (c) 2007-2014 the FFmpeg developers
- built on Nov 22 2014 17:07:19 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
- configuration: --prefix=/usr --extra-version='1ubuntu1~trusty6' --build-suffix=-ffmpeg --toolchain=hardened --extra-cflags= --extra-cxxflags= --libdir=/usr/lib/x86_64-linux-gnu --shlibdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --enable-shared --disable-stripping --enable-avresample --enable-avisynth --enable-fontconfig --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-opengl --enable-x11grab --enable-libxvid --enable-libx265 --enable-libdc1394 --enable-libiec61883 --enable-libzvbi --enable-libzmq --enable-frei0r --enable-libx264 --enable-libsoxr --enable-openal --enable-libopencv
- libavutil 54. 7.100 / 54. 7.100
- libavcodec 56. 1.100 / 56. 1.100
- libavformat 56. 4.101 / 56. 4.101
- libavdevice 56. 0.100 / 56. 0.100
- libavfilter 5. 1.100 / 5. 1.100
- libavresample 2. 1. 0 / 2. 1. 0
- libswscale 3. 0.100 / 3. 0.100
- libswresample 1. 1.100 / 1. 1.100
- libpostproc 53. 0.100 / 53. 0.100
- Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'cjqhsn6k.mp4':
- Metadata:
- major_brand : mp42
- minor_version : 0
- compatible_brands: mp42isomavc1
- creation_time : 2015-05-26 13:11:13
- compilation : 0
- encoder : Sorenson Squeeze
- comment : Encoded by abc123inc
- Duration: 00:13:50.46, start: 0.000000, bitrate: 6132 kb/s
- Stream #0:0(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
- Metadata:
- creation_time : 2015-05-26 13:11:13
- handler_name : soun
- Stream #0:1(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 5998 kb/s, 30 fps, 30 tbr, 600 tbn, 60 tbc (default)
- Metadata:
- creation_time : 2015-05-26 13:11:13
- handler_name : vide
- encoder : AVC Coding
- Stream #0:2(und): Data: none (mp4s / 0x7334706D) (default)
- Metadata:
- creation_time : 2015-05-26 13:32:41
- handler_name : sdsm
- Stream #0:3(und): Data: none (mp4s / 0x7334706D) (default)
- Metadata:
- creation_time : 2015-05-26 13:32:41
- handler_name : odsm
- Unsupported codec with id 0 for input stream 2
- Unsupported codec with id 0 for input stream 3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement