
Recherche avancée
Médias (91)
-
Géodiversité
9 septembre 2011, par ,
Mis à jour : Août 2018
Langue : français
Type : Texte
-
USGS Real-time Earthquakes
8 septembre 2011, par
Mis à jour : Septembre 2011
Langue : français
Type : Texte
-
SWFUpload Process
6 septembre 2011, par
Mis à jour : Septembre 2011
Langue : français
Type : Texte
-
La conservation du net art au musée. Les stratégies à l’œuvre
26 mai 2011
Mis à jour : Juillet 2013
Langue : français
Type : Texte
-
Podcasting Legal guide
16 mai 2011, par
Mis à jour : Mai 2011
Langue : English
Type : Texte
-
Creativecommons informational flyer
16 mai 2011, par
Mis à jour : Juillet 2013
Langue : English
Type : Texte
Autres articles (100)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela. -
MediaSPIP v0.2
21 juin 2013, parMediaSPIP 0.2 est la première version de MediaSPIP stable.
Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)
Sur d’autres sites (8091)
-
ffmpeg doesn't detect the subtitle format (webvtt) and refuses to copy it
29 novembre 2023, par ThomasI am trying to re-encode the audio on some video files.
I want to copy the video and subtitles without touching them, however, ffmpeg doesn't detect the format of the subtitle (which is webvtt) and refuses to do anything.



fmpeg -copy_unknown -analyzeduration 2000M -probesize 2000M -i input.mkv -map_metadata 0 -map 0 -c copy -c:a:0 aac -b:a 384k output.mkv



[matroska,webm @ 0x5597558e4040] Unknown/unsupported AVCodecID S_TEXT/WEBVTT.
[matroska,webm @ 0x5597558e4040] Could not find codec parameters for stream 2 (Subtitle: none): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Guessed Channel Layout for Input Stream #0.1 : 5.1
Input #0, matroska,webm, from 'input.mkv':
 Metadata:
 encoder : libebml v1.3.9 + libmatroska v1.5.2
 creation_time : 2020-03-05T09:03:02.000000Z
 Duration: 00:56:33.26, start: 0.000000, bitrate: 3597 kb/s
 Stream #0:0: Video: h264 (High), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
 Metadata:
 BPS-eng : 3340067
 DURATION-eng : 00:56:33.140000000
 NUMBER_OF_FRAMES-eng: 81354
 NUMBER_OF_BYTES-eng: 1416664616
 _STATISTICS_WRITING_APP-eng: mkvmerge v38.0.0 ('The Silent Type') 64-bit
 _STATISTICS_WRITING_DATE_UTC-eng: 2020-03-05 09:03:02
 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
 Stream #0:1: Audio: eac3, 48000 Hz, 5.1, fltp (default)
 Metadata:
 BPS-eng : 256000
 DURATION-eng : 00:56:33.248000000
 NUMBER_OF_FRAMES-eng: 106039
 NUMBER_OF_BYTES-eng: 108583936
 _STATISTICS_WRITING_APP-eng: mkvmerge v38.0.0 ('The Silent Type') 64-bit
 _STATISTICS_WRITING_DATE_UTC-eng: 2020-03-05 09:03:02
 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
 Stream #0:2(eng): Subtitle: none (default)
 Metadata:
 BPS-eng : 38
 DURATION-eng : 00:54:47.388000000
 NUMBER_OF_FRAMES-eng: 514
 NUMBER_OF_BYTES-eng: 15766
 _STATISTICS_WRITING_APP-eng: mkvmerge v38.0.0 ('The Silent Type') 64-bit
 _STATISTICS_WRITING_DATE_UTC-eng: 2020-03-05 09:03:02
 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES

Stream mapping:
 Stream #0:0 -> #0:0 (copy)
 Stream #0:1 -> #0:1 (eac3 (native) -> aac (native))
 Stream #0:2 -> #0:2 (copy)

[aac @ 0x5597b06ae000] Using a PCE to encode channel layout "5.1(side)"
[matroska @ 0x5597b06ab540] Subtitle codec 0 is not supported.
Could not write header for output file #0 (incorrect codec parameters ?): Function not implemented
Error initializing output stream 0:1 -- 
[aac @ 0x5597b06ae000] Qavg: -nan
Conversion failed!




VLC shows it as WebVTT and displays the subtitles correctly :






MediaInfo also detects properly as webvtt :



