
Recherche avancée
Médias (1)
-
Sintel MP4 Surround 5.1 Full
13 mai 2011, par
Mis à jour : Février 2012
Langue : English
Type : Video
Autres articles (47)
-
MediaSPIP v0.2
21 juin 2013, parMediaSPIP 0.2 est la première version de MediaSPIP stable.
Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Comme pour la version précédente, 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 (...) -
MediaSPIP version 0.1 Beta
16 avril 2011, parMediaSPIP 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 (...) -
Le plugin : Podcasts.
14 juillet 2010, parLe problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
Types de fichiers supportés dans les flux
Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...)
Sur d’autres sites (7413)
-
FFMPEG M3U8 Download Is Shortened When Processed
19 décembre 2022, par Devin DixonI am downloading an m3u8 stream with FFMPEG as such :


timeout 60m ffmpeg -i [feed_url] -movflags isml+frag_keyframe+faststart -bsf:a aac_adtstoasc -vcodec copy -c copy [save_file].mp4



- 

- The timeout will automatically end the stream after 60. minutes
- The
-movflags isml+frag_keyframe+faststart
makes sure the moov atom is present for partial downloads and if the stream is cut off.






This works fine when I play it in Quicktime or Safari.The stream is then uploaded to another server and it gets processed with this ffmpeg command :


ffmpeg -i [input_file] -y -f mp4 -pix_fmt yuv420p -c:v libx264 -c:a aac -filter_complex "scale='if(gt(iw,1920),1920,-1)':'if(gt(ih,1080),1080,-1)':force_original_aspect_ratio=decrease" -crf 20 -movflags faststart -max_muxing_queue_size 9999 -attempt_recovery 1 -max_recovery_attempts 3 -f mp4 [output_file]



When the above command is run, sometimes this error occurs :


[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaafcd63b70] Packet corrupt (stream = 0, dts = 53801910).= 64x 
[NULL @ 0xaaaafcd649b0] Invalid NAL unit size (1186 > 532).
[NULL @ 0xaaaafcd649b0] missing picture in access unit with size 542
/code/partners/tmp/video_634d29a2e1f6e.mp4: corrupt input packet in stream 0
[h264 @ 0xaaaafd1211f0] Invalid NAL unit size (1186 > 532).
[h264 @ 0xaaaafd1211f0] Error splitting the input into NAL units.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaafcd63b70] stream 0, offset 0x3802b2: partial file
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaafcd63b70] stream 0, offset 0x380791: partial file
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaafcd63b70] stream 0, offset 0x380c38: partial file
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaafcd63b70] stream 0, offset 0x380f8d: partial file
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaafcd63b70] stream 0, offset 0x38137a: partial file
Error while decoding stream #0:0: Invalid data found when processing input
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaaaafcd63b70] stream 0, offset 0x381750: partial file
[mp4 @ 0xaaaafcd743d0] Starting second pass: moving the moov atom to the beginning of the file
frame= 8967 fps=923 q=-1.0 Lsize= 5683kB time=00:09:57.60 bitrate= 77.9kbits/s speed=61.5x 
video:5580kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.843884%



When this error occurs, the video is cut short. If the full video is 60 minutes that error occurs at the 10 minute mark, the converted video will only be 10 minutes. What is that error and how can I get ffmpeg to stop cutting the output video short ?


-
How to upload a transcoded file to s3 and create a link to download it
29 septembre 2022, par Dotun LongeI want to download a video after my module "creates" it by combining a picture and audio file. The output goes to my tmp folder. This works, but I don't know how to access it.


My method is to create another Paperclip attachment called "converted" and the module responsible for transcoding should also be responsible for uploading the converted video to a bucket, where I can then access it via
@upload.converted.url
.

I have no idea how to go about this, and my eyes hurt from searching. If you have a better way for me to be able to download the transcoded video without this option, I will be open to it.


# videocreatingproccessor.rb

require 'streamio-ffmpeg'
require 'fileutils'

module VideoCreatingProcessor
 def self.convert_to_video (path_to_audio_file, path_to_image_file)
 movie = FFMPEG::Movie.new(path_to_audio_file)
 options = {
 video_codec: "libx264",
 frame_rate: 60,
 resolution: "960x720",
 x264_vprofile: "high",
 x264_preset: "slow",
 pixel_format: "720p",
 audio_codec: "libfaac",
 audio_bitrate: 32,
 audio_sample_rate: 44100,
 audio_channels: 2,
 threads: 2,
 }

 woptions = { watermark: path_to_image_file, resolution: "960x720", watermark_filter: { padding_x: 10, padding_y: 10 } }

 movie.transcode("tmp/output.mp4",woptions ,options )
 end
end



# uploads_controller.rb

