[Libav-user] FFMpeg Question about paket pts, dts and duration parameters
Denis Gottardello
info at denisgottardello.it
Tue Apr 28 22:14:55 EEST 2020
*./ffmpeg -i rtsp://192.168.1.11:554/onvif1 test.mpg*
it works, with this output:
Input #0, rtsp, from 'rtsp://192.168.1.11:554/onvif1':
Metadata:
title : H.264 Video, RtspServer_0.0.0.2
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Video: h264 (Baseline), yuv420p(progressive), 1280x720, 24.92 tbr, 90k tbn,
180k tbc
Stream #0:1: Audio: pcm_alaw, 8000 Hz, mono, s16, 64 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> mpeg1video (native))
Stream #0:1 -> #0:1 (pcm_alaw (native) -> mp2 (native))
Press [q] to stop, [?] for help
[mpeg @ 0x55c6280f5c00] VBV buffer size not set, using default size of 230KB
If you want the mpeg file to be compliant to some specification
Like DVD, VCD or others, make sure you set the correct buffer size
Output #0, mpeg, to 'test.mpg':
Metadata:
title : H.264 Video, RtspServer_0.0.0.2
encoder : Lavf58.29.100
Stream #0:0: Video: mpeg1video, yuv420p, 1280x720, q=2-31, 200 kb/s, 25 fps, 90k tbn,
25 tbc
Metadata:
encoder : Lavc58.54.100 mpeg1video
Side data:
cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
Stream #0:1: Audio: mp2, 16000 Hz, mono, s16, 160 kb/s
Metadata:
encoder : Lavc58.54.100 mp2
frame= 789 fps= 28 q=31.0 Lsize= 2382kB time=00:00:32.65 bitrate= 597.5kbits/s
dup=635 drop=0 speed=1.18x
In data martedì 28 aprile 2020 18:14:45 CEST, Carl Eugen Hoyos ha scritto:
> Am Di., 28. Apr. 2020 um 16:57 Uhr schrieb Denis Gottardello
>
> <info at denisgottardello.it>:
> > Hi, after having implemented the remuxing.c example my program works with
> > file to file but not with rtsp camera to file.
> Does it work with ffmpeg (the application)?
>
> Does the rtsp demuxer returns any useful timestamps at all for video
> if you read more packets but if you do not try to write anything?
>
> Carl Eugen
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/libav-user
>
> To unsubscribe, visit link above, or email
> libav-user-request at ffmpeg.org with subject "unsubscribe".--
+39.347.4070897
http://www.labcsp.com[1]
http://www.denisgottardello.it[2]
GMT+1
Skype: mrdebug
--------
[1] http://www.labcsp.com
[2] http://www.denisgottardello.it
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20200428/5c36c6df/attachment.html>
More information about the Libav-user
mailing list