Text
ID : 3
Format : S_TEXT/WEBVTT
Codec ID : S_TEXT/WEBVTT
Duration : 54 min 47 s
Bit rate : 38 b/s
Count of elements : 514
Stream size : 15.4 KiB (0%)
Language : English
Default : Yes
Forced : No




My ffmpeg was built with webvtt :



$ ffmpeg -codecs | grep VTT
ffmpeg version n4.2.2 Copyright (c) 2000-2019 the FFmpeg developers
 built with gcc 9.3.0 (Arch Linux 9.3.0-1)
 configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libdrm --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack --enable-libmfx --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-nvdec --enable-nvenc --enable-omx --enable-shared --enable-version3
 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
 libswscale 5. 5.100 / 5. 5.100
 libswresample 3. 5.100 / 3. 5.100
 libpostproc 55. 5.100 / 55. 5.100
 DES... webvtt WebVTT subtitle




How can I tell ffmpeg "this is webvtt, just copy it please !" ?



EDIT : RESOLVED (thanks @Gyan)



To force the decoder,
-c:s webvtt
must be set before the input :
fmpeg -analyzeduration 50M -probesize 50M -c:s webvtt -i input.mkv ...


-
ffmpeg - 'hevc' codec changed to 'rawvideo' after copying video codec
11 mars 2021, par Md YeaminI am trying to convert some
mkv
videos withhevc
codec toavi
format. For this I run the following command :

ffmpeg -i input.mkv -vcodec copy -acodec copy out.avi



For some video this command works without any issue. But in some cases video does converted, but I can not play those files in any video player. I've tried several video players including VLC, SMPlayer, Deepin Movie etc.


After looking into the video codec of converted video I can see that the video codec got transformed from
hevc
torawvideo
. Hers is the stream information of the original and the converted video files :

Input File


ffmpeg version 4.2.4-1ubuntu0.1 Copyright (c) 2000-2020 the FFmpeg developers
 built with gcc 9 (Ubuntu 9.3.0-10ubuntu2)
 configuration: --prefix=/usr --extra-version=1ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
 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
[matroska,webm @ 0x561d8e639600] Could not find codec parameters for stream 2 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, matroska,webm, from 'PE2_Leopard_4K_hevc_dts.mkv':
 Metadata:
 title : Planet Earth II S01E01 4K
 encoder : libebml v1.3.5 + libmatroska v1.4.8
 creation_time : 2017-10-29T06:31:02.000000Z
 Duration: 00:00:04.22, start: 0.000000, bitrate: 46848 kb/s
 Chapter #0:0: start 0.000000, end 4.216000
 Metadata:
 title : 00:00:00.000
 Stream #0:0: Video: hevc (Main 10), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x2160 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default)
 Metadata:
 BPS : 44365437
 BPS-eng : 44365437
 DURATION : 00:00:04.212000000
 DURATION-eng : 00:00:04.212000000
 NUMBER_OF_FRAMES: 101
 NUMBER_OF_FRAMES-eng: 101
 NUMBER_OF_BYTES : 23358403
 NUMBER_OF_BYTES-eng: 23358403
 _STATISTICS_WRITING_APP: mkvmerge v16.0.0 ('Protest') 64-bit
 _STATISTICS_WRITING_APP-eng: mkvmerge v16.0.0 ('Protest') 64-bit
 _STATISTICS_WRITING_DATE_UTC: 2017-10-29 06:31:02
 _STATISTICS_WRITING_DATE_UTC-eng: 2017-10-29 06:31:02
 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
 Stream #0:1(eng): Audio: dts (DTS-HD MA), 48000 Hz, 5.1(side), s16p (default)
 Metadata:
 title : DTS-HD MA 5.1
 BPS : 2506995
 BPS-eng : 2506995
 DURATION : 00:00:04.214000000
 DURATION-eng : 00:00:04.214000000
 NUMBER_OF_FRAMES: 395
 NUMBER_OF_FRAMES-eng: 395
 NUMBER_OF_BYTES : 1320560
 NUMBER_OF_BYTES-eng: 1320560
 _STATISTICS_WRITING_APP: mkvmerge v16.0.0 ('Protest') 64-bit
 _STATISTICS_WRITING_APP-eng: mkvmerge v16.0.0 ('Protest') 64-bit
 _STATISTICS_WRITING_DATE_UTC: 2017-10-29 06:31:02
 _STATISTICS_WRITING_DATE_UTC-eng: 2017-10-29 06:31:02
 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
 Stream #0:2(eng): Subtitle: hdmv_pgs_subtitle
 Metadata:
 title : English (SDH)
 BPS : 0
 BPS-eng : 0
 DURATION : 00:00:00.000000000
 DURATION-eng : 00:00:00.000000000
 NUMBER_OF_FRAMES: 0
 NUMBER_OF_FRAMES-eng: 0
 NUMBER_OF_BYTES : 0
 NUMBER_OF_BYTES-eng: 0
 _STATISTICS_WRITING_APP: mkvmerge v16.0.0 ('Protest') 64-bit
 _STATISTICS_WRITING_APP-eng: mkvmerge v16.0.0 ('Protest') 64-bit
 _STATISTICS_WRITING_DATE_UTC: 2017-10-29 06:31:02
 _STATISTICS_WRITING_DATE_UTC-eng: 2017-10-29 06:31:02
 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES



