Recherche avancée

Médias (91)

Autres articles (96)

  • Pas question de marché, de cloud etc...

    10 avril 2011

    Le vocabulaire utilisé sur ce site essaie d’éviter toute référence à la mode qui fleurit allègrement
    sur le web 2.0 et dans les entreprises qui en vivent.
    Vous êtes donc invité à bannir l’utilisation des termes "Brand", "Cloud", "Marché" etc...
    Notre motivation est avant tout de créer un outil simple, accessible à pour tout le monde, favorisant
    le partage de créations sur Internet et permettant aux auteurs de garder une autonomie optimale.
    Aucun "contrat Gold ou Premium" n’est donc prévu, aucun (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-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

  • 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) (...)

Sur d’autres sites (5573)

  • How to convert mkv movies to mp4 for streaming to XBox 360

    11 août 2015, par Rob Gwynn-Jones

    I recently purchased a Synology Diskstation DS412+, and I have a number of .mkv movies which I would like to convert/transcode to mp4 files, so that I can stream them directly to my XBox 360. I use Handbrake on my laptop, but I would rather have this happen directly on my NAS.

    I’m very rusty on Linux and new to transcoding, but the script I currently have is the following :

    #!/bin/bash
    for dir in *; do
     if test -d "$dir"; then
       #echo $dir
       for file in "$dir"/*.mkv; do
         noextension=${file%.*}.mp4
         ffmpeg -y -i "$file" -vcodec copy -acodec copy "$noextension"
       done
     fi
    done

    Which, as I understand it, simply copies the audio and video components within the mkv container, and inserts them into a new mp4 container. This has worked for several of my files, but there are a number for which this does not work.

    The following is an example of the output for a failed run :

    ffmpeg version UNKNOWN, Copyright (c) 2000-2011 the FFmpeg developers
     built on Sep 16 2013 00:45:02 with gcc 4.2.1
     configuration: --prefix=/usr/syno --arch=i686 --target-os=linux --cross-prefix=/usr/local/i686-linux-gnu/bin/i686-linux-gnu- --enable-cross-compile --enable-optimizations --disable-yasm --disable-altivec --enable-pic --enable-shared --disable-static --disable-swscale-alpha --disable-ffserver --disable-ffplay --enable-libmp3lame --enable-libfaac --enable-nonfree --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --disable-decoder=amrnb --disable-indev=alsa --disable-outdev=alsa --disable-encoder=dca --disable-encoder=ac3 --disable-encoder=ac3_fixed --disable-encoder=ac3_float --disable-encoder=eac3 --disable-decoder=dca --disable-decoder=eac3 --disable-decoder=truehd --cc=/usr/local/i686-linux-gnu/bin/i686-linux-gnu-ccache-gcc
     libavutil    50. 40. 1 / 50. 40. 1
     libavcodec   52.120. 0 / 52.120. 0
     libavformat  52.108. 0 / 52.108. 0
     libavdevice  52.  4. 0 / 52.  4. 0
     libavfilter   1. 77. 0 /  1. 77. 0
     libswscale    0. 14. 0 /  0. 14. 0
    [matroska,webm @ 0x80726c0] Estimating duration from bitrate, this may be inaccurate

    Seems stream 1 codec frame rate differs from container frame rate: 47.95 (5994/125) -> 23.98 (24000/1001)

    ...and then a list of input chapter start and end times and then...

    Stream #0.0(eng): Audio: aac, 48000 Hz, stereo, s16 (default)
    Stream #0.1(eng): Video: h264 (High), yuv420p, 1280x692 [PAR 1:1 DAR 320:173], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)

    ...and then a list of output chapter start and end times and then...

    Stream #0.0(eng): Video: ![0][0][0] / 0x0021, yuv420p, 1280x692 [PAR 1:1 DAR 320:173], q=2-31, 2997 tbn, 23.98 tbc (default)
    Stream #0.1(eng): Audio: libfaac, 48000 Hz, stereo (default)
    Stream mapping:
     Stream #0.1 -> #0.0
     Stream #0.0 -> #0.1
    Press [q] to stop encoding
    [mp4 @ 0x808a020] pts < dts in stream 0
    av_interleaved_write_frame(): Invalid data found when processing input

    The XBox support website gives details on supported file types, with mp4 included in the H.264 standard : http://support.xbox.com/ar-SA/xbox-360/system/audio-video-playback

    I’m at a bit of a loss. I’ve read through http://www.ffmpeg.org/ffmpeg.html but the error message from ffmpeg doesn’t seem very helpful, and resources are sparse at best when it comes to running this stuff on a Synology Box.

    I have tried a few permutations of my script, such as :

    ffmpeg -i "$file" "$noextension"

    and

    ffmpeg -y -i "$file" -vcodec mpeg4 -acodec libfaac "$noextension"

    But those both give me the following error :

    Error while opening encoder for output stream #0.0 - maybe incorrect parameters such as bit_rate, rate, width or height

    I assume that I’ll need to specify input and output codecs specifically, along with things like bitrate, or aspect ratio but this is where I come unstuck.

    Any help would be much appreciated !

  • FFMPEG doesn't convert from m4v files

    8 février 2014, par MattD

    I am trying to transcode an m4v file from iTunes so I can play it on Windows or XBox. I am running ffmpeg from Windows. Is there some -vcodec I need to specify or something I need to install ? Here's the command I'm running and the error I'm getting.

    Edit : Complete output

    ffmpeg version N-60393-g9707b53 Copyright (c) 2000-2014 the FFmpeg developers
     built on Feb  6 2014 22:07:13 with gcc 4.8.2 (GCC)
     configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
     libavutil      52. 63.101 / 52. 63.101
     libavcodec     55. 49.101 / 55. 49.101
     libavformat    55. 30.100 / 55. 30.100
     libavdevice    55.  7.100 / 55.  7.100
     libavfilter     4.  1.102 /  4.  1.102
     libswscale      2.  5.101 /  2.  5.101
     libswresample   0. 17.104 /  0. 17.104
     libpostproc    52.  3.100 / 52.  3.100
    [mov,mp4,m4a,3gp,3g2,mj2 @ 000000000268f620] stream 0, timescale not set
    [mov,mp4,m4a,3gp,3g2,mj2 @ 000000000268f620] Stream #3: not enough frames to estimate rate; consider increasing probesize
    [mov,mp4,m4a,3gp,3g2,mj2 @ 000000000268f620] Stream #4: not enough frames to estimate rate; consider increasing probesize
    [mov,mp4,m4a,3gp,3g2,mj2 @ 000000000268f620] Could not find codec parameters for stream 1 (Video: none (drmi / 0x696D7264), 960x718, 3957 kb/s): unknown codec
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    [mov,mp4,m4a,3gp,3g2,mj2 @ 000000000268f620] Could not find codec parameters for stream 2 (Audio: none (drms / 0x736D7264), 48000 Hz, 5.1(side), 384 kb/s): unknown codec
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    [mov,mp4,m4a,3gp,3g2,mj2 @ 000000000268f620] Could not find codec parameters for stream 3 (Subtitle: none (p608 / 0x38303670), 1280x718, 0 kb/s): unknown codec
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Y:02 The Empty Hearse (HD).m4v':
     Metadata:
       major_brand     : M4V
       minor_version   : 0
       compatible_brands: M4V mp42isom
       creation_time   : 2014-01-13 18:51:33
       title           : [...]
       artist          : [...]
       album           : [...]
       genre           : Drama
       track           : 2/8
       disc            : 1/1
       date            : 2014-01-19T08:00:00Z
       description     : [...]
       hd_video        : 1
       network         : PBS
       show            : Sherlock
       episode_id      : 1
       season_number   : 3
       episode_sort    : 2
       media_type      : 10
       synopsis        : [...]
     Duration: 01:26:28.70, start: 0.000000, bitrate: 4505 kb/s
       Stream #0:0(eng): Audio: aac (drms / 0x736D7264), 48000 Hz, stereo, fltp, 156 kb/s (default)
       Metadata:
         creation_time   : 2014-01-13 18:51:33
         handler_name    : Apple Sound Media Handler
       Stream #0:1(eng): Video: none (drmi / 0x696D7264), 960x718, 3957 kb/s, SAR 4:3 DAR 640:359, 25 fps, 25 tbr, 2500 tbn, 2500 tbc (default)
       Metadata:
         creation_time   : 2014-01-13 18:51:33
         handler_name    : Apple Video Media Handler
       Stream #0:2(eng): Audio: none (drms / 0x736D7264), 48000 Hz, 5.1(side), 384 kb/s
       Metadata:
         creation_time   : 2014-01-13 18:51:33
         handler_name    : Apple Sound Media Handler
       Stream #0:3(eng): Subtitle: none (p608 / 0x38303670), 1280x718, 0 kb/s (default)
       Metadata:
         creation_time   : 2014-01-13 18:51:33
         handler_name    : Apple Closed Caption Media Handler
       Stream #0:4: Video: mjpeg, yuvj444p(pc), 640x640 [SAR 300:300 DAR 1:1], 90k tbr, 90k tbn, 90k tbc
    File 'Sherlock.wmv' already exists. Overwrite ? [y/N] [buffer @ 0000000005fc5760] Unable to parse option value "-1" as pixel format
       Last message repeated 1 times
    [buffer @ 0000000005fc5760] Error setting option pix_fmt to value -1.
    [graph 0 input from stream 0:1 @ 00000000027d7da0] Error applying options to the filter.
    Error opening filters!
  • ffmpeg failing to convert

    27 mars 2014, par Daniel7912

    I am using the following command to convert a mp4 on my server to webm as part of a Node.js script.

    var command = execSync('ffmpeg -i '+video+' -vpre libvpx-720p -cpu-used -5 -deadline realtime -b 3900k -an -f webm -y '+saveTo);

    When running the command in a regular terminal, it works fine. However, when running it as above using the execSync() node package, I get the following console output.

    Error: ffmpeg version 1.0.8 Copyright (c) 2000-2013 the FFmpeg developers
     built on Mar 27 2014 17:09:06 with gcc 4.7.3 (Gentoo 4.7.3-r1 p1.3, pie-0.5.5)
     configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-
    g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-O2 -pipe -march=native -fomit-frame-pointer' --extra-cflags='-O2 -pipe -march=native -fomit-frame-pointer' --extra-cxxflags
    ='-O2 -pipe -march=native -fomit-frame-pointer' --disable-static --enable-gpl --enable-version3 --enable-postproc --enable-avfilter --enable-avresample --disable-stripp
    ing --disable-debug --disable-doc --disable-vaapi --disable-vdpau --disable-ffplay --disable-runtime-cpudetect --enable-libmp3lame --enable-libvo-aacenc --enable-libthe
    ora --enable-libfdk-aac --enable-nonfree --disable-indev=v4l2 --disable-indev=alsa --disable-indev=oss --disable-indev=jack --disable-outdev=alsa --disable-outdev=oss -
    -disable-outdev=sdl --enable-libvorbis --enable-libvpx --disable-amd3dnow --disable-amd3dnowext --disable-altivec --disable-avx --disable-mmxext --disable-ssse3 --disab
    le-vis --disabl  libavutil      51. 73.101 / 51. 73.101
     libavcodec     54. 59.100 / 54. 59.100
     libavformat    54. 29.104 / 54. 29.104
     libavdevice    54.  2.101 / 54.  2.101
     libavfilter     3. 17.100 /  3. 17.100
     libswscale      2.  1.101 /  2.  1.101
     libswresample   0. 15.100 /  0. 15.100
     libpostproc    52.  0.100 / 52.  0.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/path/to/video/input.mp4':
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: mp42isomavc1
       creation_time   : 2013-08-24 21:58:35
       encoder         : HandBrake 0.9.9 2013051800
     Duration: 00:06:31.46, start: 0.000000, bitrate: 5092 kb/s
       Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 4919 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
       Metadata:
         creation_time   : 2013-08-24 21:58:35
       Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, s16, 168 kb/s
       Metadata:
         creation_time   : 2013-08-24 21:58:35
    Please use -b:a or -b:v, -b is ambiguous
    [libvpx @ 0x7f0c40] v1.3.0
    Output #0, webm, to '/path/to/video/output.webm':
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: mp42isomavc1
       encoder         : Lavf54.29.104
       Stream #0:0(und): Video: vp8, yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=11-51, 3900 kb/s, 1k tbn, 25 tbc
       encoder         : Lavf54.29.104                                                                                                                          [4009/9202]
       Stream #0:0(und): Video: vp8, yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=11-51, 3900 kb/s, 1k tbn, 25 tbc
       Metadata:
         creation_time   : 2013-08-24 21:58:35
    Stream mapping:
     Stream #0:0 -> #0:0 (h264 -> libvpx)
    Press [q] to stop, [?] for help
    [h264 @ 0x8f42a0] AVC: nal size 3235393
       Last message repeated 1 times
    [h264 @ 0x8f42a0] no frame!
    [h264 @ 0x7be7e0] concealing 7123 DC, 7123 AC, 7123 MV errors in P frame
    [h264 @ 0x8f46c0] AVC: nal size 2572289
       Last message repeated 1 times
    [h264 @ 0x8f46c0] no frame!
    [h264 @ 0x8f4ae0] AVC: nal size 11559745
       Last message repeated 1 times
    [h264 @ 0x8f4ae0] no frame!
    [h264 @ 0x8f4f00] AVC: nal size 781975966
       Last message repeated 1 times
    [h264 @ 0x8f4f00] no frame!
    [h264 @ 0x7be7e0] AVC: nal size -1537130086
       Last message repeated 1 times
    [h264 @ 0x7be7e0] no frame!
    Error while decoding stream #0:0: Operation not permitted
    [h264 @ 0x8f42a0] AVC: nal size -1303101030
       Last message repeated 1 times
    [h264 @ 0x8f42a0] no frame!
    Error while decoding stream #0:0: Operation not permitted
    [h264 @ 0x8f46c0] AVC: nal size 833290655
       Last message repeated 1 times
    [h264 @ 0x8f46c0] no frame!
    Error while decoding stream #0:0: Operation not permitted
    [h264 @ 0x8f4ae0] AVC: nal size -816365157
       Last message repeated 1 times
    [h264 @ 0x8f4ae0] no frame!
    Error while decoding stream #0:0: Operation not permitted
    [h264 @ 0x8f4f00] AVC: nal size 776798623
       Last message repeated 1 times
    [h264 @ 0x8f4f00] no frame!
    Error while decoding stream #0:0: Operation not permitted
    [h264 @ 0x7be7e0] AVC: nal size -824622693
       Last message repeated 1 times
    [h264 @ 0x7be7e0] no frame!
    Error while decoding stream #0:0: Operation not permitted
    [h264 @ 0x8f42a0] AVC: nal size 1276789151
    Error while decoding stream #0:0: Operation not permitted
    frame=    4 fps=0.0 q=0.0 Lsize=     107kB time=00:00:00.16 bitrate=5476.5kbits/s    
    video:106kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.473334%
    Received signal 2: terminating.

    The 'no frame' bits repeat several thousand times before it reaches the final section.

    Could someone tell me what's wrong ?

    Thanks for any help