Recherche avancée

Médias (1)

Mot : - Tags -/MediaSPIP

Autres articles (38)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • MediaSPIP Player : les contrôles

    26 mai 2010, par

    Les contrôles à la souris du lecteur
    En plus des actions au click sur les boutons visibles de l’interface du lecteur, il est également possible d’effectuer d’autres actions grâce à la souris : Click : en cliquant sur la vidéo ou sur le logo du son, celui ci se mettra en lecture ou en pause en fonction de son état actuel ; Molette (roulement) : en plaçant la souris sur l’espace utilisé par le média (hover), la molette de la souris n’exerce plus l’effet habituel de scroll de la page, mais diminue ou (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

Sur d’autres sites (6143)

  • Unable to create audio file from mp4 file with ffmpeg

    21 octobre 2020, par DevLoverUmar

    I'm unable to create single channel audio file with ffmpeg from an mp4 file, with the following python code

    


    command_line = "ffmpeg -i "+full_file_path+" -ac 1 -ar 16000  -vn "+full_file_path[:-4]+".wav"        
args = shlex.split(command_line)


    


    Here is the media info of my mp4 file

    


    from pydub.utils import mediainfo
print(mediainfo(full_file_path))



    


    


    Output

    


    'index' : '0', 'codec_name' : 'h264', 'codec_long_name' : 'H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10', 'profile' : 'High', 'codec_type' : 'video', 'codec_time_base' : '1/48', 'codec_tag_string' : 'avc1', 'codec_tag' : '0x31637661', 'width' : '1920', 'height' : '1080', 'coded_width' : '1920', 'coded_height' : '1088', 'has_b_frames' : '2', 'sample_aspect_ratio' : '1:1', 'display_aspect_ratio' : '16:9', 'pix_fmt' : 'yuv420p', 'level' : '40', 'color_range' : 'unknown', 'color_space' : 'unknown', 'color_transfer' : 'unknown', 'color_primaries' : 'unknown', 'chroma_location' : 'left', 'field_order' : 'unknown', 'timecode' : 'N/A', 'refs' : '1', 'is_avc' : 'true', 'nal_length_size' : '4', 'id' : 'N/A', 'r_frame_rate' : '24/1', 'avg_frame_rate' : '24/1', 'time_base' : '1/12288', 'start_pts' : '0', 'start_time' : '0.000000', 'duration_ts' : '107520', 'duration' : '8.750000', 'bit_rate' : '1036420', 'max_bit_rate' : 'N/A', 'bits_per_raw_sample' : '8', 'nb_frames' : '210', 'nb_read_frames' : 'N/A', 'nb_read_packets' : 'N/A', 'DISPOSITION' : 'default' : '1', 'dub' : '0', 'original' : '0', 'comment' : '0', 'lyrics' : '0', 'karaoke' : '0', 'forced' : '0', 'hearing_impaired' : '0', 'visual_impaired' : '0', 'clean_effects' : '0', 'attached_pic' : '0', 'timed_thumbnails' : '0', 'TAG' : 'language' : 'und', 'handler_name' : 'VideoHandler', 'major_brand' : 'isom', 'minor_version' : '512', 'compatible_brands' : 'isomiso2avc1mp41', 'encoder' : 'Lavf58.26.101', 'filename' : './sample_dataset_FaceForensic/fake/abc.mp4', 'nb_streams' : '1', 'nb_programs' : '0', 'format_name' : 'mov,mp4,m4a,3gp,3g2,mj2', 'format_long_name' : 'QuickTime / MOV', 'size' : '1133585', 'probe_score' : '100'

    


    


  • Cannot convert .ogg file to .mp3 or other file formats

    15 août 2020, par mancgain

    I am trying to convert ogg audio file to mp3 or other audio file formats that can be played in ios devices But ogg files are not being converted into other formats like mp3 and caf. I am testing the conversion in android device.

    


    This is my ffmpeg command arguments :

    


    Command: "ffmpeg -y -i $inputFilePath -c:a copy $outputFilePath"
Both input and output filenames were surrounded with quotations

 [-y, -i, /data/user/0/com.musicapp/files/composer_audios/testtt ogg file.ogg, -c:a, copy, /storage/emulated/0/Android/data/com.musicapp/files/ball.mp3]


    


    When I try to convert into mp3 . this error is thrown :

    


     FFmpeg exited with rc: 1
 [mp3 @ 0x73f7b36a00] Invalid audio stream. Exactly one MP3 audio stream is required.
Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument


    


    When I try to convert into .caf file this error is thrown :

    


    
FFmpeg exited with rc: 1
 [caf @ 0x73f7b36a00] unsupported codec
 Could not write header for output file #0 (incorrect codec parameters ?): Invalid data found when processing input



    


    But if I try to convert mp3 file to formats like caf, mkv, mp4, no error is thrown.

    


  • ffmpeg command to get master manifest file in hls where all renditions are pointed to a single m3u8 file [closed]

    28 décembre 2023, par user2975644

    ffmpeg command to get master manifest file in hls where all renditions are pointed to a single m3u8 file.The video reolutions are 360p,540p,720p and 1080p.

    


    I have tried with the below command but unable to get the desired output :

    


    ffmpeg -i Test_video.mp4

    


    -c:v libx264 -g 48 -keyint_min 48 -sc_threshold 0 -c:a aac -b:a 64k

    


    -vf "scale=640:360" -b:v 500k -maxrate 100k -bufsize 1000k -profile:v main -level 3.1 -f hls -hls_time 10 -hls_list_size 0 -hls_segment_filename 360p%03d.ts 360p.m3u8

    


    -vf "scale=960:540" -b:v 800k -maxrate 1600k -bufsize 1000k -profile:v main -level 3.1 -f hls -hls_time 10 -hls_list_size 0 -hls_segment_filename 540p%03d.ts 540p.m3u8

    


    -vf "scale=1280:720" -b:v 1500k -maxrate 3000k -bufsize 3000k -profile:v main -level 3.1 -f hls -hls_time 10 -hls_list_size 0 -hls_segment_filename 720p%03d.ts 720p.m3u8

    


    -vf "scale=1920:1080" -b:v 3000k -maxrate 6000k -bufsize 6000k -profile:v main -level 3.1 -f hls -hls_time 10 -hls_list_size 0 -hls_segment_filename 1080p%03d.ts 1080p.m3u8

    


    hls_playlist_type vod -master_pl_name master.m3u8