Output File


ffmpeg version 4.2.4-1ubuntu0.1 Copyright (c) 2000-2020 the FFmpeg developers
 built with gcc 9 (Ubuntu 9.3.0-10ubuntu2)
 configuration: --prefix=/usr --extra-version=1ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
 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, avi, from 'out3.avi':
 Metadata:
 title : Planet Earth II S01E01 4K
 encoder : Lavf58.29.100
 Duration: 00:00:04.27, start: 0.000000, bitrate: 44226 kb/s
 Stream #0:0: Video: rawvideo, bgr24, 3840x2160, 44803 kb/s, SAR 1:1 DAR 16:9, 47.95 fps, 47.95 tbr, 47.95 tbn, 47.95 tbc
 Stream #0:1: Audio: aac (LC) ([255][0][0][0] / 0x00FF), 48000 Hz, 5.1(side), fltp, 394 kb/s
 Metadata:
 title : DTS-HD MA 5.1



Command Log


ffmpeg version 4.2.4-1ubuntu0.1 Copyright (c) 2000-2020 the FFmpeg developers
 built with gcc 9 (Ubuntu 9.3.0-10ubuntu2)
 configuration: --prefix=/usr --extra-version=1ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
 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
[matroska,webm @ 0x55d6eebb8700] Could not find codec parameters for stream 2 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, matroska,webm, from 'PE2_Leopard_4K_hevc_dts.mkv':
 Metadata:
 title : Planet Earth II S01E01 4K
 encoder : libebml v1.3.5 + libmatroska v1.4.8
 creation_time : 2017-10-29T06:31:02.000000Z
 Duration: 00:00:04.22, start: 0.000000, bitrate: 46848 kb/s
 Chapter #0:0: start 0.000000, end 4.216000
 Metadata:
 title : 00:00:00.000
 Stream #0:0: Video: hevc (Main 10), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x2160 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default)
 Metadata:
 BPS : 44365437
 BPS-eng : 44365437
 DURATION : 00:00:04.212000000
 DURATION-eng : 00:00:04.212000000
 NUMBER_OF_FRAMES: 101
 NUMBER_OF_FRAMES-eng: 101
 NUMBER_OF_BYTES : 23358403
 NUMBER_OF_BYTES-eng: 23358403
 _STATISTICS_WRITING_APP: mkvmerge v16.0.0 ('Protest') 64-bit
 _STATISTICS_WRITING_APP-eng: mkvmerge v16.0.0 ('Protest') 64-bit
 _STATISTICS_WRITING_DATE_UTC: 2017-10-29 06:31:02
 _STATISTICS_WRITING_DATE_UTC-eng: 2017-10-29 06:31:02
 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
 Stream #0:1(eng): Audio: dts (DTS-HD MA), 48000 Hz, 5.1(side), s16p (default)
 Metadata:
 title : DTS-HD MA 5.1
 BPS : 2506995
 BPS-eng : 2506995
 DURATION : 00:00:04.214000000
 DURATION-eng : 00:00:04.214000000
 NUMBER_OF_FRAMES: 395
 NUMBER_OF_FRAMES-eng: 395
 NUMBER_OF_BYTES : 1320560
 NUMBER_OF_BYTES-eng: 1320560
 _STATISTICS_WRITING_APP: mkvmerge v16.0.0 ('Protest') 64-bit
 _STATISTICS_WRITING_APP-eng: mkvmerge v16.0.0 ('Protest') 64-bit
 _STATISTICS_WRITING_DATE_UTC: 2017-10-29 06:31:02
 _STATISTICS_WRITING_DATE_UTC-eng: 2017-10-29 06:31:02
 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
 Stream #0:2(eng): Subtitle: hdmv_pgs_subtitle
 Metadata:
 title : English (SDH)
 BPS : 0
 BPS-eng : 0
 DURATION : 00:00:00.000000000
 DURATION-eng : 00:00:00.000000000
 NUMBER_OF_FRAMES: 0
 NUMBER_OF_FRAMES-eng: 0
 NUMBER_OF_BYTES : 0
 NUMBER_OF_BYTES-eng: 0
 _STATISTICS_WRITING_APP: mkvmerge v16.0.0 ('Protest') 64-bit
 _STATISTICS_WRITING_APP-eng: mkvmerge v16.0.0 ('Protest') 64-bit
 _STATISTICS_WRITING_DATE_UTC: 2017-10-29 06:31:02
 _STATISTICS_WRITING_DATE_UTC-eng: 2017-10-29 06:31:02
 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Output #0, avi, to 'output.avi':
 Metadata:
 INAM : Planet Earth II S01E01 4K
 ISFT : Lavf58.29.100
 Chapter #0:0: start 0.000000, end 4.216000
 Metadata:
 title : 00:00:00.000
 Stream #0:0: Video: hevc (Main 10), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x2160 [SAR 1:1 DAR 16:9], q=2-31, 23.98 fps, 23.98 tbr, 47.95 tbn, 47.95 tbc (default)
 Metadata:
 BPS : 44365437
 BPS-eng : 44365437
 DURATION : 00:00:04.212000000
 DURATION-eng : 00:00:04.212000000
 NUMBER_OF_FRAMES: 101
 NUMBER_OF_FRAMES-eng: 101
 NUMBER_OF_BYTES : 23358403
 NUMBER_OF_BYTES-eng: 23358403
 _STATISTICS_WRITING_APP: mkvmerge v16.0.0 ('Protest') 64-bit
 _STATISTICS_WRITING_APP-eng: mkvmerge v16.0.0 ('Protest') 64-bit
 _STATISTICS_WRITING_DATE_UTC: 2017-10-29 06:31:02
 _STATISTICS_WRITING_DATE_UTC-eng: 2017-10-29 06:31:02
 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
 Stream #0:1(eng): Audio: dts (DTS-HD MA) ([1] [0][0] / 0x2001), 48000 Hz, 5.1(side), s16p (default)
 Metadata:
 title : DTS-HD MA 5.1
 BPS : 2506995
 BPS-eng : 2506995
 DURATION : 00:00:04.214000000
 DURATION-eng : 00:00:04.214000000
 NUMBER_OF_FRAMES: 395
 NUMBER_OF_FRAMES-eng: 395
 NUMBER_OF_BYTES : 1320560
 NUMBER_OF_BYTES-eng: 1320560
 _STATISTICS_WRITING_APP: mkvmerge v16.0.0 ('Protest') 64-bit
 _STATISTICS_WRITING_APP-eng: mkvmerge v16.0.0 ('Protest') 64-bit
 _STATISTICS_WRITING_DATE_UTC: 2017-10-29 06:31:02
 _STATISTICS_WRITING_DATE_UTC-eng: 2017-10-29 06:31:02
 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream mapping:
 Stream #0:0 -> #0:0 (copy)
 Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame= 101 fps=0.0 q=-1.0 Lsize= 28904kB time=00:00:04.20 bitrate=56322.1kbits/s speed= 119x 
