
Recherche avancée
Médias (91)
-
Richard Stallman et le logiciel libre
19 octobre 2011, par
Mis à jour : Mai 2013
Langue : français
Type : Texte
-
Stereo master soundtrack
17 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Audio
-
Elephants Dream - Cover of the soundtrack
17 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Image
-
#7 Ambience
16 octobre 2011, par
Mis à jour : Juin 2015
Langue : English
Type : Audio
-
#6 Teaser Music
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#5 End Title
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
Autres articles (31)
-
Librairies et binaires spécifiques au traitement vidéo et sonore
31 janvier 2010, parLes logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
Binaires complémentaires et facultatifs flvtool2 : (...) -
Support audio et vidéo HTML5
10 avril 2011MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...) -
De l’upload à la vidéo finale [version standalone]
31 janvier 2010, parLe chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
Upload et récupération d’informations de la vidéo source
Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)
Sur d’autres sites (4664)
-
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.


-
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 ?
-
While transcoding to mpegts ffmpeg creates the first frame after 1.48 seconds delay
15 mars 2018, par Biraj B ChoudhuryI have transcoded a file to mpegts using the following command
./ffmpeg -y -i big_buck_bunny_720p_5mb.mp4 -vcodec libx264 -x264opts "keyint=48:min-keyint=48:no_scenecut" -r 23.976 -c:a copy -f mpegts test.mpegts
When I run ffprobe on it -
./ffprobe -i test.mpegts -select_streams v -show_frames -of csv
I see that the first frame starts at 1.48 seconds why is this so ?
Input #0, mpegts, from 'test.mpegts':
Duration: 00:00:29.61, start: 1.483422, bitrate: 1964 kb/s
Program 1
Metadata:
service_name : Service01
service_provider: FFmpeg
Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(progressive), 1280x720 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc
Stream #0:1[0x101](und): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, 5.1, fltp, 406 kb/s
frame,video,0,1,133508,1.483422,133508,1.483422,133508,1.483422,3753,0.041700,564,112008,1280,720,yuv420p,1:1,I,0,0,0,0,0
frame,video,0,0,137262,1.525133,137262,1.525133,137262,1.525133,3753,0.041700,125584,1110,1280,720,yuv420p,1:1,B,2,0,0,0,0After some research I added "muxdelay 0" to my command
./ffmpeg -y -i big_buck_bunny_720p_5mb.mp4 -vcodec libx264 -x264opts "keyint=48:min-keyint=48:no_scenecut" -r 23.976 -c:a copy -muxdelay 0 -f mpegts test.mpegts
And now I get the following in ffprobe
Input #0, mpegts, from 'test.mpegts':
Duration: 00:00:29.61, start: 0.083422, bitrate: 1987 kb/s
Program 1
Metadata:
service_name : Service01
service_provider: FFmpeg
Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(progressive), 1280x720 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc
Stream #0:1[0x101](und): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, 5.1, fltp, 406 kb/s
frame,video,0,1,7508,0.083422,7508,0.083422,7508,0.083422,3753,0.041700,564,112008,1280,720,yuv420p,1:1,I,0,0,0,0,0
frame,video,0,0,11262,0.125133,11262,0.125133,11262,0.125133,3753,0.041700,125584,1110,1280,720,yuv420p,1:1,B,2,0,0,0,0Can anybody help me understand what is this muxdelay that is contributing to 1.4 seconds of delay and what is contributing to the remaining 0.08 seconds of delay.
The first frame is at 0.000 when the output is mp4 so this is something particular to mpegts.