
Recherche avancée
Médias (21)
-
1,000,000
27 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Demon Seed
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
The Four of Us are Dying
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Corona Radiata
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Lights in the Sky
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Head Down
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
Autres articles (51)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Possibilité de déploiement en ferme
12 avril 2011, parMediaSPIP peut être installé comme une ferme, avec un seul "noyau" hébergé sur un serveur dédié et utilisé par une multitude de sites différents.
Cela permet, par exemple : de pouvoir partager les frais de mise en œuvre entre plusieurs projets / individus ; de pouvoir déployer rapidement une multitude de sites uniques ; d’éviter d’avoir à mettre l’ensemble des créations dans un fourre-tout numérique comme c’est le cas pour les grandes plate-formes tout public disséminées sur le (...) -
Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs
12 avril 2011, parLa manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras.
Sur d’autres sites (9444)
-
Dreamcast Finds
15 avril 2022, par Multimedia Mike — Sega DreamcastPursuant to my recent post about finally understanding how Sega Dreamcast GD-ROM rips are structured, I was able to prepare the contents of various demo discs in a manner that makes exploration easy via the Internet Archive. This is due to the way that IA makes it easy to browse archives such as ZIP or ISO files (anything that 7zip knows how to unpack), and also presents the audio tracks for native playback directly through the web browser.
These are some of the interesting things I have found while perusing the various Dreamcast sampler discs.
Multimedia Formats
First and foremost : Multimedia-wise, SFD and ADX files abound on all the discs. SFD files are Sofdec, a middleware format used for a lot of FMV on Dreamcast games. These were little more than MPEG video files with a non-MPEG (ADPCM instead) audio codec. VLC will usually play the video portions of these files but has trouble detecting the audio. It’s not for lack of audio codec support because it can play the ADX files just fine.
It should be noted that Dreamcast Magazine Disc 11 has an actual .mpg file (as opposed to a .sfd file) that has proper MPEG audio instead instead of ADX ADPCM.
The only other multimedia format I know of that was used in any Dreamcast games was 4XM, used on Alone In The Dark : The New Nightmare. I wrote a simple C tool a long time to recover these files from a disc image I extracted myself. Rather than interpreting the ISO-9660 filesystem, the tool just crawled through the binary blob searching for ‘4XMV’ file signatures and using length data within the files for extraction.
Also, there are plentiful PVR files (in reference to the PowerVR2 GPU hardware that the DC uses) which ‘file’ dutifully identifies as “Sega PVR image”. There are probably tools to view them. It doesn’t appear to be a complicated format.
Scripting
I was fascinated to see Lua files on at least one of the discs. It turns out that MDK 2 leverages the language, as several other games do. But it was still interesting to see the .lua files show up in the Dreamcast version as well.That Windows CE Logo
Every Sega Dreamcast is famously emblazoned with a logo mentioning Microsoft Windows CE :
It has confused many folks. It also confused me until this exploratory exercise. Many would wonder if the Dreamcast booted up into some Windows CE OS environment that then ran the game, but that certainly wasn’t it. Indeed, Dreamcast was one of the last consoles that really didn’t have any kind of hypervisor operating system managing everything.
I found a file called rt2dc.exe on one sampler disc. At first, I suspected that this was a development utility for Windows to convert some “RT” graphical format into a format more suitable for the Dreamcast. Then, ‘file’ told me that it was actually a Windows EXE but compiled for the Hitachi SH-4 CPU (the brain inside the DC). Does the conversion utility run on the Dreamcast itself ? Then I analyzed the strings inside the binary and saw references to train stations. That’s when it started to click for me that this was the binary executable for the demo version of Railroad Tycoon 2 : Gold Edition, hence “rt2dc.exe”. Still, this provides some insight about whether Dreamcast “runs” Windows. This binary was built against a series of Windows CE libraries. The symbols also imply DirectX compatibility.
Here is a page with more info about the WinCE/DirectX variant for the Sega Dreamcast. It seems that this was useful for closing the gap between PC and DC ports of games (i.e., being able to re-use more code between the 2 platforms). I guess this was part of what made Dreamcast a dry run for the DirectXbox (later Xbox).
Here is a list of all the Dreamcast games that are known to use Windows CE.
Suddenly, I am curious if tools such as IDA Pro or Ghidra can possibly open up Windows CE binaries that contain SH-4 code. Not that I’m particularly interested in reverse engineering any algorithms locked up in Dreamcast land.
Tomb Raider Easter Egg
The volume 6 sampler disc has a demo of Tomb Raider : The Last Revelation. While inspecting the strings, I found an Easter egg. I was far from the first person to discover it, though, as seen on this The Cutting Room Floor wiki page (look under “Developer Message”). It looks like I am the first person to notice it on the Dreamcast version. It shows up at offset 0xE3978 in the Dreamcast (demo version) binary, if anyone with permissions wants to update the page.Web Browser
Then there’s the Web Browser for Sega Dreamcast. It seemed to be included on a lot of these sampler discs. But only mentioning the web browser undersells it– the thing also bundled an email client and an IRC client. It’s important to remember that the Dreamcast also had a keyboard peripheral.I need to check the timeline for when the web browser first became available vs. when the MIL-CD hack became known. My thinking is that there is no way that the web browser program didn’t have some security issues– buffer overflows and the like. It seems like this would have been a good method of breaking the security of the system.
Ironically, I suddenly can think of a reason why one might want to use advanced reverse engineering tools on Dreamcast binaries, something I struggled with just a few paragraphs ago.
Odds ‘n Ends
It’s always fun to find plain text files among video game assets and speculating on the precise meaning… while also marveling how long people have been struggling to correctly spell “length”.Internationalization via plain text files.
Another game (Slave Zero) saw fit to zip its assets. Maybe this was to save space in order to fit everything on the magazine sampler disc. Quizzically, this didn’t really save an appreciable amount of space.
Finally, all the discs have an audio track 2 that advises that the disc must be played in a Dreamcast console. Not unusual. However, volume 4 also has a Japanese lady saying the same thing on track 4. This is odd because track 4 is one of the GD area audio tracks and is not accessible with normal CD hardware. Further, she identifies the disc as a “Windows CE disc”.
The post Dreamcast Finds first appeared on Breaking Eggs And Making Omelettes.
-
How to Show result after uploaded file in PHP
23 avril 2022, par i0x4rI have a script that uploads the video to a server, everything is correct but there is a problem, after the upload of the video to the server is completed
it shows all the uploaded files in the (uploads) folder as array !


