
Recherche avancée
Autres articles (26)
-
Les formats acceptés
28 janvier 2010, parLes commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
ffmpeg -codecs ffmpeg -formats
Les format videos acceptés en entrée
Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
Les formats vidéos de sortie possibles
Dans un premier temps on (...) -
Supporting all media types
13 avril 2011, parUnlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)
-
Création définitive du canal
12 mars 2010, parLorsque votre demande est validée, vous pouvez alors procéder à la création proprement dite du canal. Chaque canal est un site à part entière placé sous votre responsabilité. Les administrateurs de la plateforme n’y ont aucun accès.
A la validation, vous recevez un email vous invitant donc à créer votre canal.
Pour ce faire il vous suffit de vous rendre à son adresse, dans notre exemple "http://votre_sous_domaine.mediaspip.net".
A ce moment là un mot de passe vous est demandé, il vous suffit d’y (...)
Sur d’autres sites (4450)
-
Four Trends Shaping the Future of Analytics in Banking
27 novembre 2024, par Daniel Crough — Banking and Financial Services -
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.


-
Restoring corrupted video after recovery
22 août 2019, par Harold.DemureI have recently recovered the content of an old drive of mine using photorec.
To my surprise, photorec recovered a lot of files with non-video extensions (.sqlite, .apple, .pdf, .torrent...) that contain fragments of video. I can see these fragments only using mplayer/mencoder (quicktime and vlc cannot). Some of the files are even hundreds of megabyte large, but mplayer only shows me a few seconds of the video.
Is there any script/data carving tool that I can use to see if I can recover more video fragments from these files ? I am not afraid of trying solutions that require some coding or manual inspection (e.g., search for headers via hex editors).
Thank you for your help, any suggestion is highly appreciated.
Harol.