Recherche avancée

Médias (91)

Autres articles (107)

  • HTML5 audio and video support

    13 avril 2011, par

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

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

  • De l’upload à la vidéo finale [version standalone]

    31 janvier 2010, par

    Le chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
    Upload et récupération d’informations de la vidéo source
    Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
    Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)

Sur d’autres sites (9249)

  • ffmpeg : unable to cut avi movie

    10 mars 2016, par ird

    I am using ffmpeg to cut video file :

    ffmpeg -<inputfile> -ss 00:00:00 -t 00:00:30 <outputfile>
    </outputfile></inputfile>

    It’s OK for different file formats exclude *.avi format. For avi movies ffmpeg shows that video is truncated, but output file contains full video (without truncating).
    Does anybody know possible ways for problem troubleshooting ?

    Here converting command output for avi file :

    FFmpeg version SVN-r26402, Copyright (c) 2000-2011 the FFmpeg developers
     built on Feb  1 2011 02:54:36 with gcc 4.4.5
     configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab
     libavutil     50.36. 0 / 50.36. 0
     libavcore      0.16. 1 /  0.16. 1
     libavcodec    52.108. 0 / 52.108. 0
     libavformat   52.93. 0 / 52.93. 0
     libavdevice   52. 2. 3 / 52. 2. 3
     libavfilter    1.74. 0 /  1.74. 0
     libswscale     0.12. 0 /  0.12. 0
     libpostproc   51. 2. 0 / 51. 2. 0
    [mpeg4 @ 0x91e7e10] Invalid and inefficient vfw-avi packed B frames detected

    Seems stream 0 codec frame rate differs from container frame rate: 30000.00 (30000/1) -> 25.00 (25/1)
    Input #0, avi, from '/home/mightymeeting/Videos/tam-19.avi':
     Duration: 00:04:43.32, start: 0.000000, bitrate: 564 kb/s
       Stream #0.0: Video: mpeg4, yuv420p, 352x208 [PAR 1:1 DAR 22:13], 25 fps, 25 tbr, 25 tbn, 30k tbc
       Stream #0.1: Audio: mp3, 32000 Hz, 2 channels, s16, 80 kb/s
    [buffer @ 0x91e6ed0] w:352 h:208 pixfmt:yuv420p
    Output #0, avi, to 'out.avi':
     Metadata:
       ISFT            : Lavf52.93.0
       Stream #0.0: Video: mpeg4, yuv420p, 352x208 [PAR 1:1 DAR 22:13], q=2-31, 200 kb/s, 25 tbn, 25 tbc
       Stream #0.1: Audio: mp2, 32000 Hz, 2 channels, s16, 64 kb/s
    Stream mapping:
     Stream #0.0 -> #0.0
     Stream #0.1 -> #0.1
    Press [q] to stop encoding
    [mpeg4 @ 0x91e7e10] Invalid and inefficient vfw-avi packed B frames detected
    frame= 7082 fps=999 q=2.0 Lsize=    7513kB time=30.02 bitrate=2049.8kbits/s dup=0 drop=1    
    video:7079kB audio:235kB global headers:0kB muxing overhead 2.718192%
  • Appending a list of movie MP4s causes the sound to be dropped or garbled at some point

    7 février 2020, par Marie

    My process is in 3 steps
    Step 1) Corresponding to each bitmap I have 00.JPG ... NN.JPG I combine a list of "SOURCE" mp3 audio into a single audio mp3 to produce matching 00.MP3 ... NN.MP3

    I had glitch here where one my mp3 was not of the correct Sample Rate, however a kind soul in this forum helped me fix that.
    You can read the details here :

    When I append a silent audio (mp3) to an existing list of audio it garbles the final audio ?

    Step 2) combine each mp3 from previous with a the filename matching bitmap to produce a movie .MP4

    IOW,

    • 00.JPG + 00.MP3 >> 00.MP4
    • 01.JPG + 01.MP3 >> 01.MP4
    • and so on

    From this run of 24 subparts, I hand tested some of these movies against Whatsapp and they are accepted fine.
    However, the final MOVIE.MP4 is not.
    I will list below their info from ffprobe.

    Step 3) combine the list of movies from previous into a final MOVIE.MP4
    This is where I have been having random issues typically with audio, currently this audio drops at about 20s from start. Corresponding to roughly movies parts 04.mp4 to 07.mp4

    I play the videos via VLC but Windows Media Player has even worse playback.

    I am able to reproduce Step3 and thus MOVIE.MP4 with following batch file

    rem 10:33 PM 2/6/2020
    SET EXE="S:\_BINS\FFmpeg 4.2.1 20200112\bin\ffmpeg.exe"

    SET ROOTPATH=.\

    SET OUT_FILE="%ROOTPATH%MOVIE.MP4"

    SET IN_FILES_LIST="%ROOTPATH%IN_FILES_LIST.TXT"

    SET OPTIONS= -f concat -safe 0 -i  %IN_FILES_LIST%  -c copy -y  %OUT_FILE%

    SET INFO_FILE="INFO.TXT"

    %EXE% %OPTIONS%  1> %INFO_FILE% 2>&amp;1

    rem PAUSE

    The content of IN_FILES_LIST.TXT

    file '00.mp4'
    file '01.mp4'
    file '02.mp4'
    ...
    file '23.mp4'
    file '24.mp4'

    (Step 2) uses the following :)
    enter image description here

    The following is ffprobe on the source audio MP3s (Step 1)

    MP3s_ORIGINAL.TXT
    ========================BEGIN
    [mp3 @ 0000000000513100] Estimating duration from bitrate, this may be inaccurate
    Input #0, mp3, from '.\PLAY\00.mp3':
     Duration: 00:00:03.36, start: 0.000000, bitrate: 32 kb/s
       Stream #0:0: Audio: mp3, 24000 Hz, mono, fltp, 32 kb/s
    [mp3 @ 00000000003f3180] Estimating duration from bitrate, this may be inaccurate
    Input #0, mp3, from '.\PLAY\01.mp3':
     Duration: 00:00:00.46, start: 0.000000, bitrate: 32 kb/s
       Stream #0:0: Audio: mp3, 24000 Hz, mono, fltp, 32 kb/s
    [mp3 @ 00000000004a3180] Estimating duration from bitrate, this may be inaccurate
    Input #0, mp3, from '.\PLAY\02.mp3':
     Duration: 00:00:00.58, start: 0.000000, bitrate: 32 kb/s
       Stream #0:0: Audio: mp3, 24000 Hz, mono, fltp, 32 kb/s
    [mp3 @ 0000000000623180] Estimating duration from bitrate, this may be inaccurate
    Input #0, mp3, from '.\PLAY\03.mp3':
     Duration: 00:00:00.84, start: 0.000000, bitrate: 32 kb/s
       Stream #0:0: Audio: mp3, 24000 Hz, mono, fltp, 32 kb/s
    [mp3 @ 00000000003a3180] Estimating duration from bitrate, this may be inaccurate
    Input #0, mp3, from '.\PLAY\04.mp3':
     Duration: 00:00:00.86, start: 0.000000, bitrate: 32 kb/s
       Stream #0:0: Audio: mp3, 24000 Hz, mono, fltp, 32 kb/s
    [mp3 @ 0000000000433180] Estimating duration from bitrate, this may be inaccurate
    Input #0, mp3, from '.\PLAY\05.mp3':
     Duration: 00:00:00.98, start: 0.000000, bitrate: 32 kb/s
       Stream #0:0: Audio: mp3, 24000 Hz, mono, fltp, 32 kb/s
    [mp3 @ 0000000000683180] Estimating duration from bitrate, this may be inaccurate
    Input #0, mp3, from '.\PLAY\06.mp3':
     Duration: 00:00:00.98, start: 0.000000, bitrate: 32 kb/s
       Stream #0:0: Audio: mp3, 24000 Hz, mono, fltp, 32 kb/s
    [mp3 @ 00000000004d3180] Estimating duration from bitrate, this may be inaccurate
    Input #0, mp3, from '.\PLAY\07.mp3':
     Duration: 00:00:00.98, start: 0.000000, bitrate: 32 kb/s
       Stream #0:0: Audio: mp3, 24000 Hz, mono, fltp, 32 kb/s
    [mp3 @ 00000000004c3180] Estimating duration from bitrate, this may be inaccurate
    Input #0, mp3, from '.\PLAY\08.mp3':
     Duration: 00:00:00.98, start: 0.000000, bitrate: 32 kb/s
       Stream #0:0: Audio: mp3, 24000 Hz, mono, fltp, 32 kb/s
    [mp3 @ 0000000000573180] Estimating duration from bitrate, this may be inaccurate
    Input #0, mp3, from '.\PLAY\09.mp3':
     Duration: 00:00:00.98, start: 0.000000, bitrate: 32 kb/s
       Stream #0:0: Audio: mp3, 24000 Hz, mono, fltp, 32 kb/s
    [mp3 @ 0000000000583180] Estimating duration from bitrate, this may be inaccurate
    Input #0, mp3, from '.\PLAY\10.mp3':
     Duration: 00:00:00.98, start: 0.000000, bitrate: 32 kb/s
       Stream #0:0: Audio: mp3, 24000 Hz, mono, fltp, 32 kb/s
    [mp3 @ 00000000005e3180] Estimating duration from bitrate, this may be inaccurate
    Input #0, mp3, from '.\PLAY\11.mp3':
     Duration: 00:00:00.98, start: 0.000000, bitrate: 32 kb/s
       Stream #0:0: Audio: mp3, 24000 Hz, mono, fltp, 32 kb/s
    [mp3 @ 0000000000553180] Estimating duration from bitrate, this may be inaccurate
    Input #0, mp3, from '.\PLAY\12.mp3':
     Duration: 00:00:00.98, start: 0.000000, bitrate: 32 kb/s
       Stream #0:0: Audio: mp3, 24000 Hz, mono, fltp, 32 kb/s
    [mp3 @ 0000000000563180] Estimating duration from bitrate, this may be inaccurate
    Input #0, mp3, from '.\PLAY\13.mp3':
     Duration: 00:00:03.74, start: 0.000000, bitrate: 32 kb/s
       Stream #0:0: Audio: mp3, 24000 Hz, mono, fltp, 32 kb/s
    [mp3 @ 0000000000543180] Estimating duration from bitrate, this may be inaccurate
    Input #0, mp3, from '.\PLAY\14.mp3':
     Duration: 00:00:00.86, start: 0.000000, bitrate: 32 kb/s
       Stream #0:0: Audio: mp3, 24000 Hz, mono, fltp, 32 kb/s
    [mp3 @ 0000000000153180] Estimating duration from bitrate, this may be inaccurate
    Input #0, mp3, from '.\PLAY\15.mp3':
     Duration: 00:00:00.60, start: 0.000000, bitrate: 32 kb/s
       Stream #0:0: Audio: mp3, 24000 Hz, mono, fltp, 32 kb/s
    [mp3 @ 0000000000553180] Estimating duration from bitrate, this may be inaccurate
    Input #0, mp3, from '.\PLAY\16.mp3':
     Duration: 00:00:00.60, start: 0.000000, bitrate: 32 kb/s
       Stream #0:0: Audio: mp3, 24000 Hz, mono, fltp, 32 kb/s
    [mp3 @ 0000000000403180] Estimating duration from bitrate, this may be inaccurate
    Input #0, mp3, from '.\PLAY\17.mp3':
     Duration: 00:00:00.60, start: 0.000000, bitrate: 32 kb/s
       Stream #0:0: Audio: mp3, 24000 Hz, mono, fltp, 32 kb/s
    [mp3 @ 00000000003a3180] Estimating duration from bitrate, this may be inaccurate
    Input #0, mp3, from '.\PLAY\18.mp3':
     Duration: 00:00:00.77, start: 0.000000, bitrate: 32 kb/s
       Stream #0:0: Audio: mp3, 24000 Hz, mono, fltp, 32 kb/s
    [mp3 @ 0000000000473180] Estimating duration from bitrate, this may be inaccurate
    Input #0, mp3, from '.\PLAY\19.mp3':
     Duration: 00:00:04.44, start: 0.000000, bitrate: 32 kb/s
       Stream #0:0: Audio: mp3, 24000 Hz, mono, fltp, 32 kb/s
    [mp3 @ 0000000000513180] Estimating duration from bitrate, this may be inaccurate
    Input #0, mp3, from '.\PLAY\20.mp3':
     Duration: 00:00:00.98, start: 0.000000, bitrate: 32 kb/s
       Stream #0:0: Audio: mp3, 24000 Hz, mono, fltp, 32 kb/s
    [mp3 @ 0000000000563180] Estimating duration from bitrate, this may be inaccurate
    Input #0, mp3, from '.\PLAY\21.mp3':
     Duration: 00:00:00.98, start: 0.000000, bitrate: 32 kb/s
       Stream #0:0: Audio: mp3, 24000 Hz, mono, fltp, 32 kb/s
    [mp3 @ 0000000000153180] Estimating duration from bitrate, this may be inaccurate
    Input #0, mp3, from '.\PLAY\22.mp3':
     Duration: 00:00:01.08, start: 0.000000, bitrate: 32 kb/s
       Stream #0:0: Audio: mp3, 24000 Hz, mono, fltp, 32 kb/s
    [mp3 @ 0000000000503180] Estimating duration from bitrate, this may be inaccurate
    Input #0, mp3, from '.\PLAY\23.mp3':
     Duration: 00:00:04.06, start: 0.000000, bitrate: 32 kb/s
       Stream #0:0: Audio: mp3, 24000 Hz, mono, fltp, 32 kb/s
    [mp3 @ 00000000003c3180] Estimating duration from bitrate, this may be inaccurate
    Input #0, mp3, from '.\PLAY\24.mp3':
     Duration: 00:00:01.08, start: 0.000000, bitrate: 32 kb/s
       Stream #0:0: Audio: mp3, 24000 Hz, mono, fltp, 32 kb/s
    [mp3 @ 0000000000153180] Estimating duration from bitrate, this may be inaccurate

    The following is ffprobe on the MP3s concatenated with 2second Silence. All their Sample Rate 24K and Bit Rate 32k seems OK ?? (Also Step 1)

    MP3s_withSilenceAppended.TXT
    ========================BEGIN
    Input #0, mp3, from '00.mp3':
     Metadata:
       encoder         : Lavf58.35.101
     Duration: 00:00:05.42, start: 0.046042, bitrate: 32 kb/s
       Stream #0:0: Audio: mp3, 24000 Hz, mono, fltp, 32 kb/s
    Input #0, mp3, from '01.mp3':
     Metadata:
       encoder         : Lavf58.35.101
     Duration: 00:00:02.52, start: 0.046042, bitrate: 32 kb/s
       Stream #0:0: Audio: mp3, 24000 Hz, mono, fltp, 32 kb/s
    Input #0, mp3, from '02.mp3':
     Metadata:
       encoder         : Lavf58.35.101
     Duration: 00:00:02.64, start: 0.046042, bitrate: 32 kb/s
       Stream #0:0: Audio: mp3, 24000 Hz, mono, fltp, 32 kb/s
    Input #0, mp3, from '03.mp3':
     Metadata:
       encoder         : Lavf58.35.101
     Duration: 00:00:02.90, start: 0.046042, bitrate: 32 kb/s
       Stream #0:0: Audio: mp3, 24000 Hz, mono, fltp, 32 kb/s
    Input #0, mp3, from '04.mp3':
     Metadata:
       encoder         : Lavf58.35.101
     Duration: 00:00:02.93, start: 0.046042, bitrate: 32 kb/s
       Stream #0:0: Audio: mp3, 24000 Hz, mono, fltp, 32 kb/s
    Input #0, mp3, from '05.mp3':
     Metadata:
       encoder         : Lavf58.35.101
     Duration: 00:00:03.05, start: 0.046042, bitrate: 32 kb/s
       Stream #0:0: Audio: mp3, 24000 Hz, mono, fltp, 32 kb/s
    Input #0, mp3, from '06.mp3':
     Metadata:
       encoder         : Lavf58.35.101
     Duration: 00:00:03.05, start: 0.046042, bitrate: 32 kb/s
       Stream #0:0: Audio: mp3, 24000 Hz, mono, fltp, 32 kb/s
    Input #0, mp3, from '07.mp3':
     Metadata:
       encoder         : Lavf58.35.101
     Duration: 00:00:03.05, start: 0.046042, bitrate: 32 kb/s
       Stream #0:0: Audio: mp3, 24000 Hz, mono, fltp, 32 kb/s
    Input #0, mp3, from '08.mp3':
     Metadata:
       encoder         : Lavf58.35.101
     Duration: 00:00:03.05, start: 0.046042, bitrate: 32 kb/s
       Stream #0:0: Audio: mp3, 24000 Hz, mono, fltp, 32 kb/s
    Input #0, mp3, from '09.mp3':
     Metadata:
       encoder         : Lavf58.35.101
     Duration: 00:00:03.05, start: 0.046042, bitrate: 32 kb/s
       Stream #0:0: Audio: mp3, 24000 Hz, mono, fltp, 32 kb/s
    Input #0, mp3, from '10.mp3':
     Metadata:
       encoder         : Lavf58.35.101
     Duration: 00:00:03.05, start: 0.046042, bitrate: 32 kb/s
       Stream #0:0: Audio: mp3, 24000 Hz, mono, fltp, 32 kb/s
    Input #0, mp3, from '11.mp3':
     Metadata:
       encoder         : Lavf58.35.101
     Duration: 00:00:03.05, start: 0.046042, bitrate: 32 kb/s
       Stream #0:0: Audio: mp3, 24000 Hz, mono, fltp, 32 kb/s
    Input #0, mp3, from '12.mp3':
     Metadata:
       encoder         : Lavf58.35.101
     Duration: 00:00:03.05, start: 0.046042, bitrate: 32 kb/s
       Stream #0:0: Audio: mp3, 24000 Hz, mono, fltp, 32 kb/s
    Input #0, mp3, from '13.mp3':
     Metadata:
       encoder         : Lavf58.35.101
     Duration: 00:00:05.81, start: 0.046042, bitrate: 32 kb/s
       Stream #0:0: Audio: mp3, 24000 Hz, mono, fltp, 32 kb/s
    Input #0, mp3, from '14.mp3':
     Metadata:
       encoder         : Lavf58.35.101
     Duration: 00:00:02.93, start: 0.046042, bitrate: 32 kb/s
       Stream #0:0: Audio: mp3, 24000 Hz, mono, fltp, 32 kb/s
    Input #0, mp3, from '15.mp3':
     Metadata:
       encoder         : Lavf58.35.101
     Duration: 00:00:02.66, start: 0.046042, bitrate: 32 kb/s
       Stream #0:0: Audio: mp3, 24000 Hz, mono, fltp, 32 kb/s
    Input #0, mp3, from '16.mp3':
     Metadata:
       encoder         : Lavf58.35.101
     Duration: 00:00:02.66, start: 0.046042, bitrate: 32 kb/s
       Stream #0:0: Audio: mp3, 24000 Hz, mono, fltp, 32 kb/s
    Input #0, mp3, from '17.mp3':
     Metadata:
       encoder         : Lavf58.35.101
     Duration: 00:00:02.66, start: 0.046042, bitrate: 32 kb/s
       Stream #0:0: Audio: mp3, 24000 Hz, mono, fltp, 32 kb/s
    Input #0, mp3, from '18.mp3':
     Metadata:
       encoder         : Lavf58.35.101
     Duration: 00:00:02.83, start: 0.046042, bitrate: 32 kb/s
       Stream #0:0: Audio: mp3, 24000 Hz, mono, fltp, 32 kb/s
    Input #0, mp3, from '19.mp3':
     Metadata:
       encoder         : Lavf58.35.101
     Duration: 00:00:06.50, start: 0.046042, bitrate: 32 kb/s
       Stream #0:0: Audio: mp3, 24000 Hz, mono, fltp, 32 kb/s
    Input #0, mp3, from '20.mp3':
     Metadata:
       encoder         : Lavf58.35.101
     Duration: 00:00:03.05, start: 0.046042, bitrate: 32 kb/s
       Stream #0:0: Audio: mp3, 24000 Hz, mono, fltp, 32 kb/s
    Input #0, mp3, from '21.mp3':
     Metadata:
       encoder         : Lavf58.35.101
     Duration: 00:00:03.05, start: 0.046042, bitrate: 32 kb/s
       Stream #0:0: Audio: mp3, 24000 Hz, mono, fltp, 32 kb/s
    Input #0, mp3, from '22.mp3':
     Metadata:
       encoder         : Lavf58.35.101
     Duration: 00:00:03.14, start: 0.046042, bitrate: 32 kb/s
       Stream #0:0: Audio: mp3, 24000 Hz, mono, fltp, 32 kb/s
    Input #0, mp3, from '23.mp3':
     Metadata:
       encoder         : Lavf58.35.101
     Duration: 00:00:06.12, start: 0.046042, bitrate: 32 kb/s
       Stream #0:0: Audio: mp3, 24000 Hz, mono, fltp, 32 kb/s
    Input #0, mp3, from '24.mp3':
     Metadata:
       encoder         : Lavf58.35.101
     Duration: 00:00:03.14, start: 0.046042, bitrate: 32 kb/s
       Stream #0:0: Audio: mp3, 24000 Hz, mono, fltp, 32 kb/s

    The following is ffmpeg info output during the production of final movie MOVIE.MP4
    (Step 3)

    ========================BEGIN
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '\VID\00.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf58.35.101
     Duration: 00:00:05.54, start: 0.000000, bitrate: 174 kb/s
       Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 137 kb/s, 24 fps, 24 tbr, 24k tbn, 48 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 24000 Hz, mono, fltp, 32 kb/s (default)
       Metadata:
         handler_name    : SoundHandler
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '\VID\01.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf58.35.101
     Duration: 00:00:02.71, start: 0.000000, bitrate: 269 kb/s
       Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 242 kb/s, 24 fps, 24 tbr, 24k tbn, 48 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 24000 Hz, mono, fltp, 32 kb/s (default)
       Metadata:
         handler_name    : SoundHandler
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '\VID\02.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf58.35.101
     Duration: 00:00:02.71, start: 0.000000, bitrate: 285 kb/s
       Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 245 kb/s, 24 fps, 24 tbr, 24k tbn, 48 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 24000 Hz, mono, fltp, 32 kb/s (default)
       Metadata:
         handler_name    : SoundHandler
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '\VID\03.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf58.35.101
     Duration: 00:00:03.04, start: 0.000000, bitrate: 275 kb/s
       Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 239 kb/s, 24 fps, 24 tbr, 24k tbn, 48 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 24000 Hz, mono, fltp, 32 kb/s (default)
       Metadata:
         handler_name    : SoundHandler
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '\VID\04.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf58.35.101
     Duration: 00:00:03.04, start: 0.000000, bitrate: 286 kb/s
       Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 250 kb/s, 24 fps, 24 tbr, 24k tbn, 48 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 24000 Hz, mono, fltp, 32 kb/s (default)
       Metadata:
         handler_name    : SoundHandler
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '\VID\05.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf58.35.101
     Duration: 00:00:03.21, start: 0.000000, bitrate: 281 kb/s
       Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 249 kb/s, 24 fps, 24 tbr, 24k tbn, 48 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 24000 Hz, mono, fltp, 32 kb/s (default)
       Metadata:
         handler_name    : SoundHandler
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '\VID\06.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf58.35.101
     Duration: 00:00:03.21, start: 0.000000, bitrate: 281 kb/s
       Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 249 kb/s, 24 fps, 24 tbr, 24k tbn, 48 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 24000 Hz, mono, fltp, 32 kb/s (default)
       Metadata:
         handler_name    : SoundHandler
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '\VID\07.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf58.35.101
     Duration: 00:00:03.21, start: 0.000000, bitrate: 150 kb/s
       Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 115 kb/s, 24 fps, 24 tbr, 24k tbn, 48 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 24000 Hz, mono, fltp, 32 kb/s (default)
       Metadata:
         handler_name    : SoundHandler
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '\VID\08.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf58.35.101
     Duration: 00:00:03.21, start: 0.000000, bitrate: 201 kb/s
       Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 166 kb/s, 24 fps, 24 tbr, 24k tbn, 48 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 24000 Hz, mono, fltp, 32 kb/s (default)
       Metadata:
         handler_name    : SoundHandler
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '\VID\09.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf58.35.101
     Duration: 00:00:03.21, start: 0.000000, bitrate: 247 kb/s
       Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 214 kb/s, 24 fps, 24 tbr, 24k tbn, 48 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 24000 Hz, mono, fltp, 32 kb/s (default)
       Metadata:
         handler_name    : SoundHandler
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '\VID\10.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf58.35.101
     Duration: 00:00:03.21, start: 0.000000, bitrate: 247 kb/s
       Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 214 kb/s, 24 fps, 24 tbr, 24k tbn, 48 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 24000 Hz, mono, fltp, 32 kb/s (default)
       Metadata:
         handler_name    : SoundHandler
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '\VID\11.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf58.35.101
     Duration: 00:00:03.21, start: 0.000000, bitrate: 131 kb/s
       Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 95 kb/s, 24 fps, 24 tbr, 24k tbn, 48 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 24000 Hz, mono, fltp, 32 kb/s (default)
       Metadata:
         handler_name    : SoundHandler
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '\VID\12.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf58.35.101
     Duration: 00:00:03.21, start: 0.000000, bitrate: 194 kb/s
       Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 159 kb/s, 24 fps, 24 tbr, 24k tbn, 48 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 24000 Hz, mono, fltp, 32 kb/s (default)
       Metadata:
         handler_name    : SoundHandler
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '\VID\13.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf58.35.101
     Duration: 00:00:05.88, start: 0.000000, bitrate: 207 kb/s
       Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 169 kb/s, 24 fps, 24 tbr, 24k tbn, 48 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 24000 Hz, mono, fltp, 32 kb/s (default)
       Metadata:
         handler_name    : SoundHandler
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '\VID\14.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf58.35.101
     Duration: 00:00:03.04, start: 0.000000, bitrate: 335 kb/s
       Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 300 kb/s, 24 fps, 24 tbr, 24k tbn, 48 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 24000 Hz, mono, fltp, 32 kb/s (default)
       Metadata:
         handler_name    : SoundHandler
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '\VID\15.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf58.35.101
     Duration: 00:00:02.88, start: 0.000000, bitrate: 365 kb/s
       Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 342 kb/s, 24 fps, 24 tbr, 24k tbn, 48 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 24000 Hz, mono, fltp, 32 kb/s (default)
       Metadata:
         handler_name    : SoundHandler
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '\VID\16.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf58.35.101
     Duration: 00:00:02.88, start: 0.000000, bitrate: 384 kb/s
       Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 362 kb/s, 24 fps, 24 tbr, 24k tbn, 48 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 24000 Hz, mono, fltp, 32 kb/s (default)
       Metadata:
         handler_name    : SoundHandler
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '\VID\17.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf58.35.101
     Duration: 00:00:02.88, start: 0.000000, bitrate: 390 kb/s
       Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 368 kb/s, 24 fps, 24 tbr, 24k tbn, 48 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 24000 Hz, mono, fltp, 32 kb/s (default)
       Metadata:
         handler_name    : SoundHandler
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '\VID\18.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf58.35.101
     Duration: 00:00:03.04, start: 0.000000, bitrate: 386 kb/s
       Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 363 kb/s, 24 fps, 24 tbr, 24k tbn, 48 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 24000 Hz, mono, fltp, 32 kb/s (default)
       Metadata:
         handler_name    : SoundHandler
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '\VID\19.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf58.35.101
     Duration: 00:00:06.71, start: 0.000000, bitrate: 204 kb/s
       Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 169 kb/s, 24 fps, 24 tbr, 24k tbn, 48 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 24000 Hz, mono, fltp, 32 kb/s (default)
       Metadata:
         handler_name    : SoundHandler
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '\VID\20.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf58.35.101
     Duration: 00:00:03.21, start: 0.000000, bitrate: 194 kb/s
       Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 159 kb/s, 24 fps, 24 tbr, 24k tbn, 48 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 24000 Hz, mono, fltp, 32 kb/s (default)
       Metadata:
         handler_name    : SoundHandler
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '\VID\21.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf58.35.101
     Duration: 00:00:03.21, start: 0.000000, bitrate: 194 kb/s
       Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 159 kb/s, 24 fps, 24 tbr, 24k tbn, 48 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 24000 Hz, mono, fltp, 32 kb/s (default)
       Metadata:
         handler_name    : SoundHandler
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '\VID\22.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf58.35.101
     Duration: 00:00:03.21, start: 0.000000, bitrate: 208 kb/s
       Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 169 kb/s, 24 fps, 24 tbr, 24k tbn, 48 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 24000 Hz, mono, fltp, 32 kb/s (default)
       Metadata:
         handler_name    : SoundHandler
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '\VID\23.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf58.35.101
     Duration: 00:00:06.21, start: 0.000000, bitrate: 204 kb/s
       Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 166 kb/s, 24 fps, 24 tbr, 24k tbn, 48 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 24000 Hz, mono, fltp, 32 kb/s (default)
       Metadata:
         handler_name    : SoundHandler
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '\VID\24.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf58.35.101
     Duration: 00:00:03.21, start: 0.000000, bitrate: 173 kb/s
       Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 134 kb/s, 24 fps, 24 tbr, 24k tbn, 48 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 24000 Hz, mono, fltp, 32 kb/s (default)
       Metadata:
         handler_name    : SoundHandler
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '\VID\MOVIE.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf58.35.101
     Duration: 00:01:29.05, start: 0.000000, bitrate: 239 kb/s
       Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 203 kb/s, 23.53 fps, 24 tbr, 24k tbn, 48 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 24000 Hz, mono, fltp, 30 kb/s (default)
       Metadata:
         handler_name    : SoundHandler

    I have not been able yet to reproduce the issue with a smaller set of movies, in the meantime if you would to get a copy I would have to upload an archive to a link so you can have them on your side.

    Alternatively, if you would like me to provide additional info from these steps let me know what commands and I will be happy to provide.

    Thank you.

  • correct way to download a mp4 [Audio only] file as a mp3 file via php

    3 février 2018, par Kapil

    I am asking this question because i found it impossible as far my knowledge stands. However i believe here on stackoverflow a lot of genius persons visits so maybe someone can give a good advice / trick.

    My problem is, I am downloading a audio/mp4 file of youtube hosted on googlevideo.com’s server.

    My PHP code for this purpose :
    $mp3path is url of video

    header('Content-Description: File Transfer');
    if(strpos($mp3path, "https://") === false) {
       header('Content-length: ' . size($mp3path)); //size is custom function
    }
       header("Content-Type: audio/MP4A-LATM, audio/MP4A, audio/m4a, audio/mp4, audio/mp4a, audio/mp4-audio, audio/mpeg");
       header('Content-Type: application/force-download');
       header("Accept-Ranges: bytes");
       header('Content-Transfer-Encoding: binary');
       header('Content-disposition: attachment; filename="'.$title.'.mp3"');
       header('Connection: Keep-Alive');
       header('Expires: 0');
       header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
       header('Last-Modified: ' . gmdate('D, d M Y H:i:s', time()) . ' GMT');
       header("Cache-Control: private", false);
       header('Pragma: no-cache');
       readfile($mp3path);
       exit;

    I can download this audio file but few mp3 players are not able to play it when i did some research on by using mp3val [mp3val.sourceforge.net]. I found this file do not contain sample-rate, bit-rate or some other required codecs inside the file.
    Error received from mp3val : Unknown file format

    I know one possible way of doing this which is ffmpeg but i am looking for a less time consuming option of doing this because first ffmpeg download the whole file and then convert it to mp3 and save it on server. It takes a lot of time.

    I am looking for a easiest solution in which, i dont want to save the whole file on my server. I want to call this file from remote server and want to add sample rate, bit-rate in the file and then just somehow with php i want to start download on browser.

    All i mean to say i need a faster solution. I have seen 2 yt to mp3 converter, They are doing the same thing, giving instant download. i dont know how ?

    Please if you think its a stupid question or not possible then dont report to stackoverflow. I am trying to figure it out that’s why i am asking this question here. I hope you’ll understand my curiosity.

    Thanks,