[Libav-user] How to use API ffmpeg to capture a vnc stream and create the output video file?

Daniele Colasante d.colasante at resi.it
Fri Feb 7 09:56:37 CET 2014


Hello I am Daniele Colasante,

 

I would like to understand how to use API ffmpeg to capture a vnc stream and
create the output video file.


I tried from vnc2mpg.c (from
http://libvncserver.sourceforge.net/doc/html/vnc2mpg_8c-example.html ) and
muxing.c (from
http://www.ffmpeg.org/doxygen/trunk/doc_2examples_2muxing_8c-example.html )
but I got poor results.

Has anyone ever done this? Any suggestion is welcome. Thanks to all for your
attention and sorry for my English.

 

Attached my code, video.c, when I run: ./video -o video.avi -t 30
ip_address:port vncpassword  the results are:

Output #0, avi, to 'video.avi':

Stream #0:0: Video: mpeg4, yuv420p, 1680x1050, q=2-31, 400 kb/s, 90k tbn, 25
tbc

[avi @ 0x1ec4060] Application provided invalid, non monotonically increasing
dts to muxer in stream 33754816: 269628272584 >= 0

Error while writing video frame: Invalid argument

 

RUN FINISHED; exit value 1; real time: 1s; user: 570ms; system: 90ms

 

 

 

 

 <http://www.resi.it/> Descrizione: cid:image001.gif at 01C9DD69.C5A5ECE0

 

Daniele Colasante 
System Engineering

RESI Informatica S.p.A.
Via Pontina Km 44,044
04011 Aprilia (LT) - Italy
Tel: +39 06 92710398

Mobile: 
Fax: +39 06 92710208
Email:  <mailto:d.colasante at resi.it> d.colasante at resi.it
Web:  <http://www.resi.it/> www.resi.it

 

 <http://www.resi-group.com/> Descrizione:
cid:image002.gif at 01C9DD69.C5A5ECE0

 

_ _ _ _ _ _ _ _ _ _ _ _

Nota di riservatezza: Ai sensi del Decreto Legislativo n. 196/2003, "Codice
in materia di Protezione dei dati personali", si precisa che le informazioni
contenute in questo messaggio e negli eventuali allegati sono riservate e
per uso esclusivo del destinatario. Persone diverse dallo stesso non possono
copiare o distribuire il messaggio a terzi. Chiunque riceva questo messaggio
per errore è pregato di distruggerlo e di informare immediatamente il
mittente. Grazie.


Confidentiality Notice: Accordingly to Italian legislative decree n.
196/2003 concerning privacy, the information contained in this e-mail is
intended for the named recipients only. It may contain privileged and
confidential information and if you are not an intended recipient, you must
not copy, distribute or take any action in reliance on it. If you have
received this e-mail in error, please notify the sender by e-mail and delete
the e-mail and any copies of it. Thank you.

P  Please consider the environment before printing this mail. Rispettate
l’ambiente e stampate questa email solo in caso di reale necessità


Descrizione: Descrizione: https://rb1itspoint001/images/stories/RESI.png

Descrizione: Descrizione: https://rb1itspoint001/images/stories/IPS.png

Descrizione: Descrizione: https://rb1itspoint001/images/stories/SMETANA.png

Descrizione: Descrizione:
https://rb1itspoint001/images/stories/ItaliaMobile.png

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20140207/75953d79/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 3746 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20140207/75953d79/attachment.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 1967 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20140207/75953d79/attachment-0001.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 1332 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20140207/75953d79/attachment.jpe>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 1147 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20140207/75953d79/attachment-0001.jpe>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 1328 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20140207/75953d79/attachment-0002.jpe>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 2580 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20140207/75953d79/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: video.c
Type: application/octet-stream
Size: 13308 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20140207/75953d79/attachment.obj>


More information about the Libav-user mailing list