Recherche avancée

Médias (0)

Mot : - Tags -/presse-papier

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (42)

Sur d’autres sites (7783)

  • Does ffmpeg rtp_mpegts muxer support setting DVB triplet ?

    19 février 2021, par drake7

    It seems ffmpeg lets you set the DVB triplet with UDP but not with RTP.

    


    FYI : This is a followup on my findings about the rtp_mpegts muxer compared to the mpegts muxer : Question

    


    In my tests I was using ffmpeg version 4.3.1-2021-01-01-full_build-www.gyan.dev on windows.

    


    findings

    


    I analyzed my streams with dectec's "StreamXpert" :

    


      

    • With UDP and it's mpegts muxer, the DVB triplet can be set (1)

      


    • 


    • With RTP and it's rtp_mpegts muxer, the DVB triplet is ignored (3) (Note that 3a and 3b create very similar results in "StreamXpert".)

      


    • 


    • Using UDP with DVB triplet as input and output with RTP ignores the DVB triplet (2)

      


    • 



    


    Interestingly, leaving out the following options...

    


    -pcr_period 20 -pat_period 0.10 -sdt_period 0.25 -metadata:s:a:0 language=nya \
-mpegts_flags +pat_pmt_at_frames -mpegts_flags system_b


    


    ... the rtp_mpegts muxer (3b) creates a valid DVB transport stream, while the the mpegts muxer (4) does not.

    


    ffmpeg params :

    


      



    


    muxer : mpegts (udp)

    


    ffmpeg -f lavfi -i testsrc -r 25 -c:v libx264 -pix_fmt yuv420p -profile:v main -level 3.1 -preset veryfast -vf scale=1280:720,setdar=dar=16/9 -an -bsf:v h264_mp4toannexb -b:v 4M -muxrate 8M \
-pcr_period 20 -pat_period 0.10 -sdt_period 0.25 -metadata:s:a:0 language=nya -mpegts_flags +pat_pmt_at_frames \
-mpegts_transport_stream_id 0x005A \
-mpegts_original_network_id 0x005B \
-mpegts_service_id 0x005C \
-mpegts_pmt_start_pid 0x005D -mpegts_start_pid 0x005E -mpegts_service_type advanced_codec_digital_hdtv \
-metadata service_provider="Provider foo" \
-metadata service_name="Service bar" \
-mpegts_flags system_b -flush_packets 0 \
-f mpegts "udp://239.10.33.10:1234?pkt_size=1316"


    


      



    


    muxer : rtp_mpegts (rtp)

    


    ffmpeg -i "udp://239.10.33.10:1234" -map 0 -c copy \
-f rtp_mpegts "rtp://239.10.33.11:1234?pkt_size=1316"


    


      



    


    a) muxer : rtp_mpegts (rtp)

    


    ffmpeg -f lavfi -i testsrc -r 25 -c:v libx264 -pix_fmt yuv420p -profile:v main -level 3.1 -preset veryfast -vf scale=1280:720,setdar=dar=16/9 -an -bsf:v h264_mp4toannexb -b:v 4M -muxrate 8M \
-pcr_period 20 -pat_period 0.10 -sdt_period 0.25 -metadata:s:a:0 language=nya -mpegts_flags +pat_pmt_at_frames \
-mpegts_transport_stream_id 0x005A \
-mpegts_original_network_id 0x005B \
-mpegts_service_id 0x005C \
-mpegts_pmt_start_pid 0x005D -mpegts_start_pid 0x005E -mpegts_service_type advanced_codec_digital_hdtv \
-metadata service_provider="Provider foo" \
-metadata service_name="Service bar" \
-mpegts_flags system_b -flush_packets 0 \
-f rtp_mpegts "rtp://239.10.33.10:1234?pkt_size=1316"


    


    b) muxer : rtp_mpegts (rtp) (omitting some options)

    


    ffmpeg -f lavfi -i testsrc -r 25 -c:v libx264 -vf scale=1280:720,setdar=dar=16/9 -b:v 4M -muxrate 8M \
-mpegts_transport_stream_id 0x005A \
-mpegts_original_network_id 0x005B \
-mpegts_service_id 0x005C -mpegts_pmt_start_pid 0x005D -mpegts_start_pid 0x005E \
-mpegts_service_type advanced_codec_digital_hdtv \
-metadata service_provider="Provider foo" \
-metadata service_name="Service bar" \
-f rtp_mpegts "rtp://239.10.33.10:1234"


    


      



    


    muxer : mpegts (udp) (omitting some options)

    


    ffmpeg -f lavfi -i testsrc -r 25 -c:v libx264 -vf scale=1280:720,setdar=dar=16/9 -b:v 4M -muxrate 8M \
-mpegts_transport_stream_id 0x005A \
-mpegts_original_network_id 0x005B \
-mpegts_service_id 0x005C -mpegts_pmt_start_pid 0x005D -mpegts_start_pid 0x005E \
-mpegts_service_type advanced_codec_digital_hdtv \
-metadata service_provider="Provider foo" \
-metadata service_name="Service bar" \
-f mpegts "udp://239.10.33.10:1234"


    


    Analyzing the transport stream

    


     dectec's

    


  • ffmpeg - create from .png - [on hold]

    9 janvier 2016, par John

    I am new user to R studio.
    I want to create a video from a serie of .png files.
    I have checked the post about doing so but using the code provided result in error. I get the " unexpected token " error with command like :
    ffmpeg -r 1/5 ...etc
    says " unexpected token 1 " ; ..then a bunch of other unexpected token...
    What is wrong with the command line ? Do I need to install a package to use this ffmpeg ? If so, using the command " install.ffmpeg or install.package() didn’t work.
    Any help on this ? thanks !

  • Is it possible to use Emgu CV 3.0 to open a live stream with rstp protocol with ffmpeg h264

    1er février 2017, par Rezell Isidro

    Is it possible to use this code in capturing a video stream from an ip camera ?

    Capture cap = new Capture("rtsp://192.168.42.1:554/live");
    imageBox1.Image = cap.QueryFrame();

    because my image box is displaying nothing but when i tried viewing it to VLC Media Player the ip address worked. Please help.

    I also tried it with VLCPlugin v2 instead of using imageBox and the ip address still work..

    I also tried it with iSpy and it worked under ffmpeg(h264), maybe the problem is there ? I’m using Visual Studio Ultimate 2010, Emgu CV 3.x. and I’m using Please help. Been working on this for long now.