
Recherche avancée
Médias (1)
-
The Great Big Beautiful Tomorrow
28 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Texte
Autres articles (40)
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...) -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir
Sur d’autres sites (6886)
-
Qt Video Recorder
11 mai 2014, par DavlogI am trying to create a video recorder with Qt. What I did so far was taking a screenshot of a rectangle on the screen and save it. At the end I use ffmpeg to get a video file out of the images.
I connected a timer’s signal
timeout()
to my custom slot which takes the snapshot and saves it to my tmp folder. The timer has an intervall of 1000 / 30. That should be 30 times per second. But 1000 / 30 is a little bit more than 33 milliseconds so I cannot really get 30 fps. It’s a bit more.I recorded a youtube video with my recorder and everything was smooth but a little bit faster / slower depending on the intervall.
So my question basically is how do I get really 30 / 40 / 50 / ... fps ?
-
Cannot re-stream RTSP using ffmpeg [closed]
1er mars 2024, par Wissam EliasI am trying to re-stream an RTSP connection on the local network using this command :


ffmpeg -loglevel debug -rtsp_transport tcp -i rtsp://192.168.1.13:1935 -rtsp_transport tcp -c:v copy -f rtsp rtsp://127.0.0.1:1935/live/stream



but this usage can connect to the host and reads the packets from the host but it hangs when trying to connect to the local host :


Successfully opened the file.
Stream mapping:
 Stream #0:0 -> #0:0 (copy)
 Stream #0:1 -> #0:1 (aac (native) -> aac (native))
