[FFmpeg-user] Split a video with -map 0 -c:v copy -c:a copy have audio BUT NOT video output.

alberto fiaschi alberto.fiaschi at gmail.com
Tue Sep 9 15:47:49 CEST 2014


this command  give me only audio have you any solution ?

ffmpeg  -loglevel debug  -i ./track_a.ts -ss '00:03:50' -to '00:31:42' -map
0 -c:v copy -c:a copy    GioNew.mp4

This is the output :

ffmpeg  -loglevel debug  -i ./track_a.ts -ss '00:03:50' -to '00:31:42' -map
0 -c:v copy -c:a copy    GioNew.mp4
ffmpeg version 2.1.5 Copyright (c) 2000-2014 the FFmpeg developers
  built on Sep  8 2014 18:29:28 with gcc 4.8.3 (GCC)
  configuration: --prefix=/usr --libdir=/usr/lib --shlibdir=/usr/lib
--docdir=/usr/doc/ffmpeg-2.1.5/html --mandir=/usr/man --disable-debug
--enable-shared --disable-static --enable-pthreads --enable-libtheora
--enable-libvorbis --enable-gpl --enable-version3 --enable-postproc
--enable-swscale --enable-x11grab --enable-avfilter --enable-gnutls
--enable-libcdio --enable-libssh --arch=i486 --enable-libmp3lame
--enable-libx264
  libavutil      52. 48.101 / 52. 48.101
  libavcodec     55. 39.101 / 55. 39.101
  libavformat    55. 19.104 / 55. 19.104
  libavdevice    55.  5.100 / 55.  5.100
  libavfilter     3. 90.100 /  3. 90.100
  libswscale      2.  5.101 /  2.  5.101
  libswresample   0. 17.104 /  0. 17.104
  libpostproc    52.  3.100 / 52.  3.100