video:22811kB audio:1290kB subtitle:0kB other streams:0kB global headers:1kB muxing overhead: 19.929108%



How to resolve this issue ?


-
what is the correct command using gstreamer to convert mp4 to 264 file ?
25 mars 2020, par hilowMy english is pool, i am sorry !
I use ffmpeg and gstreamer convert mp4 file to 264 format, but the output file is different.
The question is :-
1.Why they are different file ?
-
2.What is the
level
mean ingst-discoverer-1.0
?Use ffmpeg it is
Codec: video/x-h264, ...... level=(string)1.2
.Use gstreamer it is
Codec: video/x-h264, ...... level=(string)3
. -
3.How to use gstreamer to convert the correct 264 file ?
The original video file is come from https://github.com/notedit/media-server-go-demo/blob/master/video-mixer/public/big_buck_bunny.mp4 .
command :
gst-launch-1.0 filesrc location=big_buck_bunny.mp4 ! \
qtdemux name=demux \
demux.video_0 ! queue ! \
decodebin ! \
videoconvert ! \
videoscale ! \
videorate ! \
video/x-raw,width=320,height=240,framerate=15/1,pixel-aspect-ratio=1/1,level=1.2 ! \
x264enc bframes=0 byte-stream=true bitrate=9000 ! \
filesink location=videogst.264
ffmpeg -i big_buck_bunny.mp4 -f h264 -vcodec libx264 -s 320x240 -bf 0 -r 15 videoffmpeg.264output file :
-rw-r--r-- 1 xxx staff 1.9M 3 25 13:39 videoffmpeg.264
-rw-r--r-- 1 xxx staff 17M 3 25 13:40 videogst.264video codec :
xxx@xxxs-MacBook-Pro resource % gst-discoverer-1.0 videoffmpeg.264 -v
Analyzing file:///Users/xxx/tool/resource/videoffmpeg.264
Done discovering file:///Users/xxx/tool/resource/videoffmpeg.264
Topology:
video: video/x-h264, width=(int)320, height=(int)240, framerate=(fraction)15/1, chroma-format=(string)4:2:0, bit-depth-luma=(uint)8, bit-depth-chroma=(uint)8, parsed=(boolean)true, stream-format=(string)avc, alignment=(string)au, profile=(string)high, level=(string)1.2, codec_data=(buffer)0164000cffe100176764000cacb20283f420000003002000000303c1e2854901000668ebc3cb22c0
Tags:
视频编码: H.264 (High Profile)
Codec:
video/x-h264, width=(int)320, height=(int)240, framerate=(fraction)15/1, chroma-format=(string)4:2:0, bit-depth-luma=(uint)8, bit-depth-chroma=(uint)8, parsed=(boolean)true, stream-format=(string)avc, alignment=(string)au, profile=(string)high, level=(string)1.2, codec_data=(buffer)0164000cffe100176764000cacb20283f420000003002000000303c1e2854901000668ebc3cb22c0
Additional info:
None
Stream ID: 349989c8845fcc23360fb0ab02ea7510051b926669bf8f3862879823fbab6daf
Width: 320
Height: 240
Depth: 24
Frame rate: 15/1
Pixel aspect ratio: 1/1
Interlaced: false
Bitrate: 0
Max bitrate: 0
Properties:
Duration: 0:01:32.995000000
Seekable: yes
Live: no
Tags:
视频编码: H.264 (High Profile)
xxx@xxxs-MacBook-Pro resource % gst-discoverer-1.0 videogst.264 -v
Analyzing file:///Users/xxx/tool/resource/videogst.264
Done discovering file:///Users/xxx/tool/resource/videogst.264
Topology:
video: video/x-h264, pixel-aspect-ratio=(fraction)1/1, width=(int)320, height=(int)240, framerate=(fraction)15/1, chroma-format=(string)4:2:0, bit-depth-luma=(uint)8, bit-depth-chroma=(uint)8, parsed=(boolean)true, stream-format=(string)avc, alignment=(string)au, profile=(string)high, level=(string)3, codec_data=(buffer)0164001effe1001d6764001eacb20283f602d4180416940000030004000003007a3c58b92001000568ebccb22c
Tags:
视频编码: H.264 (High Profile)
Codec:
video/x-h264, pixel-aspect-ratio=(fraction)1/1, width=(int)320, height=(int)240, framerate=(fraction)15/1, chroma-format=(string)4:2:0, bit-depth-luma=(uint)8, bit-depth-chroma=(uint)8, parsed=(boolean)true, stream-format=(string)avc, alignment=(string)au, profile=(string)high, level=(string)3, codec_data=(buffer)0164001effe1001d6764001eacb20283f602d4180416940000030004000003007a3c58b92001000568ebccb22c
Additional info:
None
Stream ID: fb99f4104b347e5682d52c0bd65bcee91b765e42f89ce2e3553be5d6d743a666
Width: 320
Height: 240
Depth: 24
Frame rate: 15/1
Pixel aspect ratio: 1/1
Interlaced: false
Bitrate: 0
Max bitrate: 0
Properties:
Duration: 0:01:45.505000000
Seekable: yes
Live: no
Tags:
视频编码: H.264 (High Profile) -