
Recherche avancée
Médias (91)
-
Spitfire Parade - Crisis
15 mai 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Wired NextMusic
14 mai 2011, par
Mis à jour : Février 2012
Langue : English
Type : Video
-
Video d’abeille en portrait
14 mai 2011, par
Mis à jour : Février 2012
Langue : français
Type : Video
-
Sintel MP4 Surround 5.1 Full
13 mai 2011, par
Mis à jour : Février 2012
Langue : English
Type : Video
-
Carte de Schillerkiez
13 mai 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
-
Publier une image simplement
13 avril 2011, par ,
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (56)
-
Les tâches Cron régulières de la ferme
1er décembre 2010, parLa gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
Le super Cron (gestion_mutu_super_cron)
Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...) -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
Le plugin : Podcasts.
14 juillet 2010, parLe problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
Types de fichiers supportés dans les flux
Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...)
Sur d’autres sites (6304)
-
Videos produced with ffmpeg don't have frame width or height properties ?
18 mars 2016, par MarieI am using the following to produce my intermediate slideshow mp4 clips
ffmpeg -r 1 -f image2 -vcodec mjpeg -i 01.jpg -i 01.mp3 -codec:v libx264 -r 24 -codec:a copy -b:a 128k -shortest -y 01.mp4
And the produced 01.mp4 plays OK however, the properties detail under Windows don’t show any frame size width or height ? Why is that ? This may be an issue, see below...
I also produced an intro clip in AfterEffect using H.264 to produce an MP4 file.
I later have problem when I try to concatenate these 01.mp4 ,02.mp4, 03.mp4 with the intro.mp4 using the command line
ffmpeg -f concat -i MyFileList.txt -c copy -y output.mp4
The resulting output.mp4 video causes VLC player to crash right after it completes playing the intro segment.
my xx.jpg files are 1600x1200 and my intro.mp4 is 1920x1080 24fps so perhaps there is an issue there as well.I am not able to make sense of the purple and yellow lines from ffmpeg output during the concat perhaps you can help interpret, the output is attached.
Feel free to change any of the ffmpeg options for the production of my slideshow temp files 01.mp4, .02.mp4, 03.mp4 ... or during the concat operation, it’s been a lot of guess work on my part.
BTW, the reason I am using concat is because I thought at first ffmpeg would be able to iterate on images 01,02...jpg and matching them up with there 01,02,....mp3 sound files but apparently that is not possible with some command line like this :)
ffmpeg -i %02d.jpg -i %02d.mp3 .... output.mp4
Thank you.
===== output from concat follows :
ffmpeg version N-79000-g66edd86 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 5.3.0 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmfx --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
libavutil 55. 19.100 / 55. 19.100
libavcodec 57. 28.100 / 57. 28.100
libavformat 57. 28.100 / 57. 28.100
libavdevice 57. 0.101 / 57. 0.101
libavfilter 6. 39.102 / 6. 39.102
libswscale 4. 0.100 / 4. 0.100
libswresample 2. 0.101 / 2. 0.101
libpostproc 54. 0.100 / 54. 0.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 000000000044c960] Auto-inserting h264_mp4toannexb bitstream filter
Input #0, concat, from 'mylist.txt':
Duration: N/A, start: 0.000000, bitrate: 2996 kb/s
Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv), 1920x1080 [SAR 1:1 DAR 16:9], 2964 kb/s, 24 fps, 24 tbr, 24k tbn, 48 tbc
Metadata:
handler_name : VideoHandler
Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 44100 Hz, mono, s16p, 32 kb/s
Metadata:
handler_name : SoundHandler
Output #0, mp4, to 'output.mp4':
Metadata:
encoder : Lavf57.28.100
Stream #0:0(eng): Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 2964 kb/s, 24 fps, 24 tbr, 24k tbn, 24k tbc
Metadata:
handler_name : VideoHandler
Stream #0:1(und): Audio: mp3 (i[0][0][0] / 0x0069), 44100 Hz, mono, 32 kb/s
Metadata:
handler_name : SoundHandler
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000000028558c0] Auto-inserting h264_mp4toannexb bitstream filter
[mp4 @ 00000000004ad480] Non-monotonous DTS in output stream 0:0; previous: 235984, current: 120320; changing to 235985. This may result in incorrect timestamps in the output file.
[mp4 @ 00000000004ad480] Non-monotonous DTS in output stream 0:0; previous: 235985, current: 120832; changing to 235986. This may result in incorrect timestamps in the output file.
[mp4 @ 00000000004ad480] Non-monotonous DTS in output stream 0:0; previous: 235986, current: 121344; changing to 235987. This may result in incorrect timestamps in the output file.
[mp4 @ 00000000004ad480] Non-monotonous DTS in output stream 0:0; previous: 235987, current: 121856; changing to 235988. This may result in incorrect timestamps in the output file.
[mp4 @ 00000000004ad480] Non-monotonous DTS in output stream 0:0; previous: 235988, current: 122368; changing to 235989. This may result in incorrect timestamps in the output file.
[mp4 @ 00000000004ad480] Non-monotonous DTS in output stream 0:0; previous: 235989, current: 122880; changing to 235990. This may result in incorrect timestamps in the output file.
[mp4 @ 00000000004ad480] Non-monotonous DTS in output stream 0:0; previous: 235990, current: 123392; changing to 235991. This may result in incorrect timestamps in the output file.
[mp4 @ 00000000004ad480] Non-monotonous DTS in output stream 0:0; previous: 235991, current: 123904; changing to 235992. This may result in incorrect timestamps in the output file.
[mp4 @ 00000000004ad480] Non-monotonous DTS in output stream 0:0; previous: 235992, current: 124416; changing to 235993. This may result in incorrect timestamps in the output file.
[mp4 @ 00000000004ad480] Non-monotonous DTS in output stream 0:0; previous: 235993, current: 124928; changing to 235994. This may result in incorrect timestamps in the output file.
[mp4 @ 00000000004ad480] Non-monotonous DTS in output stream 0:0; previous: 235994, current: 125440; changing to 235995. This may result in incorrect timestamps in the output file.
[mp4 @ 00000000004ad480] Non-monotonous DTS in output stream 0:0; previous: 235995, current: 125952; changing to 235996. This may result in incorrect timestamps in the output file.
[mp4 @ 00000000004ad480] Non-monotonous DTS in output stream 0:0; previous: 235996, current: 126464; changing to 235997. This may result in incorrect timestamps in the output file.
[mp4 @ 00000000004ad480] Non-monotonous DTS in output stream 0:0; previous: 235997, current: 126976; changing to 235998. This may result in incorrect timestamps in the output file.
[mp4 @ 00000000004ad480] Non-monotonous DTS in output stream 0:0; previous: 235998, current: 127488; changing to 235999. This may result in incorrect timestamps in the output file.
[mp4 @ 00000000004ad480] Non-monotonous DTS in output stream 0:0; previous: 235999, current: 128000; changing to 236000. This may result in incorrect timestamps in the output file.
[mp4 @ 00000000004ad480] Non-monotonous DTS in output stream 0:0; previous: 236000, current: 128512; changing to 236001. This may result in incorrect timestamps in the output file.
[mp4 @ 00000000004ad480] Non-monotonous DTS in output stream 0:0; previous: 236001, current: 129024; changing to 236002. This may result in incorrect timestamps in the output file.
[mp4 @ 00000000004ad480] Non-monotonous DTS in output stream 0:0; previous: 236002, current: 129536; changing to 236003. This may result in incorrect timestamps in the output file.
[mp4 @ 00000000004ad480] Non-monotonous DTS in output stream 0:0; previous: 236003, current: 130048; changing to 236004. This may result in incorrect timestamps in the output file.
[mp4 @ 00000000004ad480] Non-monotonous DTS in output stream 0:0; previous: 236004, current: 130560; changing to 236005. This may result in incorrect timestamps in the output file.
[mp4 @ 00000000004ad480] Non-monotonous DTS in output stream 0:0; previous: 236005, current: 131072; changing to 236006. This may result in incorrect timestamps in the output file.
[mp4 @ 00000000004ad480] Non-monotonous DTS in output stream 0:0; previous: 236006, current: 131584; changing to 236007. This may result in incorrect timestamps in the output file.
[mp4 @ 00000000004ad480] Non-monotonous DTS in output stream 0:0; previous: 236007, current: 132096; changing to 236008. This may result in incorrect timestamps in the output file.
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000000028558c0] Auto-inserting h264_mp4toannexb bitstream filter
[mp4 @ 00000000004ad480] Non-monotonous DTS in output stream 0:0; previous: 236008, current: 132841; changing to 236009. This may result in incorrect timestamps in the output file.
[mp4 @ 00000000004ad480] Non-monotonous DTS in output stream 0:0; previous: 236009, current: 133353; changing to 236010. This may result in incorrect timestamps in the output file.
[mp4 @ 00000000004ad480] Non-monotonous DTS in output stream 0:0; previous: 236010, current: 133865; changing to 236011. This may result in incorrect timestamps in the output file.
[mp4 @ 00000000004ad480] Non-monotonous DTS in output stream 0:0; previous: 236011, current: 134377; changing to 236012. This may result in incorrect timestamps in the output file.
[mp4 @ 00000000004ad480] Non-monotonous DTS in output stream 0:0; previous: 236012, current: 134889; changing to 236013. This may result in incorrect timestamps in the output file.
[mp4 @ 00000000004ad480] Non-monotonous DTS in output stream 0:0; previous: 236013, current: 135401; changing to 236014. This may result in incorrect timestamps in the output file.
[mp4 @ 00000000004ad480] Non-monotonous DTS in output stream 0:0; previous: 236014, current: 135913; changing to 236015. This may result in incorrect timestamps in the output file.
[mp4 @ 00000000004ad480] Non-monotonous DTS in output stream 0:0; previous: 236015, current: 136425; changing to 236016. This may result in incorrect timestamps in the output file.
[mp4 @ 00000000004ad480] Non-monotonous DTS in output stream 0:0; previous: 236016, current: 136937; changing to 236017. This may result in incorrect timestamps in the output file.
[mp4 @ 00000000004ad480] Non-monotonous DTS in output stream 0:0; previous: 236017, current: 137449; changing to 236018. This may result in incorrect timestamps in the output file.
[mp4 @ 00000000004ad480] Non-monotonous DTS in output stream 0:0; previous: 236018, current: 137961; changing to 236019. This may result in incorrect timestamps in the output file.
[mp4 @ 00000000004ad480] Non-monotonous DTS in output stream 0:0; previous: 236019, current: 138473; changing to 236020. This may result in incorrect timestamps in the output file.
[mp4 @ 00000000004ad480] Non-monotonous DTS in output stream 0:0; previous: 236020, current: 138985; changing to 236021. This may result in incorrect timestamps in the output file.
[mp4 @ 00000000004ad480] Non-monotonous DTS in output stream 0:0; previous: 236021, current: 139497; changing to 236022. This may result in incorrect timestamps in the output file.
[mp4 @ 00000000004ad480] Non-monotonous DTS in output stream 0:0; previous: 236022, current: 140009; changing to 236023. This may result in incorrect timestamps in the output file.
[mp4 @ 00000000004ad480] Non-monotonous DTS in output stream 0:0; previous: 236023, current: 140521; changing to 236024. This may result in incorrect timestamps in the output file.
[mp4 @ 00000000004ad480] Non-monotonous DTS in output stream 0:0; previous: 236024, current: 141033; changing to 236025. This may result in incorrect timestamps in the output file.
[mp4 @ 00000000004ad480] Non-monotonous DTS in output stream 0:0; previous: 236025, current: 141545; changing to 236026. This may result in incorrect timestamps in the output file.
[mp4 @ 00000000004ad480] Non-monotonous DTS in output stream 0:0; previous: 236026, current: 142057; changing to 236027. This may result in incorrect timestamps in the output file.
[mp4 @ 00000000004ad480] Non-monotonous DTS in output stream 0:0; previous: 236027, current: 142569; changing to 236028. This may result in incorrect timestamps in the output file.
[mp4 @ 00000000004ad480] Non-monotonous DTS in output stream 0:0; previous: 236028, current: 143081; changing to 236029. This may result in incorrect timestamps in the output file.
[mp4 @ 00000000004ad480] Non-monotonous DTS in output stream 0:0; previous: 236029, current: 143593; changing to 236030. This may result in incorrect timestamps in the output file.
[mp4 @ 00000000004ad480] Non-monotonous DTS in output stream 0:0; previous: 236030, current: 144105; changing to 236031. This may result in incorrect timestamps in the output file.
[mp4 @ 00000000004ad480] Non-monotonous DTS in output stream 0:0; previous: 236031, current: 144617; changing to 236032. This may result in incorrect timestamps in the output file.
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000000028558c0] Auto-inserting h264_mp4toannexb bitstream filter
[mp4 @ 00000000004ad480] Non-monotonous DTS in output stream 0:0; previous: 236032, current: 145363; changing to 236033. This may result in incorrect timestamps in the output file.
[mp4 @ 00000000004ad480] Non-monotonous DTS in output stream 0:0; previous: 236033, current: 145875; changing to 236034. This may result in incorrect timestamps in the output file.
[mp4 @ 00000000004ad480] Non-monotonous DTS in output stream 0:0; previous: 236034, current: 146387; changing to 236035. This may result in incorrect timestamps in the output file.
[mp4 @ 00000000004ad480] Non-monotonous DTS in output stream 0:0; previous: 236035, current: 146899; changing to 236036. This may result in incorrect timestamps in the output file.
[mp4 @ 00000000004ad480] Non-monotonous DTS in output stream 0:0; previous: 236036, current: 147411; changing to 236037. This may result in incorrect timestamps in the output file.
[mp4 @ 00000000004ad480] Non-monotonous DTS in output stream 0:0; previous: 236037, current: 147923; changing to 236038. This may result in incorrect timestamps in the output file.
[mp4 @ 00000000004ad480] Non-monotonous DTS in output stream 0:0; previous: 236038, current: 148435; changing to 236039. This may result in incorrect timestamps in the output file.
[mp4 @ 00000000004ad480] Non-monotonous DTS in output stream 0:0; previous: 236039, current: 148947; changing to 236040. This may result in incorrect timestamps in the output file.
[mp4 @ 00000000004ad480] Non-monotonous DTS in output stream 0:0; previous: 236040, current: 149459; changing to 236041. This may result in incorrect timestamps in the output file.
[mp4 @ 00000000004ad480] Non-monotonous DTS in output stream 0:0; previous: 236041, current: 149971; changing to 236042. This may result in incorrect timestamps in the output file.
[mp4 @ 00000000004ad480] Non-monotonous DTS in output stream 0:0; previous: 236042, current: 150483; changing to 236043. This may result in incorrect timestamps in the output file.
[mp4 @ 00000000004ad480] Non-monotonous DTS in output stream 0:0; previous: 236043, current: 150995; changing to 236044. This may result in incorrect timestamps in the output file.
[mp4 @ 00000000004ad480] Non-monotonous DTS in output stream 0:0; previous: 236044, current: 151507; changing to 236045. This may result in incorrect timestamps in the output file.
[mp4 @ 00000000004ad480] Non-monotonous DTS in output stream 0:0; previous: 236045, current: 152019; changing to 236046. This may result in incorrect timestamps in the output file.
[mp4 @ 00000000004ad480] Non-monotonous DTS in output stream 0:0; previous: 236046, current: 152531; changing to 236047. This may result in incorrect timestamps in the output file.
[mp4 @ 00000000004ad480] Non-monotonous DTS in output stream 0:0; previous: 236047, current: 153043; changing to 236048. This may result in incorrect timestamps in the output file.
[mp4 @ 00000000004ad480] Non-monotonous DTS in output stream 0:0; previous: 236048, current: 153555; changing to 236049. This may result in incorrect timestamps in the output file.
[mp4 @ 00000000004ad480] Non-monotonous DTS in output stream 0:0; previous: 236049, current: 154067; changing to 236050. This may result in incorrect timestamps in the output file.
[mp4 @ 00000000004ad480] Non-monotonous DTS in output stream 0:0; previous: 236050, current: 154579; changing to 236051. This may result in incorrect timestamps in the output file.
[mp4 @ 00000000004ad480] Non-monotonous DTS in output stream 0:0; previous: 236051, current: 155091; changing to 236052. This may result in incorrect timestamps in the output file.
[mp4 @ 00000000004ad480] Non-monotonous DTS in output stream 0:0; previous: 236052, current: 155603; changing to 236053. This may result in incorrect timestamps in the output file.
[mp4 @ 00000000004ad480] Non-monotonous DTS in output stream 0:0; previous: 236053, current: 156115; changing to 236054. This may result in incorrect timestamps in the output file.
[mp4 @ 00000000004ad480] Non-monotonous DTS in output stream 0:0; previous: 236054, current: 156627; changing to 236055. This may result in incorrect timestamps in the output file.
[mp4 @ 00000000004ad480] Non-monotonous DTS in output stream 0:0; previous: 236055, current: 157139; changing to 236056. This may result in incorrect timestamps in the output file.
frame= 309 fps=0.0 q=-1.0 Lsize= 3986kB time=00:00:12.93 bitrate=2525.2kbits/s speed= 166x
video:3927kB audio:50kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.232265%===== Here is the output from ffprobe on intro.mp4
ffprobe version N-79000-g66edd86 Copyright (c) 2007-2016 the FFmpeg developers
built with gcc 5.3.0 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmfx --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
libavutil 55. 19.100 / 55. 19.100
libavcodec 57. 28.100 / 57. 28.100
libavformat 57. 28.100 / 57. 28.100
libavdevice 57. 0.101 / 57. 0.101
libavfilter 6. 39.102 / 6. 39.102
libswscale 4. 0.100 / 4. 0.100
libswresample 2. 0.101 / 2. 0.101
libpostproc 54. 0.100 / 54. 0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'intro.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf57.28.100
Duration: 00:00:09.88, start: 0.000000, bitrate: 3003 kb/s
Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv), 1920x1080 [SAR 1:1 DAR 16:9], 2964 kb/s, 24 fps, 24 tbr, 24k tbn, 48 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 44100 Hz, mono, s16p, 32 kb/s (default)
Metadata:
handler_name : SoundHandler===== Here is the output of ffprobe on one of intermediate clips here 01.mp4
ffprobe version N-79000-g66edd86 Copyright (c) 2007-2016 the FFmpeg developers
built with gcc 5.3.0 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmfx --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
libavutil 55. 19.100 / 55. 19.100
libavcodec 57. 28.100 / 57. 28.100
libavformat 57. 28.100 / 57. 28.100
libavdevice 57. 0.101 / 57. 0.101
libavfilter 6. 39.102 / 6. 39.102
libswscale 4. 0.100 / 4. 0.100
libswresample 2. 0.101 / 2. 0.101
libpostproc 54. 0.100 / 54. 0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '01.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf57.28.100
Duration: 00:00:01.02, start: 0.000000, bitrate: 1036 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuvj420p(pc), 1920x1080 [SAR 1:1 DAR 16:9], 1006 kb/s, 24 fps, 24 tbr, 12288 tbn, 48 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 44100 Hz, mono, s16p, 31 kb/s (default)
Metadata:
handler_name : SoundHandler===== ffmpeg output when generating 01.mp4 when using the following suggested fix :
ffmpeg -loop 1 -i 01.jpg -i 01.mp3 -c:v libx264 -profile:v main -pix_fmt yuv420p -r 24 -video_track_timescale 24000 -c:a copy -shortest -y 01.mp4
ffmpeg version N-79000-g66edd86 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 5.3.0 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmfx --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
libavutil 55. 19.100 / 55. 19.100
libavcodec 57. 28.100 / 57. 28.100
libavformat 57. 28.100 / 57. 28.100
libavdevice 57. 0.101 / 57. 0.101
libavfilter 6. 39.102 / 6. 39.102
libswscale 4. 0.100 / 4. 0.100
libswresample 2. 0.101 / 2. 0.101
libpostproc 54. 0.100 / 54. 0.100
Input #0, image2, from 'S:\_W\ARP_WEB\RC\KIDS\QURAN\AAYAAT - Allah\01 AlKursi\BMP\01.JPG':
Duration: 00:00:00.04, start: 0.000000, bitrate: 25065 kb/s
Stream #0:0: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 1920x1080 [SAR 96:96 DAR 16:9], 25 fps, 25 tbr, 25 tbn, 25 tbc
[mp3 @ 00000000005d03a0] Estimating duration from bitrate, this may be inaccurate
Input #1, mp3, from 'S:\_W\ARP_WEB\RC\KIDS\QURAN\AAYAAT - Allah\01 AlKursi\SND\01.MP3':
Duration: 00:00:09.85, start: 0.000000, bitrate: 32 kb/s
Stream #1:0: Audio: mp3, 44100 Hz, mono, s16p, 32 kb/s
[swscaler @ 0000000002b30c40] deprecated pixel format used, make sure you did set range correctly
[libx264 @ 00000000005ba520] using SAR=1/1
[libx264 @ 00000000005ba520] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
[libx264 @ 00000000005ba520] profile Main, level 4.0
[libx264 @ 00000000005ba520] 264 - core 148 r2665 a01e339 - H.264/MPEG-4 AVC codec - Copyleft 2003-2016 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 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=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=24 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'S:\_VIDS_PRODUCTIONS\20110219 MUMTI CLIPS\20160311 Epic Quran Recitations\01.MP4':
Metadata:
encoder : Lavf57.28.100
Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 24 fps, 24k tbn, 24 tbc
Metadata:
encoder : Lavc57.28.100 libx264
Side data:
cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
Stream #0:1: Audio: mp3 (i[0][0][0] / 0x0069), 44100 Hz, mono, 32 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (libx264))
Stream #1:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
Past duration 0.639992 too large
Past duration 0.679985 too large
Past duration 0.719994 too large
Past duration 0.759987 too large
Past duration 0.799995 too large
Past duration 0.839989 too large
Past duration 0.879997 too large
Past duration 0.919991 too large
Past duration 0.959999 too large
Past duration 0.999992 too large
frame= 43 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 71 fps= 70 q=28.0 size= 133kB time=00:00:00.54 bitrate=2016.1kbits/s dup=0 drop=1 speed=0.533x
frame= 104 fps= 68 q=28.0 size= 144kB time=00:00:01.91 bitrate= 615.3kbits/s dup=0 drop=3 speed=1.26x
frame= 137 fps= 67 q=28.0 size= 154kB time=00:00:03.29 bitrate= 384.3kbits/s dup=0 drop=4 speed=1.61x
frame= 170 fps= 67 q=28.0 size= 165kB time=00:00:04.67 bitrate= 289.4kbits/s dup=0 drop=5 speed=1.84x
frame= 203 fps= 66 q=28.0 size= 176kB time=00:00:06.04 bitrate= 238.2kbits/s dup=0 drop=7 speed=1.98x
frame= 236 fps= 66 q=28.0 size= 186kB time=00:00:07.41 bitrate= 205.6kbits/s dup=0 drop=8 speed=2.08x
frame= 269 fps= 66 q=28.0 size= 197kB time=00:00:08.79 bitrate= 183.3kbits/s dup=0 drop=9 speed=2.16x
frame= 295 fps= 60 q=28.0 Lsize= 215kB time=00:00:09.87 bitrate= 178.2kbits/s dup=0 drop=11 speed=2.02x
video:167kB audio:38kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 4.696121%
[libx264 @ 00000000005ba520] frame I:2 Avg QP:11.38 size:144156
[libx264 @ 00000000005ba520] frame P:74 Avg QP:15.03 size: 194
[libx264 @ 00000000005ba520] frame B:219 Avg QP:24.20 size: 151
[libx264 @ 00000000005ba520] consecutive B-frames: 1.0% 0.0% 0.0% 99.0%
[libx264 @ 00000000005ba520] mb I I16..4: 58.4% 0.0% 41.6%
[libx264 @ 00000000005ba520] mb P I16..4: 0.0% 0.0% 0.0% P16..4: 0.7% 0.0% 0.0% 0.0% 0.0% skip:99.3%
[libx264 @ 00000000005ba520] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 1.1% 0.0% 0.0% direct: 0.0% skip:98.9% L0:27.6% L1:72.4% BI: 0.0%
[libx264 @ 00000000005ba520] coded y,uvDC,uvAC intra: 31.2% 32.8% 29.4% inter: 0.0% 0.1% 0.0%
[libx264 @ 00000000005ba520] i16 v,h,dc,p: 75% 18% 5% 2%
[libx264 @ 00000000005ba520] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 34% 25% 18% 4% 4% 4% 4% 4% 5%
[libx264 @ 00000000005ba520] i8c dc,h,v,p: 68% 15% 13% 4%
[libx264 @ 00000000005ba520] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 00000000005ba520] ref P L0: 99.3% 0.2% 0.3% 0.2%
[libx264 @ 00000000005ba520] ref B L0: 96.4% 3.5% 0.1%
[libx264 @ 00000000005ba520] ref B L1: 99.3% 0.7%
[libx264 @ 00000000005ba520] kb/s:218.52 -
FFMPEG : How to chose a stream from all stream
3 mars 2016, par combo_ciI try to convert a UDP stream (that genrated from DVB signal) to HLS m3u8 file with this code :
ffmpeg -i udp://239.1.2.1:60001 -acodec aac -strict -2 -vcodec libx264 -hls_wrap 100 -f hls /var/www/html/ts/1.m3u8
UDP stream contain 1 channel (in this case IRIB-TV1).
When i run this code ffmpeg detect all of service and channel that streamed from DVB card with this message :
Input #0, mpegts, from 'udp://239.1.2.1:60001':
Duration: N/A, start: 77906.812644, bitrate: N/A
Program 101
Metadata:
service_name : IRIB-TV1
service_provider: IRIB
Stream #0:0[0x3f2]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv, bt470bg), 720x576 [SAR 12:11 DAR 15:11], 25 fps, 50 tbr, 90k tbn, 50 tbc
Stream #0:1[0x3f3](per): Audio: aac_latm ([17][0][0][0] / 0x0011), 48000 Hz, stereo, fltp
Program 102
Metadata:
service_name : IRIB-TV2
service_provider: IRIB
Program 103
Metadata:
service_name : IRIB-TV3
service_provider: IRIB
Program 104
Metadata:
service_name : IRIB-TV4
service_provider: IRIBAs you see ffmpeg finf 4 channel in UDP stream, But VLC play only channel 1(IRIB-TV1).
Now i have have 2 question :
1-Can I get all channel and service via this ffmpeg code ?
2-Can i choose a spesial stream from this ffmpeg code ?(i know that ffmpeg can choose a stream with -map otion but i want to choose other service_name that in output log)
output file is :
ffmpeg version 2.4.3-1ubuntu1~trusty6 Copyright (c) 2000-2014 the FFmpeg developers
built on Nov 22 2014 17:07:19 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
configuration: --prefix=/usr --extra-version='1ubuntu1~trusty6' --build-suffix=-ffmpeg --toolchain=hardened --extra-cflags= --extra-cxxflags= --libdir=/usr/lib/x86_64-linux-gnu --shlibdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --enable-shared --disable-stripping --enable-avresample --enable-avisynth --enable-fontconfig --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-opengl --enable-x11grab --enable-libxvid --enable-libx265 --enable-libdc1394 --enable-libiec61883 --enable-libzvbi --enable-libzmq --enable-frei0r --enable-libx264 --enable-libsoxr --enable-openal --enable-libopencv
libavutil 54. 7.100 / 54. 7.100
libavcodec 56. 1.100 / 56. 1.100
libavformat 56. 4.101 / 56. 4.101
libavdevice 56. 0.100 / 56. 0.100
libavfilter 5. 1.100 / 5. 1.100
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 0.100 / 3. 0.100
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 0.100 / 53. 0.100
Splitting the commandline.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'.
Reading option '-timeout' ... matched as AVOption 'timeout' with argument '6000000'.
Reading option '-i' ... matched as input file with argument 'udp://239.1.2.1:60001?fifo_size=50000'.
Reading option '-acodec' ... matched as option 'acodec' (force audio codec ('copy' to copy stream)) with argument 'copy'.
Reading option '-vcodec' ... matched as option 'vcodec' (force video codec ('copy' to copy stream)) with argument 'copy'.
Reading option '-preset' ... matched as AVOption 'preset' with argument 'ultrafast'.
Reading option '-flags' ... matched as AVOption 'flags' with argument '-global_header'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'hls'.
Reading option '-hls_time' ... matched as AVOption 'hls_time' with argument '20'.
Reading option '-hls_wrap' ... matched as AVOption 'hls_wrap' with argument '5'.
Reading option '/var/www/html/ts/1.m3u8' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option loglevel (set logging level) with argument debug.
Successfully parsed a group of options.
Parsing a group of options: input file udp://239.1.2.1:60001?fifo_size=50000.
Successfully parsed a group of options.
Opening an input file: udp://239.1.2.1:60001?fifo_size=50000.
[udp @ 0x1967040] end receive buffer size reported is 131072
[mpegts @ 0x1977380] Format mpegts probed with size=2048 and score=100
[mpegts @ 0x1977380] stream=0 stream_type=1b pid=3f2 prog_reg_desc=
[mpegts @ 0x1977380] stream=1 stream_type=11 pid=3f3 prog_reg_desc=
[mpegts @ 0x1977380] Before avformat_find_stream_info() pos: 0 bytes read:14476 seeks:0
[mpegts @ 0x1977380] parser not found for codec none, packets or times may be invalid.
[h264 @ 0x199cc60] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0x199cc60] decode_slice_header error
[h264 @ 0x199cc60] no frame!
[h264 @ 0x199cc60] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0x199cc60] decode_slice_header error
[h264 @ 0x199cc60] no frame!
[h264 @ 0x199cc60] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0x199cc60] decode_slice_header error
[h264 @ 0x199cc60] no frame!
[h264 @ 0x199cc60] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0x199cc60] decode_slice_header error
[h264 @ 0x199cc60] no frame!
[h264 @ 0x199cc60] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0x199cc60] decode_slice_header error
[h264 @ 0x199cc60] no frame!
[h264 @ 0x199cc60] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0x199cc60] decode_slice_header error
[h264 @ 0x199cc60] no frame!
[h264 @ 0x199cc60] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0x199cc60] decode_slice_header error
[h264 @ 0x199cc60] no frame!
[h264 @ 0x199cc60] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0x199cc60] decode_slice_header error
[h264 @ 0x199cc60] no frame!
[h264 @ 0x199cc60] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0x199cc60] decode_slice_header error
[h264 @ 0x199cc60] no frame!
[h264 @ 0x199cc60] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0x199cc60] decode_slice_header error
[h264 @ 0x199cc60] no frame!
[h264 @ 0x199cc60] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0x199cc60] decode_slice_header error
[h264 @ 0x199cc60] no frame!
[h264 @ 0x199cc60] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0x199cc60] decode_slice_header error
[h264 @ 0x199cc60] no frame!
[h264 @ 0x199cc60] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0x199cc60] decode_slice_header error
[h264 @ 0x199cc60] no frame!
[h264 @ 0x199cc60] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0x199cc60] decode_slice_header error
[h264 @ 0x199cc60] no frame!
[h264 @ 0x199cc60] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0x199cc60] decode_slice_header error
[h264 @ 0x199cc60] no frame!
[h264 @ 0x199cc60] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0x199cc60] decode_slice_header error
[h264 @ 0x199cc60] no frame!
[h264 @ 0x199cc60] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0x199cc60] decode_slice_header error
[h264 @ 0x199cc60] no frame!
[h264 @ 0x199cc60] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0x199cc60] decode_slice_header error
[h264 @ 0x199cc60] no frame!
[h264 @ 0x199cc60] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0x199cc60] decode_slice_header error
[h264 @ 0x199cc60] no frame!
[h264 @ 0x199cc60] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0x199cc60] decode_slice_header error
[h264 @ 0x199cc60] no frame!
[h264 @ 0x199cc60] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0x199cc60] decode_slice_header error
[h264 @ 0x199cc60] no frame!
[mpegts @ 0x1977380] probing stream 1 pp:2500
[mpegts @ 0x1977380] Probe with size=853, packets=1 detected loas with score=51
[mpegts @ 0x1977380] probed stream 1
[aac_latm @ 0x199e4e0] initializing latmctx
[h264 @ 0x199cc60] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0x199cc60] decode_slice_header error
[h264 @ 0x199cc60] no frame!
[h264 @ 0x199cc60] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0x199cc60] decode_slice_header error
[h264 @ 0x199cc60] no frame!
[h264 @ 0x199cc60] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0x199cc60] decode_slice_header error
[h264 @ 0x199cc60] no frame!
[h264 @ 0x199cc60] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0x199cc60] decode_slice_header error
[h264 @ 0x199cc60] no frame!
[h264 @ 0x199cc60] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0x199cc60] decode_slice_header error
[h264 @ 0x199cc60] no frame!
[h264 @ 0x199cc60] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0x199cc60] decode_slice_header error
[h264 @ 0x199cc60] no frame!
[h264 @ 0x199cc60] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0x199cc60] decode_slice_header error
[h264 @ 0x199cc60] no frame!
[h264 @ 0x199cc60] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0x199cc60] decode_slice_header error
[h264 @ 0x199cc60] no frame!
[h264 @ 0x199cc60] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0x199cc60] decode_slice_header error
[h264 @ 0x199cc60] no frame!
[h264 @ 0x199cc60] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0x199cc60] decode_slice_header error
[h264 @ 0x199cc60] no frame!
[h264 @ 0x199cc60] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0x199cc60] decode_slice_header error
[h264 @ 0x199cc60] no frame!
[h264 @ 0x199cc60] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0x199cc60] decode_slice_header error
[h264 @ 0x199cc60] no frame!
[h264 @ 0x199cc60] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0x199cc60] decode_slice_header error
[h264 @ 0x199cc60] no frame!
[h264 @ 0x199cc60] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0x199cc60] decode_slice_header error
[h264 @ 0x199cc60] no frame!
[h264 @ 0x199cc60] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0x199cc60] decode_slice_header error
[h264 @ 0x199cc60] no frame!
[h264 @ 0x199cc60] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0x199cc60] decode_slice_header error
[h264 @ 0x199cc60] no frame!
[h264 @ 0x199cc60] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0x199cc60] decode_slice_header error
[h264 @ 0x199cc60] no frame!
[h264 @ 0x199cc60] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0x199cc60] decode_slice_header error
[h264 @ 0x199cc60] no frame!
[h264 @ 0x199cc60] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0x199cc60] decode_slice_header error
[h264 @ 0x199cc60] no frame!
[h264 @ 0x199cc60] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0x199cc60] decode_slice_header error
[h264 @ 0x199cc60] no frame!
[h264 @ 0x199cc60] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0x199cc60] decode_slice_header error
[h264 @ 0x199cc60] no frame!
[h264 @ 0x199cc60] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0x199cc60] decode_slice_header error
[h264 @ 0x199cc60] no frame!
[h264 @ 0x199cc60] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0x199cc60] decode_slice_header error
[h264 @ 0x199cc60] no frame!
[h264 @ 0x199cc60] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0x199cc60] decode_slice_header error
[h264 @ 0x199cc60] no frame!
[h264 @ 0x199cc60] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0x199cc60] decode_slice_header error
[h264 @ 0x199cc60] no frame!
[h264 @ 0x199cc60] Current profile doesn't provide more RBSP data in PPS, skipping
[h264 @ 0x199cc60] Frame num gap 397 393
[h264 @ 0x199cc60] Frame num gap 397 394
[h264 @ 0x199cc60] Frame num gap 397 395
[h264 @ 0x199cc60] mmco: unref short failure
Last message repeated 1 times
[h264 @ 0x199cc60] number of reference frames (0+4) exceeds max (3; probably corrupt input), discarding one
[h264 @ 0x199cc60] no picture ooo
[h264 @ 0x199cc60] Increasing reorder buffer to 2
[h264 @ 0x199cc60] no picture ooo
Last message repeated 1 times
[h264 @ 0x199cc60] no picture
Last message repeated 1 times
[h264 @ 0x199cc60] Current profile doesn't provide more RBSP data in PPS, skipping
Last message repeated 3 times
[mpegts @ 0x1977380] max_analyze_duration 5000000 reached at 5034667 microseconds
[mpegts @ 0x1977380] After avformat_find_stream_info() pos: 1142476 bytes read:1143604 seeks:0 frames:397
Input #0, mpegts, from 'udp://239.1.2.1:60001?fifo_size=50000':
Duration: N/A, start: 43581.024200, bitrate: N/A
Program 101
Metadata:
service_name : IRIB-TV1
service_provider: IRIB
Stream #0:0[0x3f2], 274, 1/90000: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv, bt470bg), 720x576 [SAR 12:11 DAR 15:11], 1/50, 25 fps, 50 tbr, 90k tbn, 50 tbc
Stream #0:1[0x3f3](per), 123, 1/90000: Audio: aac_latm ([17][0][0][0] / 0x0011), 48000 Hz, stereo, fltp
Program 102
Metadata:
service_name : IRIB-TV2
service_provider: IRIB
Program 103
Metadata:
service_name : IRIB-TV3
service_provider: IRIB
Program 104
Metadata:
service_name : IRIB-TV4
service_provider: IRIB
Program 105
Metadata:
service_name : IRIB-TV5
service_provider: IRIB
Program 106
Metadata:
service_name : IRINN
service_provider: IRIB
Program 107
Metadata:
service_name : AMOOZESH
service_provider: IRIB
Program 108
Metadata:
service_name : QURAN
service_provider: IRIB
Program 119
Metadata:
service_name : SALAMAT
service_provider: IRIB
Program 120
Metadata:
service_name : NASIM
service_provider: IRIB
Program 151
Metadata:
service_name : RADIO IRAN
service_provider: IRIB
Program 152
Metadata:
service_name : RADIO PAYAM
service_provider: IRIB
Program 153
Metadata:
service_name : RADIO JAVAN
service_provider: IRIB
Program 154
Metadata:
service_name : RADIO MAAREF
service_provider: IRIB
Program 155
Metadata:
service_name : RADIO QURAN
service_provider: IRIB
Program 156
Metadata:
service_name : RADIO FARHANG
service_provider: IRIB
Program 157
Metadata:
service_name : RADIO SALAMAT
service_provider: IRIB
Program 158
Metadata:
service_name : RADIO VARZESH
service_provider: IRIB
Program 159
Metadata:
service_name : RADIO EGHTESAD
service_provider: IRIB
Program 160
Metadata:
service_name : RADIO TEHRAN
service_provider: IRIB
Program 161
Metadata:
service_name : RADIO AVAA
service_provider: IRIB
Program 162
Metadata:
service_name : RADIO NAMAYESH
service_provider: IRIB
Program 163
Metadata:
service_name : RADIO SABA
service_provider: IRIB
Program 164
Metadata:
service_name : English Radio World Service
service_provider: IRIB
Program 166
Metadata:
service_name : Arabic Radio World Service
service_provider: IRIB
Program 167
Metadata:
service_name : RADIO BAHARAN
service_provider: IRIB
Program 169
Metadata:
service_name : RADIO TELAVAT
service_provider: IRIB
Program 170
Metadata:
service_name : RADIO GOFTEGO
service_provider: IRIB
Successfully opened the file.
Parsing a group of options: output file /var/www/html/ts/1.m3u8.
Applying option acodec (force audio codec ('copy' to copy stream)) with argument copy.
Applying option vcodec (force video codec ('copy' to copy stream)) with argument copy.
Applying option f (force format) with argument hls.
Successfully parsed a group of options.
Opening an output file: /var/www/html/ts/1.m3u8.
Successfully opened the file.
[mpegts @ 0x1967180] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead.
Last message repeated 1 times
[mpegts @ 0x1967180] muxrate VBR, pcr every 2 pkts, sdt every 200, pat/pmt every 40 pkts
Output #0, hls, to '/var/www/html/ts/1.m3u8':
Metadata:
encoder : Lavf56.4.101
Stream #0:0, 0, 1/90000: Video: h264 ([27][0][0][0] / 0x001B), yuv420p, 720x576 [SAR 12:11 DAR 15:11], 1/25, q=2-31, 25 fps, 90k tbn, 25 tbc
Stream #0:1(per), 0, 1/90000: Audio: aac_latm ([17][0][0][0] / 0x0011), 48000 Hz, stereo
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[NULL @ 0x199cc60] Current profile doesn't provide more RBSP data in PPS, skipping
[NULL @ 0x199cc60] Current profile doesn't provide more RBSP data in PPS, skipping
[NULL @ 0x199cc60] Current profile doesn't provide more RBSP data in PPS, skipping
[NULL @ 0x199cc60] Current profile doesn't provide more RBSP data in PPS, skipping
[NULL @ 0x199cc60] Current profile doesn't provide more RBSP data in PPS, skipping
[NULL @ 0x199cc60] Current profile doesn't provide more RBSP data in PPS, skipping
[NULL @ 0x199cc60] Current profile doesn't provide more RBSP data in PPS, skipping
[NULL @ 0x199cc60] Current profile doesn't provide more RBSP data in PPS, skipping
[NULL @ 0x199cc60] Current profile doesn't provide more RBSP data in PPS, skipping
[NULL @ 0x199cc60] Current profile doesn't provide more RBSP data in PPS, skipping
[NULL @ 0x199cc60] Current profile doesn't provide more RBSP data in PPS, skipping
[AVIOContext @ 0x19a9860] Statistics: 0 seeks, 896 writeouts=N/A
[hls @ 0x1a65ca0] EXT-X-MEDIA-SEQUENCE:0
[AVIOContext @ 0x1d162e0] Statistics: 0 seeks, 1 writeouts
[AVIOContext @ 0x1966b40] Statistics: 0 seeks, 27 writeouts
[hls @ 0x1a65ca0] EXT-X-MEDIA-SEQUENCE:0
[AVIOContext @ 0x199b7a0] Statistics: 0 seeks, 1 writeouts
frame= 826 fps= 69 q=-1.0 Lsize=N/A time=00:00:20.63 bitrate=N/A
video:2611kB audio:68kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Input file #0 (udp://239.1.2.1:60001?fifo_size=50000):
Input stream #0:0 (video): 872 packets read (2779202 bytes);
Input stream #0:1 (audio): 405 packets read (69222 bytes);
Total: 1277 packets (2848424 bytes) demuxed
Output file #0 (/var/www/html/ts/1.m3u8):
Output stream #0:0 (video): 826 packets muxed (2673485 bytes);
Output stream #0:1 (audio): 405 packets muxed (69222 bytes);
Total: 1231 packets (2742707 bytes) muxed
0 frames successfully decoded, 0 decoding errors
[AVIOContext @ 0x1967ce0] Statistics: 3884832 bytes read, 0 seeks
Received signal 2: terminating. -
how to build ffmpeg with burn text on hls output while maintaining the aspect ratio
26 février 2016, par AameerMy objective is to burn a text(watermark) at a particular time range on the outputed hls video, I also have to change just the height and maintain the aspect ratio which I am able to do but the burning in text part is not working. First the ffmpeg I used is for 14.04 ubuntu, details are here. I don’t think this build supports subtitle (docs) filter which I could have used for my purpose as described here. when i enter ffmpeg into the terminal this is the output
(ffmpeg)aameer@falcon:~/Documents/projects/ffmpeg$ ffmpeg
ffmpeg version N-78590-g5590ab4 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.1)
configuration: --extra-libs=-ldl --prefix=/opt/ffmpeg --mandir=/usr/share/man --enable-avresample --disable-debug --enable-nonfree --enable-gpl --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --disable-decoder=amrnb --disable-decoder=amrwb --enable-libpulse --enable-libfreetype --enable-gnutls --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-libvorbis --enable-libmp3lame --enable-libopus --enable-libvpx --enable-libspeex --enable-libass --enable-avisynth --enable-libsoxr --enable-libxvid --enable-libvidstab
libavutil 55. 18.100 / 55. 18.100
libavcodec 57. 24.103 / 57. 24.103
libavformat 57. 25.100 / 57. 25.100
libavdevice 57. 0.101 / 57. 0.101
libavfilter 6. 32.100 / 6. 32.100
libavresample 3. 0. 0 / 3. 0. 0
libswscale 4. 0.100 / 4. 0.100
libswresample 2. 0.101 / 2. 0.101
libpostproc 54. 0.100 / 54. 0.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...
Use -h to get full help or, even better, run 'man ffmpeg'I tried
(ffmpeg)aameer@falcon:~/Documents/projects/ffmpeg$ ffmpeg -threads 4 -i "input_sintel_trailer_720p.mp4" -profile:v baseline -level 4.0 -vf scale="trunc(360*a/2)*2:360, subtitles='subtitles.srt'" -start_number 0 -hls_time 10 -hls_list_size 0 -f hls videos/4444/index_4444_360_.m3u8
and got an error
[Parsed_subtitles_1 @ 0x2f1b7e0] Shaper: FriBidi 0.19.6 (SIMPLE) HarfBuzz-ng 0.9.27 (COMPLEX)
[Parsed_subtitles_1 @ 0x2f1b7e0] Unable to open subtitles.srt
[AVFilterGraph @ 0x2f1ac00] Error initializing filter 'subtitles' with args 'subtitles.srt'
Error opening filters!then I tried this
(ffmpeg)aameer@falcon:~/Documents/projects/ffmpeg$ ffmpeg -threads 4 -i "input_sintel_trailer_720p.mp4" -profile:v baseline -level 4.0 -vf "scale='trunc(360*a/2)*2:360', drawtext:drawtext" -start_number 0 -hls_time 10 -hls_list_size 0 -f hls videos/4444/index_4444_360_.m3u8
based on an answer here and got this error
[AVFilterGraph @ 0x2695c20] No such filter: 'drawtext:drawtext'
Error opening filters!I tried a static build too which i got from here but still couldn’t make it work. with this static build i tried :
ffmpeg version N-63893-gc69defd Copyright (c) 2000-2014 the FFmpeg developers
built on Jul 16 2014 05:38:01 with gcc 4.6 (Debian 4.6.3-1)
configuration: --prefix=/root/ffmpeg-static/64bit --extra-cflags='-I/root/ffmpeg-static/64bit/include -static' --extra-ldflags='-L/root/ffmpeg-static/64bit/lib -static' --extra-libs='-lxml2 -lexpat -lfreetype' --enable-static --disable-shared --disable-ffserver --disable-doc --enable-bzlib --enable-zlib --enable-postproc --enable-runtime-cpudetect --enable-libx264 --enable-gpl --enable-libtheora --enable-libvorbis --enable-libmp3lame --enable-gray --enable-libass --enable-libfreetype --enable-libopenjpeg --enable-libspeex --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-version3 --enable-libvpx
libavutil 52. 89.100 / 52. 89.100
libavcodec 55. 66.101 / 55. 66.101
libavformat 55. 43.100 / 55. 43.100
libavdevice 55. 13.101 / 55. 13.101
libavfilter 4. 8.100 / 4. 8.100
libswscale 2. 6.100 / 2. 6.100
libswresample 0. 19.100 / 0. 19.100
libpostproc 52. 3.100 / 52. 3.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...
Use -h to get full help or, even better, run 'man ffmpeg'
(ffmpeg)aameer@falcon:~/Documents/projects/ffmpeg$ ./ffmpeg -threads 4 -i "input_sintel_trailer_720p.mp4" -profile:v baseline -level 4.0 -vf scale="trunc(360*a/2)*2:360, subtitles='subtitle.srt'" -start_number 0 -hls_time 10 -hls_list_size 0 -f hls videos/4444/index_4444_360_.m3u8but got an error
Could not write header for output file #0 (incorrect codec parameters ?): No such file or directory
Any help in this regard would be appreciated. I don’t have much experience with compiling , otherwise would have done with support for libass as mentioned in the documentation here
console output after trying the first potential answer :
(ffmpeg)aameer@falcon:~/Documents/projects/ffmpeg$ ls
bbb_sunflower_1080p_30fps_normal.mp4 ffmpeg_log_multiprocess.txt ffmpeg.static.64bit.latest input_sintel_trailer_720p.mp4 watermark.png
encoding_script.sh ffmpeg_log_simple.txt ffprobe subtitle.srt
ffmpeg ffmpeg_log.txt fontconfig videos
(ffmpeg)aameer@falcon:~/Documents/projects/ffmpeg$ ffmpeg -threads 4 -i input_sintel_trailer_720p.mp4 -profile:v baseline -level 4.0 -vf "scale=-2:360,subtitles='subtitle.srt'" -start_number 0 -hls_time 10 -hls_list_size 0 -f hls videos/4444/index_4444_360_.m3u8
ffmpeg version N-78590-g5590ab4 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.1)
configuration: --extra-libs=-ldl --prefix=/opt/ffmpeg --mandir=/usr/share/man --enable-avresample --disable-debug --enable-nonfree --enable-gpl --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --disable-decoder=amrnb --disable-decoder=amrwb --enable-libpulse --enable-libfreetype --enable-gnutls --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-libvorbis --enable-libmp3lame --enable-libopus --enable-libvpx --enable-libspeex --enable-libass --enable-avisynth --enable-libsoxr --enable-libxvid --enable-libvidstab
libavutil 55. 18.100 / 55. 18.100
libavcodec 57. 24.103 / 57. 24.103
libavformat 57. 25.100 / 57. 25.100
libavdevice 57. 0.101 / 57. 0.101
libavfilter 6. 32.100 / 6. 32.100
libavresample 3. 0. 0 / 3. 0. 0
libswscale 4. 0.100 / 4. 0.100
libswresample 2. 0.101 / 2. 0.101
libpostproc 54. 0.100 / 54. 0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'input_sintel_trailer_720p.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
creation_time : 1970-01-01 00:00:00
title : Sintel Trailer
artist : Durian Open Movie Team
encoder : Lavf52.62.0
copyright : (c) copyright Blender Foundation | durian.blender.org
description : Trailer for the Sintel open movie project
Duration: 00:00:52.21, start: 0.000000, bitrate: 1165 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720, 1033 kb/s, 24 fps, 24 tbr, 24 tbn, 48 tbc (default)
Metadata:
creation_time : 1970-01-01 00:00:00
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 126 kb/s (default)
Metadata:
creation_time : 1970-01-01 00:00:00
handler_name : SoundHandler
[Parsed_subtitles_1 @ 0x2bdb700] Shaper: FriBidi 0.19.6 (SIMPLE) HarfBuzz-ng 0.9.27 (COMPLEX)
[Parsed_subtitles_1 @ 0x2bdb700] Using font provider fontconfig
[libx264 @ 0x2bc8b60] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
[libx264 @ 0x2bc8b60] profile Constrained Baseline, level 4.0
Output #0, hls, to 'videos/4444/index_4444_360_.m3u8':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
description : Trailer for the Sintel open movie project
title : Sintel Trailer
artist : Durian Open Movie Team
copyright : (c) copyright Blender Foundation | durian.blender.org
encoder : Lavf57.25.100
Stream #0:0(und): Video: h264 (libx264), yuv420p, 640x360, q=-1--1, 24 fps, 24 tbn, 24 tbc (default)
Metadata:
creation_time : 1970-01-01 00:00:00
handler_name : VideoHandler
encoder : Lavc57.24.103 libx264
Side data:
cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
Stream #0:1(und): Audio: aac (LC), 48000 Hz, stereo, fltp, 128 kb/s (default)
Metadata:
creation_time : 1970-01-01 00:00:00
handler_name : SoundHandler
encoder : Lavc57.24.103 aac
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
Stream #0:1 -> #0:1 (aac (native) -> aac (native))
Could not write header for output file #0 (incorrect codec parameters ?): No such file or directory
[aac @ 0x2bc9ac0] Qavg: -nan
(ffmpeg)aameer@falcon:~/Documents/projects/ffmpeg$