Recherche avancée

Médias (0)

Mot : - Tags -/organisation

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

Autres articles (52)

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

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

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

Sur d’autres sites (8072)

  • Non-monotonous DTS in output for audio stream using ffmpeg concat

    24 mai 2015, par Apollo Marquis

    This was asked in FFMPEG - Non-Monotonous DTS on concat. But the poster simply opted for MP4Box after getting no reply. However, I would like to stick with ffmpeg which I think is quicker.

    I am concatenating files from a text file list of mp4 files that have been encoded at the same time using the same codecs so there should be no incompatibility between the files.

    I am not even sure what Non-monotonous DTS is (anyone ?) but I am worried it may produce some glitches in the concatenated files. They seem ok but there is some evidence of artefacts in the sound. Can I tweak my command line to get rid of this error, and will it speed up the concatenation process ?
    I am using Python subprocess call and the file passed into this function is the list of files. The function decorator is just a timer function for profiling.
    I have tried this with my system ffmpeg not just the static build, and it has the same problem.

    @fn_timer
    def concat(file):
       proc = call(['/opt/jane_ng/jane_nodejs/ffmpeg-git-20150308-64bit-static/ffmpeg', '-f', 'concat', '-i', file, '-c', 'copy', '-y', 'testConcat.mp4'])

    When I run this, I get the following output :

    ffmpeg version N-45007-g9d7e42e-   http://johnvansickle.com/ffmpeg/    Copyright (c) 2000-2015 the FFmpeg developers
     built with gcc 4.9.2 (Debian 4.9.2-10)
     configuration: --enable-gpl --enable-version3 --disable-shared --disable-debug --enable-runtime-cpudetect --enable-libmp3lame --enable-libx264 --enable-libx265 --enable-libwebp --enable-libspeex --enable-libvorbis --enable-libvpx --enable-libfreetype --enable-fontconfig --enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-gray --enable-libopenjpeg --enable-libopus --enable-libass --enable-gnutls --enable-libvidstab --cc=gcc-4.9
     libavutil      54. 20.100 / 54. 20.100
     libavcodec     56. 26.100 / 56. 26.100
     libavformat    56. 25.101 / 56. 25.101
     libavdevice    56.  4.100 / 56.  4.100
     libavfilter     5. 12.100 /  5. 12.100
     libswscale      3.  1.101 /  3.  1.101
     libswresample   1.  1.100 /  1.  1.100
     libpostproc    53.  3.100 / 53.  3.100
    [concat @ 0x31bdd80] Could not find codec parameters for stream 2 (Unknown: none): unknown codec
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    Input #0, concat, from '/opt/combinatoria/generator/concatFiles/concat.txt':
     Duration: N/A, start: 0.000000, bitrate: 1625 kb/s
       Stream #0:0: Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv), 960x540 [SAR 1:1 DAR 16:9], 1561 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
       Stream #0:1: Audio: aac (HE-AAC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 64 kb/s
       Stream #0:2: Unknown: none
    Output #0, mp4, to 'testConcat.mp4':
     Metadata:
       encoder         : Lavf56.25.101
       Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 960x540 [SAR 1:1 DAR 16:9], q=2-31, 1561 kb/s, 25 fps, 25 tbr, 90k tbn, 90k tbc
       Stream #0:1: Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz, stereo, 64 kb/s
    Stream mapping:
     Stream #0:0 -> #0:0 (copy)
     Stream #0:1 -> #0:1 (copy)
    Press [q] to stop, [?] for help
    [mp4 @ 0x3255080] Non-monotonous DTS in output stream 0:1; previous: 253952, current: 250488; changing to 253953. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x3255080] Non-monotonous DTS in output stream 0:1; previous: 253953, current: 252536; changing to 253954. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x3255080] Non-monotonous DTS in output stream 0:1; previous: 754296, current: 751464; changing to 754297. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x3255080] Non-monotonous DTS in output stream 0:1; previous: 754297, current: 753512; changing to 754298. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x3255080] Non-monotonous DTS in output stream 0:1; previous: 974696, current: 971964; changing to 974697. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x3255080] Non-monotonous DTS in output stream 0:1; previous: 974697, current: 974012; changing to 974698. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x3255080] Non-monotonous DTS in output stream 0:1; previous: 1340604, current: 1337112; changing to 1340605. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x3255080] Non-monotonous DTS in output stream 0:1; previous: 1340605, current: 1339160; changing to 1340606. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x3255080] Non-monotonous DTS in output stream 0:1; previous: 1746712, current: 1742832; changing to 1746713. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x3255080] Non-monotonous DTS in output stream 0:1; previous: 1746713, current: 1744880; changing to 1746714. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x3255080] Non-monotonous DTS in output stream 0:1; previous: 2119664, current: 2116800; changing to 2119665. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x3255080] Non-monotonous DTS in output stream 0:1; previous: 2119665, current: 2118848; changing to 2119666. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x3255080] Non-monotonous DTS in output stream 0:1; previous: 2274496, current: 2272032; changing to 2274497. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x3255080] Non-monotonous DTS in output stream 0:1; previous: 2274497, current: 2274080; changing to 2274498. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x3255080] Non-monotonous DTS in output stream 0:1; previous: 2685728, current: 2683044; changing to 2685729. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x3255080] Non-monotonous DTS in output stream 0:1; previous: 2685729, current: 2685092; changing to 2685730. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x3255080] Non-monotonous DTS in output stream 0:1; previous: 2850980, current: 2847096; changing to 2850981. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x3255080] Non-monotonous DTS in output stream 0:1; previous: 2850981, current: 2849144; changing to 2850982. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x3255080] Non-monotonous DTS in output stream 0:1; previous: 3033464, current: 3030552; changing to 3033465. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x3255080] Non-monotonous DTS in output stream 0:1; previous: 3033465, current: 3032600; changing to 3033466. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x3255080] Non-monotonous DTS in output stream 0:1; previous: 3384856, current: 3381588; changing to 3384857. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x3255080] Non-monotonous DTS in output stream 0:1; previous: 3384857, current: 3383636; changing to 3384858. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x3255080] Non-monotonous DTS in output stream 0:1; previous: 3760468, current: 3757320; changing to 3760469. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x3255080] Non-monotonous DTS in output stream 0:1; previous: 3760469, current: 3759368; changing to 3760470. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x3255080] Non-monotonous DTS in output stream 0:1; previous: 3990792, current: 3988404; changing to 3990793. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x3255080] Non-monotonous DTS in output stream 0:1; previous: 3990793, current: 3990452; changing to 3990794. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x3255080] Non-monotonous DTS in output stream 0:1; previous: 4295604, current: 4291812; changing to 4295605. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x3255080] Non-monotonous DTS in output stream 0:1; previous: 4295605, current: 4293860; changing to 4295606. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x3255080] Non-monotonous DTS in output stream 0:1; previous: 4750564, current: 4746924; changing to 4750565. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x3255080] Non-monotonous DTS in output stream 0:1; previous: 4750565, current: 4748972; changing to 4750566. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x3255080] Non-monotonous DTS in output stream 0:1; previous: 5025452, current: 5022108; changing to 5025453. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x3255080] Non-monotonous DTS in output stream 0:1; previous: 5025453, current: 5024156; changing to 5025454. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x3255080] Non-monotonous DTS in output stream 0:1; previous: 5271964, current: 5269068; changing to 5271965. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x3255080] Non-monotonous DTS in output stream 0:1; previous: 5271965, current: 5271116; changing to 5271966. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x3255080] Non-monotonous DTS in output stream 0:1; previous: 5707340, current: 5704776; changing to 5707341. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x3255080] Non-monotonous DTS in output stream 0:1; previous: 5707341, current: 5706824; changing to 5707342. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x3255080] Non-monotonous DTS in output stream 0:1; previous: 6003784, current: 6001128; changing to 6003785. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x3255080] Non-monotonous DTS in output stream 0:1; previous: 6003785, current: 6003176; changing to 6003786. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x3255080] Non-monotonous DTS in output stream 0:1; previous: 6371816, current: 6368040; changing to 6371817. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x3255080] Non-monotonous DTS in output stream 0:1; previous: 6371817, current: 6370088; changing to 6371818. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x3255080] Non-monotonous DTS in output stream 0:1; previous: 6875944, current: 6872544; changing to 6875945. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x3255080] Non-monotonous DTS in output stream 0:1; previous: 6875945, current: 6874592; changing to 6875946. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x3255080] Non-monotonous DTS in output stream 0:1; previous: 7042528, current: 7040124; changing to 7042529. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x3255080] Non-monotonous DTS in output stream 0:1; previous: 7042529, current: 7042172; changing to 7042530. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x3255080] Non-monotonous DTS in output stream 0:1; previous: 7314556, current: 7311780; changing to 7314557. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x3255080] Non-monotonous DTS in output stream 0:1; previous: 7314557, current: 7313828; changing to 7314558. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x3255080] Non-monotonous DTS in output stream 0:1; previous: 7541156, current: 7537572; changing to 7541157. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x3255080] Non-monotonous DTS in output stream 0:1; previous: 7541157, current: 7539620; changing to 7541158. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x3255080] Non-monotonous DTS in output stream 0:1; previous: 7795620, current: 7791588; changing to 7795621. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x3255080] Non-monotonous DTS in output stream 0:1; previous: 7795621, current: 7793636; changing to 7795622. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x3255080] Non-monotonous DTS in output stream 0:1; previous: 8063972, current: 8059716; changing to 8063973. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x3255080] Non-monotonous DTS in output stream 0:1; previous: 8063973, current: 8061764; changing to 8063974. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x3255080] Non-monotonous DTS in output stream 0:1; previous: 8063974, current: 8063812; changing to 8063975. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x3255080] Non-monotonous DTS in output stream 0:1; previous: 8350532, current: 8347248; changing to 8350533. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x3255080] Non-monotonous DTS in output stream 0:1; previous: 8350533, current: 8349296; changing to 8350534. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x3255080] Non-monotonous DTS in output stream 0:1; previous: 8656496, current: 8652420; changing to 8656497. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x3255080] Non-monotonous DTS in output stream 0:1; previous: 8656497, current: 8654468; changing to 8656498. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x3255080] Non-monotonous DTS in output stream 0:1; previous: 8902276, current: 8899380; changing to 8902277. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x3255080] Non-monotonous DTS in output stream 0:1; previous: 8902277, current: 8901428; changing to 8902278. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x3255080] Non-monotonous DTS in output stream 0:1; previous: 9159476, current: 9156924; changing to 9159477. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x3255080] Non-monotonous DTS in output stream 0:1; previous: 9159477, current: 9158972; changing to 9159478. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x3255080] Non-monotonous DTS in output stream 0:1; previous: 9468220, current: 9465624; changing to 9468221. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x3255080] Non-monotonous DTS in output stream 0:1; previous: 9468221, current: 9467672; changing to 9468222. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x3255080] Non-monotonous DTS in output stream 0:1; previous: 9748248, current: 9744336; changing to 9748249. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x3255080] Non-monotonous DTS in output stream 0:1; previous: 9748249, current: 9746384; changing to 9748250. This may result in incorrect timestamps in the output file.
    frame= 5637 fps=0.0 q=-1.0 Lsize=   45617kB time=00:03:45.60 bitrate=1656.4kbits/s    
    video:43701kB audio:1792kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.272048%
    Total time running concat: 0.451297044754 seconds

    This process is absolutely key to my current project so any help or clarification would be really appreciated.

  • How to embed subtitles to .mp4 movie using ffmpeg

    25 novembre 2016, par hudac

    I’m trying to embed subtitles I wrote to a movie I created.
    I’m using FFmpeg version : ffmpeg-20150418-git-edbb9b5-win64-static with the command :
    ffmpeg -i in.mp4 -f srt -i subs.srt -c:v copy -c:a copy -c:s mov_text out.mp4 I saw here.

    But I get errors during the process, and when the process is done there’s an output file out.mp4 without subtitles embedded.
    When I play the in.mp4 in some player such as media player classic with the subtitles separately, the subtitles are sync and everything is fine.

    The subtitles are subrip encoded in UTF8.

    I tried to look out for these errors but didn’t find anything useful. it seems something ridiculous.
    What am I doing wrong ?

    Errors such as :

    [mp4 @ 00000000003fe020] Codec for stream 0 does not use global headers but container format requires global headers
    [mp4 @ 00000000003fe020] Codec for stream 1 does not use global headers but container format requires global headers
    [mp4 @ 00000000003fe020] Application provided duration: -8 / timestamp: 72205 is out of range for mov/mp4 format
    [mp4 @ 00000000003fe020] pts has no value

    Movie details from Media info :

    Video  
    ID: 1  
    Format: AVC  
    Format/Info: Advanced Video Codec  
    Format profile: Main@L4.2  
    Format settings, CABAC: Yes  
    Format settings, ReFrames: 3 frames  
    Format settings, GOP: M=4, N=24  
    Codec ID: avc1  
    Codec ID/Info: Advanced Video Coding  
    Duration: 8mn 32s  
    Source duration: 8mn 32s  
    Bit rate: 23.4 Mbps  
    Width: 1920 pixels  
    Height: 1080 pixels  
    Display aspect ratio: 16:9  
    Original display aspect ratio: 2.2:1  
    Frame rate mode: Variable  
    Frame rate: 23.976 fps  
    Minimum frame rate: 23.976 fps  
    Maximum frame rate: 24.000 fps  
    Standard: NTSC  
    Color space: YUV  
    Chroma subsampling: 4:2:0  
    Bit depth: 8 bits  
    Scan type: Progressive  
    Bits/(Pixel*Frame): 0.472  
    Stream size: 1.40 GiB (99%)  
    Source stream size: 1.40 GiB (99%)  
    Language: English  
    Encoded date: UTC 2015-04-28 20:31:41  
    Tagged date: UTC 2015-04-28 20:31:41  
    mdhd_Duration: 512137  

    Ffmpeg command output :

    ffmpeg version N-71497-gedbb9b5 Copyright (c) 2000-2015 the FFmpeg developers
     built with gcc 4.9.2 (GCC)
     configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
    le-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-l
    ibilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --en
    able-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc
    --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --ena
    ble-decklink --enable-zlib
     libavutil      54. 22.101 / 54. 22.101
     libavcodec     56. 34.100 / 56. 34.100
     libavformat    56. 30.100 / 56. 30.100
     libavdevice    56.  4.100 / 56.  4.100
     libavfilter     5. 14.100 /  5. 14.100
     libswscale      3.  1.101 /  3.  1.101
     libswresample   1.  1.100 /  1.  1.100
     libpostproc    53.  3.100 / 53.  3.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'in.mp4':
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: mp42mp41
       creation_time   : 2015-04-28 20:31:41
     Duration: 00:08:32.17, start: 0.000000, bitrate: 23640 kb/s
       Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv), 1920x1080 [SAR 40:33 DAR 640:297], 23444 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 t
    bc (default)
       Metadata:
         creation_time   : 2015-04-28 20:31:41
         handler_name    : ?Mainconcept Video Media Handler
         encoder         : AVC Coding
       Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 189 kb/s (default)
       Metadata:
         creation_time   : 2015-04-28 20:31:41
         handler_name    : #Mainconcept MP4 Sound Media Handler
    Input #1, srt, from 'subs.srt':
     Duration: N/A, bitrate: N/A
       Stream #1:0: Subtitle: subrip
    [mp4 @ 00000000003fe020] Codec for stream 0 does not use global headers but container format requires global headers
    [mp4 @ 00000000003fe020] Codec for stream 1 does not use global headers but container format requires global headers
    Output #0, mp4, to 'out.mp4':
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: mp42mp41
       encoder         : Lavf56.30.100
       Stream #0:0(eng): Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1920x1080 [SAR 40:33 DAR 640:297], q=2-31, 23444 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 24k t
    bc (default)
       Metadata:
         creation_time   : 2015-04-28 20:31:41
         handler_name    : ?Mainconcept Video Media Handler
         encoder         : AVC Coding
       Stream #0:1(eng): Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz, stereo, 189 kb/s (default)
       Metadata:
         creation_time   : 2015-04-28 20:31:41
         handler_name    : #Mainconcept MP4 Sound Media Handler
       Stream #0:2: Subtitle: mov_text ([8][0][0][0] / 0x0008)
       Metadata:
         encoder         : Lavc56.34.100 mov_text
    Stream mapping:
     Stream #0:0 -> #0:0 (copy)
     Stream #0:1 -> #0:1 (copy)
     Stream #1:0 -> #0:2 (subrip (srt) -> mov_text (native))
    Press [q] to stop, [?] for help
    [mp4 @ 00000000003fe020] Application provided duration: -8 / timestamp: 72205 is out of range for mov/mp4 format
    [mp4 @ 00000000003fe020] pts has no value
    [mp4 @ 00000000003fe020] Application provided duration: -7 / timestamp: 74217 is out of range for mov/mp4 format
    [mp4 @ 00000000003fe020] pts has no value
    [mp4 @ 00000000003fe020] Application provided duration: -8 / timestamp: 76267 is out of range for mov/mp4 format
    [mp4 @ 00000000003fe020] pts has no value
    [mp4 @ 00000000003fe020] Application provided duration: -4 / timestamp: 77872 is out of range for mov/mp4 format
    [mp4 @ 00000000003fe020] pts has no value
    [mp4 @ 00000000003fe020] Application provided duration: -7 / timestamp: 79260 is out of range for mov/mp4 format
    [mp4 @ 00000000003fe020] pts has no value
    [mp4 @ 00000000003fe020] Application provided duration: -1 / timestamp: 88987 is out of range for mov/mp4 format
    [mp4 @ 00000000003fe020] pts has no value
    [mp4 @ 00000000003fe020] Application provided duration: -60 / timestamp: 91489 is out of range for mov/mp4 format
    [mp4 @ 00000000003fe020] pts has no value
    [mp4 @ 00000000003fe020] Application provided duration: -4 / timestamp: 108080 is out of range for mov/mp4 format
    [mp4 @ 00000000003fe020] pts has no value
    [mp4 @ 00000000003fe020] Application provided duration: -1 / timestamp: 112974 is out of range for mov/mp4 format
    [mp4 @ 00000000003fe020] pts has no value
    [mp4 @ 00000000003fe020] Application provided duration: -8 / timestamp: 115528 is out of range for mov/mp4 format
    [mp4 @ 00000000003fe020] pts has no value
    [mp4 @ 00000000003fe020] Application provided duration: -9 / timestamp: 122758 is out of range for mov/mp4 format
    [mp4 @ 00000000003fe020] pts has no value
    [mp4 @ 00000000003fe020] Application provided duration: -6 / timestamp: 124862 is out of range for mov/mp4 format
    [mp4 @ 00000000003fe020] pts has no value
    [mp4 @ 00000000003fe020] Application provided duration: -12 / timestamp: 130307 is out of range for mov/mp4 format
    [mp4 @ 00000000003fe020] pts has no value
    [mp4 @ 00000000003fe020] Application provided duration: -140 / timestamp: 150079 is out of range for mov/mp4 format
    [mp4 @ 00000000003fe020] pts has no value
    [mp4 @ 00000000003fe020] Application provided duration: -144 / timestamp: 156606 is out of range for mov/mp4 format
    [mp4 @ 00000000003fe020] pts has no value
    [mp4 @ 00000000003fe020] Application provided duration: -245 / timestamp: 158916 is out of range for mov/mp4 format
    [mp4 @ 00000000003fe020] pts has no value
    [mp4 @ 00000000003fe020] Application provided duration: -6 / timestamp: 231587 is out of range for mov/mp4 format
    [mp4 @ 00000000003fe020] pts has no value
    [mp4 @ 00000000003fe020] Application provided duration: -1 / timestamp: 234743 is out of range for mov/mp4 format
    [mp4 @ 00000000003fe020] pts has no value
    [mp4 @ 00000000003fe020] Application provided duration: -9 / timestamp: 239406 is out of range for mov/mp4 format
    [mp4 @ 00000000003fe020] pts has no value
    [mp4 @ 00000000003fe020] Application provided duration: -6 / timestamp: 242670 is out of range for mov/mp4 format
    [mp4 @ 00000000003fe020] pts has no value
    [mp4 @ 00000000003fe020] Application provided duration: -4 / timestamp: 249833 is out of range for mov/mp4 format
    [mp4 @ 00000000003fe020] pts has no value
    [mp4 @ 00000000003fe020] Application provided duration: -9 / timestamp: 252669 is out of range for mov/mp4 format
    [mp4 @ 00000000003fe020] pts has no value
    [mp4 @ 00000000003fe020] Application provided duration: -6 / timestamp: 257713 is out of range for mov/mp4 format
    [mp4 @ 00000000003fe020] pts has no value
    [mp4 @ 00000000003fe020] Application provided duration: -2 / timestamp: 272866 is out of range for mov/mp4 format
    [mp4 @ 00000000003fe020] pts has no value
    [mp4 @ 00000000003fe020] Application provided duration: -152 / timestamp: 276417 is out of range for mov/mp4 format
    [mp4 @ 00000000003fe020] pts has no value
    [mp4 @ 00000000003fe020] Application provided duration: -3 / timestamp: 290209 is out of range for mov/mp4 format
    [mp4 @ 00000000003fe020] pts has no value
    [mp4 @ 00000000003fe020] Application provided duration: -6 / timestamp: 302825 is out of range for mov/mp4 format
    [mp4 @ 00000000003fe020] pts has no value
    [mp4 @ 00000000003fe020] Application provided duration: -6 / timestamp: 305466 is out of range for mov/mp4 format
    [mp4 @ 00000000003fe020] pts has no value
    [mp4 @ 00000000003fe020] Application provided duration: -3 / timestamp: 314151 is out of range for mov/mp4 format
    [mp4 @ 00000000003fe020] pts has no value
    [mp4 @ 00000000003fe020] Application provided duration: -8 / timestamp: 315957 is out of range for mov/mp4 format
    [mp4 @ 00000000003fe020] pts has no value
    [mp4 @ 00000000003fe020] Application provided duration: -1 / timestamp: 322568 is out of range for mov/mp4 format
    [mp4 @ 00000000003fe020] pts has no value
    [mp4 @ 00000000003fe020] Application provided duration: -164 / timestamp: 333373 is out of range for mov/mp4 format
    [mp4 @ 00000000003fe020] pts has no value
    [mp4 @ 00000000003fe020] Application provided duration: -3 / timestamp: 379341 is out of range for mov/mp4 format
    [mp4 @ 00000000003fe020] pts has no value
    [mp4 @ 00000000003fe020] Application provided duration: -5 / timestamp: 385070 is out of range for mov/mp4 format
    [mp4 @ 00000000003fe020] pts has no value
    [mp4 @ 00000000003fe020] Application provided duration: -7 / timestamp: 396166 is out of range for mov/mp4 format
    [mp4 @ 00000000003fe020] pts has no value
    [mp4 @ 00000000003fe020] Application provided duration: -7 / timestamp: 402007 is out of range for mov/mp4 format
    [mp4 @ 00000000003fe020] pts has no value
    [mp4 @ 00000000003fe020] Application provided duration: -4 / timestamp: 404571 is out of range for mov/mp4 format
    [mp4 @ 00000000003fe020] pts has no value
    [mp4 @ 00000000003fe020] Application provided duration: -2 / timestamp: 418218 is out of range for mov/mp4 format
    [mp4 @ 00000000003fe020] pts has no value
    [mp4 @ 00000000003fe020] Application provided duration: -5 / timestamp: 428136 is out of range for mov/mp4 format
    [mp4 @ 00000000003fe020] pts has no value
    [mp4 @ 00000000003fe020] Application provided duration: -5 / timestamp: 433347 is out of range for mov/mp4 format
    [mp4 @ 00000000003fe020] pts has no value
    [mp4 @ 00000000003fe020] Application provided duration: -4 / timestamp: 438939 is out of range for mov/mp4 format
    [mp4 @ 00000000003fe020] pts has no value
    [mp4 @ 00000000003fe020] Application provided duration: -7 / timestamp: 445657 is out of range for mov/mp4 format
    [mp4 @ 00000000003fe020] pts has no value
    [mp4 @ 00000000003fe020] Application provided duration: -6 / timestamp: 449039 is out of range for mov/mp4 format
    [mp4 @ 00000000003fe020] pts has no value
    [mp4 @ 00000000003fe020] Application provided duration: -6 / timestamp: 451870 is out of range for mov/mp4 format
    [mp4 @ 00000000003fe020] pts has no value
    [mp4 @ 00000000003fe020] Application provided duration: -5 / timestamp: 456582 is out of range for mov/mp4 format
    [mp4 @ 00000000003fe020] pts has no value
    frame=12279 fps=138 q=-1.0 Lsize= 1477815kB time=00:08:32.16 bitrate=23637.2kbits/s
    video:1465658kB audio:11840kB subtitle:8kB other streams:0kB global headers:0kB muxing overhead: 0.020907%
  • trying to play corrupted mpeg-ts video using android video view

    20 avril 2015, par asafb

    i am having issue playing partial content of mepg-ts files

    the video files cannot be changed / reformatted / remuxed etc

    server setup :
    contains mpeg-ts video files with h264/acc
    has script that when requested using parameters returns on of the videos "cut"
    according to parameters

    -player :

    (i have no problem playing the full videos "uncut")
    i am trying to play this using android videoview,
    during researching i have found that vlc is the only player able to play the "cut" videos (aka windows mediaplayer, google exoplayer and chrome html5 video player are unable to play)
    running vlc at debug mode revealed error when playing cut video :
    ts error : MPEG-4 descriptor not found
    remuxing the partial content using ffmepg fixes the video

    solutions tried till now :
    1.tried remuxing on the fly using android MediaExtractor and MediaMuxer - but then found out that its not possiable doing that on the fly and anyway that MediaExtractor is unable to open "cut" video
    2.tried getting the first 10K of the full video and then append them to the rest of the "cut" video - the behvior stays the same (vlc able to play while rest wont)

    video files info :

    General
    Count : 278
    Count of stream of this kind : 1
    Kind of stream : General
    Kind of stream : General
    Stream identifier : 0
    ID : 55427
    ID : 55427 (0xD883)
    Count of video streams : 1
    Count of audio streams : 1
    Video_Format_List : AVC
    Video_Format_WithHint_List : AVC
    Codecs Video : AVC
    Audio_Format_List : AAC
    Audio_Format_WithHint_List : AAC
    Audio codecs : AAC LC
    Complete name : 20150416-12.mpg
    File name : 20150416-12
    File extension : mpg
    Format : MPEG-TS
    Format : MPEG-TS
    Format/Extensions usually used : ts m2t m2s m4t m4s ts tp trp
    Commercial name : MPEG-TS
    Internet media type : video/MP2T
    Codec : MPEG-TS
    Codec : MPEG-TS
    Codec/Extensions usually used : ts m2t m2s m4t m4s ts tp trp
    File size : 338329600
    File size : 323 MiB
    File size : 323 MiB
    File size : 323 MiB
    File size : 323 MiB
    File size : 322.7 MiB
    Duration : 27322.311111
    Duration : 27s 322ms
    Duration : 27s 322ms
    Duration : 27s 322ms
    Duration : 00:00:27.322
    Overall bit rate : 1567617
    Overall bit rate : 1 568 Kbps
    Delay : 5542662.322222
    Delay : 1h 32mn
    Delay : 1h 32mn 22s 662ms
    Delay : 1h 32mn
    Delay : 01:32:22.662
    File last modification date : UTC 2015-04-16 09:29:29
    File last modification date (local) : 2015-04-16 12:29:29

    Video
    Count : 205
    Count of stream of this kind : 1
    Kind of stream : Video
    Kind of stream : Video
    Stream identifier : 0
    ID : 68
    ID : 68 (0x44)
    Menu ID : 1
    Menu ID : 1 (0x1)
    Format : AVC
    Format/Info : Advanced Video Codec
    Format/Url : http://developers.videolan.org/x264.html
    Commercial name : AVC
    Format profile : Baseline@L3.0
    Format settings : 3 Ref Frames
    Format settings, CABAC : No
    Format settings, CABAC : No
    Format settings, ReFrames : 3
    Format settings, ReFrames : 3 frames
    Format settings, GOP : M=1, N=25
    Internet media type : video/H264
    Codec ID : 27
    Codec : AVC
    Codec : AVC
    Codec/Family : AVC
    Codec/Info : Advanced Video Codec
    Codec/Url : http://developers.videolan.org/x264.html
    Codec profile : Baseline@L3.0
    Codec settings : 3 Ref Frames
    Codec settings, CABAC : No
    Codec_Settings_RefFrames : 3
    Duration : 4100
    Duration : 4s 100ms
    Duration : 4s 100ms
    Duration : 4s 100ms
    Duration : 00:00:04.100
    Nominal bit rate : 1300000
    Nominal bit rate : 1 300 Kbps
    Width : 704
    Width : 704 pixels
    Height : 576
    Height : 576 pixels
    Pixel aspect ratio : 1.455
    Display aspect ratio : 1.778
    Display aspect ratio : 16:9
    Frame rate : 25.000
    Frame rate : 25.000 fps
    Frame count : 102
    Standard : PAL
    Resolution : 8
    Resolution : 8 bits
    Colorimetry : 4:2:0
    Color space : YUV
    Chroma subsampling : 4:2:0
    Bit depth : 8
    Bit depth : 8 bits
    Scan type : Progressive
    Scan type : Progressive
    Interlacement : PPF
    Interlacement : Progressive
    Bits/(Pixel*Frame) : 0.128
    Writing library : x264 - core 115
    Writing library : x264 core 115
    Writing library/Name : x264
    Writing library/Version : core 115
    Encoding settings : cabac=0 / ref=3 / deblock=1:0:0 / analyse=0x1:0x11 / me=dia / subme=1 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=0 / threads=12 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=0 / weightp=0 / keyint=25 / keyint_min=2 / scenecut=40 / intra_refresh=0 / rc_lookahead=5 / rc=cbr / mbtree=1 / bitrate=1300 / ratetol=10.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / vbv_maxrate=1300 / vbv_bufsize=2000 / nal_hrd=none / ip_ratio=1.40 / aq=1:1.00

    Audio
    Count : 173
    Count of stream of this kind : 1
    Kind of stream : Audio
    Kind of stream : Audio
    Stream identifier : 0
    ID : 69
    ID : 69 (0x45)
    Menu ID : 1
    Menu ID : 1 (0x1)
    Format : AAC
    Format/Info : Advanced Audio Codec
    Commercial name : AAC
    Format version : Version 4
    Format profile : LC
    Muxing mode : ADTS
    Codec ID : 15
    Codec : AAC LC
    Codec : AAC LC
    Duration : 27322
    Duration : 27s 322ms
    Duration : 27s 322ms
    Duration : 27s 322ms
    Duration : 00:00:27.322
    Bit rate mode : VBR / VBR
    Bit rate mode : Variable / Variable
    Minimum bit rate : 99375
    Minimum bit rate : 99.4 Kbps
    Maximum bit rate : 159750
    Maximum bit rate : 160 Kbps
    Channel(s) : 2
    Channel(s) : 2 channels
    Channel positions : Front : L R
    Channel positions : 2/0/0
    Sampling rate : 48000
    Sampling rate : 48.0 KHz
    Samples count : 1311456
    Compression mode : Lossy
    Compression mode : Lossy

    i prefer finding solution without the need of NDK

    anyone has an idea how to tackle this issue ?
    Thanks