[FFmpeg-user] Wrong "profile-level-id" on RTP SDP after transmux from RTMP

Quentin RENARD asticode at gmail.com
Wed Oct 17 19:09:52 EEST 2018


Hey guys,

First off I'm using ffmpeg's master branch.

Here's the workflow I'm doing:

Input -- (1) --> RTMP -- (2) --> RTP

Here are my commands:

1) ffmpeg -hide_banner -re -f lavfi -i "testsrc2=size=1280x720:rate=25"
-pix_fmt yuv420p -c:v libx264 -g 50 -keyint_min 50 -b:v 4M -tune
zerolatency -profile:v baseline -level:v 3.1 -preset veryfast -bf 0 -refs 3
-sc_threshold 0 -f flv rtmp://127.0.0.1/test

2) ffmpeg -hide_banner -i rtmp://127.0.0.1/test -c copy -f rtp rtp://
127.0.0.1:4002

The 2nd command outputs the following SDP:

v=0
o=- 0 0 IN IP4 127.0.0.1
s=No Name
c=IN IP4 127.0.0.1
t=0 0
a=tool:libavformat 58.19.100
m=video 4002 RTP/AVP 96
b=AS:3999
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1;
sprop-parameter-sets=Z0LAH9kAUAW7ARAAAAMAEAAAAwMo8YMkgA==,aMuPIA==;
profile-level-id=42C01F

You can see that the "profile-level-id" is set to "42C01F".

However I'm looking to get the profile-level-id "42E01F".

After looking on the Internet a wee bit; I thought I "just" had to add the
h264 param "constrained_intra" to 1 but it didn't change anything.

Therefore here's my question:

How can I get a "profile-level-id" set to "42E01F" with my commands?

Thanks in advance.
Cheers


More information about the ffmpeg-user mailing list