fork download
  1. ffmpeg -i test.mp4 -vcodec copy -acodec copy -map 0 -f segment -segment_time 6:00:00 test_%03d.mp4
  2.  
  3. ffmpeg version N-46503-gde0aa9e Copyright (c) 2000-2012 the FFmpeg developers
  4. built on Nov 9 2012 13:03:18 with gcc 4.8.0 (GCC) 20121108 (experimental)
  5. configuration: --enable-gpl --enable-libfaac --enable-libfdk-aac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx --enable-x11grab --enable-libx264 --enable-nonfree --enable-libvorbis --enable-shared --enable-static --enable-version3 --enable-libopenjpeg --prefix=/home/exp
  6. libavutil 52. 5.100 / 52. 5.100
  7. libavcodec 54. 71.100 / 54. 71.100
  8. libavformat 54. 36.100 / 54. 36.100
  9. libavdevice 54. 3.100 / 54. 3.100
  10. libavfilter 3. 21.106 / 3. 21.106
  11. libswscale 2. 1.102 / 2. 1.102
  12. libswresample 0. 16.100 / 0. 16.100
  13. libpostproc 52. 1.100 / 52. 1.100
  14. [h264 @ 0x18e7ee0] no frame!
  15. Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.mp4':
  16. Metadata:
  17. major_brand : isom
  18. minor_version : 1
  19. compatible_brands: isomavc1
  20. creation_time : 2011-10-07 23:20:04
  21. date : 2011
  22. title : asdf
  23. artist : asdf
  24. genre : asdf
  25. comment : asdf
  26. Duration: 00:23:59.70, start: 0.000000, bitrate: 2182 kb/s
  27. Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 1987 kb/s, 24.49 fps, 24.49 tbr, 24489 tbn, 48.98 tbc
  28. Metadata:
  29. creation_time : 2011-10-07 23:20:04
  30. handler_name : Imported with GPAC 0.4.6-DEV (internal rev. 7)
  31. Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, s16, 191 kb/s
  32. Metadata:
  33. creation_time : 2011-10-07 23:20:11
  34. handler_name : Imported with GPAC 0.4.6-DEV (internal rev. 7)
  35. [mp4 @ 0x18dd680] Tag avc1/0x31637661 incompatible with output codec id '28' ([33][0][0][0])
  36. Output #0, segment, to 'test_%03d.mp4':
  37. Metadata:
  38. major_brand : isom
  39. minor_version : 1
  40. compatible_brands: isomavc1
  41. comment : asdf
  42. date : 2011
  43. title : asdf
  44. artist : asdf
  45. genre : asdf
  46. encoder : Lavf54.36.100
  47. Stream #0:0(und): Video: h264 (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 1987 kb/s, 24.49 fps, 90k tbn, 24.49 tbc
  48. Metadata:
  49. creation_time : 2011-10-07 23:20:04
  50. handler_name : Imported with GPAC 0.4.6-DEV (internal rev. 7)
  51. Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, 191 kb/s
  52. Metadata:
  53. creation_time : 2011-10-07 23:20:11
  54. handler_name : Imported with GPAC 0.4.6-DEV (internal rev. 7)
  55. Stream mapping:
  56. Stream #0:0 -> #0:0 (copy)
  57. Stream #0:1 -> #0:1 (copy)
  58. Could not write header for output file #0 (incorrect codec parameters ?): Invalid data found when processing input
  59.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:1:92: error: invalid suffix "d.mp4" on integer constant
prog.cpp:4:42: error: too many decimal points in number
prog.cpp:14: error: stray ‘@’ in program
prog.cpp:15: error: stray ‘#’ in program
prog.cpp:15:23: error: invalid suffix "gp" on integer constant
prog.cpp:15:27: error: invalid suffix "g2" on integer constant
prog.cpp:15:41: warning: character constant too long for its type
prog.cpp:27: error: stray ‘#’ in program
prog.cpp:27:72: error: invalid suffix "x720" on integer constant
prog.cpp:30:44: error: too many decimal points in number
prog.cpp:31: error: stray ‘#’ in program
prog.cpp:34:44: error: too many decimal points in number
prog.cpp:35: error: stray ‘@’ in program
prog.cpp:35:73: warning: multi-character character constant
prog.cpp:36: error: stray ‘#’ in program
prog.cpp:36:24: warning: character constant too long for its type
prog.cpp:46:29: error: too many decimal points in number
prog.cpp:47: error: stray ‘#’ in program
prog.cpp:47:65: error: invalid suffix "x720" on integer constant
prog.cpp:50:44: error: too many decimal points in number
prog.cpp:51: error: stray ‘#’ in program
prog.cpp:54:44: error: too many decimal points in number
prog.cpp:56: error: stray ‘#’ in program
prog.cpp:56: error: stray ‘#’ in program
prog.cpp:57: error: stray ‘#’ in program
prog.cpp:57: error: stray ‘#’ in program
prog.cpp:58: error: stray ‘#’ in program
prog.cpp:1: error: expected constructor, destructor, or type conversion before ‘-’ token
stdout
Standard output is empty