[FFmpeg-trac] #2805(undetermined:new): Can not demux to elementary .h264

FFmpeg trac at avcodec.org
Tue Jul 23 13:05:47 CEST 2013


#2805: Can not demux to elementary .h264
-------------------------------------+-------------------------------------
             Reporter:  mikhailov    |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:               |                  Version:
  undetermined                       |  unspecified
             Keywords:  mux, demux,  |               Blocked By:
  h.264                              |  Reproduced by developer:  0
             Blocking:               |
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Summary of the bug:

 Impossible to mux elementary video stream that were demuxed with ffmpeg
 before (h264 video stream).

 How to reproduce:
 {{{
 % ffmpeg -i input.flv -c:v copy -c:a libvo_aacenc -ab 96k -ac 1
 output_0.mp4
 % ffmpeg -i output_0.mp4 -an -c:v copy output.h264
 % ffmpeg -i output_0.mp4 -vn -c:a copy output.aac
 % ffmpeg -i output.h264 -i output.aac -c copy result.mp4

 ffmpeg version
 built on Jul 23 2013 11:51:12 with Apple LLVM version 4.2 (clang-425.0.28)
 (based on LLVM 3.2svn)
   configuration: --prefix=/usr/local/Cellar/ffmpeg/2.0 --enable-shared
 --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree
 --enable-hardcoded-tables --enable-avresample --enable-vda --cc=cc --host-
 cflags= --host-ldflags= --enable-libfaac --enable-libvo-aacenc --enable-
 libspeex
   libavutil      52. 38.100 / 52. 38.100
   libavcodec     55. 18.102 / 55. 18.102
   libavformat    55. 12.100 / 55. 12.100
   libavdevice    55.  3.100 / 55.  3.100
   libavfilter     3. 79.101 /  3. 79.101
   libavresample   1.  1.  0 /  1.  1.  0
   libswscale      2.  3.100 /  2.  3.100
   libswresample   0. 17.102 /  0. 17.102
   libpostproc    52.  3.100 / 52.  3.100
 }}}

 The problem is with that log ffmpeg stderr: **output.h264: Invalid data
 found when processing input**

 The logs details below:

 {{{
 $ ffmpeg -i input.flv -c:v copy -c:a libvo_aacenc -ab 96k -ac 1
 output_0.mp4
 ffmpeg version 2.0 Copyright (c) 2000-2013 the FFmpeg developers
   built on Jul 23 2013 11:51:12 with Apple LLVM version 4.2
 (clang-425.0.28) (based on LLVM 3.2svn)
   configuration: --prefix=/usr/local/Cellar/ffmpeg/2.0 --enable-shared
 --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree
 --enable-hardcoded-tables --enable-avresample --enable-vda --cc=cc --host-
 cflags= --host-ldflags= --enable-libfaac --enable-libvo-aacenc --enable-
 libspeex
 Input #0, flv, from 'input.flv':
   Metadata:
     creationdate    : Sat Jul 20 16:03:03
     duration2       : 8227
   Duration: 00:00:08.53, start: 0.000000, bitrate: 340 kb/s
     Stream #0:0: Video: h264 (Baseline), yuv420p, 640x480 [SAR 1:1 DAR
 4:3], 20 tbr, 1k tbn, 40 tbc
     Stream #0:1: Audio: speex, 16000 Hz, mono, s16
 Output #0, mp4, to 'output_0.mp4':
   Metadata:
     creationdate    : Sat Jul 20 16:03:03
     duration2       : 8227
     encoder         : Lavf55.12.100
     Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 640x480
 [SAR 1:1 DAR 4:3], q=2-31, 16k tbn, 1k tbc
     Stream #0:1: Audio: aac (libvo_aacenc) ([64][0][0][0] / 0x0040), 16000
 Hz, mono, s16, 96 kb/s
 Stream mapping:
   Stream #0:0 -> #0:0 (copy)
   Stream #0:1 -> #0:1 (libspeex -> libvo_aacenc)
 Press [q] to stop, [?] for help
 [mp4 @ 0x7f96e2131000] Non-monotonous DTS in output stream 0:0; previous:
 45776, current: 45776; changing to 45777. This may result in incorrect
 timestamps in the output file.
 [mp4 @ 0x7f96e2131000] Non-monotonous DTS in output stream 0:0; previous:
 91120, current: 91120; changing to 91121. This may result in incorrect
 timestamps in the output file.
 [mp4 @ 0x7f96e2131000] Non-monotonous DTS in output stream 0:0; previous:
 135888, current: 135888; changing to 135889. This may result in incorrect
 timestamps in the output file.
 frame=  124 fps=0.0 q=-1.0 Lsize=     411kB time=00:00:08.59 bitrate=
 391.9kbits/s
 video:316kB audio:91kB subtitle:0 global headers:0kB muxing overhead
 0.991790%


 $ ffmpeg -i output_0.mp4 -an -c:v copy output.h264
 ffmpeg version 2.0 Copyright (c) 2000-2013 the FFmpeg developers
   built on Jul 23 2013 11:51:12 with Apple LLVM version 4.2
 (clang-425.0.28) (based on LLVM 3.2svn)
   configuration: --prefix=/usr/local/Cellar/ffmpeg/2.0 --enable-shared
 --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree
 --enable-hardcoded-tables --enable-avresample --enable-vda --cc=cc --host-
 cflags= --host-ldflags= --enable-libfaac --enable-libvo-aacenc --enable-
 libspeex
 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'output_0.mp4':
   Metadata:
     major_brand     : isom
     minor_version   : 512
     compatible_brands: isomiso2avc1mp41
     encoder         : Lavf55.12.100
   Duration: 00:00:08.54, start: 0.000000, bitrate: 394 kb/s
     Stream #0:0(und): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p,
 640x480 [SAR 1:1 DAR 4:3], 303 kb/s, 14.51 fps, 20 tbr, 16k tbn, 40 tbc
     Metadata:
       handler_name    : VideoHandler
     Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 16000 Hz, mono,
 fltp, 95 kb/s
     Metadata:
       handler_name    : SoundHandler
 Output #0, h264, to 'output.h264':
   Metadata:
     major_brand     : isom
     minor_version   : 512
     compatible_brands: isomiso2avc1mp41
     encoder         : Lavf55.12.100
     Stream #0:0(und): Video: h264 (avc1 / 0x31637661), yuv420p, 640x480
 [SAR 1:1 DAR 4:3], q=2-31, 303 kb/s, 14.51 fps, 90k tbn, 20 tbc
     Metadata:
       handler_name    : VideoHandler
 Stream mapping:
   Stream #0:0 -> #0:0 (copy)
 Press [q] to stop, [?] for help
 frame=  124 fps=0.0 q=-1.0 Lsize=     316kB time=00:00:08.54 bitrate=
 303.4kbits/s
 video:316kB audio:0kB subtitle:0 global headers:0kB muxing overhead
 0.000000%


 $ ffmpeg -i output_0.mp4 -vn -c:a copy output.aac
 ffmpeg version 2.0 Copyright (c) 2000-2013 the FFmpeg developers
   built on Jul 23 2013 11:51:12 with Apple LLVM version 4.2
 (clang-425.0.28) (based on LLVM 3.2svn)
   configuration: --prefix=/usr/local/Cellar/ffmpeg/2.0 --enable-shared
 --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree
 --enable-hardcoded-tables --enable-avresample --enable-vda --cc=cc --host-
 cflags= --host-ldflags= --enable-libfaac --enable-libvo-aacenc --enable-
 libspeex
 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'output_0.mp4':
   Metadata:
     major_brand     : isom
     minor_version   : 512
     compatible_brands: isomiso2avc1mp41
     encoder         : Lavf55.12.100
   Duration: 00:00:08.54, start: 0.000000, bitrate: 394 kb/s
     Stream #0:0(und): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p,
 640x480 [SAR 1:1 DAR 4:3], 303 kb/s, 14.51 fps, 20 tbr, 16k tbn, 40 tbc
     Metadata:
       handler_name    : VideoHandler
     Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 16000 Hz, mono,
 fltp, 95 kb/s
     Metadata:
       handler_name    : SoundHandler
 Output #0, adts, to 'output.aac':
   Metadata:
     major_brand     : isom
     minor_version   : 512
     compatible_brands: isomiso2avc1mp41
     encoder         : Lavf55.12.100
     Stream #0:0(und): Audio: aac (mp4a / 0x6134706D), 16000 Hz, mono, 95
 kb/s
     Metadata:
       handler_name    : SoundHandler
 Stream mapping:
   Stream #0:1 -> #0:0 (copy)
 Press [q] to stop, [?] for help
 size=      92kB time=00:00:08.59 bitrate=  87.3kbits/s
 video:0kB audio:91kB subtitle:0 global headers:0kB muxing overhead
 0.911458%


 $ ffmpeg -i output.h264 -i output.aac -c copy result.mp4
 ffmpeg version 2.0 Copyright (c) 2000-2013 the FFmpeg developers
   built on Jul 23 2013 11:51:12 with Apple LLVM version 4.2
 (clang-425.0.28) (based on LLVM 3.2svn)
   configuration: --prefix=/usr/local/Cellar/ffmpeg/2.0 --enable-shared
 --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree
 --enable-hardcoded-tables --enable-avresample --enable-vda --cc=cc --host-
 cflags= --host-ldflags= --enable-libfaac --enable-libvo-aacenc --enable-
 libspeex
 output.h264: Invalid data found when processing input
 }}}

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2805>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list