Recherche avancée

Médias (1)

Mot : - Tags -/Rennes

Autres articles (98)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Use, discuss, criticize

    13 avril 2011, par

    Talk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
    The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
    A discussion list is available for all exchanges between users.

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

Sur d’autres sites (10874)

  • How to stitch(concat) two transport stream with two different resolution and I-frame slices format without loosing resolution and slices information

    2 octobre 2019, par AnkurTank

    I have been trying to test a use case with steam captured from multimedia device and that didn’t work. And then I have been trying to create this specific transport stream for like two days now without success, so requesting some help.

    I need to create transport stream with two different resolution and two different slicing format.

    I divided the task in following steps and in last two steps I need help.

    Step 1 : Download sample video with resolution : 1920x1080.
    I downloaded big buck bunny mp4 .

    Step 2 : Create transport stream with following
    resolution : 1920x720, H264 I frame slices per frame : 1
    I used following ffmpeg commands to do that.

    #Rename file to input.mp4
    $ mv bbb_sunflower_1080p_30fps_normal.mp4 input.mp4
    #Extract transport stream
    $ ffmpeg -i input.mp4 -c copy first.ts

    first.ts is having 1980x720 resolution and one H264 I slice per frame.

    Step 3 : Create another transport stream with smaller resolution using following commands

    #Get mp4 with lower resolution.
    $ ffmpeg -i input.mp4 -s 640x480 temp.mp4
    #Extract trans port stream from mp4
    $ ffmpeg -i temp.mp4 -c copy low_r.ts

    Step 4 : Edit(and re-encode ?) low_r.ts to have two H264 I frame slices.
    I used following command to achieve it.

    $ x264 --slices 4 low_r.ts -o second.ts

    However when I play this second.ts on vlc using following command it doesn’t play

    $ vlc ./second.ts

    And using Elacard StreamEye software when I analyze the transport stream I see that it has 4 H264 I slices in only two times other than that lot of H264 p slices and H264 B slices.
    Need help here to figure out why second.ts doesn’t play and why slicing is not correct.

    Step 5 : Combine both the transport stream without loosing resolution and slicing information.
    Don’t know command for this. Need help here.
    I tried ffmpeg but that combines two stream with different resolution and makes one file with one resolution.

    Any suggestions/pointers would help me proceed. Let me also know if any of the above steps are not fine too.

  • How to stitch(concat) two transport stream with two different resolution and I-frame slices format without loosing resolution and slices information

    2 octobre 2019, par ART

    I have been trying to test a use case with steam captured from multimedia device and that didn't work. And then I have been trying to create this specific transport stream for like two days now without success, so requesting some help.

    



    I need to create transport stream with two different resolution and two different slicing format.

    



    I divided the task in following steps and in last two steps I need help.

    



    Step 1 : Download sample video with resolution : 1920x1080.
    
 I downloaded big buck bunny mp4 .

    



    Step 2 : Create transport stream with following
    
resolution : 1920x720, H264 I frame slices per frame : 1
    
I used following ffmpeg commands to do that.

    



    #Rename file to input.mp4
$ mv bbb_sunflower_1080p_30fps_normal.mp4 input.mp4
#Extract transport stream
$ ffmpeg -i input.mp4 -c copy first.ts


    



    first.ts is having 1980x720 resolution and one H264 I slice per frame.

    



    Step 3 : Create another transport stream with smaller resolution using following commands

    



    #Get mp4 with lower resolution.
$ ffmpeg -i input.mp4 -s 640x480 temp.mp4
#Extract trans port stream from mp4
$ ffmpeg -i temp.mp4 -c copy low_r.ts


    



    Step 4 : Edit(and re-encode ?) low_r.ts to have two H264 I frame slices.
I used following command to achieve it.

    



    $ x264 --slices 4 low_r.ts -o second.ts


    



    However when I play this second.ts on vlc using following command it doesn't play

    



    $ vlc ./second.ts 


    



    And using Elacard StreamEye software when I analyze the transport stream I see that it has 4 H264 I slices in only two times other than that lot of H264 p slices and H264 B slices. 
Need help here to figure out why second.ts doesn't play and why slicing is not correct.

    



    Step 5 : Combine both the transport stream without loosing resolution and slicing information.
Don't know command for this. Need help here.
I tried ffmpeg but that combines two stream with different resolution and makes one file with one resolution.

    



    Any suggestions/pointers would help me proceed. Let me also know if any of the above steps are not fine too.

    


  • FFMPEG stream MPTS file with all the Metadata to output device (get multiple services at the output)

    24 juillet 2024, par the_man

    The help is needed...

    


    I need to correctly MUX the UDP stream (MPEG Transport Streams) from the dvb app with multiple services (TV Channels) inside and stream it to my modulator device.
All the metadata information should be present in the output file :

    


      

    • Program 10352
    • 


    • service_name : MDR Sachsen HD
    • 


    • Stream #0:3[0x67](deu) :... (visual impaired) (descriptions)
    • 


    • Stream #0:5[0x69](deu) : Subtitle : dvb_teletext
    • 


    • ...
    • 


    


    For simplicity, we may write a stream to a file. It should work almost the same way.

    


    Here is an Input :

    


    Input #0, mpegts, from 'udp://192.168.0.20:1234':
  Duration: N/A, start: 75946.781478, bitrate: N/A
  Program 10352
    Metadata:
      service_name    : MDR Sachsen HD
      service_provider:
  Stream #0:1[0x65]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, progressive), 1280x720 [SAR 1:1 DAR 16:9], 50 fps, 50 tbr, 90k tbn, 100 tbc
  Stream #0:2[0x66](deu): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, fltp, 192 kb/s
  Stream #0:3[0x67](deu): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, fltp, 192 kb/s (visual impaired) (descriptions)
  Stream #0:4[0x68](deu): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, fltp, 192 kb/s (hearing impaired)
  Stream #0:5[0x69](deu): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006)
  Stream #0:6[0x6a](deu): Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz, stereo, fltp, 448 kb/s
  Stream #0:7[0x6b]: Unknown: none ([5][0][0][0] / 0x0005)
  Stream #0:8[0x6c](deu): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006) (hearing impaired)
  Program 10355
    Metadata:
      service_name    : hr-fernsehen HD
      service_provider:
  Stream #0:12[0xc9]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, progressive), 1280x720 [SAR 1:1 DAR 16:9], 50 fps, 50 tbr, 90k tbn, 100 tbc
  Stream #0:9[0xca](deu): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 192 kb/s
  Stream #0:10[0xcb](deu): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 192 kb/s (visual impaired) (descriptions)
  Stream #0:11[0xcc](deu): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 192 kb/s (hearing impaired)
  Stream #0:13[0xcd](deu): Subtitle: dvb_teletext
  Stream #0:14[0xce](deu): Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz, stereo, fltp, 448 kb/s
  Stream #0:15[0xcf]: Unknown: none ([5][0][0][0] / 0x0005)
  Stream #0:16[0xd0](deu): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006) (hearing impaired)



    


    At the output, I need to get these two TV services as is to be visible on the TV set, or VLC etc.

    


    My command so far :
case #1

    


    ffmpeg -i udp://192.168.0.20:1234 -buffer_size 5000k -mpegts_flags +resend_headers\
 -metadata service_name="MDR Sachsen HD" -map 0:1 -map 0:2 -metadata language="deu"\
 -metadata service_name="hr-fernsehen HD" -map 0:10 -map 0:12 -metadata language="deu"\
 -c copy -muxrate 31668449 -mpegts_flags +resend_headers -f mpegts - | dd bs=64k of=/dev/dvb/adapter0/mod0


    


    case #2

    


    ffmpeg -i udp://192.168.0.20:1234 -buffer_size 5000k \
-map 0:p:10352 -map 0:p:10355 \
-c copy -muxrate 31668449 -mpegts_service_id 10352 -metadata service_name="MDR Sachsen HD" \
-mpegts_service_id 10355 -metadata service_name="hr-fernsehen HD" \
-mpegts_flags +resend_headers -f mpegts - | dd bs=64k of=/dev/dvb/adapter0/mod0


    


    Whatever i try, i get only one TV service at the output :

    


    Output #0, mpegts, to 'pipe:':
  Metadata:
    service_name    : hr-fernsehen HD
    encoder         : Lavf58.76.100
  Stream #0:0: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, progressive), 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 50 fps, 50 tbr, 90k tbn, 90k tbc
  Stream #0:1(deu): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, fltp, 192 kb/s
  Stream #0:2(deu): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, fltp, 192 kb/s (visual impaired) (descriptions)
  Stream #0:3(deu): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, fltp, 192 kb/s (hearing impaired)
  Stream #0:4(deu): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006)
  Stream #0:5(deu): Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz, stereo, fltp, 448 kb/s
  Stream #0:6: Unknown: none ([5][0][0][0] / 0x0005)
  Stream #0:7(deu): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006) (hearing impaired)
  Stream #0:8(deu): Subtitle: dvb_teletext, 492x250
  Stream #0:9: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, progressive), 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 50 fps, 50 tbr, 90k tbn, 90k tbc
  Stream #0:10(deu): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 192 kb/s
  Stream #0:11(deu): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 192 kb/s (visual impaired) (descriptions)
  Stream #0:12(deu): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 192 kb/s (hearing impaired)
  Stream #0:13(deu): Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz, stereo, fltp, 448 kb/s
  Stream #0:14: Unknown: none ([5][0][0][0] / 0x0005)
  Stream #0:15(deu): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006) (hearing impaired)
Stream mapping:
  Stream #0:1 -> #0:0 (copy)
  Stream #0:2 -> #0:1 (copy)
  Stream #0:3 -> #0:2 (copy)
...


    


    Here is what i see at the Analyzer app with the second command:

    


    Update :
So far the best command i get :

    


    ffmpeg -i "udp://192.168.0.20:1234?fifo_size=10000000&overrun_nonfatal=1" -buffer_size 5000k -mpegts_flags +resend_headers -copy_unknown \
-map 0:v:0 -map 0:a:0 -map 0:a:1 -map 0:a:2 -map 0:a:3 -map 0:s:0? -map 0:d:0? \
-map 0:v:1 -map 0:a:4 -map 0:a:5 -map 0:a:6 -map 0:a:7 -map 0:s:1? -map 0:d:1? \
-program program_num=10352:title="MDR Sachsen HD":st=0:st=1:st=2:st=3:st=4:st=5:st=6 \
-program program_num=10355:title="hr-fernsehen HD":st=7:st=8:st=9:st=10:st=11:st=12:st=13 \
-c copy -muxrate 31668449 -mpegts_flags +resend_headers -max_interleave_delta 0 -f mpegts - | dd bs=64k of=/dev/dvb/adapter0/mod0