[Libav-user] Decoding a H.264 stream from TCP
Jeremy Graham
jgraham at cs.unc.edu
Fri Jun 22 16:43:42 CEST 2012
I typed in the following command while the drone was streaming data:
jeramboquai at jeramboquai-NV55S:~/Documents$ ffmpeg -i http://192.168.1.1:5555
It immediately output this and then paused, I assume to attempt to
interpret the stream:
ffmpeg version git-2012-06-20-b2e2287 Copyright (c) 2000-2012 the FFmpeg
developers
builjeramboquai at jeramboquai-NV55S:~/Documents$ ffmpeg -i
http://192.168.1.1:5555
ffmpeg version git-2012-06-20-b2e2287 Copyright (c) 2000-2012 the FFmpeg
developers
built on Jun 20 2012 17:25:25 with gcc 4.6.3
configuration: --enable-gpl --enable-libfaac --enable-libmp3lame
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora
--enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree
--enable-version3 --enable-x11grab
libavutil 51. 59.100 / 51. 59.100
libavcodec 54. 27.100 / 54. 27.100
libavformat 54. 9.100 / 54. 9.100
libavdevice 54. 0.100 / 54. 0.100
libavfilter 2. 82.100 / 2. 82.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100
When I stopped the stream it then output this:
[h264 @ 0xada1260] non-existing PPS referenced
[h264 @ 0xada1260] non-existing PPS 0 referenced
[h264 @ 0xada1260] decode_slice_header error
[h264 @ 0xada1260] no frame!
[h264 @ 0xad993e0] max_analyze_duration 5000000 reached at 5000000
[h264 @ 0xad993e0] Estimating duration from bitrate, this may be inaccurate
...and then after a few seconds, it output this and quit.
Input #0, h264, from 'http://192.168.1.1:5555':
Duration: N/A, bitrate: N/A
Stream #0:0: Video: h264 (Baseline), yuv420p, 640x360, 25 fps, 25
tbr, 1200k tbn, 50 tbc
At least one output file must be specified
It appears that it tried to decode SOMETHING, but couldn't. So no, it
apparently didn't work. :(
On 06/22/2012 03:55 AM, Carl Eugen Hoyos wrote:
> Jeremy Graham<jgraham at ...> writes:
>
>> I am working with the Parrot AR.Drone 2.0. I don't know if anyone is
>> familiar with that device, but to make a long story short, it transmits
>> video data from an on-board camera via TCP and the video is encoded with
>> H.264.
> Did you try ffmpeg -i http://xxxx ?
> Does it work?
>
> Carl Eugen
>
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user
More information about the Libav-user
mailing list