[aost#0:1/aac @ 000001eb93d54980] Starting thread...
[af#0:1 @ 000001eb91dd5c80] Starting thread...
[aist#0:1/aac @ 000001eb91e60e40] [dec:aac @ 000001eb9467e440] Starting thread...
[in#0/rtsp @ 000001eb91dce180] Starting thread...
Press [q] to stop, [?] for help
detected 12 logical cores
[graph_0_in_0:1 @ 000001eb91e2c280] Setting 'time_base' to value '1/32000'
[graph_0_in_0:1 @ 000001eb91e2c280] Setting 'sample_rate' to value '32000'
[graph_0_in_0:1 @ 000001eb91e2c280] Setting 'sample_fmt' to value 'fltp'
[graph_0_in_0:1 @ 000001eb91e2c280] Setting 'channel_layout' to value 'stereo'
[graph_0_in_0:1 @ 000001eb91e2c280] tb:1/32000 samplefmt:fltp samplerate:32000 chlayout:stereo
[format_out_0_1 @ 000001eb91e2bf40] Setting 'sample_fmts' to value 'fltp'
[format_out_0_1 @ 000001eb91e2bf40] Setting 'sample_rates' to value '96000|88200|64000|48000|44100|32000|24000|22050|16000|12000|11025|8000|7350'
[AVFilterGraph @ 000001eb945c7b40] query_formats: 4 queried, 6 merged, 3 already done, 0 delayed
Transform tree:
 mdct_fwd_float_c - type: mdct_float, len: 1024, factors[2]: [2, any], flags: [unaligned, out_of_place, fwd_only]
 fft_sr_ns_float_avx2 - type: fft_float, len: 512, factor: 2, flags: [aligned, inplace, out_of_place, preshuf]
Transform tree:
 mdct_fwd_float_c - type: mdct_float, len: 128, factors[2]: [2, any], flags: [unaligned, out_of_place, fwd_only]
 fft_sr_ns_float_avx2 - type: fft_float, len: 64, factor: 2, flags: [aligned, inplace, out_of_place, preshuf]
[tcp @ 000001eb93d51300] No default whitelist set
[tcp @ 000001eb93d51300] Original list of addresses:
[tcp @ 000001eb93d51300] Address 127.0.0.1 port 1935
[tcp @ 000001eb93d51300] Interleaved list of addresses:
[tcp @ 000001eb93d51300] Address 127.0.0.1 port 1935
[tcp @ 000001eb93d51300] Starting connection attempt to 127.0.0.1 port 1935



another try by removing the -c:v copy option, using this command :


ffmpeg -loglevel debug -rtsp_transport tcp -i rtsp://192.168.1.13:1935 -rtsp_transport tcp -f rtsp rtsp://127.0.0.1:1935/live/stream



it can start the connection on the local host or on the server ip but stops at POC (Picture Order Count ) 21 :


[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 1.37691 queue head -1 ts N/A
[hevc @ 000001b76091a1c0] Output frame with POC 1.
[out#0/rtsp @ 000001b76090dcc0] sq: send 1 ts 1.40891
[hevc @ 000001b76099ebc0] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 1.40891 queue head -1 ts N/A
[hevc @ 000001b76099ebc0] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
[out#0/rtsp @ 000001b76090dcc0] sq: send 1 ts 1.44091
[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 1.44091 queue head -1 ts N/A
[hevc @ 000001b76099ebc0] Output frame with POC 2.
[hevc @ 000001b76099d740] Decoded frame with POC 0.
[out#0/rtsp @ 000001b76090dcc0] sq: send 1 ts 1.47291
[hevc @ 000001b763a62400] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 1.47291 queue head -1 ts N/A
[hevc @ 000001b763a62400] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
[out#0/rtsp @ 000001b76090dcc0] sq: send 1 ts 1.50491
[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 1.50491 queue head -1 ts N/A
[hevc @ 000001b76091a1c0] Decoded frame with POC 1.
[hevc @ 000001b763a62400] Output frame with POC 3.
[out#0/rtsp @ 000001b76090dcc0] sq: send 1 ts 1.53691
[hevc @ 000001b762522c00] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 1.53691 queue head -1 ts N/A
[hevc @ 000001b762522c00] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
[hevc @ 000001b76099ebc0] Decoded frame with POC 2.
[hevc @ 000001b763a62400] Decoded frame with POC 3.
[out#0/rtsp @ 000001b76090dcc0] sq: send 1 ts 1.56891
[hevc @ 000001b762522c00] Output frame with POC 4.
[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 1.56891 queue head -1 ts N/A
[out#0/rtsp @ 000001b76090dcc0] sq: send 1 ts 1.60091
[hevc @ 000001b763bc4980] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 1.60091 queue head -1 ts N/A
[hevc @ 000001b763bc4980] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
[out#0/rtsp @ 000001b76090dcc0] sq: send 1 ts 1.63291
[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 1.63291 queue head -1 ts N/A
[hevc @ 000001b763bc4980] Output frame with POC 5.
[hevc @ 000001b762522c00] Decoded frame with POC 4.
[out#0/rtsp @ 000001b76090dcc0] sq: send 1 ts 1.66491
[hevc @ 000001b762524140] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 1.66491 queue head -1 ts N/A
[hevc @ 000001b762524140] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
[out#0/rtsp @ 000001b76090dcc0] sq: send 1 ts 1.69691
[hevc @ 000001b763bc4980] Decoded frame with POC 5.
[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 1.69691 queue head -1 ts N/A
[hevc @ 000001b762524140] Output frame with POC 6.
[out#0/rtsp @ 000001b76090dcc0] sq: send 1 ts 1.72891
[hevc @ 000001b762524740] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 1.72891 queue head -1 ts N/A
[hevc @ 000001b762524740] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
[out#0/rtsp @ 000001b76090dcc0] sq: send 1 ts 1.76091
[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 1.76091 queue head -1 ts N/A
[out#0/rtsp @ 000001b76090dcc0] sq: send 1 ts 1.79291
[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 1.79291 queue head -1 ts N/A
[hevc @ 000001b762524740] Output frame with POC 7.
[out#0/rtsp @ 000001b76090dcc0] sq: send 1 ts 1.82491
[hevc @ 000001b763e625c0] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 1.82491 queue head -1 ts N/A
[hevc @ 000001b763e625c0] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
[out#0/rtsp @ 000001b76090dcc0] sq: send 1 ts 1.85691
[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 1.85691 queue head -1 ts N/A
[hevc @ 000001b763e625c0] Output frame with POC 8.
[out#0/rtsp @ 000001b76090dcc0] sq: send 1 ts 1.88916
[hevc @ 000001b762524140] Decoded frame with POC 6.
[hevc @ 000001b76304d7c0] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 1.88916 queue head -1 ts N/A
[hevc @ 000001b762524740] Decoded frame with POC 7.
[hevc @ 000001b76304d7c0] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
[out#0/rtsp @ 000001b76090dcc0] sq: send 1 ts 1.92116
[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 1.92116 queue head -1 ts N/A
[hevc @ 000001b76304d7c0] Output frame with POC 9.
[hevc @ 000001b763e625c0] Decoded frame with POC 8.
[out#0/rtsp @ 000001b76090dcc0] sq: send 1 ts 1.95316
[hevc @ 000001b76304ddc0] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
 Last message repeated 1 times
[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 1.95316 queue head -1 ts N/A
[hevc @ 000001b76304ddc0] Output frame with POC 10.
[out#0/rtsp @ 000001b76090dcc0] sq: send 1 ts 1.98516
[hevc @ 000001b764075b00] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
 Last message repeated 1 times
[hevc @ 000001b76304d7c0] Decoded frame with POC 9.
[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 1.98516 queue head -1 ts N/A
[hevc @ 000001b764075b00] Output frame with POC 11.
[out#0/rtsp @ 000001b76090dcc0] sq: send 1 ts 2.01716
[hevc @ 000001b76304ddc0] Decoded frame with POC 10.
[hevc @ 000001b764126b00] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 2.01716 queue head -1 ts N/A
[hevc @ 000001b76099d340] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
 Last message repeated 1 times
[out#0/rtsp @ 000001b76090dcc0] sq: send 1 ts 2.04916
[hevc @ 000001b764126b00] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
[graph 0 input from stream 0:0 @ 000001b760935280] Setting 'video_size' to value '720x1280'
[hevc @ 000001b764075b00] Decoded frame with POC 11.
[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 2.04916 queue head -1 ts N/A
[hevc @ 000001b764126b00] Output frame with POC 12.
[graph 0 input from stream 0:0 @ 000001b760935280] Setting 'pix_fmt' to value '0'
[out#0/rtsp @ 000001b76090dcc0] sq: send 1 ts 2.08116
[hevc @ 000001b76099d740] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
 Last message repeated 1 times
[hevc @ 000001b76099d340] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
 Last message repeated 1 times
[graph 0 input from stream 0:0 @ 000001b760935280] Setting 'time_base' to value '1/90000'
[hevc @ 000001b76099d740] Output frame with POC 13.
[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 2.08116 queue head -1 ts N/A
[hevc @ 000001b764126b00] Decoded frame with POC 12.
[graph 0 input from stream 0:0 @ 000001b760935280] Setting 'pixel_aspect' to value '0/1'
[hevc @ 000001b76091a1c0] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
 Last message repeated 1 times
[out#0/rtsp @ 000001b76090dcc0] sq: send 1 ts 2.11316
[graph 0 input from stream 0:0 @ 000001b760935280] Setting 'colorspace' to value '6'
[hevc @ 000001b76099d340] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
 Last message repeated 1 times
[hevc @ 000001b76099d740] Decoded frame with POC 13.
[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 2.11316 queue head -1 ts N/A
[graph 0 input from stream 0:0 @ 000001b760935280] Setting 'range' to value '1'
[hevc @ 000001b76091a1c0] Output frame with POC 14.
[out#0/rtsp @ 000001b76090dcc0] sq: send 1 ts 2.14516
[graph 0 input from stream 0:0 @ 000001b760935280] Setting 'frame_rate' to value '30/1'
[hevc @ 000001b76099ebc0] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
 Last message repeated 1 times
[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 2.14516 queue head -1 ts N/A
[graph 0 input from stream 0:0 @ 000001b760935280] w:720 h:1280 pixfmt:yuv420p tb:1/90000 fr:30/1 sar:0/1 csp:smpte170m range:tv
[hevc @ 000001b76099d340] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
 Last message repeated 1 times
[hevc @ 000001b76099ebc0] Output frame with POC 15.
[out#0/rtsp @ 000001b76090dcc0] sq: send 1 ts 2.17716
[format @ 000001b7609353c0] Setting 'pix_fmts' to value 'yuv420p'
[hevc @ 000001b76091a1c0] Decoded frame with POC 14.
[hevc @ 000001b763a62400] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
 Last message repeated 1 times
[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 2.17716 queue head -1 ts N/A
[AVFilterGraph @ 000001b76096f5c0] query_formats: 4 queried, 9 merged, 0 already done, 0 delayed
[hevc @ 000001b76099d340] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
 Last message repeated 1 times
[out#0/rtsp @ 000001b76090dcc0] sq: send 1 ts 2.20916
[hevc @ 000001b76099ebc0] Decoded frame with POC 15.
[graph 0 input from stream 0:0 @ 000001b760935280] video frame properties congruent with link at pts_time: 0
[hevc @ 000001b763a62400] Output frame with POC 16.
[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 2.20916 queue head -1 ts N/A
[hevc @ 000001b762522c00] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
 Last message repeated 1 times
[out#0/rtsp @ 000001b76090dcc0] sq: send 1 ts 2.24116
[hevc @ 000001b76099d340] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
 Last message repeated 1 times
[hevc @ 000001b762522c00] Output frame with POC 17.
[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 2.24116 queue head -1 ts N/A
[mpeg4 @ 000001b763112b80] intra_quant_bias = 0 inter_quant_bias = -64
[hevc @ 000001b763a62400] Decoded frame with POC 16.
[hevc @ 000001b763bc4980] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
 Last message repeated 1 times
[out#0/rtsp @ 000001b76090dcc0] sq: send 1 ts 2.27316
[hevc @ 000001b76099d340] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
 Last message repeated 1 times
[tcp @ 000001b7656cef40] No default whitelist set
[hevc @ 000001b763bc4980] Output frame with POC 18.
[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 2.27316 queue head -1 ts N/A
[hevc @ 000001b762522c00] Decoded frame with POC 17.
[tcp @ 000001b7656cef40] Original list of addresses:
[hevc @ 000001b762524140] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
 Last message repeated 1 times
[out#0/rtsp @ 000001b76090dcc0] sq: send 1 ts 2.30516
[tcp @ 000001b7656cef40] Address 127.0.0.1 port 1935
[tcp @ 000001b7656cef40] Interleaved list of addresses:
[hevc @ 000001b762524140] Output frame with POC 19.
[hevc @ 000001b763bc4980] Decoded frame with POC 18.
[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 2.30516 queue head -1 ts N/A
[hevc @ 000001b76099d340] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
 Last message repeated 1 times
[hevc @ 000001b762524740] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
 Last message repeated 1 times
[tcp @ 000001b7656cef40] Address 127.0.0.1 port 1935
[hevc @ 000001b76099d340] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
 Last message repeated 1 times
[out#0/rtsp @ 000001b76090dcc0] sq: send 1 ts 2.33716
[hevc @ 000001b762524740] Output frame with POC 20.
[tcp @ 000001b7656cef40] Starting connection attempt to 127.0.0.1 port 1935
[hevc @ 000001b762524140] Decoded frame with POC 19.
[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 2.33716 queue head -1 ts N/A
[out#0/rtsp @ 000001b76090dcc0] sq: send 1 ts 2.36916
[hevc @ 000001b763e625c0] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
 Last message repeated 1 times
[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 2.36916 queue head -1 ts N/A
[hevc @ 000001b763e625c0] Output frame with POC 21.
[hevc @ 000001b762524740] Decoded frame with POC 20.
[out#0/rtsp @ 000001b76090dcc0] sq: send 1 ts 2.40116
[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 2.40116 queue head -1 ts N/A
[out#0/rtsp @ 000001b76090dcc0] sq: send 1 ts 2.43316
[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 2.43316 queue head -1 ts N/A
[out#0/rtsp @ 000001b76090dcc0] sq: send 1 ts 2.46516
[hevc @ 000001b763e625c0] Decoded frame with POC 21.
[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 2.46516 queue head -1 ts N/A
[out#0/rtsp @ 000001b76090dcc0] sq: send 1 ts 2.49716
[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 2.49716 queue head -1 ts N/A
[out#0/rtsp @ 000001b76090dcc0] sq: send 1 ts 2.52916
[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 2.52916 queue head -1 ts N/A
[out#0/rtsp @ 000001b76090dcc0] sq: send 1 ts 2.56116
[out#0/rtsp @ 000001b76090dcc0] sq: receive 1 ts 2.56116 queue head -1 ts N/A



and finally i cannot connect to the re-streamed rtsp connection. how to fix this ?


i want to re stream the rtsp connection from the server to make it available to use this rtsp connection online.


-
Why is ffmpeg executable so much faster than using libfdk_aac directly ?
3 février 2016, par lancejabrWhen I encode a wav file to AAC using the ffmpeg executable (using libfdk_aac and setting -threads 1), the process completes several times faster than when I use the AAC encoding example provided by the libfdk_aac library itself. I looked at the code and the central loop in libfdk_aac is almost identical to the aac_encode_frame method in the ffmpeg source.
Anyone know why the executable would be so much faster ? I’m looking into compilation options but we’re talking like 8x speedup so I don’t think it’s just putting -O3 on there... Does ffmpeg encode multiple buffers at once even when there is only one thread ?