I only want the result of the file I just uploaded, and it doesn't show me the previous files !
I need ffmpeg to improve video quality


index.php


<?php
//index.php

?>


 
 
 
 <code class="echappe-js"><script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>

<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>

 
<script src="https://cdnjs.cloudflare.com/ajax/libs/dropzone/5.5.1/dropzone.js"></script>

 
 
 



 
 
 








 



<script>&#xA;&#xA;$(document).ready(function(){&#xA; &#xA; Dropzone.options.dropzoneFrom = {&#xA; autoProcessQueue: true,&#xA; timeout: 300000,&#xA; acceptedFiles:"video/*",&#xA; init: function(){&#xA; var submitButton = document.querySelector(&#x27;#submit-all&#x27;);&#xA; myDropzone = this;&#xA; submitButton.addEventListener("click", function(){&#xA; myDropzone.processQueue();&#xA; });&#xA; this.on("complete", function(){&#xA; if(this.getQueuedFiles().length == 0 &amp;&amp; this.getUploadingFiles().length == 0)&#xA; {&#xA; var _this = this;&#xA; _this.removeAllFiles();&#xA; }&#xA; list_image();&#xA; });&#xA; },&#xA; };&#xA;&#xA; list_image();&#xA;&#xA; function list_image()&#xA; {&#xA; $.ajax({&#xA; url:"upload.php",&#xA; success:function(data){&#xA; $("#preview").html(data);&#xA; }&#xA; });&#xA; }&#xA;&#xA; $(document).on(&#x27;click&#x27;, &#x27;.remove_image&#x27;, function(){&#xA; var name = $(this).attr(&#x27;id&#x27;);&#xA; $.ajax({&#xA; url:"upload.php",&#xA; method:"POST",&#xA; data:{name:name},&#xA; success:function(data)&#xA; {&#xA; list_image();&#xA; }&#xA; })&#xA; });&#xA; &#xA;});&#xA;</script>



