[FFmpeg-trac] #3900(avformat:new): ff_check_h264_startcode does not support 3-byte startcodes
FFmpeg
trac at avcodec.org
Thu Aug 28 09:13:08 CEST 2014
#3900: ff_check_h264_startcode does not support 3-byte startcodes
----------------------------------+------------------------------------
Reporter: Lastique | Owner:
Type: defect | Status: new
Priority: normal | Component: avformat
Version: 2.3 | Resolution:
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
----------------------------------+------------------------------------
Comment (by Lastique):
You can try the following command:
{{{
ffmpeg -i ticket3900.avi -vcodec copy -an out.avi
}}}
It produces the follwoing output for me:
{{{
ffmpeg version 2.3.3 Copyright (c) 2000-2014 the FFmpeg developers
built on Aug 28 2014 10:54:00 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
configuration: --prefix=/usr --extra-cflags='-g -O2 -fstack-protector
--param=ssp-buffer-size=4 -Wformat -Werror=format-security ' --extra-
ldflags='-Wl,-Bsymbolic-functions -Wl,-z,relro' --cc='ccache cc' --enable-
shared --enable-libmp3lame --enable-gpl --enable-nonfree --enable-
libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-
postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-
libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-
libspeex --enable-nonfree --disable-stripping --enable-libvpx --enable-
libschroedinger --disable-encoder=libschroedinger --enable-version3
--enable-libopenjpeg --enable-librtmp --enable-avfilter --enable-
libfreetype --enable-libvo-aacenc --disable-decoder=amrnb --enable-libvo-
amrwbenc --enable-libaacplus --libdir=/usr/lib/x86_64-linux-gnu --disable-
vda --enable-libbluray --enable-libcdio --enable-gnutls --enable-frei0r
--enable-openssl --enable-libass --enable-libopus --enable-fontconfig
--enable-libpulse --disable-mips32r2 --disable-mipsdspr1 --disable-
mipsdspr2 --enable-libzvbi --enable-avresample --enable-libiec61883
--enable-libfdk-aac --enable-vaapi --enable-libx265 --enable-libdc1394
--disable-altivec --disable-armv5te --disable-armv6
--shlibdir=/usr/lib/x86_64-linux-gnu
libavutil 52. 92.100 / 52. 92.100
libavcodec 55. 69.100 / 55. 69.100
libavformat 55. 48.100 / 55. 48.100
libavdevice 55. 13.102 / 55. 13.102
libavfilter 4. 11.100 / 4. 11.100
libavresample 1. 3. 0 / 1. 3. 0
libswscale 2. 6.100 / 2. 6.100
libswresample 0. 19.100 / 0. 19.100
libpostproc 52. 3.100 / 52. 3.100
Input #0, avi, from 'ticket3900.avi':
Metadata:
encoder : Lavf55.48.100
Duration: 00:00:20.22, start: 0.000000, bitrate: 135 kb/s
Stream #0:0: Video: h264 (High) (H264 / 0x34363248), yuvj420p(pc),
320x240, 94 kb/s, 20 fps, 20 tbr, 20 tbn, 40 tbc
Stream #0:1: Audio: aac ([255][0][0][0] / 0x00FF), 16000 Hz, mono,
fltp, 128 kb/s
Output #0, avi, to 'out.avi':
Metadata:
ISFT : Lavf55.48.100
Stream #0:0: Video: h264 (H264 / 0x34363248), yuvj420p, 320x240,
q=2-31, 94 kb/s, 20 fps, 20 tbn, 20 tbc
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
[avi @ 0x10f8b20] H.264 bitstream malformed, no startcode found, use the
h264_mp4toannexb bitstream filter (-bsf h264_mp4toannexb)
av_interleaved_write_frame(): Invalid argument
frame= 1 fps=0.0 q=-1.0 Lsize= 6kB time=00:00:00.05 bitrate=
915.2kbits/s
video:6kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: unknown
Conversion failed!
}}}
It succeeds when the patch is applied.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/3900#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list