Splitting the commandline.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging
level) with argument 'debug'.
Reading option '-i' ... matched as input file with argument './track_a.ts'.
Reading option '-ss' ... matched as option 'ss' (set the start time offset)
with argument '00:03:50'.
Reading option '-to' ... matched as option 'to' (record or transcode stop
time) with argument '00:31:42'.
Reading option '-map' ... matched as option 'map' (set input stream
mapping) with argument '0'.
Reading option '-c:v' ... matched as option 'c' (codec name) with argument
'copy'.
Reading option '-c:a' ... matched as option 'c' (codec name) with argument
'copy'.
Reading option 'GioNew.mp4' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option loglevel (set logging level) with argument debug.
Successfully parsed a group of options.
Parsing a group of options: input file ./track_a.ts.
Successfully parsed a group of options.
Opening an input file: ./track_a.ts.
[mpegts @ 0x8088e40] Format mpegts probed with size=2048 and score=100
[mpegts @ 0x8088e40] stream=0 stream_type=1b pid=1011 prog_reg_desc=HDMV
[mpegts @ 0x8088e40] stream=1 stream_type=81 pid=1100 prog_reg_desc=HDMV
[mpegts @ 0x8088e40] File position before avformat_find_stream_info() is 0
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 45201 (pts
56001, duration 1800) in the queue
[h264 @ 0x808cba0] no picture
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 48801 (pts
48801, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 52401 (pts
52401, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 56001 (pts
66801, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 59601 (pts
59601, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 63201 (pts
63201, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 66801 (pts
77601, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 70401 (pts
70401, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 74001 (pts
74001, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 77601 (pts
88401, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 81201 (pts
81201, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 84801 (pts
84801, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 88401 (pts
99201, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 92001 (pts
92001, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 95601 (pts
95601, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 99201 (pts
110001, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 102801 (pts
102801, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 106401 (pts
106401, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 110001 (pts
120801, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 113601 (pts
113601, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 117201 (pts
117201, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 120801 (pts
131601, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 124401 (pts
124401, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 128001 (pts
128001, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 131601 (pts
142401, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 135201 (pts
135201, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 138801 (pts
138801, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 142401 (pts
153201, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 146001 (pts
146001, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 149601 (pts
149601, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 153201 (pts
164001, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 156801 (pts
156801, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 160401 (pts
160401, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 164001 (pts
174801, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 167601 (pts
167601, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 171201 (pts
171201, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 174801 (pts
185601, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 178401 (pts
178401, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 182001 (pts
182001, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 185601 (pts
196401, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 189201 (pts
189201, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 192801 (pts
192801, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 196401 (pts
207201, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 200001 (pts
200001, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 203601 (pts
203601, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 207201 (pts
218001, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 210801 (pts
210801, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 214401 (pts
214401, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 218001 (pts
228801, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 221601 (pts
221601, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 225201 (pts
225201, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 228801 (pts
239601, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 232401 (pts
232401, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 236001 (pts
236001, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 239601 (pts
250401, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 243201 (pts
243201, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 246801 (pts
246801, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 250401 (pts
261201, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 254001 (pts
254001, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 257601 (pts
257601, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 261201 (pts
272001, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 264801 (pts
264801, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 268401 (pts
268401, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 272001 (pts
282801, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 275601 (pts
275601, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 279201 (pts
279201, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 282801 (pts
293601, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 286401 (pts
286401, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 290001 (pts
290001, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 293601 (pts
304401, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 297201 (pts
297201, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 300801 (pts
300801, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 304401 (pts
315201, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 308001 (pts
308001, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 311601 (pts
311601, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 315201 (pts
326001, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 318801 (pts
318801, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 322401 (pts
322401, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 326001 (pts
336801, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 329601 (pts
329601, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 333201 (pts
333201, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 336801 (pts
347601, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 340401 (pts
340401, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 344001 (pts
344001, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 347601 (pts
358401, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 351201 (pts
351201, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 354801 (pts
354801, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 358401 (pts
369201, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 362001 (pts
362001, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 365601 (pts
365601, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 369201 (pts
380001, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 372801 (pts
372801, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 376401 (pts
376401, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 380001 (pts
390801, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 383601 (pts
383601, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 387201 (pts
387201, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 390801 (pts
401601, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 394401 (pts
394401, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 398001 (pts
398001, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 401601 (pts
412401, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 405201 (pts
405201, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 408801 (pts
408801, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 412401 (pts
423201, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 416001 (pts
416001, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 419601 (pts
419601, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 423201 (pts
434001, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 426801 (pts
426801, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 430401 (pts
430401, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 434001 (pts
444801, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 437601 (pts
437601, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 441201 (pts
441201, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 444801 (pts
455601, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 448401 (pts
448401, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 452001 (pts
452001, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 455601 (pts
466401, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 459201 (pts
459201, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 462801 (pts
462801, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 466401 (pts
477201, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 470001 (pts
470001, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 473601 (pts
473601, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 477201 (pts
488001, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 480801 (pts
480801, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 484401 (pts
484401, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 488001 (pts
498801, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 491601 (pts
491601, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 495201 (pts
495201, duration 1800) in the queue
[mpegts @ 0x8088e40] max_analyze_duration 5000000 reached at 5000000
microseconds
[mpegts @ 0x8088e40] File position after avformat_find_stream_info() is 0
Input #0, mpegts, from './track_a.ts':
  Duration: 03:37:43.65, start: 0.522233, bitrate: 5537 kb/s
  Program 1
    Stream #0:0[0x1011], 252, 1/90000: Video: h264 (High) (HDMV /
0x564D4448), yuv420p, 1440x1080 [SAR 4:3 DAR 16:9], 1/50, 25 fps, 50 tbr,
90k tbn, 50 tbc
    Stream #0:1[0x1100], 158, 1/90000: Audio: ac3 (AC-3 / 0x332D4341),
48000 Hz, stereo, fltp, 256 kb/s
Successfully opened the file.
Parsing a group of options: output file GioNew.mp4.
Applying option ss (set the start time offset) with argument 00:03:50.
Applying option to (record or transcode stop time) with argument 00:31:42.
Applying option map (set input stream mapping) with argument 0.
Applying option c:v (codec name) with argument copy.
Applying option c:a (codec name) with argument copy.
Successfully parsed a group of options.
Opening an output file: GioNew.mp4.
Successfully opened the file.
[mp4 @ 0x808f5c0] track 1: codec frame size is not set
Output #0, mp4, to 'GioNew.mp4':
  Metadata:
    encoder         : Lavf55.19.104
    Stream #0:0, 0, 1/90000: Video: h264 ([33][0][0][0] / 0x0021), yuv420p,
1440x1080 [SAR 4:3 DAR 16:9], 1/90000, q=2-31, 25 fps, 90k tbn, 90k tbc
    Stream #0:1, 0, 1/48000: Audio: ac3 ([165][0][0][0] / 0x00A5), 48000
Hz, stereo, 256 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 45201 (pts
56001, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 48801 (pts
48801, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 52401 (pts
52401, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 56001 (pts
66801, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 59601 (pts
59601, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 63201 (pts
63201, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 66801 (pts
77601, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 70401 (pts
70401, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 74001 (pts
74001, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 77601 (pts
88401, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 81201 (pts
81201, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 84801 (pts
84801, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 88401 (pts
99201, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 92001 (pts
92001, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 95601 (pts
95601, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 99201 (pts
110001, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 102801 (pts
102801, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 106401 (pts
106401, duration 1800) in the queue
[mpegts @ 0x8088e40] first_dts 43401 not matching first dts 110001 (pts
120801, duration 1800) in the queue


More information about the ffmpeg-user mailing list