
Recherche avancée
Médias (1)
-
The pirate bay depuis la Belgique
1er avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
Autres articles (98)
-
Gestion générale des documents
13 mai 2011, parMédiaSPIP ne modifie jamais le document original mis en ligne.
Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...) -
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page. -
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...)
Sur d’autres sites (6184)
-
ffmpeg : error reading header pipe:0 : Invalid argument
25 février 2021, par Дмитрий БондаренкоI need microservice (converter audio using streams), but have problem with ffmpeg


my test ffmpeg


package codec

import (
 "bytes"
 "os"
 "os/exec"
 "testing"
)

func Test1(t *testing.T) {
 in, err := os.Open("/mp4-mp3/src.m4a")
 if err != nil {
 t.Fatal(err.Error())
 }
 out, err := os.OpenFile("/mp4-mp3/out.mp3", os.O_RDWR|os.O_CREATE, 0666)
 if err != nil {
 t.Fatal(err.Error())
 }
 cmd := exec.Command(
 "ffmpeg",
 "-f", "m4a",
 "-i", "pipe:0",
 "-f", "mp3",
 "pipe:1")

 cmd.Stdin = in
 cmd.Stdout = out
 stderr := &bytes.Buffer{}
 cmd.Stderr = stderr
 if err := cmd.Run(); err != nil {
 t.Logf(stderr.String())
 t.Fatal(err.Error())
 }

}




At the exit, I have the error invalid argument
i tried different options but the problem didn't change


=== RUN Test1
 codec_test.go:31: ffmpeg version git-2020-08-31-4a11a6f Copyright (c) 2000-2020 the FFmpeg developers
 built with gcc 10.2.1 (GCC) 20200805
 configuration: hide...
 libavutil 56. 58.100 / 56. 58.100
 libavcodec 58.101.101 / 58.101.101
 libavformat 58. 51.101 / 58. 51.101
 libavdevice 58. 11.101 / 58. 11.101
 libavfilter 7. 87.100 / 7. 87.100
 libswscale 5. 8.100 / 5. 8.100
 libswresample 3. 8.100 / 3. 8.100
 libpostproc 55. 8.100 / 55. 8.100
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0000019ccc3acb40] error reading header
 pipe:0: Invalid argument
 codec_test.go:32: exit status 1
--- FAIL: Test1 (0.07s)
FAIL

Process finished with exit code 1



i decided to use cmd, but i have new problem
pipe:0 : Invalid data found when processing input


cat src.m4a | ffmpeg -f m4a -i pipe:0 out.mp3
ffmpeg version git-2020-08-31-4a11a6f Copyright (c) 2000-2020 the FFmpeg developers
 built with gcc 10.2.1 (GCC) 20200805
 configuration: hide...
 libavutil 56. 58.100 / 56. 58.100
 libavcodec 58.101.101 / 58.101.101
 libavformat 58. 51.101 / 58. 51.101
 libavdevice 58. 11.101 / 58. 11.101
 libavfilter 7. 87.100 / 7. 87.100
 libswscale 5. 8.100 / 5. 8.100
 libswresample 3. 8.100 / 3. 8.100
 libpostproc 55. 8.100 / 55. 8.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000019afa98d800] invalid STSD entries 1
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000019afa98d800] error reading header
pipe:0: Invalid data found when processing input




How to properly set ffmpeg parameters to convert from stream to stream ?


-
ffmpeg pipe to generate h264 chunks from numpy array or bgr24 bytes
25 février 2021, par harsh solankiis there a possibility if someone can help me with FFmpeg pipe to generate h264 chunks from NumPy array


This is what I am doing now :


process = (
ffmpeg
.input('pipe :', format='rawvideo', pix_fmt='bgr24', s='{}x{}'.format(self._deeptwin.image_width, self._deeptwin.image_height))
.output(path, pix_fmt='yuv420p', vcodec='libx264', r=25)
.overwrite_output()
.run_async(pipe_stdin=True)
)


for res in response:
 st = datetime.datetime.now()
 print(f'{res.status} image {res.id} rendered at {datetime.datetime.now()}')
 img = np.frombuffer(res.image, dtype=np.uint8)
 img = img.reshape((int(self._deeptwin.image_height * 1.5), self._deeptwin.image_width))
 img = cv2.cvtColor(img, cv2.COLOR_YUV2BGR_I420)
 
 for frame in img:
 start = datetime.datetime.now()
 process.stdin.write(
 frame
 .astype(np.uint8)
 .tobytes()
 )
 end = datetime.datetime.now()
 stop = datetime.datetime.now()
 print(f'{res.id} conversion done at {stop-st}')
process.stdin.close()
process.wait()



`
What this is doing currently is generating an out.h264 file. It is fine and playing a correct video as well.


However, what I need to achieve : I want to generate chunks of h264 frames in the following way : 1.h264, 2.h264............n.h264


Any guidance would be really appreciated and helpful.


Thanks in advance.


-
FFmpeg errors using pipe input instead of file input [duplicate]
1er mars 2021, par Michael WernerI try to do several conversions (e.g. codec conversion of videos, extracting single frames etc.) via FFmpeg on 64-bit Windows OS. This works fine if I use files as input for FFmpeg.exe


This works :




ffmpeg.exe -hide_banner -loglevel debug -i "C :\blabla\OA9.mp4" -deinterlace -vframes 1 -c:v bmp -f image2pipe pipe : > test1.bmp




This does not work :




type "C :\blabla\OA9.mp4" | ffmpeg.exe -hide_banner -loglevel debug -i pipe : -deinterlace -vframes 1 -c:v bmp -f image2pipe pipe : > test1.bmp




It causes the following errors / warnings :




[mov,mp4,m4a,3gp,3g2,mj2 @ 0000023C6E86E600] stream 0, offset 0x30 : partial file
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000023C6E86E600] Could not find codec parameters for stream 0 (Video : h264, 1 reference frame (avc1 / 0x31637661), none, 576x456, 1/30720, 2200 kb/s) : unspecified pixel format
Consider increasing the value for the 'analyzeduration' and 'probesize' options






[mov,mp4,m4a,3gp,3g2,mj2 @ 0000023C6E86E600] stream 0, offset 0x30 : partial file
pipe: : Invalid data found when processing input
Cannot determine format of input stream 0:0 after EOF
Error marking filters as finished




I already tried several "things" like specifying input pixel format, setting the 'analyzeduration' and 'probesize' options to int_max (2147483647) but the result is the same (console output).


Does someone know this issue and maybe even knows a solution ?