Opened 8 years ago

Last modified 8 months ago

#5849 open enhancement

Fix transcode example

Reported by: AssemblerX86 Owned by:
Priority: minor Component: documentation
Version: git-master Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
Add full decode & encode support for H264 codec in avcodec.
How to reproduce:

Try the transcoding.c example on any H264 video. Or try simply encoding any H264 video using libavcodec. Even using OpenCV library (Which uses FFMPEG) wont encode H264.

Many forum posts and mailing-list messages have been questioning on how to decode/encode H264 media files through libavcodec since their code works for other codec types but not for H264, and no developer ever said H264 codec doesn't work with FFMPEG. Well it doesn't, and support should be added to it as its one of the most used codecs nowadays. Either packet writing fails, or you just get a Segmentation Error.

Change History (3)

comment:1 by Elon Musk, 8 years ago

Component: avcodecdocumentation
Priority: importantminor

comment:2 by Stefano Sabatini, 15 months ago

Status: newopen

Can you explain what is not working here?

Working example:

$ ffmpeg -f lavfi -i testsrc=d=10 out.mp4
$ doc/examples/transcoding out.mp4 out.avi
$ ffprobe -hide_banner out.avi
Input #0, avi, from 'out.avi':
  Metadata:
    software        : Lavf59.35.100
  Duration: 00:00:19.80, start: 0.000000, bitrate: 28 kb/s
  Stream #0:0: Video: h264 (High) (H264 / 0x34363248), yuv420p(progressive), 320x240 [SAR 1:1 DAR 4:3], 25 fps, 12.50 tbr, 25 tbn

Works fine here. Can you show the exact output you get from transcoding.c?

Last edited 14 months ago by Stefano Sabatini (previous) (diff)

comment:3 by Stefano Sabatini, 8 months ago

Summary: Add full support for H264 in libavcodec (Encoding & Decoding)Fix transcode example
Note: See TracTickets for help on using tickets.