Re: [FFmpeg-user] Ffmpeg Concat Images failure
On Sat, Jul 9, 2016 at 11:54 AM, Vivek Jainwrote: > hey Nicolas/Cley, > > Thanks for correction. Image formats were getting destroyed due to some > optimisations/compressions done on them via a 3rd party service. > Would you know if ffmpeg provides any utility to convert a pdf into images > which could then be fed to create slideshow video? > (snip) Hello Vivek, If ffmpeg is having trouble working with your original source files, or if you need to "explode" a PDF into images beforehand, you might want to try the Convert utility from ImageMagick. Off the top of my head, I can suggest throwing your problematic images into it and converting them to raw bitmaps (.bmp files), and then feed those files into ffmpeg. Regards, Andrew ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Ffmpeg Concat Images failure
Le duodi 22 messidor, an CCXXIV, Vivek Jain a écrit : > Thanks for correction. Image formats were getting destroyed due to some > optimisations/compressions done on them via a 3rd party service. > Would you know if ffmpeg provides any utility to convert a pdf into images > which could then be fed to create slideshow video? No, FFmpeg does not support anything about PDF. The simplest tool for that kind of task would probably be pdftoppm from poppler. > On Sat, Jul 9, 2016 at 7:22 PM, Vivek Jain> wrote: Please remember not to top-post on this mailing-list; if you do not know what it means, look it up. Regards, -- Nicolas George signature.asc Description: Digital signature ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Ffmpeg Concat Images failure
hey Nicolas/Cley, Thanks for correction. Image formats were getting destroyed due to some optimisations/compressions done on them via a 3rd party service. Would you know if ffmpeg provides any utility to convert a pdf into images which could then be fed to create slideshow video? On Sat, Jul 9, 2016 at 7:22 PM, Vivek Jainwrote: > Thank you Nicolas and Cley. Much appreciate your help.. > > On Sat, Jul 9, 2016 at 7:04 PM, Nicolas George wrote: > >> Le duodi 22 messidor, an CCXXIV, Cley Faye a écrit : >> > > Below is the output. I see the below 2 files which errors out are PNG >> > > whereas others are JPEG. I guess that's an issue? >> > >> > I'm still learning about ffmpeg, but what I know is that concat expect >> all >> > the files to have roughly the same layout and codecs. As it is, it is >> > decoding all your files using what's found in the first file (a jpeg), >> so >> > all your files must be jpegs. >> > The same thing happen if you use concat with multiple files with >> clashing >> > audio settings (different rates, different channel layouts, etc): the >> > output is garbled (or just fail to process). >> > >> > Also, although it doesn't matter here, you might want to avoid naming >> your >> > files ".png" if they really are jpegs... >> >> That would have been almost exactly my answer. That was in fact the issue >> I >> suspected when asking for the file output. >> >> I would suggest to re-generate all the files as actual PNGs, since PNG is >> lossless. >> >> Regards, >> >> -- >> Nicolas George >> >> ___ >> ffmpeg-user mailing list >> ffmpeg-user@ffmpeg.org >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >> >> To unsubscribe, visit link above, or email >> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". >> > > > > -- > Thanks, > Vivek > -- Thanks, Vivek ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Ffmpeg Concat Images failure
Thank you Nicolas and Cley. Much appreciate your help.. On Sat, Jul 9, 2016 at 7:04 PM, Nicolas Georgewrote: > Le duodi 22 messidor, an CCXXIV, Cley Faye a écrit : > > > Below is the output. I see the below 2 files which errors out are PNG > > > whereas others are JPEG. I guess that's an issue? > > > > I'm still learning about ffmpeg, but what I know is that concat expect > all > > the files to have roughly the same layout and codecs. As it is, it is > > decoding all your files using what's found in the first file (a jpeg), so > > all your files must be jpegs. > > The same thing happen if you use concat with multiple files with clashing > > audio settings (different rates, different channel layouts, etc): the > > output is garbled (or just fail to process). > > > > Also, although it doesn't matter here, you might want to avoid naming > your > > files ".png" if they really are jpegs... > > That would have been almost exactly my answer. That was in fact the issue I > suspected when asking for the file output. > > I would suggest to re-generate all the files as actual PNGs, since PNG is > lossless. > > Regards, > > -- > Nicolas George > > ___ > ffmpeg-user mailing list > ffmpeg-user@ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". > -- Thanks, Vivek ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Ffmpeg Concat Images failure
2016-07-09 14:39 GMT+02:00 Vivek Jain: > Below is the output. I see the below 2 files which errors out are PNG > whereas others are JPEG. I guess that's an issue? > I'm still learning about ffmpeg, but what I know is that concat expect all the files to have roughly the same layout and codecs. As it is, it is decoding all your files using what's found in the first file (a jpeg), so all your files must be jpegs. The same thing happen if you use concat with multiple files with clashing audio settings (different rates, different channel layouts, etc): the output is garbled (or just fail to process). Also, although it doesn't matter here, you might want to avoid naming your files ".png" if they really are jpegs... ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Ffmpeg Concat Images failure
Hi Nicholas, Below is the output. I see the below 2 files which errors out are PNG whereas others are JPEG. I guess that's an issue? Viveks-MacBook-Pro:imagified Vivek$ file out_* out_1.png: JPEG image data, JFIF standard 1.01 out_10.png: PNG image data, 3000 x 2250, 8-bit/color RGB, non-interlaced out_11.png: JPEG image data, JFIF standard 1.01 out_12.png: JPEG image data, JFIF standard 1.01 out_13.png: JPEG image data, JFIF standard 1.01 out_14.png: JPEG image data, JFIF standard 1.01 out_15.png: PNG image data, 3000 x 2250, 8-bit/color RGB, non-interlaced out_16.png: JPEG image data, JFIF standard 1.01 out_17.png: JPEG image data, JFIF standard 1.01 out_18.png: JPEG image data, JFIF standard 1.01 out_19.png: JPEG image data, JFIF standard 1.01 out_2.png: JPEG image data, JFIF standard 1.01 out_20.png: JPEG image data, JFIF standard 1.01 out_21.png: JPEG image data, JFIF standard 1.01 out_22.png: JPEG image data, JFIF standard 1.01 out_23.png: JPEG image data, JFIF standard 1.01 out_24.png: JPEG image data, JFIF standard 1.01 out_25.png: JPEG image data, JFIF standard 1.01 out_3.png: JPEG image data, JFIF standard 1.01 out_4.png: JPEG image data, JFIF standard 1.01 out_5.png: JPEG image data, JFIF standard 1.01 out_6.png: JPEG image data, JFIF standard 1.01 out_7.png: JPEG image data, JFIF standard 1.01 out_8.png: JPEG image data, JFIF standard 1.01 out_9.png: JPEG image data, JFIF standard 1.01 On Sat, Jul 9, 2016 at 6:02 PM, Nicolas Georgewrote: > Le duodi 22 messidor, an CCXXIV, Vivek Jain a écrit : > > I am trying to create video from images using concat option. It fails for > > some images, below is the detail. I have tried exploring a lot on this > but > > no luck.. > > > [mjpeg @ 0x7fbc0b008a00] invalid id 2306kB time=00:00:05.72 > > bitrate=1440.1kbits/s dup=192 drop=0 speed=0.793x > > > file > > > /Users/Vivek/Desktop/MY_THING/572702262753189307/1446116853251Introtomgt.pptx/imagified/out_1.png > > Can you show the output of the file command on all your input files? > Something like: > > cd > /Users/Vivek/Desktop/MY_THING/572702262753189307/1446116853251Introtomgt.pptx > file out_* > > Regards, > > -- > Nicolas George > > ___ > ffmpeg-user mailing list > ffmpeg-user@ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". > -- Thanks, Vivek ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Ffmpeg Concat Images failure
Le duodi 22 messidor, an CCXXIV, Vivek Jain a écrit : > I am trying to create video from images using concat option. It fails for > some images, below is the detail. I have tried exploring a lot on this but > no luck.. > [mjpeg @ 0x7fbc0b008a00] invalid id 2306kB time=00:00:05.72 > bitrate=1440.1kbits/s dup=192 drop=0 speed=0.793x > file > /Users/Vivek/Desktop/MY_THING/572702262753189307/1446116853251Introtomgt.pptx/imagified/out_1.png Can you show the output of the file command on all your input files? Something like: cd /Users/Vivek/Desktop/MY_THING/572702262753189307/1446116853251Introtomgt.pptx file out_* Regards, -- Nicolas George signature.asc Description: Digital signature ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Ffmpeg Concat Images failure
Hey Cley, PFB entire output. The duration thing has been working... ffmpeg -y -safe 0 -i input_orig.txt -i song.mp3 -c:a copy -pix_fmt yuv444p -shortest mashup.mp4 ffmpeg version 3.0.2 Copyright (c) 2000-2016 the FFmpeg developers built with Apple LLVM version 7.3.0 (clang-703.0.29) configuration: --prefix=/usr/local/Cellar/ffmpeg/3.0.2 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-opencl --enable-libx264 --enable-libmp3lame --enable-libxvid --enable-vda libavutil 55. 17.103 / 55. 17.103 libavcodec 57. 24.102 / 57. 24.102 libavformat57. 25.100 / 57. 25.100 libavdevice57. 0.101 / 57. 0.101 libavfilter 6. 31.100 / 6. 31.100 libavresample 3. 0. 0 / 3. 0. 0 libswscale 4. 0.100 / 4. 0.100 libswresample 2. 0.101 / 2. 0.101 libpostproc54. 0.100 / 54. 0.100 [mjpeg @ 0x7fe5ac018c00] Changing bps to 8 Input #0, concat, from 'input_orig.txt': Duration: 00:00:26.00, start: 0.00, bitrate: 0 kb/s Stream #0:0: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 3000x2250 [SAR 72:72 DAR 4:3], 25 tbr, 25 tbn, 25 tbc [mp3 @ 0x7fe5ac008000] Skipping 0 bytes of junk at 225664. [mjpeg @ 0x7fe5ac010600] Changing bps to 8 Input #1, mp3, from 'song.mp3': Metadata: title : Tumse Milke Dil Ka (Remix)::www.RAAG.ME:: artist : Sonu Nigam album : Kar Le Kar Le Koi Dhamaal::www.RAAG.ME:: genre : Hindi track : 11 date: 2007 Duration: 00:05:33.96, start: 0.023021, bitrate: 133 kb/s Stream #1:0: Audio: mp3, 48000 Hz, stereo, s16p, 128 kb/s Metadata: encoder : LAME3.96r Stream #1:1: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 800x800 [SAR 1:1 DAR 1:1], 90k tbr, 90k tbn, 90k tbc Metadata: title : FRONT_COVER comment : Other file icon [swscaler @ 0x7fe5ad800600] deprecated pixel format used, make sure you did set range correctly [libx264 @ 0x7fe5ac012800] using SAR=1/1 [libx264 @ 0x7fe5ac012800] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2 [libx264 @ 0x7fe5ac012800] profile High 4:4:4 Predictive, level 5.1, 4:4:4 8-bit [libx264 @ 0x7fe5ac012800] 264 - core 148 r2668 fd2c324 - 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=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=4 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=25 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 'mashup.mp4': Metadata: encoder : Lavf57.25.100 Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv444p, 3000x2250 [SAR 1:1 DAR 4:3], q=-1--1, 25 fps, 12800 tbn, 25 tbc Metadata: encoder : Lavc57.24.102 libx264 Side data: unknown side data type 10 (24 bytes) Stream #0:1: Audio: mp3 (i[0][0][0] / 0x0069), 48000 Hz, stereo, 128 kb/s Metadata: encoder : LAME3.96r Stream mapping: Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (libx264)) Stream #1:0 -> #0:1 (copy) Press [q] to stop, [?] for help [mjpeg @ 0x7fe5ada19400] Changing bps to 8 [mjpeg @ 0x7fe5ad848200] Changing bps to 8 Last message repeated 6 times [mjpeg @ 0x7fe5ac81a000] Changing bps to 8 [mjpeg @ 0x7fe5ac811c00] Changing bps to 8 Input stream #0:0 frame changed from size:3000x2250 fmt:yuvj420p to size:3000x2250 fmt:gray [mjpeg @ 0x7fe5ac819c00] Changing bps to 8time=00:00:00.00 bitrate=N/A dup=48 drop=0 speed= 0x [mjpeg @ 0x7fe5ac018600] Changing bps to 8 time=00:00:00.72 bitrate= 0.5kbits/s dup=72 drop=0 speed=0.25x Input stream #0:0 frame changed from size:3000x2250 fmt:gray to size:3000x2250 fmt:yuvj420p [swscaler @ 0x7fe5ae318e00] deprecated pixel format used, make sure you did set range correctly [mjpeg @ 0x7fe5ac018600] Changing bps to 8 time=00:00:02.72 bitrate=1383.3kbits/s dup=120 drop=0 speed=0.615x Input stream #0:0 frame changed from size:3000x2250 fmt:yuvj420p to size:3000x2250 fmt:gray [mjpeg @ 0x7fe5ac018c00] Changing bps to 8 time=00:00:03.72 bitrate=1513.9kbits/s dup=144 drop=0 speed=0.702x [mjpeg @ 0x7fe5af805c00] Changing bps to 8 time=00:00:04.72 bitrate=1522.2kbits/s dup=168 drop=0 speed=0.763x *[mjpeg @ 0x7fe5ac022200] invalid id 2306kB time=00:00:05.72 bitrate=1440.1kbits/s dup=192 drop=0 speed=0.846x* *Error while decoding stream #0:0: Invalid data found when processing input* [mjpeg @
Re: [FFmpeg-user] Ffmpeg Concat Images failure
2016-07-09 6:43 GMT+02:00 Vivek Jain: > Please let me know if entire output or actual images are needed.. Much > thanks... > Entire output is always a good idea. Also, I'm not sure, but I don't think 'duration' is used that way in a concat file. Complete output might confirm this. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".