
Recherche avancée
Autres articles (50)
-
La file d’attente de SPIPmotion
28 novembre 2010, parUne 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 (...) -
Publier sur MédiaSpip
13 juin 2013Puis-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 -
Contribute to documentation
13 avril 2011Documentation is vital to the development of improved technical capabilities.
MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
To contribute, register to the project users’ mailing (...)
Sur d’autres sites (3787)
-
FFMPEG : Multicast packets incoming, but input stream does not open
2 septembre 2022, par oldslowI have a weird problem with ffmpeg and I was wondering if someone might know what's going on.


We have transcoding clusters outputting video to a multicast network. In some computers of the same network, I'm able to open these streams with a command like :


ffplay -i "udp://239.{mutlticast address}:10001?localaddr={Local adapter IP which receives packets}" -nodisp -loglevel trace


But in other computers it does not work. Particularly in a server running Centos 7 I just get :


[NULL @ 0x7fc9a4000920] Opening 'udp://239.xxx.xxx.xxx:10001?localaddr=xxx.xxx.xxx.xxx' for reading
[udp @ 0x7fc9a40012a0] No default whitelist set 
[udp @ 0x7fc9a40012a0] end receive buffer size reported is 131072
nan : 0.000 fd= 0 aq= 0KB vq= 0KB sq= 0B f=0/0



I was thinking it might be a network problem. I started Wireshark to see if the packets were coming in and the thing is, they are ! As soon as I start FFMpeg/FFplay, the MPEG TS packets start coming in, but still FFMpeg won't open the stream :


1067 1.897872161 192.168.194.92 -> 239.193.2.221 MPEG TS 1358 Source port: 51718 Destination port: scp-config
1068 1.898576050 192.168.194.92 -> 239.193.2.221 MPEG TS 1358 Source port: 40892 Destination port: documentum-s[Malformed Packet]
1069 1.900472740 192.168.194.92 -> 239.193.2.221 MPEG TS 1358 Source port: 37505 Destination port: documentum
1070 1.901850051 192.168.194.92 -> PTS 30268.882311111 MPEG TS 1358 video-stream
1071 1.903688205 192.168.194.92 -> 239.193.2.221 MPEG TS 1358 NULL packet
1072 1.905842200 192.168.194.92 -> 239.193.2.221 MPEG TS 1358 Source port: 51718 Destination port: scp-config
1073 1.906249539 192.168.194.92 -> 239.193.2.221 MPEG TS 1358 NULL packet
1074 1.909831587 192.168.194.92 -> 239.193.2.221 MPEG TS 1358 Source port: 51718 Destination port: scp-config
1075 1.911357251 192.168.194.92 -> 239.193.2.221 MPEG TS 1358 NULL packet
1076 1.912000106 192.168.194.92 -> 239.193.2.221 MPEG TS 1358 NULL packet
1077 1.913819520 192.168.194.92 -> 239.193.2.221 MPEG TS 1358 NULL packet
1078 1.917778444 192.168.194.92 -> 239.193.2.221 MPEG TS 1358 Source port: 37505 Destination port: documentum
1079 1.917802429 192.168.194.92 -> 239.193.2.221 MPEG TS 1358 NULL packet
1080 1.920473981 192.168.194.92 -> 239.193.2.221 MPEG TS 1358 NULL packet



Anyone have any idea what can I do to fix this ?
Thanks a lot !


-
Why Do I Need Permission To Convert Files In FFMPEG ?
3 juin 2021, par Edoardo FioriniUsing java, why this code doesn't work ?



File fileToConvert = new File("/Users/e/java/projects/edosocial/src/main/resources/static/media/ios/prova.wav");

 File fileConverted = new File("/Users/e/java/projects/edosocial/src/main/resources/static/media/ios/prova.mp3");

 File ffmpeg = new File("/Users/e/java/projects/edosocial/src/main/resources/static/programs/ffmpeg");

 Runtime.getRuntime().exec(ffmpeg + " -i " + fileToConvert + " " + fileConverted);




I'm using mac OS. This is the complete stacktracke :



Caused by: java.io.IOException: Cannot run program "/Users/e/java/projects/edosocial/src/main/resources/static/programs/ffmpeg": error=13, Permission denied
 at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1142)
 at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1073)
 at java.base/java.lang.Runtime.exec(Runtime.java:591)
 at java.base/java.lang.Runtime.exec(Runtime.java:415)
 at java.base/java.lang.Runtime.exec(Runtime.java:312)
 at com.edosocial.EdosocialApplication.main(EdosocialApplication.java:55)
 ... 5 more
Caused by: java.io.IOException: error=13, Permission denied
 at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
 at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:313)
 at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:244)
 at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1109)
 ... 10 more


</init>


ALl help is welcome.


-
FFMPEG running slow, any ideas how to speed up the process ?
24 mars 2021, par Ryan Emanuelframe_count = 1200 
frame_dur = 12
def color_array_ext(folder_path, window):
 c_array =np.zeros((1,3))
 for frame in range(frame_count)):
 if (frame + .5 * frame_dur) % frame_dur == 0:
 cmd = 'ffmpeg -i {} -ss {} -vframes 1 C:\\Users\Owner\\Color_Sequence\\test{}.png'.format(folder_path, .5 * frame / frame_dur, frame)
 subprocess.call(cmd.split())
 sample = image.imread('C:\\Users\\Ryan\\Color_Sequence\\test%s.png' %frame)
 h_center = sample.shape[0]/2
 w_center = sample.shape[1]/2
 frame_window = sample[h_center - window:h_center + window, w_center-window: w_center+window]
 transformed_frame_window = frame_window.reshape(-1,3)
 window_avg = np.mean(transformed_frame_window, axis=0)
 c_array = np.concatenate((c_array, np.array([window_avg])), axis=0)
 c_array_A = c_array[1:]



I have a QuickTime video that just cycles through colors every 12 frames for 1200 frames. I'm trying to create a script to extract an average RGB value of the center of the frame for every color in the video and store it in a NumPy array.


I tried to avoid storing an entire image sequence of PNGs and then iterating through them to get the RGB values. Right now the current code only saves the images to disk it needs, but I'm sure there's a better way to do this where the execution doesn't take so long. Currently, the process takes a 10 minutes for 125 samples on my machine, which is unacceptably slow. How can I speed this up ?