class UploadsController < ApplicationController
 before_action :set_upload, only: [:show, :edit, :update, :destroy]

 def index
 @uploads = Upload.all
 end

 def paudioaddress
 "https:" + @upload.audio.url
 end

 def pimageaddress
 "https:" + @upload.image.url
 end

 def show
 require "video_creating_processor"
 newvideo = VideoCreatingProcessor.convert_to_video(paudioaddress, pimageaddress)
 end

 # ....
end



-
Download SAMPLE-AES-CTR encrypted m3u8
16 septembre 2022, par KadirI searched but couldn't find a solution How can I download this video ?




#EXTM3U
#EXT-X-VERSION:6
#EXT-X-TARGETDURATION:9
#EXT-X-PLAYLIST-TYPE:VOD
#EXT-X-MEDIA-SEQUENCE:0
#EXT-X-PROGRAM-DATE-TIME:2019-01-01T00:00:00.000Z
#EXT-X-DATERANGE:ID="pod_0",START-DATE="2019-01-01T00:00:00.000Z",DURATION=3.000000001,X-START-OFFSET="0.0"
#EXT-X-KEY:METHOD=SAMPLE-AES-CTR,KEYFORMAT="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed",KEYFORMATVERSIONS="1",URI="data:text/plain;base64,AAAAMnBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAABISEB5U5uPKPk0WpO7hIRwr3JI="
#EXT-X-KEY:METHOD=SAMPLE-AES-CTR,KEYFORMAT="com.microsoft.playready",KEYFORMATVERSIONS="1",URI="data:text/plain;charset=UTF-16;base64,xAEAAAEAAQC6ATwAVwBSAE0ASABFAEEARABFAFIAIAB4AG0AbABuAHMAPQAiAGgAdAB0AHAAOgAvAC8AcwBjAGgAZQBtAGEAcwAuAG0AaQBjAHIAbwBzAG8AZgB0AC4AYwBvAG0ALwBEAFIATQAvADIAMAAwADcALwAwADMALwBQAGwAYQB5AFIAZQBhAGQAeQBIAGUAYQBkAGUAcgAiACAAdgBlAHIAcwBpAG8AbgA9ACIANAAuADAALgAwAC4AMAAiAD4APABEAEEAVABBAD4APABQAFIATwBUAEUAQwBUAEkATgBGAE8APgA8AEsARQBZAEwARQBOAD4AMQA2ADwALwBLAEUAWQBMAEUATgA+ADwAQQBMAEcASQBEAD4AQQBFAFMAQwBUAFIAPAAvAEEATABHAEkARAA+ADwALwBQAFIATwBUAEUAQwBUAEkATgBGAE8APgA8AEsASQBEAD4ANAArAFoAVQBIAGoANwBLAEYAawAyAGsANwB1AEUAaABIAEMAdgBjAGsAZwA9AD0APAAvAEsASQBEAD4APAAvAEQAQQBUAEEAPgA8AC8AVwBSAE0ASABFAEEARABFAFIAPgA="
#EXT-X-KEY:METHOD=SAMPLE-AES-CTR,KEYFORMAT="PRMNAGRA",KEYFORMATVERSIONS="1",URI="data:text/plain;base64,eyJrZXktaWQiOiIxZTU0ZTZlMy1jYTNlLTRkMTYtYTRlZS1lMTIxMWMyYmRjOTIiLCJlbWkiOiJjdHIiLCJwcm0iOiJleUpqYjI1MFpXNTBTV1FpT2lKamRISWlMQ0pyWlhsSlpDSTZJakZsTlRSbE5tVXpMV05oTTJVdE5HUXhOaTFoTkdWbExXVXhNakV4WXpKaVpHTTVNaUo5In0="
#EXT-X-MAP:URI="b890e39d-85ff-425b-9a45-c3ca1f3dd423/10c8-BUMPER/02/2400K/map.mp4"
#EXTINF:3.000000001,
b890e39d-85ff-425b-9a45-c3ca1f3dd423/10c8-BUMPER/02/2400K/00/00/00_000.mp4
#EXT-X-DISCONTINUITY
#EXT-X-DATERANGE:ID="pod_1",START-DATE="2019-01-01T00:00:03.000Z",DURATION=2122.000000001,X-START-OFFSET="3.000000001"
#EXT-X-MAP:URI="a04e8798-c29c-4bb2-b6a6-52845167f3a8/3704-MAIN/02/4250K/map.mp4"
#EXTINF:8,
a04e8798-c29c-4bb2-b6a6-52845167f3a8/3704-MAIN/02/2400K/00/00/00_000.mp4
#EXTINF:8,
a04e8798-c29c-4bb2-b6a6-52845167f3a8/3704-MAIN/02/2400K/00/00/08_000.mp4
#EXTINF:8,
a04e8798-c29c-4bb2-b6a6-52845167f3a8/3704-MAIN/02/2400K/00/00/16_000.mp4