Recherche avancée

Médias (0)

Mot : - Tags -/clipboard

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (24)

  • Récupération d’informations sur le site maître à l’installation d’une instance

    26 novembre 2010, par

    Utilité
    Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
    Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...)

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

Sur d’autres sites (7115)

  • FFmpeg - Extracting video and audio from transport stream file (.ts)

    31 octobre 2020, par Passepartout

    I wish to extract the audio and video of a certain program in a transport stream file (.ts) by specifying its PID without losing quality and using the same codec in the resulting file (the output file is a MPEG).

    



    Is that even possible with FFmpeg ? If so, how can I do it ?

    



    So far, I've come to this command :

    



     ffmpeg -i tsfile.ts -vcodec copy -acodec copy -q:v 1 output.mpg


    



    Edit : Note that the file output.mpg is created. The file contains the video but the audio isn't attached (no sound). Also, I am unable to specify the program PID to extract.

    



    Edit 2 : Here's the output of ffmpeg -i tsfile.ts

    



    ffmpeg version N-47062-g26c531c Copyright (c) 2000-2012 the FFmpeg developers
built on Nov 25 2012 12:21:26 with gcc 4.7.2 (GCC)
    libavutil      52.  9.100 / 52.  9.100
    libavcodec     54. 77.100 / 54. 77.100
    libavformat    54. 37.100 / 54. 37.100
    libavdevice    54.  3.100 / 54.  3.100
    libavfilter     3. 23.102 /  3. 23.102
    libswscale      2.  1.102 /  2.  1.102
    libswresample   0. 17.101 /  0. 17.101
    libpostproc    52.  2.100 / 52.  2.100
[mpeg2video @ 0201c7a0] mpeg_decode_postinit() failure
Last message repeated 10 times
[mpegts @ 0037b800] PES packet size mismatch
Input #0, mpegts, from 'tsfile.ts':
Duration: 00:01:30.58, start: 56297.848344, bitrate: 18045 kb/s
Program 1
    Stream #0:0[0x31]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p, 1920x1080  [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    Stream #0:1[0x34]: Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, 5.1(side), s16, 384      kb/s


    



    Here's a tsinfo.exe on the .ts file :

    



    Reading from C:\tsfile.ts
Scanning 10000 TS packets

Packet 1 is PAT
Program list:
    Program 1 -> PID 0020 (32)

Packet 2 is PMT with PID 0020 (32)
  Program 1, version 1, PCR PID 0031 (49)
     Program info (38 bytes): 0e 03 c0 b9 16 10 06 c0 02 71 c0 04 00 0b 02 42 3f 05 04
                              47 41 39 34 86 0d e2 65 6e 67 7e 3f ff 65 6e 67 c1 3f ff
 maximum bitrate (3 bytes): c0 b9 16
 smoothing buffer (6 bytes): c0 02 71 c0 04 00
 system clock (2 bytes): 42 3f
 Registration GA94
 Descriptor tag 86 (134) (13 bytes): e2 65 6e 67 7e 3f ff 65 6e 67 c1 3f ff
  Program streams:
PID 0031 (  49) -> Stream type 02 (  2) H.262/13818-2 video (MPEG-2) or 11172-2 constrained video
PID 0034 (  52) -> Stream type 81 (129) User private
    ES info (6 bytes): 6a 04 41 43 2d 33
    DVB AC-3 (4 bytes): 41 43 2d 33

Found 14 PAT packets and 7 PMT packets in 10000 TS packets


    


  • CLI Extract date/time stamp (timestamp) from quicktime or mpeg files

    25 mai 2020, par vy32

    Is there a way to extract a date/time or a timestamp from various multi-media container files with Quicktime or MPEG2/MPEG4 ? I'm looking ideally for a command line tool. I have been able to get timestamps using ffprobe, part of the ffmpeg suite, but I haven't gotten the year, month and date. The camera had a clock so I'm pretty sure that this information was available.

    



    The history of this data file is that it was first shot on miniDV and transferred to a Mac over Firewire 800 using QuicktimePlayer to record the video. I'm told that the miniDV format is motion jpeg. The file command reports that the file is ISO Media, Apple QuickTime movie, Apple QuickTime (.MOV/QT).

    



    % ffprobe -f lavfi -i "movie=filename.mov,fps=fps=25[out0]" -show_frames -show_streams -show_entries frame=pkt_pts_time -of csv=p=0 2>&1 | head -30