upload.php


<?php

//upload.php

$folder_name = 'upload/';
$tumb_name = 'thumb/';
$imageext = '.png';

if(!empty($_FILES))
{

 $temp_file = $_FILES['file']['tmp_name'];
 $location = $folder_name . $_FILES['file']['name'];
 move_uploaded_file($temp_file, $location);
 $upload = $_FILES['file']['name'];
 $uploadStr = str_replace(" ", "\ ",$upload);
 $locationStr = str_replace(" ","\ ",$location);
 $cmd = "ffmpeg -y -i {$locationStr} -ss 00:00:15 -vframes 1 thumb/{$uploadStr}.png 2>&1";
 echo shell_exec($cmd);
}

if(isset($_POST["name"]))
{
 $filename = $folder_name.$_POST["name"];
 $imagename = $thumb_name.$_POST["name"].$imageext;
 unlink($filename);
 unlink($imagename);
}

$result = array();

$files = scandir('upload');

$output = '<div class="row">';

if(false !== $files)
{
 foreach($files as $file)
 {
 if('.' != $file && '..' != $file)
 {
 $output .= '
 <a href="http://stackoverflow.com/view.php?file=&#x27;.$file.&#x27;" target="_blank"> <img src="http://stackoverflow.com/feeds/tag/thumb/&#x27;.$file.&#x27;.png" class="img-thumbnail" width='246' height='138' /></a>
 <button type="button" class="btn btn-link remove_image">Remove</button>
 ';
 }
 }
}
$output .= '</div>';
echo $output;

?>



EDIT :
I put the example on an Array, I don't want it, I just want it to show the downloaded video I just uploaded as a result.


EDIT 2 :
There are some who say type $location and it displays the downloaded file, but this does not work !!!
I just tried more than once and with several uses, there is no display where the text is empty


This is an example of that


<?php

//upload.php

$folder_name = 'upload/';
$tumb_name = 'thumb/';
$imageext = '.png';

if(!empty($_FILES))
{

 $temp_file = $_FILES['file']['tmp_name'];
 $location = $folder_name . $_FILES['file']['name'];
 move_uploaded_file($temp_file, $location);
 $upload = $_FILES['file']['name'];
 $uploadStr = str_replace(" ", "\ ",$upload);
 $locationStr = str_replace(" ","\ ",$location);
 $cmd = "ffmpeg -y -i {$locationStr} -ss 00:00:15 -vframes 1 thumb/{$uploadStr}.png 2>&1";
 echo shell_exec($cmd);
}

if(isset($_POST["name"]))
{
 $filename = $folder_name.$_POST["name"];
 $imagename = $thumb_name.$_POST["name"].$imageext;
 unlink($filename);
 unlink($imagename);
}


$output .= 'Successfly file is "'.$location.'"';
echo $output;

?>



