Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ffmpeg -re -f v4l2 -i /dev/video0 -s 320x240 -r 29.97 \
- -vcodec libx264 -pix_fmt yuv420p -s 320x240 \
- -c:v libx264 -crf 27 \
- -tune zerolatency -profile:v baseline -level 30 -flags +global_header \
- -f rtp rtp://127.0.0.1:4008 > test.sdp
- ##WORKS
- ffplay rtp://localhost:4008
- ##copying test.sdp to another machine and running
- ffplay -i test.sdp
- produces an error:
- Could not find codec parameters for stream 0 (Video: h264): unspecified size
- Consider increasing 'analyzeduration' and 'probesize'
- the contents of
- test.sdp:
- v=0
- o=- 0 0 IN IP4 127.0.0.1
- s=No Name
- c=IN IP4 192.168.1.6
- t=0 0
- a=tool:libavformat 55.4.101
- m=video 4008 RTP/AVP 96
- a=rtpmap:96 H264/90000
- a=fmtp:96 packetization-mode=1; sprop-parameter-sets=Z0LAHtkBQfoQAAAGQAABdqjxYuSA,aMuFLIA=; profile-level-id=42C01E
- complete output of the command
- $ ffplay -i test.sdp -analyzeduration 99999 -debug 5
- output:
- ffplay -i test.sdp -analyzeduration 9999 -debug 5
- ffplay version git-2013-05-13-4383e1b Copyright (c) 2003-2013 the FFmpeg developers
- built on May 13 2013 16:04:47 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
- configuration: --enable-gpl --enable-libass --enable-libfaac --enable-libfdk-aac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libspeex --enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx --enable-x11grab --enable-libx264 --enable-nonfree --enable-version3 --enable-libopus
- libavutil 52. 30.100 / 52. 30.100
- libavcodec 55. 9.100 / 55. 9.100
- libavformat 55. 7.100 / 55. 7.100
- libavdevice 55. 0.100 / 55. 0.100
- libavfilter 3. 65.100 / 3. 65.100
- libswscale 2. 3.100 / 2. 3.100
- libswresample 0. 17.102 / 0. 17.102
- libpostproc 52. 3.100 / 52. 3.100
- [sdp @ 0xb2401980] Format sdp probed with size=2048 and score=500
- [sdp @ 0xb2401980] video codec set to: h264
- [NULL @ 0xb24005e0] RTP Packetization Mode: 1
- [NULL @ 0xb24005e0] Extradata set to 0xb2402500 (size: 34)!
- [NULL @ 0xb24005e0] RTP Profile IDC: 42 Profile IOP: c0 Level: 1e
- [sdp @ 0xb2401980] File position before avformat_find_stream_info() is 258
- [h264 @ 0xb24005e0] sps:0 profile:66/30 poc:2 ref:3 20x15 FRM 8B8 crop:0/0/0/0 VUI 420 100/5994 b8 reo:-1
- [h264 @ 0xb24005e0] pps:0 sps:0 CAVLC slice_groups:1 ref:3/1 qp:27/26/-2/-2 LPAR
- [h264 @ 0xb24005e0] sps:0 profile:66/30 poc:2 ref:3 20x15 FRM 8B8 crop:0/0/0/0 VUI 420 100/5994 b8 reo:-1
- [h264 @ 0xb24005e0] pps:0 sps:0 CAVLC slice_groups:1 ref:3/1 qp:27/26/-2/-2 LPAR
- [sdp @ 0xb2401980] Could not find codec parameters for stream 0 (Video: h264): unspecified size
- Consider increasing the value for the 'analyzeduration' and 'probesize' options
- [sdp @ 0xb2401980] File position after avformat_find_stream_info() is 258
- test.sdp: could not find codec parameters
- [AVIOContext @ 0xb24004a0] Statistics: 258 bytes read, 0 seeks
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement