Recherche avancée

Médias (0)

Mot : - Tags -/xmlrpc

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

Autres articles (92)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains 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 ;

  • 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.

  • MediaSPIP en mode privé (Intranet)

    17 septembre 2013, par

    À partir de la version 0.3, un canal de MediaSPIP peut devenir privé, bloqué à toute personne non identifiée grâce au plugin "Intranet/extranet".
    Le plugin Intranet/extranet, lorsqu’il est activé, permet de bloquer l’accès au canal à tout visiteur non identifié, l’empêchant d’accéder au contenu en le redirigeant systématiquement vers le formulaire d’identification.
    Ce système peut être particulièrement utile pour certaines utilisations comme : Atelier de travail avec des enfants dont le contenu ne doit pas (...)

Sur d’autres sites (15145)

  • Evolution #2338 : mode debug et jointures

    9 février 2021, par cedric -

    surement, mais bon, à voir dans la refonte du mode debug à faire un jour

  • google function : TypeError : Cannot read property 'name' of undefined

    9 décembre 2019, par Juggernaught

    I’m trying to use Google cloud function to transcode videos from a storage bucket and outputs into another bucket using code posted online but with a few adjustments.

    but I get the following error :

    TypeError : Cannot read property ’name’ of undefined at transcodeVideo
    (/srv/index.js:17:56) at /worker/worker.js:825:24 at at
    process._tickDomainCallback (internal/process/next_tick.js:229:7)

    Index.js

    const {Storage} = require('@google-cloud/storage');
    const projectId = 'cc18-223318';
    const storage = new Storage({
       projectId: projectId,
    });
    const ffmpegPath = require('@ffmpeg-installer/ffmpeg').path;
    const ffmpeg = require('fluent-ffmpeg');

    const transcodedBucket = storage.bucket('2400p');
    const uploadBucket = storage.bucket('inpuut');
    ffmpeg.setFfmpegPath(ffmpegPath);

    exports.transcodeVideo = function transcodeVideo(event, callback) {
     const file = event.data;
     // Ensure that you only proceed if the file is newly created, and exists.
     if (file.metageneration !== '1' || file.resourceState !== 'exists') {
       callback();
       return;
     }

     // Open write stream to new bucket, modify the filename as needed.
     const remoteWriteStream = transcodedBucket.file(file.name.replace('.webm', '.mp4'))
       .createWriteStream({
         metadata: {
           metadata: file.metadata, // You may not need this, my uploads have associated metadata
           contentType: 'video/mp4', // This could be whatever else you are transcoding to
         },
       });

     // Open read stream to our uploaded file
     const remoteReadStream = uploadBucket.file(file.name).createReadStream();

     // Transcode
     ffmpeg()
       .input(remoteReadStream)
       .outputOptions('-c:v libx264') // Change these options to whatever suits your needs
       .outputOptions('-c:a copy')
       .outputOptions('-vf "scale=4800:2400"')
       .outputOptions('-b:a 160k')
       .outputOptions('-b:a 160k')
       .outputOptions('-x264-params mvrange=511')
       .outputOptions('-f mp4')
       .outputOptions('-preset slow')
       .outputOptions('-movflags frag_keyframe+empty_moov')
       .outputOptions('-crf 18')
       // https://github.com/fluent-ffmpeg/node-fluent-ffmpeg/issues/346#issuecomment-67299526
       .on('start', (cmdLine) => {
         console.log('Started ffmpeg with command:', cmdLine);
       })
       .on('end', () => {
         console.log('Successfully re-encoded video.');
         callback();
       })
       .on('error', (err, stdout, stderr) => {
         console.error('An error occured during encoding', err.message);
         console.error('stdout:', stdout);
         console.error('stderr:', stderr);
         callback(err);
       })
       .pipe(remoteWriteStream, { end: true }); // end: true, emit end event when readable stream ends
    };
  • FFMPEG save udp stream to mp4 file

    17 juillet 2020, par DoriHp 0

    I'm facing some trouble when using ffmpeg to save an udp stream into a mp4 file. When receiving and playing with ffplay by this command

    


    ffplay -i udp://127.0.0.1:10000

    


    everything is ok, but when I save to mp4 file with this command

    


    ffmpeg -i udp://127.0.0.1:10000 -vcodec libx264 -an -pix_fmt yuv420p -r 20 test.mp4

    


    the created mp4 file has only 15 secs length but my streaming was 1 min. I found a solution

    


    ffmpeg -i udp://127.0.0.1:10000 -r 20 -filter:v "setpts=PTS*0.25" -vcodec libx264 -an -pix_fmt yuv420p test.mp4

    


    by using setpts video filter, but video's length still wasn't same as the stream.
My udp stream's properties, get by using ffprobe :

    


    [STREAM]                                          
index=0                                           
codec_name=h264                                   
codec_long_name=H.264 / AVC / MPEG-4 AVC / MPEG-4 
profile=High 4:4:4 Predictive                     
codec_type=video                                  
codec_time_base=1/40                              
codec_tag_string=[27][0][0][0]                    
codec_tag=0x001b                                  
width=1280                                        
height=720                                        
coded_width=1280                                  
coded_height=720                                  
closed_captions=0                                 
has_b_frames=0                                    
sample_aspect_ratio=N/A                           
display_aspect_ratio=N/A                          
pix_fmt=yuv444p                                   
level=31                                          
color_range=unknown                               
color_space=unknown                               
color_transfer=unknown                            
color_primaries=unknown                           
chroma_location=left                              
field_order=progressive                           
timecode=N/A                                      
refs=1                                            
is_avc=false                                      
nal_length_size=0                                 
id=0x100                                          
r_frame_rate=20/1                                 
avg_frame_rate=20/1                               
time_base=1/90000                                 
start_pts=420655500                               
start_time=4673.950000                            
duration_ts=N/A                                   
duration=N/A                                      
bit_rate=N/A                                      
max_bit_rate=N/A                                  
bits_per_raw_sample=8                             
nb_frames=N/A                                     
nb_read_frames=N/A                                
nb_read_packets=N/A                               
DISPOSITION:default=0                             
DISPOSITION:dub=0                                 
DISPOSITION:original=0                            
DISPOSITION:comment=0                             
DISPOSITION:lyrics=0                              
DISPOSITION:karaoke=0                             
DISPOSITION:forced=0                              
DISPOSITION:hearing_impaired=0                    
DISPOSITION:visual_impaired=0                     
DISPOSITION:clean_effects=0                       
DISPOSITION:attached_pic=0                        
DISPOSITION:timed_thumbnails=0                    
[/STREAM]                                         
[FORMAT]                                          
filename=udp://127.0.0.1:10000                    
nb_streams=1                                      
nb_programs=1                                     
format_name=mpegts                                
format_long_name=MPEG-TS (MPEG-2 Transport Stream)
start_time=4673.950000                            
duration=N/A                                      
size=N/A                                          
bit_rate=N/A                                      
probe_score=50                                    
[/FORMAT]