Result : Successfly file is ""
no name file :(


EDIT 3 :


this code upload.php
functions not working


<?php

//upload.php

$folder_name = 'upload/';
$tumb_name = 'thumb/';
$imageext = '.png';

if(!empty($_FILES))
{

 $temp_file = $_FILES['file']['tmp_name'];
 $location = $folder_name . $_FILES['file']['name'];
 move_uploaded_file($temp_file, $location);
 $upload = $_FILES['file']['name'];
 $uploadStr = str_replace(" ", "\ ",$upload);
 $locationStr = str_replace(" ","\ ",$location);
 $cmd = "ffmpeg -y -i {$locationStr} -ss 00:00:15 -vframes 1 thumb/{$uploadStr}.png 2>&1";
 echo shell_exec($cmd);
}


echo "The file " . $location . " has been uploaded";
// not working
echo "<br />";
echo "The file " . $upload . " has been uploaded";
// not working
echo "<br />";
echo "The file " . $uploadStr . " has been uploaded";
// not working
echo "<br />";
echo "The file " . $locationStr . " has been uploaded";
// not working

?>





this error :
[23-Apr-2022 12:31:56 Asia/Riyadh] PHP Notice : Undefined variable : location in /home/prdix/public_html/test/upload.php on line 38


line 38 : echo $location ;


About the developer solution Markus AO


I did the experiment and it is quite good, but dropzone is still missing, because I will upload a large video and the normal upload compresses the video before uploading, here is a picture from my mobile while uploading, but this does not happen with dropzone



I want to implement this in dropzone as well, because this library does not compress the video, but upload it in full size.


Thank you bro.


-
generate thumbnail from stream jaffree Java
27 avril 2022, par med benzekriI am trying to generate a thumbnail from a video stream using jaffree thought they didn't mention in their docs anything about generating thumbnail. I tried to figure it out on my own but it doesn't seem to work.


code for thumbnail generating :


public PipedOutputStream generatethumbnail(){
 PipedOutputStream image = new PipedOutputStream();
 FFmpeg.atPath()
 .addInput(PipeInput.pumpFrom(stream).setPosition(1L, TimeUnit.SECONDS))
 .addOutput(PipeOutput.pumpTo(image).setFormat("image2"))
 .execute();
 return image;
 }
 }



the stack trace when i run a test :


