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

Valérian contact at valerian.be
Fri Jan 27 09:05:27 CET 2012


2012/1/25 Carl Eugen Hoyos <cehoyos at ag.or.at>:
> 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
>
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user

cat output.h264 | ffmpeg -f h264 -i - myoutput.ts
ffmpeg version 0.9.0.git, Copyright (c) 2000-2012 the FFmpeg developers
 built on Jan  5 2012 09:54:31 with llvm_gcc 4.2.1 (Based on Apple
Inc. build 5658) (LLVM build 2336.1.00)
 configuration: --arch=x86_64
 libavutil      51. 33.100 / 51. 33.100
 libavcodec     53. 50.100 / 53. 50.100
 libavformat    53. 29.100 / 53. 29.100
 libavdevice    53.  4.100 / 53.  4.100
 libavfilter     2. 57.101 /  2. 57.101
 libswscale      2.  1.100 /  2.  1.100
 libswresample   0.  5.100 /  0.  5.100
[h264 @ 0x7f872a831600] sps_id out of range
[h264 @ 0x7f872a831600] non-existing PPS referenced
[h264 @ 0x7f872a831600] sps_id out of range
[h264 @ 0x7f872a831600] non-existing PPS 36 referenced
[h264 @ 0x7f872a831600] decode_slice_header error
[h264 @ 0x7f872a831600] no frame!
[h264 @ 0x7f872a831600] missing picture in access unit with size 454
[h264 @ 0x7f872a831600] non-existing PPS 0 referenced
[h264 @ 0x7f872a831600] decode_slice_header error
[h264 @ 0x7f872a831600] no frame!
[h264 @ 0x7f872a831600] sps_id out of range
   Last message repeated 1 times
[h264 @ 0x7f872a831600] non-existing PPS referenced
[h264 @ 0x7f872a831600] sps_id out of range
   Last message repeated 1 times
[h264 @ 0x7f872a831600] non-existing PPS 36 referenced
[h264 @ 0x7f872a831600] decode_slice_header error
[h264 @ 0x7f872a831600] no frame!
[h264 @ 0x7f872a831600] missing picture in access unit with size 24481
[h264 @ 0x7f872a831600] no frame!
[h264 @ 0x7f872a81ae00] Could not find codec parameters (Video: h264)
[h264 @ 0x7f872a81ae00] Estimating duration from bitrate, this may be inaccurate
pipe:: could not find codec parameters

A sample :
http://dl.dropbox.com/u/28482555/output.h264

Thanks,

Valérian


More information about the Libav-user mailing list