ffprobe version 4.2.2 Copyright (c) 2007-2019 the FFmpeg developers
  built with Apple clang version 11.0.0 (clang-1100.0.33.17)
  configuration: --prefix=/opt/local --enable-swscale --enable-avfilter --enable-avresample --enable-libmp3lame --enable-libvorbis --enable-libopus --enable-librsvg --enable-libtheora --enable-libopenjpeg --enable-libmodplug --enable-libvpx --enable-libsoxr --enable-libspeex --enable-libass --enable-libbluray --enable-lzma --enable-gnutls --enable-fontconfig --enable-libfreetype --enable-libfribidi --disable-libjack --disable-libopencore-amrnb --disable-libopencore-amrwb --disable-libxcb --disable-libxcb-shm --disable-libxcb-xfixes --disable-indev=jack --enable-opencl --disable-outdev=xv --enable-audiotoolbox --enable-videotoolbox --enable-sdl2 --disable-securetransport --mandir=/opt/local/share/man --enable-shared --enable-pthreads --cc=/usr/bin/clang --arch=x86_64 --enable-x86asm --enable-libx265 --enable-gpl --enable-postproc --enable-libx264 --enable-libxvid --enable-nonfree --enable-libfdk-aac
  libavutil      56. 31.100 / 56. 31.100
  libavcodec     58. 54.100 / 58. 54.100
  libavformat    58. 29.100 / 58. 29.100
  libavdevice    58.  8.100 / 58.  8.100
  libavfilter     7. 57.100 /  7. 57.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  5.100 /  5.  5.100
  libswresample   3.  5.100 /  3.  5.100
  libpostproc    55.  5.100 / 55.  5.100
Input #0, lavfi, from 'movie=/Volumes/SanDiskSSD/Movies/Italy22.mov,fps=fps=25[out0]':
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 640x480 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn, 25 tbc
0.000000
0.040000
0.080000
0.120000
0.160000
0.200000
0.240000
0.280000
0.320000
0.360000
0.400000
0.440000
0.480000
0.520000
0.560000
%


    



    I want output showing the year, month and date that this was shot.

    


  • VLC stops the video before the end of the video

    28 avril 2021, par user2342558

    VLC stops video before the end of video and prints this in terminal :

    


    [h264 @ 0x7ff318ce36c0] co located POCs unavailable
[h264 @ 0x7ff318ce36c0] mmco: unref short failure
[h264 @ 0x7ff318c7f0c0] co located POCs unavailable
[h264 @ 0x7ff318c9da60] mmco: unref short failure
[h264 @ 0x7ff318ce36c0] co located POCs unavailable
[h264 @ 0x7ff318cff780] mmco: unref short failure
[h264 @ 0x7ff318d37b00] co located POCs unavailable
[h264 @ 0x7ff318c7f0c0] co located POCs unavailable
[h264 @ 0x7ff318c9da60] mmco: unref short failure
[h264 @ 0x7ff318cff780] co located POCs unavailable
[h264 @ 0x7ff318d37b00] co located POCs unavailable
[h264 @ 0x7ff318c7f0c0] mmco: unref short failure
[h264 @ 0x7ff318ce36c0] co located POCs unavailable
[h264 @ 0x7ff318d1b900] co located POCs unavailable
[h264 @ 0x7ff318d37b00] mmco: unref short failure
[h264 @ 0x7ff318cff780] mmco: unref short failure
[h264 @ 0x7ff318d1b900] mmco: unref short failure
[h264 @ 0x7ff318c9da60] co located POCs unavailable
[h264 @ 0x7ff318ce36c0] co located POCs unavailable
[h264 @ 0x7ff318d37b00] mmco: unref short failure
[00007ff318c6a260] main decoder error: Timestamp conversion failed for 24718094: no reference clock
[00007ff318c6a260] main decoder error: Could not convert timestamp 0 for FFmpeg
[00007ff318c6a260] main decoder error: Timestamp conversion failed for 34926677: no reference clock
[00007ff318c6a260] main decoder error: Could not convert timestamp 0 for FFmpeg
[00007ff318c6a260] main decoder error: Timestamp conversion failed for 45796649: no reference clock
[00007ff318c6a260] main decoder error: Could not convert timestamp 0 for FFmpeg
[h264 @ 0x7ff318d1b900] co located POCs unavailable
[h264 @ 0x7ff318d37b00] mmco: unref short failure
[h264 @ 0x7ff318d37b00] co located POCs unavailable
[h264 @ 0x7ff318c7f0c0] mmco: unref short failure
[h264 @ 0x7ff318ce36c0] co located POCs unavailable
[h264 @ 0x7ff318cff780] mmco: unref short failure
[h264 @ 0x7ff318d1b900] co located POCs unavailable
[h264 @ 0x7ff318d37b00] mmco: unref short failure
[00007ff318c6a260] main decoder error: buffer deadlock prevented


    


    I created the video file converting the original video with this command :

    


    ffmpeg -i video.mp4 -b 1000000 video_mod.mp4


    


    The same file is played correctly using Firefox.

    


    I converted other video files with that command and VLC can play them entirely.

    


    How to solve this error ?