[Libav-user] Compressed h264 avc1 frames to transport stream

Carl Eugen Hoyos cehoyos at ag.or.at
Wed Jan 25 13:55:15 CET 2012

Valérian <contact at ...> writes:

> [h264 @ 0x101031600] non-existing PPS 0 referenced
> [h264 @ 0x101031600] decode_slice_header error
> [h264 @ 0x101031600] no frame!
> [h264 @ 0x10101ae00] Could not find codec parameters (Video: h264)
> [h264 @ 0x10101ae00] Estimating duration from bitrate, this may be inaccurate
> pipe:: could not find codec parameters
> I use a NSTask with NSPipe. The following arguments are passed to ffmpeg :
> NSArray *args = [NSArray
> arrayWithObjects:@"-y",@"-f",@"h264",@"-i",@"-",@"-acodec",@"copy",
> @"-vcodec",@"copy",@"-vbsf",@"h264_mp4toannexb",@"myoutput.ts", nil];

This is not only hard to parse, but I cannot copy-paste this into my shell...

> This would give :
> ffmpeg -y -f h264 -i - -acodec copy -vcodec copy -vbsf
> h264_mp4toannexb myoutput.ts

(I assume you did test that cat file|ffmpeg -i - shows the same output?)
Does ffmpeg -i file work?

Please upload the sample.

Carl Eugen

More information about the Libav-user mailing list