Opened 14 years ago
Closed 13 years ago
#446 closed defect (needs_more_info)
Error when using "-vcodec libx264" and "-flags +global_header"
Reported by: | burek | Owned by: | Michael Niedermayer |
---|---|---|---|
Priority: | normal | Component: | ffmpeg |
Version: | git-master | Keywords: | h264 global_header vbsf h264_mp4toannexb |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
Here is the example of the error:
ffmpeg -f video4linux2 -r 25 -s qvga -i /dev/video0 -vcodec libx264 -crf 20 -threads 0 -vbsf h264_mp4toannexb -flags +global_header -f mpegts udp://localhost:5001 ffmpeg version git-2011-08-19-ada49f9, Copyright (c) 2000-2011 the FFmpeg developers built on Sep 5 2011 12:41:18 with gcc 4.6.1 configuration: --enable-static --enable-shared --enable-gpl --enable-nonfree --enable-postproc --enable-runtime-cpudetect --enable-bzlib --enable-libfaac --enable-libopenjpeg --enable-libx264 --enable-zlib --enable-libaacplus --enable-libfaac --extra-cflags=-fPIC libavutil 51. 12. 0 / 51. 12. 0 libavcodec 53. 11. 0 / 53. 11. 0 libavformat 53. 8. 0 / 53. 8. 0 libavdevice 53. 3. 0 / 53. 3. 0 libavfilter 2. 32. 0 / 2. 32. 0 libswscale 2. 0. 0 / 2. 0. 0 libpostproc 51. 2. 0 / 51. 2. 0 [video4linux2 @ 0x1c8b420] Estimating duration from bitrate, this may be inaccurate Input #0, video4linux2, from '/dev/video0': Duration: N/A, start: 1470014.875079, bitrate: 30720 kb/s Stream #0.0: Video: rawvideo, yuyv422, 320x240, 30720 kb/s, 25 tbr, 1000k tbn, 25 tbc Incompatible pixel format 'yuyv422' for codec 'libx264', auto-selecting format 'yuv420p' [buffer @ 0x1c84980] w:320 h:240 pixfmt:yuyv422 tb:1/1000000 sar:0/1 sws_param: [buffersink @ 0x1c8d520] auto-inserting filter 'auto-inserted scaler 0' between the filter 'src' and the filter 'out' [scale @ 0x1c86940] w:320 h:240 fmt:yuyv422 -> w:320 h:240 fmt:yuv420p flags:0x4 [libx264 @ 0x1c84fe0] Default settings detected, using medium profile [libx264 @ 0x1c84fe0] using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64 [libx264 @ 0x1c84fe0] profile High, level 1.3 [libx264 @ 0x1c84fe0] 264 - core 116 - H.264/MPEG-4 AVC codec - Copyleft 2003-2011 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=3 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 [mpegts @ 0x1c84a60] muxrate VBR, pcr every 2 pkts, sdt every 200, pat/pmt every 40 pkts Output #0, mpegts, to 'udp://localhost:5001': Metadata: encoder : Lavf53.8.0 Stream #0.0: Video: libx264, yuv420p, 320x240, q=2-31, 200 kb/s, 90k tbn, 25 tbc Stream mapping: Stream #0.0 -> #0.0 Press [q] to stop, [?] for help h264_mp4toannexb failed for stream 0, codec libx264: Invalid argument 0.0kbits/s dup=35 drop=0 [mpegts @ 0x1c84a60] h264 bitstream malformated, no startcode found, use -vbsf h264_mp4toannexb av_interleaved_write_frame(): Operation not permitted
Change History (2)
comment:1 by , 13 years ago
comment:2 by , 13 years ago
Resolution: | → needs_more_info |
---|---|
Status: | new → closed |
Please reopen if you can provide the requested information.
Note:
See TracTickets
for help on using tickets.
global_header and mpegts looks suspect, what are you trying to do ?