2022-04-25 00:36:50.250 WARN 200267 --- [ main] c.g.kokorin.jaffree.ffmpeg.PipeOutput : It's recommended to use ChannelOutput since ffmpeg requires seekable output for many formats
2022-04-25 00:36:50.255 WARN 200267 --- [ main] c.github.kokorin.jaffree.ffmpeg.FFmpeg : ProgressListener isn't set, progress won't be reported
2022-04-25 00:36:50.256 INFO 200267 --- [ main] c.g.k.jaffree.process.ProcessHandler : Command constructed:
ffmpeg -loglevel level+info -ss 1.000 -i tcp://127.0.0.1:43417 -n -f image2 tcp://127.0.0.1:38791
2022-04-25 00:36:50.256 INFO 200267 --- [ main] c.g.k.jaffree.process.ProcessHandler : Starting process: ffmpeg
2022-04-25 00:36:50.292 INFO 200267 --- [ main] c.g.k.jaffree.process.ProcessHandler : Waiting for process to finish
2022-04-25 00:36:50.890 INFO 200267 --- [ StdErr] c.g.k.jaffree.process.BaseStdReader : [info] ffmpeg version 5.0-static https://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2022 the FFmpeg developers
2022-04-25 00:36:50.891 INFO 200267 --- [ StdErr] c.g.k.jaffree.process.BaseStdReader : [info] built with gcc 8 (Debian 8.3.0-6)
2022-04-25 00:36:50.928 INFO 200267 --- [ StdErr] c.g.k.jaffree.process.BaseStdReader : [info] configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-libgme --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg
2022-04-25 00:36:50.929 INFO 200267 --- [ StdErr] c.g.k.jaffree.process.BaseStdReader : [info] libavutil 57. 17.100 / 57. 17.100
2022-04-25 00:36:50.929 INFO 200267 --- [ StdErr] c.g.k.jaffree.process.BaseStdReader : [info] libavcodec 59. 18.100 / 59. 18.100
2022-04-25 00:36:50.930 INFO 200267 --- [ StdErr] c.g.k.jaffree.process.BaseStdReader : [info] libavformat 59. 16.100 / 59. 16.100
2022-04-25 00:36:50.930 INFO 200267 --- [ StdErr] c.g.k.jaffree.process.BaseStdReader : [info] libavdevice 59. 4.100 / 59. 4.100
2022-04-25 00:36:50.930 INFO 200267 --- [ StdErr] c.g.k.jaffree.process.BaseStdReader : [info] libavfilter 8. 24.100 / 8. 24.100
2022-04-25 00:36:50.930 INFO 200267 --- [ StdErr] c.g.k.jaffree.process.BaseStdReader : [info] libswscale 6. 4.100 / 6. 4.100
2022-04-25 00:36:50.930 INFO 200267 --- [ StdErr] c.g.k.jaffree.process.BaseStdReader : [info] libswresample 4. 3.100 / 4. 3.100
2022-04-25 00:36:53.600 INFO 200267 --- [ StdErr] c.g.k.jaffree.process.BaseStdReader : [info] libpostproc 56. 3.100 / 56. 3.100
2022-04-25 00:36:53.601 INFO 200267 --- [ StdErr] c.g.k.jaffree.process.BaseStdReader : [info] Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'tcp://127.0.0.1:43417':
2022-04-25 00:36:53.602 INFO 200267 --- [ StdErr] c.g.k.jaffree.process.BaseStdReader : [info] Metadata:
2022-04-25 00:36:53.603 INFO 200267 --- [ StdErr] c.g.k.jaffree.process.BaseStdReader : [info] major_brand : mp42
2022-04-25 00:36:53.603 INFO 200267 --- [ StdErr] c.g.k.jaffree.process.BaseStdReader : [info] minor_version : 0
2022-04-25 00:36:53.603 INFO 200267 --- [ StdErr] c.g.k.jaffree.process.BaseStdReader : [info] compatible_brands: mp42mp41
2022-04-25 00:36:53.603 INFO 200267 --- [ StdErr] c.g.k.jaffree.process.BaseStdReader : [info] creation_time : 2019-11-27T09:33:42.000000Z
2022-04-25 00:36:53.604 INFO 200267 --- [ StdErr] c.g.k.jaffree.process.BaseStdReader : [info] Duration: 00:00:20.69, start: 0.000000, bitrate: N/A
2022-04-25 00:36:53.604 INFO 200267 --- [ StdErr] c.g.k.jaffree.process.BaseStdReader : [info] Stream #0:0[0x1](eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 5760x2880, 29992 kb/s, 29.97 fps, 29.97 tbr, 30k tbn (default)
2022-04-25 00:36:53.604 INFO 200267 --- [ StdErr] c.g.k.jaffree.process.BaseStdReader : [info] Metadata:
2022-04-25 00:36:53.605 INFO 200267 --- [ StdErr] c.g.k.jaffree.process.BaseStdReader : [info] creation_time : 2019-11-27T09:33:42.000000Z
2022-04-25 00:36:53.605 INFO 200267 --- [ StdErr] c.g.k.jaffree.process.BaseStdReader : [info] handler_name : ?Mainconcept Video Media Handler
2022-04-25 00:36:53.605 INFO 200267 --- [ StdErr] c.g.k.jaffree.process.BaseStdReader : [info] vendor_id : [0][0][0][0]
2022-04-25 00:36:53.605 INFO 200267 --- [ StdErr] c.g.k.jaffree.process.BaseStdReader : [info] encoder : AVC Coding
2022-04-25 00:36:53.606 INFO 200267 --- [ StdErr] c.g.k.jaffree.process.BaseStdReader : [info] Side data:
2022-04-25 00:36:53.606 INFO 200267 --- [ StdErr] c.g.k.jaffree.process.BaseStdReader : [info] stereo3d: 2D
2022-04-25 00:36:53.606 INFO 200267 --- [ StdErr] c.g.k.jaffree.process.BaseStdReader : [info] spherical: equirectangular (0.000000/0.000000/0.000000) 
2022-04-25 00:36:53.606 INFO 200267 --- [ StdErr] c.g.k.jaffree.process.BaseStdReader : [info] Stream #0:1[0x2](eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 317 kb/s (default)
2022-04-25 00:36:53.607 INFO 200267 --- [ StdErr] c.g.k.jaffree.process.BaseStdReader : [info] Metadata:
2022-04-25 00:36:53.607 INFO 200267 --- [ StdErr] c.g.k.jaffree.process.BaseStdReader : [info] creation_time : 2019-11-27T09:33:42.000000Z
2022-04-25 00:36:53.607 INFO 200267 --- [ StdErr] c.g.k.jaffree.process.BaseStdReader : [info] handler_name : #Mainconcept MP4 Sound Media Handler
2022-04-25 00:36:53.607 INFO 200267 --- [ StdErr] c.g.k.jaffree.process.BaseStdReader : [info] vendor_id : [0][0][0][0]
2022-04-25 00:36:53.608 INFO 200267 --- [ StdErr] c.g.k.jaffree.process.BaseStdReader : [info] Stream mapping:
2022-04-25 00:36:53.608 INFO 200267 --- [ StdErr] c.g.k.jaffree.process.BaseStdReader : [info] Stream #0:0 -> #0:0 (h264 (native) -> mjpeg (native))
2022-04-25 00:36:54.787 INFO 200267 --- [ StdErr] c.g.k.jaffree.process.BaseStdReader : [info] Press [q] to stop, [?] for help
2022-04-25 00:36:54.799 WARN 200267 --- [ StdErr] c.g.k.jaffree.process.BaseStdReader : [swscaler @ 0x6b45b80] [swscaler @ 0x6b52b40] [warning] deprecated pixel format used, make sure you did set range correctly
2022-04-25 00:36:54.801 WARN 200267 --- [ StdErr] c.g.k.jaffree.process.BaseStdReader : [swscaler @ 0x6b45b80] [swscaler @ 0x8467b00] [warning] deprecated pixel format used, make sure you did set range correctly
2022-04-25 00:36:54.804 WARN 200267 --- [ StdErr] c.g.k.jaffree.process.BaseStdReader : [swscaler @ 0x6b45b80] [swscaler @ 0x850d400] [warning] deprecated pixel format used, make sure you did set range correctly
2022-04-25 00:36:54.806 WARN 200267 --- [ StdErr] c.g.k.jaffree.process.BaseStdReader : [swscaler @ 0x6b45b80] [swscaler @ 0x85b2d00] [warning] deprecated pixel format used, make sure you did set range correctly
2022-04-25 00:36:57.870 WARN 200267 --- [ StdErr] c.g.k.jaffree.process.BaseStdReader : [swscaler @ 0x6b45b80] [swscaler @ 0x8658600] [warning] deprecated pixel format used, make sure you did set range correctly
2022-04-25 00:36:57.871 INFO 200267 --- [ StdErr] c.g.k.jaffree.process.BaseStdReader : [info] Output #0, image2, to 'tcp://127.0.0.1:38791':
2022-04-25 00:36:57.871 INFO 200267 --- [ StdErr] c.g.k.jaffree.process.BaseStdReader : [info] Metadata:
2022-04-25 00:36:57.871 INFO 200267 --- [ StdErr] c.g.k.jaffree.process.BaseStdReader : [info] major_brand : mp42
2022-04-25 00:36:57.872 INFO 200267 --- [ StdErr] c.g.k.jaffree.process.BaseStdReader : [info] minor_version : 0
2022-04-25 00:36:57.872 INFO 200267 --- [ StdErr] c.g.k.jaffree.process.BaseStdReader : [info] compatible_brands: mp42mp41
2022-04-25 00:36:57.872 INFO 200267 --- [ StdErr] c.g.k.jaffree.process.BaseStdReader : [info] encoder : Lavf59.16.100
2022-04-25 00:36:57.872 INFO 200267 --- [ StdErr] c.g.k.jaffree.process.BaseStdReader : [info] Stream #0:0(eng): Video: mjpeg, yuvj420p(pc, bt709, progressive), 5760x2880, q=2-31, 200 kb/s, 29.97 fps, 29.97 tbn (default)
2022-04-25 00:36:57.873 INFO 200267 --- [ StdErr] c.g.k.jaffree.process.BaseStdReader : [info] Metadata:
2022-04-25 00:36:57.873 INFO 200267 --- [ StdErr] c.g.k.jaffree.process.BaseStdReader : [info] creation_time : 2019-11-27T09:33:42.000000Z
2022-04-25 00:36:57.873 INFO 200267 --- [ StdErr] c.g.k.jaffree.process.BaseStdReader : [info] handler_name : ?Mainconcept Video Media Handler
2022-04-25 00:36:57.874 INFO 200267 --- [ StdErr] c.g.k.jaffree.process.BaseStdReader : [info] vendor_id : [0][0][0][0]
2022-04-25 00:36:57.874 INFO 200267 --- [ StdErr] c.g.k.jaffree.process.BaseStdReader : [info] encoder : Lavc59.18.100 mjpeg
2022-04-25 00:36:57.874 INFO 200267 --- [ StdErr] c.g.k.jaffree.process.BaseStdReader : [info] Side data:
2022-04-25 00:36:57.875 INFO 200267 --- [ StdErr] c.g.k.jaffree.process.BaseStdReader : [info] cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: N/A
2022-04-25 00:36:57.875 INFO 200267 --- [ StdErr] c.g.k.jaffree.process.BaseStdReader : [info] stereo3d: 2D
2022-04-25 00:36:58.077 INFO 200267 --- [ StdErr] c.g.k.jaffree.process.BaseStdReader : [info] spherical: equirectangular (0.000000/0.000000/0.000000) 
2022-04-25 00:36:58.213 WARN 200267 --- [ Runnable-1] c.g.kokorin.jaffree.process.Executor : Interrupting starter thread (main) because of exception: TCP negotiation failed
2022-04-25 00:36:58.214 WARN 200267 --- [ main] c.g.k.jaffree.process.ProcessHandler : Process has been interrupted
2022-04-25 00:36:58.215 WARN 200267 --- [ main] c.g.kokorin.jaffree.process.Executor : Interrupting ALIVE thread: StdErr
2022-04-25 00:36:58.215 WARN 200267 --- [ main] c.g.kokorin.jaffree.process.Executor : Interrupting ALIVE thread: StdOut
2022-04-25 00:36:58.215 WARN 200267 --- [ main] c.g.kokorin.jaffree.process.Executor : Interrupting ALIVE thread: Runnable-0

com.github.kokorin.jaffree.JaffreeException: Failed to execute, was interrupted

 at com.github.kokorin.jaffree.process.ProcessHandler.interactWithProcess(ProcessHandler.java:190)
 at com.github.kokorin.jaffree.process.ProcessHandler.execute(ProcessHandler.java:147)
 at com.github.kokorin.jaffree.ffmpeg.FFmpeg.execute(FFmpeg.java:400)
 at dz.univ.bechar.mda.service.FFmpegService$Genrator.generatethumbnail(FFmpegService.java:57)
 at dz.univ.bechar.mda.service.FFmpegServiceTest.givenObjectStream_whenGenerate_Thumbnail(FFmpegServiceTest.java:30)
 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
 at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.base/java.lang.reflect.Method.invoke(Method.java:566)
 at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:725)
 at org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60)
 at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:131)
 at org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:149)
 at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod(TimeoutExtension.java:140)
 at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestMethod(TimeoutExtension.java:84)
 at org.junit.jupiter.engine.execution.ExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(ExecutableInvoker.java:115)
 at org.junit.jupiter.engine.execution.ExecutableInvoker.lambda$invoke$0(ExecutableInvoker.java:105)
 at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106)
 at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64)
 at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:45)
 at org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:37)
 at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:104)
 at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:98)
 at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$7(TestMethodTestDescriptor.java:214)
 at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
 at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeTestMethod(TestMethodTestDescriptor.java:210)
 at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:135)
 at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:66)
 at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:151)
 at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
 at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
 at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
 at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
 at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
 at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
 at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
 at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
 at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41)
 at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155)
 at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
 at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
 at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
 at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
 at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
 at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
 at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
 at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
 at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41)
 at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155)
 at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
 at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
 at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
 at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
 at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
 at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
 at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
 at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:35)
 at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57)
 at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:54)
 at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:107)
 at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:88)
 at org.junit.platform.launcher.core.EngineExecutionOrchestrator.lambda$execute$0(EngineExecutionOrchestrator.java:54)
 at org.junit.platform.launcher.core.EngineExecutionOrchestrator.withInterceptedStreams(EngineExecutionOrchestrator.java:67)
 at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:52)
 at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:114)
 at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:86)
 at org.junit.platform.launcher.core.DefaultLauncherSession$DelegatingLauncher.execute(DefaultLauncherSession.java:86)
 at org.junit.platform.launcher.core.SessionPerRequestLauncher.execute(SessionPerRequestLauncher.java:53)
 at com.intellij.junit5.JUnit5IdeaTestRunner.startRunnerWithArgs(JUnit5IdeaTestRunner.java:71)
 at com.intellij.rt.junit.IdeaTestRunner$Repeater$1.execute(IdeaTestRunner.java:38)
 at com.intellij.rt.execution.junit.TestsRepeater.repeat(TestsRepeater.java:11)
 at com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:35)
 at com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:235)
 at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:54)
 Suppressed: com.github.kokorin.jaffree.JaffreeException: TCP negotiation failed
 at com.github.kokorin.jaffree.net.TcpServer.run(TcpServer.java:69)
 at com.github.kokorin.jaffree.process.Executor$1.run(Executor.java:83)
 at java.base/java.lang.Thread.run(Thread.java:829)
 Caused by: java.io.IOException: Pipe not connected
 at java.base/java.io.PipedOutputStream.write(PipedOutputStream.java:140)
 at com.github.kokorin.jaffree.util.IOUtil.copy(IOUtil.java:71)
 at com.github.kokorin.jaffree.util.IOUtil.copy(IOUtil.java:50)
 at com.github.kokorin.jaffree.net.PipeOutputNegotiator.negotiate(PipeOutputNegotiator.java:55)
 at com.github.kokorin.jaffree.net.NegotiatingTcpServer.serve(NegotiatingTcpServer.java:44)
 at com.github.kokorin.jaffree.net.TcpServer.run(TcpServer.java:66)
 ... 2 more
Caused by: java.lang.InterruptedException
 at java.base/java.lang.Object.wait(Native Method)
 at java.base/java.lang.Object.wait(Object.java:328)
 at java.base/java.lang.ProcessImpl.waitFor(ProcessImpl.java:495)
 at com.github.kokorin.jaffree.process.ProcessHandler.interactWithProcess(ProcessHandler.java:180)
 ... 73 more



Since the output info is shown, I assume that the thumbnail is generated but somehow interrupted, isn't it ?


Note : I need ffmpeg output to be a stream uploaded to an object storage server.


ffmpeg used : ffmpeg 5.0-static
tried this version ffmpeg-3.4.2-static which worked before on nodejs app with fluent-ffmpeg