From gerardojuarez at buyteknet.info Sat Oct 1 00:16:04 2011 From: gerardojuarez at buyteknet.info (gerardo Juarez) Date: Fri, 30 Sep 2011 17:16:04 -0500 Subject: [FFmpeg-user] Audio lost In-Reply-To: References: Message-ID: <4E863FA4.7000503@buyteknet.info> SaToNiO wrote: > Hi, > > I'm trying to convert a file to other format (mpg to concatenate > after) and i've noticed the audio track is missing in the converted > file. > > look: > > satonio at satonio-laptop:~$ ffmpeg -i salida2.mp4 -s 352x288 -y salida.3gp > ffmpeg version N-33094-gecf31a6, Copyright (c) 2000-2011 the FFmpeg developers > built on Sep 29 2011 19:39:35 with gcc 4.4.3 > configuration: --enable-gpl --enable-libfaac --enable-libmp3lame > --enable-libopencore-amrnb --enable-libopencore-amrwb > --enable-libtheora --enable-libvorbis --enable-libx264 > --enable-libxvid --enable-nonfree --enable-postproc --enable-version3 > --enable-x11grab > libavutil 51. 18. 0 / 51. 18. 0 > libavcodec 53. 18. 0 / 53. 18. 0 > libavformat 53. 13. 0 / 53. 13. 0 > libavdevice 53. 4. 0 / 53. 4. 0 > libavfilter 2. 43. 6 / 2. 43. 6 > libswscale 2. 1. 0 / 2. 1. 0 > libpostproc 51. 2. 0 / 51. 2. 0 > [mov,mp4,m4a,3gp,3g2,mj2 @ 0x1950780] multiple edit list entries, a/v > desync might occur, patch welcome > Last message repeated 2 times > [mov,mp4,m4a,3gp,3g2,mj2 @ 0x1950780] stream 1, missing mandatory > atoms, broken header > [mov,mp4,m4a,3gp,3g2,mj2 @ 0x1950780] multiple edit list entries, a/v > desync might occur, patch welcome > [mov,mp4,m4a,3gp,3g2,mj2 @ 0x1950780] stream 3, missing mandatory > atoms, broken header > [mov,mp4,m4a,3gp,3g2,mj2 @ 0x1950780] max_analyze_duration 5000000 > reached at 5020000 > > Seems stream 0 codec frame rate differs from container frame rate: > 600.00 (600/1) -> 150.00 (150/1) > Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'salida2.mp4': > Metadata: > major_brand : 3gp5 > minor_version : 256 > compatible_brands: 3gp53gp4isom > creation_time : 2011-09-29 17:43:06 > Duration: 00:00:59.36, start: 0.000000, bitrate: 1000 kb/s > Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, > 864x488, 920 kb/s, 20.01 fps, 150 tbr, 300 tbn, 600 tbc > Metadata: > creation_time : 1945-09-21 14:05:41 > Stream #0:1(eng): Data: none (stts / 0x73747473) > Metadata: > creation_time : 1945-09-21 14:05:41 > Stream #0:2(eng): Audio: pcm_mulaw (ulaw / 0x77616C75), 8000 Hz, 1 > channels, s16, 64 kb/s > Metadata: > creation_time : 1945-09-21 14:05:41 > Stream #0:3(eng): Data: none (stts / 0x73747473) > Metadata: > creation_time : 1945-09-21 14:05:41 > [buffer @ 0x197af00] w:864 h:488 pixfmt:yuv420p tb:1/1000000 sar:0/1 sws_param: > [scale @ 0x194fea0] w:864 h:488 fmt:yuv420p -> w:352 h:288 fmt:yuv420p flags:0x4 > [libopencore_amrnb @ 0x194edc0] bitrate not supported: use one of > 4.75k, 5.15k, 5.90k, 6.70k, 7.40k, 7.95k, 10.20k, 12.20k, using 12.20k > Output #0, 3gp, to 'salida.3gp': > Metadata: > major_brand : 3gp5 > minor_version : 256 > compatible_brands: 3gp53gp4isom > creation_time : 2011-09-29 17:43:06 > encoder : Lavf53.13.0 > Stream #0:0(eng): Video: h263 (s263 / 0x33363273), yuv420p, > 352x288, q=2-31, 200 kb/s, 150 tbn, 150 tbc > Metadata: > creation_time : 1945-09-21 14:05:41 > Stream #0:1(eng): Audio: amr_nb (samr / 0x726D6173), 8000 Hz, 1 > channels, s16, 128 kb/s > Metadata: > creation_time : 1945-09-21 14:05:41 > Stream mapping: > Stream #0.0 -> #0.0 (h264 -> h263) > Stream #0.2 -> #0.1 (pcm_mulaw -> libopencore_amrnb) > Press [q] to stop, [?] for help > [h263 @ 0x194b040] warning, clipping 1 dct coefficients to -127..127 > Last message repeated 7 times > frame= 8904 fps=770 q=31.0 Lsize= 4016kB time=00:00:00.00 bitrate= > 0.0kbits/s dup=7716 drop=0 > video:3943kB audio:0kB global headers:0kB muxing overhead 1.853415% > > And after: > satonio at satonio-laptop:~$ ffmpeg -i salida.3gp > ffmpeg version N-33094-gecf31a6, Copyright (c) 2000-2011 the FFmpeg developers > built on Sep 29 2011 19:39:35 with gcc 4.4.3 > configuration: --enable-gpl --enable-libfaac --enable-libmp3lame > --enable-libopencore-amrnb --enable-libopencore-amrwb > --enable-libtheora --enable-libvorbis --enable-libx264 > --enable-libxvid --enable-nonfree --enable-postproc --enable-version3 > --enable-x11grab > libavutil 51. 18. 0 / 51. 18. 0 > libavcodec 53. 18. 0 / 53. 18. 0 > libavformat 53. 13. 0 / 53. 13. 0 > libavdevice 53. 4. 0 / 53. 4. 0 > libavfilter 2. 43. 6 / 2. 43. 6 > libswscale 2. 1. 0 / 2. 1. 0 > libpostproc 51. 2. 0 / 51. 2. 0 > > Seems stream 0 codec frame rate differs from container frame rate: > 29.97 (30000/1001) -> 150.00 (150/1) > Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'salida.3gp': > Metadata: > major_brand : 3gp4 > minor_version : 512 > compatible_brands: isomiso23gp4 > creation_time : 2011-09-28 23:00:00 > Duration: 00:00:59.36, start: 0.000000, bitrate: 554 kb/s > Stream #0:0(eng): Video: h263 (s263 / 0x33363273), yuv420p, > 352x288 [SAR 12:11 DAR 4:3], 544 kb/s, 150 fps, 150 tbr, 150 tbn, > 29.97 tbc > Metadata: > creation_time : 2011-09-28 23:00:00 > At least one output file must be specified > > It doesn't work neither converting it to mpg, avi, etc etc and all > ends without audio. > > Also, i've noticed that those videos doesn't have sound played with > mplayer (but with vlc work well). > > Thanks > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > Streams 2 & 3 have broken headers. Have you tried mapping the streams (-map -map 0.0:0.0 -map 0.1:0.1...) There seem to be multiple issues with the creation of the original file: creation_time : 1945-09-21 14:05:41 (!!!) Was there digital video at the end of WWII? ;-) From satonio at gmail.com Sat Oct 1 01:17:14 2011 From: satonio at gmail.com (satonio) Date: Sat, 01 Oct 2011 01:17:14 +0200 Subject: [FFmpeg-user] Audio lost In-Reply-To: <4E863FA4.7000503@buyteknet.info> References: <4E863FA4.7000503@buyteknet.info> Message-ID: <1317424634.13054.55.camel@toshiba> Just the year is wrong and it's because i didn't changed it. It was recorded 2011-09-21 14:05:41. If i try: satonio at toshiba:~/videos$ ffmpeg -i input1.mp4 -vcodec copy -map 0:0 -map 0:1 -y -acodec copy out.mkv I get: ffmpeg version N-33136-g812010c, Copyright (c) 2000-2011 the FFmpeg developers built on Oct 1 2011 00:48:53 with gcc 4.4.3 configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-nonfree --enable-postproc --enable-version3 --enable-x11grab libavutil 51. 18. 0 / 51. 18. 0 libavcodec 53. 19. 0 / 53. 19. 0 libavformat 53. 13. 0 / 53. 13. 0 libavdevice 53. 4. 0 / 53. 4. 0 libavfilter 2. 43. 6 / 2. 43. 6 libswscale 2. 1. 0 / 2. 1. 0 libpostproc 51. 2. 0 / 51. 2. 0 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x96adaa0] multiple edit list entries, a/v desync might occur, patch welcome Last message repeated 2 times [mov,mp4,m4a,3gp,3g2,mj2 @ 0x96adaa0] stream 1, missing mandatory atoms, broken header [mov,mp4,m4a,3gp,3g2,mj2 @ 0x96adaa0] multiple edit list entries, a/v desync might occur, patch welcome [mov,mp4,m4a,3gp,3g2,mj2 @ 0x96adaa0] stream 3, missing mandatory atoms, broken header [mov,mp4,m4a,3gp,3g2,mj2 @ 0x96adaa0] max_analyze_duration 5000000 reached at 5020000 Seems stream 0 codec frame rate differs from container frame rate: 600.00 (600/1) -> 150.00 (150/1) Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'input1.mp4': Metadata: major_brand : 3gp5 minor_version : 256 compatible_brands: 3gp53gp4isom creation_time : 2011-09-29 17:43:06 Duration: 00:00:59.36, start: 0.000000, bitrate: 1000 kb/s Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 864x488, 920 kb/s, 20.01 fps, 150 tbr, 300 tbn, 600 tbc Metadata: creation_time : 1945-09-21 14:05:41 Stream #0:1(eng): Data: none (stts / 0x73747473) Metadata: creation_time : 1945-09-21 14:05:41 Stream #0:2(eng): Audio: pcm_mulaw (ulaw / 0x77616C75), 8000 Hz, 1 channels, s16, 64 kb/s Metadata: creation_time : 1945-09-21 14:05:41 Stream #0:3(eng): Data: none (stts / 0x73747473) Metadata: creation_time : 1945-09-21 14:05:41 Data stream encoding not supported yet (only streamcopy) Also i get the same mapping 0:3 and not with 0:2 but i don't get the sound even if i tell it to copy the stream. The same happens if i try to map 0:3.0:1 or something like that. Note i'm using now a newer version: ffmpeg version N-33136-g812010c, Copyright (c) 2000-2011 the FFmpeg developers built on Oct 1 2011 00:48:53 with gcc 4.4.3 Thanks in advance. El vie, 30-09-2011 a las 17:16 -0500, gerardo Juarez escribi?: > SaToNiO wrote: > > Hi, > > > > I'm trying to convert a file to other format (mpg to concatenate > > after) and i've noticed the audio track is missing in the converted > > file. > > > > look: > > > > satonio at satonio-laptop:~$ ffmpeg -i salida2.mp4 -s 352x288 -y salida.3gp > > ffmpeg version N-33094-gecf31a6, Copyright (c) 2000-2011 the FFmpeg developers > > built on Sep 29 2011 19:39:35 with gcc 4.4.3 > > configuration: --enable-gpl --enable-libfaac --enable-libmp3lame > > --enable-libopencore-amrnb --enable-libopencore-amrwb > > --enable-libtheora --enable-libvorbis --enable-libx264 > > --enable-libxvid --enable-nonfree --enable-postproc --enable-version3 > > --enable-x11grab > > libavutil 51. 18. 0 / 51. 18. 0 > > libavcodec 53. 18. 0 / 53. 18. 0 > > libavformat 53. 13. 0 / 53. 13. 0 > > libavdevice 53. 4. 0 / 53. 4. 0 > > libavfilter 2. 43. 6 / 2. 43. 6 > > libswscale 2. 1. 0 / 2. 1. 0 > > libpostproc 51. 2. 0 / 51. 2. 0 > > [mov,mp4,m4a,3gp,3g2,mj2 @ 0x1950780] multiple edit list entries, a/v > > desync might occur, patch welcome > > Last message repeated 2 times > > [mov,mp4,m4a,3gp,3g2,mj2 @ 0x1950780] stream 1, missing mandatory > > atoms, broken header > > [mov,mp4,m4a,3gp,3g2,mj2 @ 0x1950780] multiple edit list entries, a/v > > desync might occur, patch welcome > > [mov,mp4,m4a,3gp,3g2,mj2 @ 0x1950780] stream 3, missing mandatory > > atoms, broken header > > [mov,mp4,m4a,3gp,3g2,mj2 @ 0x1950780] max_analyze_duration 5000000 > > reached at 5020000 > > > > Seems stream 0 codec frame rate differs from container frame rate: > > 600.00 (600/1) -> 150.00 (150/1) > > Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'salida2.mp4': > > Metadata: > > major_brand : 3gp5 > > minor_version : 256 > > compatible_brands: 3gp53gp4isom > > creation_time : 2011-09-29 17:43:06 > > Duration: 00:00:59.36, start: 0.000000, bitrate: 1000 kb/s > > Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, > > 864x488, 920 kb/s, 20.01 fps, 150 tbr, 300 tbn, 600 tbc > > Metadata: > > creation_time : 1945-09-21 14:05:41 > > Stream #0:1(eng): Data: none (stts / 0x73747473) > > Metadata: > > creation_time : 1945-09-21 14:05:41 > > Stream #0:2(eng): Audio: pcm_mulaw (ulaw / 0x77616C75), 8000 Hz, 1 > > channels, s16, 64 kb/s > > Metadata: > > creation_time : 1945-09-21 14:05:41 > > Stream #0:3(eng): Data: none (stts / 0x73747473) > > Metadata: > > creation_time : 1945-09-21 14:05:41 > > [buffer @ 0x197af00] w:864 h:488 pixfmt:yuv420p tb:1/1000000 sar:0/1 sws_param: > > [scale @ 0x194fea0] w:864 h:488 fmt:yuv420p -> w:352 h:288 fmt:yuv420p flags:0x4 > > [libopencore_amrnb @ 0x194edc0] bitrate not supported: use one of > > 4.75k, 5.15k, 5.90k, 6.70k, 7.40k, 7.95k, 10.20k, 12.20k, using 12.20k > > Output #0, 3gp, to 'salida.3gp': > > Metadata: > > major_brand : 3gp5 > > minor_version : 256 > > compatible_brands: 3gp53gp4isom > > creation_time : 2011-09-29 17:43:06 > > encoder : Lavf53.13.0 > > Stream #0:0(eng): Video: h263 (s263 / 0x33363273), yuv420p, > > 352x288, q=2-31, 200 kb/s, 150 tbn, 150 tbc > > Metadata: > > creation_time : 1945-09-21 14:05:41 > > Stream #0:1(eng): Audio: amr_nb (samr / 0x726D6173), 8000 Hz, 1 > > channels, s16, 128 kb/s > > Metadata: > > creation_time : 1945-09-21 14:05:41 > > Stream mapping: > > Stream #0.0 -> #0.0 (h264 -> h263) > > Stream #0.2 -> #0.1 (pcm_mulaw -> libopencore_amrnb) > > Press [q] to stop, [?] for help > > [h263 @ 0x194b040] warning, clipping 1 dct coefficients to -127..127 > > Last message repeated 7 times > > frame= 8904 fps=770 q=31.0 Lsize= 4016kB time=00:00:00.00 bitrate= > > 0.0kbits/s dup=7716 drop=0 > > video:3943kB audio:0kB global headers:0kB muxing overhead 1.853415% > > > > And after: > > satonio at satonio-laptop:~$ ffmpeg -i salida.3gp > > ffmpeg version N-33094-gecf31a6, Copyright (c) 2000-2011 the FFmpeg developers > > built on Sep 29 2011 19:39:35 with gcc 4.4.3 > > configuration: --enable-gpl --enable-libfaac --enable-libmp3lame > > --enable-libopencore-amrnb --enable-libopencore-amrwb > > --enable-libtheora --enable-libvorbis --enable-libx264 > > --enable-libxvid --enable-nonfree --enable-postproc --enable-version3 > > --enable-x11grab > > libavutil 51. 18. 0 / 51. 18. 0 > > libavcodec 53. 18. 0 / 53. 18. 0 > > libavformat 53. 13. 0 / 53. 13. 0 > > libavdevice 53. 4. 0 / 53. 4. 0 > > libavfilter 2. 43. 6 / 2. 43. 6 > > libswscale 2. 1. 0 / 2. 1. 0 > > libpostproc 51. 2. 0 / 51. 2. 0 > > > > Seems stream 0 codec frame rate differs from container frame rate: > > 29.97 (30000/1001) -> 150.00 (150/1) > > Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'salida.3gp': > > Metadata: > > major_brand : 3gp4 > > minor_version : 512 > > compatible_brands: isomiso23gp4 > > creation_time : 2011-09-28 23:00:00 > > Duration: 00:00:59.36, start: 0.000000, bitrate: 554 kb/s > > Stream #0:0(eng): Video: h263 (s263 / 0x33363273), yuv420p, > > 352x288 [SAR 12:11 DAR 4:3], 544 kb/s, 150 fps, 150 tbr, 150 tbn, > > 29.97 tbc > > Metadata: > > creation_time : 2011-09-28 23:00:00 > > At least one output file must be specified > > > > It doesn't work neither converting it to mpg, avi, etc etc and all > > ends without audio. > > > > Also, i've noticed that those videos doesn't have sound played with > > mplayer (but with vlc work well). > > > > Thanks > > _______________________________________________ > > ffmpeg-user mailing list > > ffmpeg-user at ffmpeg.org > > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > > > > Streams 2 & 3 have broken headers. Have you tried mapping the streams > (-map -map 0.0:0.0 -map 0.1:0.1...) > There seem to be multiple issues with the creation of the original file: > creation_time : 1945-09-21 14:05:41 (!!!) Was there digital video at > the end of WWII? ;-) > > > > > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From gerardojuarez at buyteknet.info Sat Oct 1 02:20:41 2011 From: gerardojuarez at buyteknet.info (gerardo Juarez) Date: Fri, 30 Sep 2011 19:20:41 -0500 Subject: [FFmpeg-user] Audio lost In-Reply-To: <1317424634.13054.55.camel@toshiba> References: <4E863FA4.7000503@buyteknet.info> <1317424634.13054.55.camel@toshiba> Message-ID: <4E865CD9.9060305@buyteknet.info> satonio wrote: > Just the year is wrong and it's because i didn't changed it. It was > recorded 2011-09-21 14:05:41. If i try: > > > satonio at toshiba:~/videos$ ffmpeg -i input1.mp4 -vcodec copy -map 0:0 > -map 0:1 -y -acodec copy out.mkv > > I get: > > ffmpeg version N-33136-g812010c, Copyright (c) 2000-2011 the FFmpeg > developers > built on Oct 1 2011 00:48:53 with gcc 4.4.3 > configuration: --enable-gpl --enable-libfaac --enable-libmp3lame > --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora > --enable-libvorbis --enable-libx264 --enable-libxvid --enable-nonfree > --enable-postproc --enable-version3 --enable-x11grab > libavutil 51. 18. 0 / 51. 18. 0 > libavcodec 53. 19. 0 / 53. 19. 0 > libavformat 53. 13. 0 / 53. 13. 0 > libavdevice 53. 4. 0 / 53. 4. 0 > libavfilter 2. 43. 6 / 2. 43. 6 > libswscale 2. 1. 0 / 2. 1. 0 > libpostproc 51. 2. 0 / 51. 2. 0 > [mov,mp4,m4a,3gp,3g2,mj2 @ 0x96adaa0] multiple edit list entries, a/v > desync might occur, patch welcome > Last message repeated 2 times > [mov,mp4,m4a,3gp,3g2,mj2 @ 0x96adaa0] stream 1, missing mandatory atoms, > broken header > [mov,mp4,m4a,3gp,3g2,mj2 @ 0x96adaa0] multiple edit list entries, a/v > desync might occur, patch welcome > [mov,mp4,m4a,3gp,3g2,mj2 @ 0x96adaa0] stream 3, missing mandatory atoms, > broken header > [mov,mp4,m4a,3gp,3g2,mj2 @ 0x96adaa0] max_analyze_duration 5000000 > reached at 5020000 > > Seems stream 0 codec frame rate differs from container frame rate: > 600.00 (600/1) -> 150.00 (150/1) > Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'input1.mp4': > Metadata: > major_brand : 3gp5 > minor_version : 256 > compatible_brands: 3gp53gp4isom > creation_time : 2011-09-29 17:43:06 > Duration: 00:00:59.36, start: 0.000000, bitrate: 1000 kb/s > Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, > 864x488, 920 kb/s, 20.01 fps, 150 tbr, 300 tbn, 600 tbc > Metadata: > creation_time : 1945-09-21 14:05:41 > Stream #0:1(eng): Data: none (stts / 0x73747473) > Metadata: > creation_time : 1945-09-21 14:05:41 > Stream #0:2(eng): Audio: pcm_mulaw (ulaw / 0x77616C75), 8000 Hz, 1 > channels, s16, 64 kb/s > Metadata: > creation_time : 1945-09-21 14:05:41 > Stream #0:3(eng): Data: none (stts / 0x73747473) > Metadata: > creation_time : 1945-09-21 14:05:41 > Data stream encoding not supported yet (only streamcopy) > > Also i get the same mapping 0:3 and not with 0:2 but i don't get the > sound even if i tell it to copy the stream. The same happens if i try to > map 0:3.0:1 or something like that. > > Note i'm using now a newer version: > > ffmpeg version N-33136-g812010c, Copyright (c) 2000-2011 the FFmpeg > developers > built on Oct 1 2011 00:48:53 with gcc 4.4.3 > > Thanks in advance. > > El vie, 30-09-2011 a las 17:16 -0500, gerardo Juarez escribi?: > > >> SaToNiO wrote: >> >>> Hi, >>> >>> I'm trying to convert a file to other format (mpg to concatenate >>> after) and i've noticed the audio track is missing in the converted >>> file. >>> >>> look: >>> >>> satonio at satonio-laptop:~$ ffmpeg -i salida2.mp4 -s 352x288 -y salida.3gp >>> ffmpeg version N-33094-gecf31a6, Copyright (c) 2000-2011 the FFmpeg developers >>> built on Sep 29 2011 19:39:35 with gcc 4.4.3 >>> configuration: --enable-gpl --enable-libfaac --enable-libmp3lame >>> --enable-libopencore-amrnb --enable-libopencore-amrwb >>> --enable-libtheora --enable-libvorbis --enable-libx264 >>> --enable-libxvid --enable-nonfree --enable-postproc --enable-version3 >>> --enable-x11grab >>> libavutil 51. 18. 0 / 51. 18. 0 >>> libavcodec 53. 18. 0 / 53. 18. 0 >>> libavformat 53. 13. 0 / 53. 13. 0 >>> libavdevice 53. 4. 0 / 53. 4. 0 >>> libavfilter 2. 43. 6 / 2. 43. 6 >>> libswscale 2. 1. 0 / 2. 1. 0 >>> libpostproc 51. 2. 0 / 51. 2. 0 >>> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x1950780] multiple edit list entries, a/v >>> desync might occur, patch welcome >>> Last message repeated 2 times >>> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x1950780] stream 1, missing mandatory >>> atoms, broken header >>> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x1950780] multiple edit list entries, a/v >>> desync might occur, patch welcome >>> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x1950780] stream 3, missing mandatory >>> atoms, broken header >>> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x1950780] max_analyze_duration 5000000 >>> reached at 5020000 >>> >>> Seems stream 0 codec frame rate differs from container frame rate: >>> 600.00 (600/1) -> 150.00 (150/1) >>> Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'salida2.mp4': >>> Metadata: >>> major_brand : 3gp5 >>> minor_version : 256 >>> compatible_brands: 3gp53gp4isom >>> creation_time : 2011-09-29 17:43:06 >>> Duration: 00:00:59.36, start: 0.000000, bitrate: 1000 kb/s >>> Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, >>> 864x488, 920 kb/s, 20.01 fps, 150 tbr, 300 tbn, 600 tbc >>> Metadata: >>> creation_time : 1945-09-21 14:05:41 >>> Stream #0:1(eng): Data: none (stts / 0x73747473) >>> Metadata: >>> creation_time : 1945-09-21 14:05:41 >>> Stream #0:2(eng): Audio: pcm_mulaw (ulaw / 0x77616C75), 8000 Hz, 1 >>> channels, s16, 64 kb/s >>> Metadata: >>> creation_time : 1945-09-21 14:05:41 >>> Stream #0:3(eng): Data: none (stts / 0x73747473) >>> Metadata: >>> creation_time : 1945-09-21 14:05:41 >>> [buffer @ 0x197af00] w:864 h:488 pixfmt:yuv420p tb:1/1000000 sar:0/1 sws_param: >>> [scale @ 0x194fea0] w:864 h:488 fmt:yuv420p -> w:352 h:288 fmt:yuv420p flags:0x4 >>> [libopencore_amrnb @ 0x194edc0] bitrate not supported: use one of >>> 4.75k, 5.15k, 5.90k, 6.70k, 7.40k, 7.95k, 10.20k, 12.20k, using 12.20k >>> Output #0, 3gp, to 'salida.3gp': >>> Metadata: >>> major_brand : 3gp5 >>> minor_version : 256 >>> compatible_brands: 3gp53gp4isom >>> creation_time : 2011-09-29 17:43:06 >>> encoder : Lavf53.13.0 >>> Stream #0:0(eng): Video: h263 (s263 / 0x33363273), yuv420p, >>> 352x288, q=2-31, 200 kb/s, 150 tbn, 150 tbc >>> Metadata: >>> creation_time : 1945-09-21 14:05:41 >>> Stream #0:1(eng): Audio: amr_nb (samr / 0x726D6173), 8000 Hz, 1 >>> channels, s16, 128 kb/s >>> Metadata: >>> creation_time : 1945-09-21 14:05:41 >>> Stream mapping: >>> Stream #0.0 -> #0.0 (h264 -> h263) >>> Stream #0.2 -> #0.1 (pcm_mulaw -> libopencore_amrnb) >>> Press [q] to stop, [?] for help >>> [h263 @ 0x194b040] warning, clipping 1 dct coefficients to -127..127 >>> Last message repeated 7 times >>> frame= 8904 fps=770 q=31.0 Lsize= 4016kB time=00:00:00.00 bitrate= >>> 0.0kbits/s dup=7716 drop=0 >>> video:3943kB audio:0kB global headers:0kB muxing overhead 1.853415% >>> >>> And after: >>> satonio at satonio-laptop:~$ ffmpeg -i salida.3gp >>> ffmpeg version N-33094-gecf31a6, Copyright (c) 2000-2011 the FFmpeg developers >>> built on Sep 29 2011 19:39:35 with gcc 4.4.3 >>> configuration: --enable-gpl --enable-libfaac --enable-libmp3lame >>> --enable-libopencore-amrnb --enable-libopencore-amrwb >>> --enable-libtheora --enable-libvorbis --enable-libx264 >>> --enable-libxvid --enable-nonfree --enable-postproc --enable-version3 >>> --enable-x11grab >>> libavutil 51. 18. 0 / 51. 18. 0 >>> libavcodec 53. 18. 0 / 53. 18. 0 >>> libavformat 53. 13. 0 / 53. 13. 0 >>> libavdevice 53. 4. 0 / 53. 4. 0 >>> libavfilter 2. 43. 6 / 2. 43. 6 >>> libswscale 2. 1. 0 / 2. 1. 0 >>> libpostproc 51. 2. 0 / 51. 2. 0 >>> >>> Seems stream 0 codec frame rate differs from container frame rate: >>> 29.97 (30000/1001) -> 150.00 (150/1) >>> Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'salida.3gp': >>> Metadata: >>> major_brand : 3gp4 >>> minor_version : 512 >>> compatible_brands: isomiso23gp4 >>> creation_time : 2011-09-28 23:00:00 >>> Duration: 00:00:59.36, start: 0.000000, bitrate: 554 kb/s >>> Stream #0:0(eng): Video: h263 (s263 / 0x33363273), yuv420p, >>> 352x288 [SAR 12:11 DAR 4:3], 544 kb/s, 150 fps, 150 tbr, 150 tbn, >>> 29.97 tbc >>> Metadata: >>> creation_time : 2011-09-28 23:00:00 >>> At least one output file must be specified >>> >>> It doesn't work neither converting it to mpg, avi, etc etc and all >>> ends without audio. >>> >>> Also, i've noticed that those videos doesn't have sound played with >>> mplayer (but with vlc work well). >>> >>> Thanks >>> _______________________________________________ >>> ffmpeg-user mailing list >>> ffmpeg-user at ffmpeg.org >>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >>> >>> >>> >> Streams 2 & 3 have broken headers. Have you tried mapping the streams >> (-map -map 0.0:0.0 -map 0.1:0.1...) >> There seem to be multiple issues with the creation of the original file: >> creation_time : 1945-09-21 14:05:41 (!!!) Was there digital video at >> the end of WWII? ;-) >> >> >> >> >> >> >> _______________________________________________ >> ffmpeg-user mailing list >> ffmpeg-user at ffmpeg.org >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >> > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > The relevant lines are: mov,mp4,m4a,3gp,3g2,mj2 @ 0x1950780] stream 1, missing mandatory atoms, broken header [mov,mp4,m4a,3gp,3g2,mj2 @ 0x1950780] stream 3, missing mandatory atoms, broken header While the video stream seems to be ok, streams 1 and 3 are not well formed. My guess is FFmpeg simply refuses to process these inputs because it cannot read what they are. The problem comes probably from the source of the material. Gerardo From satonio at gmail.com Sat Oct 1 02:35:34 2011 From: satonio at gmail.com (satonio) Date: Sat, 01 Oct 2011 02:35:34 +0200 Subject: [FFmpeg-user] Audio lost In-Reply-To: <4E865CD9.9060305@buyteknet.info> References: <4E863FA4.7000503@buyteknet.info> <1317424634.13054.55.camel@toshiba> <4E865CD9.9060305@buyteknet.info> Message-ID: <1317429334.13054.60.camel@toshiba> El vie, 30-09-2011 a las 19:20 -0500, gerardo Juarez escribi?: > satonio wrote: > > Just the year is wrong and it's because i didn't changed it. It was > > recorded 2011-09-21 14:05:41. If i try: > > > > > > satonio at toshiba:~/videos$ ffmpeg -i input1.mp4 -vcodec copy -map 0:0 > > -map 0:1 -y -acodec copy out.mkv > > > > I get: > > > > ffmpeg version N-33136-g812010c, Copyright (c) 2000-2011 the FFmpeg > > developers > > built on Oct 1 2011 00:48:53 with gcc 4.4.3 > > configuration: --enable-gpl --enable-libfaac --enable-libmp3lame > > --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora > > --enable-libvorbis --enable-libx264 --enable-libxvid --enable-nonfree > > --enable-postproc --enable-version3 --enable-x11grab > > libavutil 51. 18. 0 / 51. 18. 0 > > libavcodec 53. 19. 0 / 53. 19. 0 > > libavformat 53. 13. 0 / 53. 13. 0 > > libavdevice 53. 4. 0 / 53. 4. 0 > > libavfilter 2. 43. 6 / 2. 43. 6 > > libswscale 2. 1. 0 / 2. 1. 0 > > libpostproc 51. 2. 0 / 51. 2. 0 > > [mov,mp4,m4a,3gp,3g2,mj2 @ 0x96adaa0] multiple edit list entries, a/v > > desync might occur, patch welcome > > Last message repeated 2 times > > [mov,mp4,m4a,3gp,3g2,mj2 @ 0x96adaa0] stream 1, missing mandatory atoms, > > broken header > > [mov,mp4,m4a,3gp,3g2,mj2 @ 0x96adaa0] multiple edit list entries, a/v > > desync might occur, patch welcome > > [mov,mp4,m4a,3gp,3g2,mj2 @ 0x96adaa0] stream 3, missing mandatory atoms, > > broken header > > [mov,mp4,m4a,3gp,3g2,mj2 @ 0x96adaa0] max_analyze_duration 5000000 > > reached at 5020000 > > > > Seems stream 0 codec frame rate differs from container frame rate: > > 600.00 (600/1) -> 150.00 (150/1) > > Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'input1.mp4': > > Metadata: > > major_brand : 3gp5 > > minor_version : 256 > > compatible_brands: 3gp53gp4isom > > creation_time : 2011-09-29 17:43:06 > > Duration: 00:00:59.36, start: 0.000000, bitrate: 1000 kb/s > > Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, > > 864x488, 920 kb/s, 20.01 fps, 150 tbr, 300 tbn, 600 tbc > > Metadata: > > creation_time : 1945-09-21 14:05:41 > > Stream #0:1(eng): Data: none (stts / 0x73747473) > > Metadata: > > creation_time : 1945-09-21 14:05:41 > > Stream #0:2(eng): Audio: pcm_mulaw (ulaw / 0x77616C75), 8000 Hz, 1 > > channels, s16, 64 kb/s > > Metadata: > > creation_time : 1945-09-21 14:05:41 > > Stream #0:3(eng): Data: none (stts / 0x73747473) > > Metadata: > > creation_time : 1945-09-21 14:05:41 > > Data stream encoding not supported yet (only streamcopy) > > > > Also i get the same mapping 0:3 and not with 0:2 but i don't get the > > sound even if i tell it to copy the stream. The same happens if i try to > > map 0:3.0:1 or something like that. > > > > Note i'm using now a newer version: > > > > ffmpeg version N-33136-g812010c, Copyright (c) 2000-2011 the FFmpeg > > developers > > built on Oct 1 2011 00:48:53 with gcc 4.4.3 > > > > Thanks in advance. > > > > El vie, 30-09-2011 a las 17:16 -0500, gerardo Juarez escribi?: > > > > > >> SaToNiO wrote: > >> > >>> Hi, > >>> > >>> I'm trying to convert a file to other format (mpg to concatenate > >>> after) and i've noticed the audio track is missing in the converted > >>> file. > >>> > >>> look: > >>> > >>> satonio at satonio-laptop:~$ ffmpeg -i salida2.mp4 -s 352x288 -y salida.3gp > >>> ffmpeg version N-33094-gecf31a6, Copyright (c) 2000-2011 the FFmpeg developers > >>> built on Sep 29 2011 19:39:35 with gcc 4.4.3 > >>> configuration: --enable-gpl --enable-libfaac --enable-libmp3lame > >>> --enable-libopencore-amrnb --enable-libopencore-amrwb > >>> --enable-libtheora --enable-libvorbis --enable-libx264 > >>> --enable-libxvid --enable-nonfree --enable-postproc --enable-version3 > >>> --enable-x11grab > >>> libavutil 51. 18. 0 / 51. 18. 0 > >>> libavcodec 53. 18. 0 / 53. 18. 0 > >>> libavformat 53. 13. 0 / 53. 13. 0 > >>> libavdevice 53. 4. 0 / 53. 4. 0 > >>> libavfilter 2. 43. 6 / 2. 43. 6 > >>> libswscale 2. 1. 0 / 2. 1. 0 > >>> libpostproc 51. 2. 0 / 51. 2. 0 > >>> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x1950780] multiple edit list entries, a/v > >>> desync might occur, patch welcome > >>> Last message repeated 2 times > >>> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x1950780] stream 1, missing mandatory > >>> atoms, broken header > >>> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x1950780] multiple edit list entries, a/v > >>> desync might occur, patch welcome > >>> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x1950780] stream 3, missing mandatory > >>> atoms, broken header > >>> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x1950780] max_analyze_duration 5000000 > >>> reached at 5020000 > >>> > >>> Seems stream 0 codec frame rate differs from container frame rate: > >>> 600.00 (600/1) -> 150.00 (150/1) > >>> Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'salida2.mp4': > >>> Metadata: > >>> major_brand : 3gp5 > >>> minor_version : 256 > >>> compatible_brands: 3gp53gp4isom > >>> creation_time : 2011-09-29 17:43:06 > >>> Duration: 00:00:59.36, start: 0.000000, bitrate: 1000 kb/s > >>> Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, > >>> 864x488, 920 kb/s, 20.01 fps, 150 tbr, 300 tbn, 600 tbc > >>> Metadata: > >>> creation_time : 1945-09-21 14:05:41 > >>> Stream #0:1(eng): Data: none (stts / 0x73747473) > >>> Metadata: > >>> creation_time : 1945-09-21 14:05:41 > >>> Stream #0:2(eng): Audio: pcm_mulaw (ulaw / 0x77616C75), 8000 Hz, 1 > >>> channels, s16, 64 kb/s > >>> Metadata: > >>> creation_time : 1945-09-21 14:05:41 > >>> Stream #0:3(eng): Data: none (stts / 0x73747473) > >>> Metadata: > >>> creation_time : 1945-09-21 14:05:41 > >>> [buffer @ 0x197af00] w:864 h:488 pixfmt:yuv420p tb:1/1000000 sar:0/1 sws_param: > >>> [scale @ 0x194fea0] w:864 h:488 fmt:yuv420p -> w:352 h:288 fmt:yuv420p flags:0x4 > >>> [libopencore_amrnb @ 0x194edc0] bitrate not supported: use one of > >>> 4.75k, 5.15k, 5.90k, 6.70k, 7.40k, 7.95k, 10.20k, 12.20k, using 12.20k > >>> Output #0, 3gp, to 'salida.3gp': > >>> Metadata: > >>> major_brand : 3gp5 > >>> minor_version : 256 > >>> compatible_brands: 3gp53gp4isom > >>> creation_time : 2011-09-29 17:43:06 > >>> encoder : Lavf53.13.0 > >>> Stream #0:0(eng): Video: h263 (s263 / 0x33363273), yuv420p, > >>> 352x288, q=2-31, 200 kb/s, 150 tbn, 150 tbc > >>> Metadata: > >>> creation_time : 1945-09-21 14:05:41 > >>> Stream #0:1(eng): Audio: amr_nb (samr / 0x726D6173), 8000 Hz, 1 > >>> channels, s16, 128 kb/s > >>> Metadata: > >>> creation_time : 1945-09-21 14:05:41 > >>> Stream mapping: > >>> Stream #0.0 -> #0.0 (h264 -> h263) > >>> Stream #0.2 -> #0.1 (pcm_mulaw -> libopencore_amrnb) > >>> Press [q] to stop, [?] for help > >>> [h263 @ 0x194b040] warning, clipping 1 dct coefficients to -127..127 > >>> Last message repeated 7 times > >>> frame= 8904 fps=770 q=31.0 Lsize= 4016kB time=00:00:00.00 bitrate= > >>> 0.0kbits/s dup=7716 drop=0 > >>> video:3943kB audio:0kB global headers:0kB muxing overhead 1.853415% > >>> > >>> And after: > >>> satonio at satonio-laptop:~$ ffmpeg -i salida.3gp > >>> ffmpeg version N-33094-gecf31a6, Copyright (c) 2000-2011 the FFmpeg developers > >>> built on Sep 29 2011 19:39:35 with gcc 4.4.3 > >>> configuration: --enable-gpl --enable-libfaac --enable-libmp3lame > >>> --enable-libopencore-amrnb --enable-libopencore-amrwb > >>> --enable-libtheora --enable-libvorbis --enable-libx264 > >>> --enable-libxvid --enable-nonfree --enable-postproc --enable-version3 > >>> --enable-x11grab > >>> libavutil 51. 18. 0 / 51. 18. 0 > >>> libavcodec 53. 18. 0 / 53. 18. 0 > >>> libavformat 53. 13. 0 / 53. 13. 0 > >>> libavdevice 53. 4. 0 / 53. 4. 0 > >>> libavfilter 2. 43. 6 / 2. 43. 6 > >>> libswscale 2. 1. 0 / 2. 1. 0 > >>> libpostproc 51. 2. 0 / 51. 2. 0 > >>> > >>> Seems stream 0 codec frame rate differs from container frame rate: > >>> 29.97 (30000/1001) -> 150.00 (150/1) > >>> Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'salida.3gp': > >>> Metadata: > >>> major_brand : 3gp4 > >>> minor_version : 512 > >>> compatible_brands: isomiso23gp4 > >>> creation_time : 2011-09-28 23:00:00 > >>> Duration: 00:00:59.36, start: 0.000000, bitrate: 554 kb/s > >>> Stream #0:0(eng): Video: h263 (s263 / 0x33363273), yuv420p, > >>> 352x288 [SAR 12:11 DAR 4:3], 544 kb/s, 150 fps, 150 tbr, 150 tbn, > >>> 29.97 tbc > >>> Metadata: > >>> creation_time : 2011-09-28 23:00:00 > >>> At least one output file must be specified > >>> > >>> It doesn't work neither converting it to mpg, avi, etc etc and all > >>> ends without audio. > >>> > >>> Also, i've noticed that those videos doesn't have sound played with > >>> mplayer (but with vlc work well). > >>> > >>> Thanks > >>> _______________________________________________ > >>> ffmpeg-user mailing list > >>> ffmpeg-user at ffmpeg.org > >>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user > >>> > >>> > >>> > >> Streams 2 & 3 have broken headers. Have you tried mapping the streams > >> (-map -map 0.0:0.0 -map 0.1:0.1...) > >> There seem to be multiple issues with the creation of the original file: > >> creation_time : 1945-09-21 14:05:41 (!!!) Was there digital video at > >> the end of WWII? ;-) > >> > >> > >> > >> > >> > >> > >> _______________________________________________ > >> ffmpeg-user mailing list > >> ffmpeg-user at ffmpeg.org > >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user > >> > > > > > > _______________________________________________ > > ffmpeg-user mailing list > > ffmpeg-user at ffmpeg.org > > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > > The relevant lines are: > > mov,mp4,m4a,3gp,3g2,mj2 @ 0x1950780] stream 1, missing mandatory > atoms, broken header > [mov,mp4,m4a,3gp,3g2,mj2 @ 0x1950780] stream 3, missing mandatory > atoms, broken header > > While the video stream seems to be ok, streams 1 and 3 are not well > formed. My guess is FFmpeg simply refuses to process these inputs because it cannot read what > they are. > > The problem comes probably from the source of the material. > > Gerardo > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user I can't change the source. VLC plays it perfectly. I would like to be able to concatenate videos like that without losing the audio. Do you know any other software i should try? Maybe i have some codecs missing? From diegogullo at gmail.com Sat Oct 1 04:22:30 2011 From: diegogullo at gmail.com (diego gullo) Date: Sat, 1 Oct 2011 03:22:30 +0100 Subject: [FFmpeg-user] Split video into subparts of the original one Message-ID: Hi all I am looking for a way to split a video into subscreen parts of it. For instance i want to take a 5min video lets say 400x800 and split it into 4 parts/subvideos of 5min each made of a 4th of the original video. The result would be 4 videos all made of 200x400 pixels. I have seen crop and other options could be used but I would prefer to have a reply from some expert. The above should retain the audio from the original file to all the subvideos Br Diego From hardik.sharma22 at yahoo.com Sat Oct 1 07:32:15 2011 From: hardik.sharma22 at yahoo.com (HardikSharma) Date: Fri, 30 Sep 2011 22:32:15 -0700 (PDT) Subject: [FFmpeg-user] error concealment from ffmpeg/x264 for h264 videos Message-ID: <1317447135300-3862185.post@n4.nabble.com> Hi guys, I am producing error in h264 stream by dropping 5%, 10% and 20% slices from JM and ffmpeg encoded streams. I calculated PSNR for both and JM is like more then 40% better then ffmpeg. I tried to get JM and ffmpeg to as close as possible in specifications. The bigger concern is in ffmpeg, it even dropped some frames when I introduced error in 264 stream but JM didn't drooped any frame. Am I ignoring any crucial point? or is it suppose to be like this. That's why I want to know what kind of conceal FFmpeg uses so that I can figure out something for this. Please post your suggestions. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/error-concealment-from-ffmpeg-x264-for-h264-videos-tp3862185p3862185.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From dusa.adrian at gmail.com Sat Oct 1 18:58:36 2011 From: dusa.adrian at gmail.com (Adrian Dusa) Date: Sat, 1 Oct 2011 19:58:36 +0300 Subject: [FFmpeg-user] CLI ffmpeg on MacOS In-Reply-To: References: Message-ID: Apologies for bumping up this thread, I only would like to know if there is a solution or not: should I dig further? Thanks, Adrian On Wed, Sep 28, 2011 at 08:22, Adrian Dusa wrote: > Dear list, > > I am recently working on a Mac (64bit, Lion), and wanted to use the > CLI version of the ffmpeg just like in my former Linux box. > The previous command, to grab a portion of the screen, was: > > ffmpeg -f alsa -i pulse -f x11grab -r 15 -s 500x500 -i :0.0+304,198 > -vcodec libx264 -vpre lossless_ultrafast -threads 0 blahvideo.mkv > > Obviously, the options cannot be the same in the Mac box (there's no > alsa, there's no x11grab), and after much researching on the web I > finally got to my last resource, that is asking this list. > Is is possible to mimic the above command on a Mac? > > Thanks in advance, > Adrian > -- Adrian Dusa Romanian Social Data Archive 1, Schitu Magureanu Bd. 050025 Bucharest sector 5 Romania Tel.:+40 21 3126618 \ ? ? ? ?+40 21 3120210 / int.101 Fax: +40 21 3158391 From michaelni at gmx.at Sat Oct 1 19:18:47 2011 From: michaelni at gmx.at (Michael Niedermayer) Date: Sat, 1 Oct 2011 19:18:47 +0200 Subject: [FFmpeg-user] error concealment from ffmpeg/x264 for h264 videos In-Reply-To: <1317447135300-3862185.post@n4.nabble.com> References: <1317447135300-3862185.post@n4.nabble.com> Message-ID: <20111001171847.GL15198@kiste2> On Fri, Sep 30, 2011 at 10:32:15PM -0700, HardikSharma wrote: > Hi guys, > > I am producing error in h264 stream by dropping 5%, 10% and 20% slices from > JM and ffmpeg encoded streams. I calculated PSNR for both and JM is like > more then 40% better then ffmpeg. I tried to get JM and ffmpeg to as close > as possible in specifications. > > The bigger concern is in ffmpeg, it even dropped some frames when I > introduced error in 264 stream but JM didn't drooped any frame. Am I > ignoring any crucial point? or is it suppose to be like this. That's why I > want to know what kind of conceal FFmpeg uses so that I can figure out > something for this. Please post your suggestions. Please provide the h264 stream you use so we can reproduce this difference [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB It is what and why we do it that matters, not just one of them. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From sanjay.khattar at ericsson.com Sat Oct 1 02:38:20 2011 From: sanjay.khattar at ericsson.com (Sanjay Khattar) Date: Fri, 30 Sep 2011 20:38:20 -0400 Subject: [FFmpeg-user] ffmpeg stream information Message-ID: <4106BDB510FF69439834B2E3297D5D96366661417F@EUSAACMS0714.eamcs.ericsson.se> ffmpeg -i gives media information as follows: Stream #0.0[0x1e1]: Video: mpeg2video (Main), yuv420p, 352x480 [PAR 20:11 DAR 4:3], 3180 kb/s, 30 fps, 30 tbr, 90k tbn, 60 tbc Stream #0.1[0x1e2]: Audio: ac3, 48000 Hz, mono, s16, 192 kb/s Can I rely on video bit rate and audio bit rate to always be in kb/s? Thanks, Sanjay From diego_gullo at bizmate.biz Sat Oct 1 04:21:11 2011 From: diego_gullo at bizmate.biz (Diego Gullo @Bizmate) Date: Sat, 01 Oct 2011 03:21:11 +0100 Subject: [FFmpeg-user] Split video into subparts of the original one Message-ID: <4E867917.9010105@bizmate.biz> Hi all I am looking for a way to split a video into subscreen parts of it. For instance i want to take a 5min video lets say 400x800 and split it into 4 parts/subvideos of 5min each made of a 4th of the original video. The result would be 4 videos all made of 200x400 pixels. I have seen crop and other options could be used but I would prefer to have a reply from some expert. The above should retain the audio from the original file to all the subvideos Br Diego From hardik.sharma22 at yahoo.com Sat Oct 1 20:08:30 2011 From: hardik.sharma22 at yahoo.com (HardikSharma) Date: Sat, 1 Oct 2011 11:08:30 -0700 (PDT) Subject: [FFmpeg-user] error concealment from ffmpeg/x264 for h264 videos In-Reply-To: <20111001171847.GL15198@kiste2> References: <1317447135300-3862185.post@n4.nabble.com> <20111001171847.GL15198@kiste2> Message-ID: <1317492494.4947.YahooMailNeo@web46214.mail.sp1.yahoo.com> I attached the .264 encoded stream I used to introduce errors.? ________________________________ From: Michael Niedermayer [via FFmpeg-users] To: HardikSharma Sent: Saturday, 1 October 2011 10:19 AM Subject: Re: error concealment from ffmpeg/x264 for h264 videos On Fri, Sep 30, 2011 at 10:32:15PM -0700, HardikSharma wrote: > Hi guys, > > I am producing error in h264 stream by dropping 5%, 10% and 20% slices from > JM and ffmpeg encoded streams. I calculated PSNR for both and JM is like > more then 40% better then ffmpeg. I tried to get JM and ffmpeg to as close > as possible in specifications. > > The bigger concern is in ffmpeg, it even dropped some frames when I > introduced error in 264 stream but JM didn't drooped any frame. Am I > ignoring any crucial point? or is it suppose to be like this. That's why I > want to know what kind of conceal FFmpeg uses so that I can figure out > something for this. Please post your suggestions. ? ? Please provide the h264 stream you use so we can reproduce this difference [...] -- Michael ? ? GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB It is what and why we do it that matters, not just one of them. _______________________________________________ ffmpeg-user mailing list [hidden email] http://ffmpeg.org/mailman/listinfo/ffmpeg-user signature.asc (205 bytes) Download Attachment ________________________________ If you reply to this email, your message will be added to the discussion below:http://ffmpeg-users.933282.n4.nabble.com/error-concealment-from-ffmpeg-x264-for-h264-videos-tp3862185p3863299.html To unsubscribe from error concealment from ffmpeg/x264 for h264 videos, click here. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/error-concealment-from-ffmpeg-x264-for-h264-videos-tp3862185p3863405.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From belcampo at zonnet.nl Sat Oct 1 23:12:06 2011 From: belcampo at zonnet.nl (belcampo) Date: Sat, 01 Oct 2011 23:12:06 +0200 Subject: [FFmpeg-user] Split video into subparts of the original one In-Reply-To: References: Message-ID: <4E878226.4050209@zonnet.nl> On 10/01/2011 04:22 AM, diego gullo wrote: > Hi all > > I am looking for a way to split a video into subscreen parts of it. For > instance i want to take a 5min video lets say 400x800 and split it into 4 > parts/subvideos of 5min each made of a 4th of the original video. The result > would be 4 videos all made of 200x400 pixels. > > I have seen crop and other options could be used but I would prefer to have > a reply from some expert. what's wrong with the crop options ? It's perfectly suited AFAIK, for what you want to do. > > The above should retain the audio from the original file to all the > subvideos > > Br > > Diego > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From hardik.sharma22 at yahoo.com Sat Oct 1 23:47:56 2011 From: hardik.sharma22 at yahoo.com (HardikSharma) Date: Sat, 1 Oct 2011 14:47:56 -0700 (PDT) Subject: [FFmpeg-user] error concealment from ffmpeg/x264 for h264 videos In-Reply-To: <1317447135300-3862185.post@n4.nabble.com> References: <1317447135300-3862185.post@n4.nabble.com> Message-ID: <1317505676151-3863856.post@n4.nabble.com> I encoded foreman at 512kbps and slice size 300. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/error-concealment-from-ffmpeg-x264-for-h264-videos-tp3862185p3863856.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From gialloporpora at gmail.com Sun Oct 2 00:59:09 2011 From: gialloporpora at gmail.com (gialloporpora) Date: Sun, 02 Oct 2011 00:59:09 +0200 Subject: [FFmpeg-user] -loop_input is deprecated use -loop 1 instead Message-ID: <4E879B3D.4040805@gmail.com> Dear all, Today I have downloaded the latest Windows build of FFMpeg (25/111/2011). I have tried to make a video with an image as background and an audio file as soundtrack. Trying to do this operation I am advised that -loop_input is deprecated and to use -loop 1 instead. I have made it and it works. But I have a question, if somebody knows, what means the value 1 passed as parameter to -loop option? I have tried to search documentation about this but I have no found meaningful pages. Thanks in advance Sandro -- Sto ascoltando: *Pink Floyd ? Set The Controls For The Heart Of The Sun * - http://bit.ly/q73sQd To divide a cube into two other cubes, a fourth power or in general any power whatever into two powers of the same denomination above the second is impossible, and I have assuredly found an admirable proof of this, but the margin is too narrow to contain it. From unga888 at yahoo.com Sun Oct 2 05:26:06 2011 From: unga888 at yahoo.com (Unga) Date: Sat, 1 Oct 2011 20:26:06 -0700 (PDT) Subject: [FFmpeg-user] sws_scale down scale produces incorrect video In-Reply-To: Message-ID: <1317525966.74068.YahooMailClassic@web160102.mail.bf1.yahoo.com> --- On Wed, 9/21/11, Roger Pack wrote: > From: Roger Pack > Subject: Re: [FFmpeg-user] sws_scale down scale produces incorrect video > To: "FFmpeg user questions and RTFMs" > Date: Wednesday, September 21, 2011, 2:14 AM > > Was this a bug in ffmpeg which > is already been fixed or am I making a mistake in my code? > > Maybe you can test with a newer version of ffmpeg and > check? > -r Hi all The upgrade of ffmpeg from ver. 7.1 to 7.5 almost solved this issue. Now 99% of the rescaled videos play with correct colours. Very few videos still shows light blueish shadows like things. So it was a bug in ffmpeg itself and still needs further corrections. Best regards Unga From victorpaesa at googlemail.com Sun Oct 2 10:09:02 2011 From: victorpaesa at googlemail.com (=?UTF-8?Q?V=C3=ADctor_Paesa?=) Date: Sun, 2 Oct 2011 10:09:02 +0200 Subject: [FFmpeg-user] Split video into subparts of the original one In-Reply-To: <4E867917.9010105@bizmate.biz> References: <4E867917.9010105@bizmate.biz> Message-ID: Hi, On Sat, Oct 1, 2011 at 04:21, Diego Gullo wrote: > Hi all > > I am looking for a way to split a video into subscreen parts of it. For > instance i want to take a 5min video lets say 400x800 and split it into 4 > parts/subvideos of 5min each made of a 4th of the original video. The result > would be 4 videos all made of 200x400 pixels. > > I have seen crop and other options could be used but I would prefer to have > a reply from some expert. > > The above should retain the audio from the original file to all the > subvideos Please stop sending the same subject multiple times to the mail list. Thanks, V?ctor From victorpaesa at googlemail.com Sun Oct 2 10:15:29 2011 From: victorpaesa at googlemail.com (=?UTF-8?Q?V=C3=ADctor_Paesa?=) Date: Sun, 2 Oct 2011 10:15:29 +0200 Subject: [FFmpeg-user] ffmpeg stream information In-Reply-To: <4106BDB510FF69439834B2E3297D5D96366661417F@EUSAACMS0714.eamcs.ericsson.se> References: <4106BDB510FF69439834B2E3297D5D96366661417F@EUSAACMS0714.eamcs.ericsson.se> Message-ID: Hi, On Sat, Oct 1, 2011 at 02:38, Sanjay Khattar wrote: > ffmpeg -i gives media information as follows: > ? ?Stream #0.0[0x1e1]: Video: mpeg2video (Main), yuv420p, 352x480 [PAR 20:11 DAR 4:3], 3180 kb/s, > 30 fps, 30 tbr, 90k tbn, 60 tbc > ? ?Stream #0.1[0x1e2]: Audio: ac3, 48000 Hz, mono, s16, 192 kb/s > > Can I rely on video bit rate and audio bit rate to always be in kb/s? Yes: in the improbable case the developers change it, you can modify the source to suit your needs. Anyway, I would recommend ffprobe if you want to get media information. Regards, V?ctor From kristen.eisenberg at yahoo.com Sun Oct 2 11:23:38 2011 From: kristen.eisenberg at yahoo.com (Kristen Eisenberg) Date: Sun, 2 Oct 2011 02:23:38 -0700 (PDT) Subject: [FFmpeg-user] Web camera and microphone capture via dshow Message-ID: <1317547418.41281.YahooMailNeo@web122306.mail.ne1.yahoo.com> I'm trying to capture and encode video/audio from camera and microphone using libavcodec, libavformat and libavdevice. It works, video and audio captures, but after encoding it all is messed: everything is extremely speed up (like you recorded it at 25 fps and then played at 100). I think I don't get something about all that pts/dts stuff and synchronization, but I honestly don't know where to look. ffmpeg unfortunately is very poorly documented in terms of programming (why? it's so mature, why someone won't write at least how library works?). I took muxing example from ffmpeg git and modified it to feed encoders with data from webcam and microphone using av_read_frame and av_decode_video/audio. Any ideas? Kristen Eisenberg Billige Fl?ge Marketing GmbH Emanuelstr. 3, 10317 Berlin Deutschland Telefon: +49 (33) 5310967 Email: utebachmeier at gmail.com Site: http://flug.airego.de- Billige Fl?ge vergleichen From benoit at friry.net Sun Oct 2 12:38:18 2011 From: benoit at friry.net (Benoit) Date: Sun, 2 Oct 2011 12:38:18 +0200 Subject: [FFmpeg-user] Bug for bug file? In-Reply-To: <20110928172545.GA17932@friry.net> References: <20110928172545.GA17932@friry.net> Message-ID: <20111002103818.GA4382@friry.net> Hi! I wrote: > I'm trying to convert mjpeg into h264. > But ffmpeg is "killed" before finishing the job. [...] Same thing with webm > ======================================== > My script and the file > $ cat convert_h264.sh > #!/bin/ksh > time nice ffmpeg \ > -i $1 \ > -acodec libfaac -aq 120 \ > -vcodec libx264 -r 50 -vf "yadif=1:0,crop=in_w-24:in_h-8:8:0" \ > -preset veryfast -profile $3 -crf 23 \ > -f mp4 $2 > myvideo.avi is a 7.2 GB file, grabbed from a VHS via a Dazzle device. My webm script file: time nice ffmpeg \ -i $1 \ -acodec libvorbis -aq 40 -ac 2 \ -vcodec libvpx -r 50 -vf "yadif=1:0,crop=in_w-24:in_h-8:8:0" \ -g 200 -keyint_min 0 \ -qmax 40 -rc_lookahead 16 -skip_threshold 0 -level 116 \ -f webm $2 > ======================================== > First test: profile main > $ ./convert_h264.sh myvideo.avi myvideo.veryfast_main_23.mp4 main > ffmpeg version 0.8.3, Copyright (c) 2000-2011 the FFmpeg developers [...] > Input #0, avi, from 'myvideo.avi': > Duration: 00:47:29.56, start: 0.000000, bitrate: 21670 kb/s > Stream #0.0: Video: mjpeg, yuvj420p, 720x576, 25 tbr, 25 tbn, 25 tbc > Stream #0.1: Audio: pcm_s16le, 44100 Hz, 2 channels, s16, 1411 kb/s > [buffer @ 0x1204a00] w:720 h:576 pixfmt:yuvj420p tb:1/1000000 sar:0/1 sws_param: > [yadif @ 0x120bb20] mode:1 parity:0 > [crop @ 0x1207e20] w:720 h:576 -> w:696 h:568 > [libx264 @ 0x1203ae0] using cpu capabilities: MMX2 SSE2Slow SlowCTZ > [libx264 @ 0x1203ae0] profile Main, level 3.1 > [libx264 @ 0x1203ae0] 264 - core 116 - H.264/MPEG-4 AVC codec - Copyleft 2003-2011 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=2 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=1 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=1 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=10 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 'myvideo.veryfast_main_23.mp4': > Metadata: > encoder : Lavf53.4.0 > Stream #0.0: Video: libx264, yuvj420p, 696x568, q=2-31, 200 kb/s, 50 tbn, 50 tbc > Stream #0.1: Audio: libfaac, 44100 Hz, 2 channels, s16, 64 kb/s > Stream mapping: > Stream #0.0 -> #0.0 > Stream #0.1 -> #0.1 > Press [q] to stop, [?] for help > Killed 9261 fps= 22 q=31.0 size= 408590kB time=00:26:24.96 bitrate=2111.8kbits/s dup=6289 drop=0 > 6138.46s real 5820.28s user 30.55s system > ======================================== > Second test: profile baseline [...] > Killed 9557 fps= 15 q=31.0 size= 434826kB time=00:19:50.92 bitrate=2991.0kbits/s dup=4937 drop=0 > 6632.78s real 5736.91s user 31.41s system > ======================================== > Third test: profile baseline and without filter > I remove [-r 50 -vf "yadif=1:0,crop=in_w-24:in_h-8:8:0"] in the script [...] > Memory fault ps= 19 q=31.0 size= 185766kB time=00:06:23.14 bitrate=3971.9kbits/s dup=10522 drop=0 > 1658.33s real 1590.50s user 10.18s system ======================================== Fourth test: webm with command shown in the beginning of this mail ffmpeg version 0.8.3, Copyright (c) 2000-2011 the FFmpeg developers built on Sep 10 2011 13:42:49 with gcc 4.6.1 configuration: --prefix=/usr --extra-cflags='-Wall -g ' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-nonfree --enable-libdirac --disable-decoder=libdirac --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-libvpx --enable-librtmp --enable-avfilter --enable-frei0r --enable-libopencv --enable-libfreetype --enable-libvo-aacenc --enable-libvo-amrwbenc --libdir=/usr/lib/x86_64-linux-gnu --enable-libdc1394 --disable-altivec --disable-armv5te --disable-armv6 --disable-vis --shlibdir=/usr/lib/x86_64-linux-gnu libavutil 51. 9. 1 / 51. 9. 1 libavcodec 53. 7. 0 / 53. 7. 0 libavformat 53. 4. 0 / 53. 4. 0 libavdevice 53. 1. 1 / 53. 1. 1 libavfilter 2. 23. 0 / 2. 23. 0 libswscale 2. 0. 0 / 2. 0. 0 libpostproc 51. 2. 0 / 51. 2. 0 Input #0, avi, from 'myvideo.avi': Duration: 00:47:29.56, start: 0.000000, bitrate: 21670 kb/s Stream #0.0: Video: mjpeg, yuvj420p, 720x576, 25 tbr, 25 tbn, 25 tbc Stream #0.1: Audio: pcm_s16le, 44100 Hz, 2 channels, s16, 1411 kb/s Incompatible pixel format 'yuvj420p' for codec 'libvpx', auto-selecting format 'yuv420p' [buffer @ 0x16ef660] w:720 h:576 pixfmt:yuvj420p tb:1/1000000 sar:0/1 sws_param: [yadif @ 0x16ee1c0] mode:1 parity:0 [crop @ 0x16eab60] auto-inserting filter 'auto-inserted scaler 0' between the filter 'Parsed filter 0 yadif' and the filter 'Parsed filter 1 crop' [scale @ 0x16eaf20] w:720 h:576 fmt:yuvj420p -> w:720 h:576 fmt:yuv420p flags:0x4 [crop @ 0x16eab60] w:720 h:576 -> w:696 h:568 [libvpx @ 0x16e8b80] v0.9.7-p1 Output #0, webm, to 'myvideo.webm': Metadata: encoder : Lavf53.4.0 Stream #0.0: Video: libvpx, yuv420p, 696x568, q=2-40, 200 kb/s, 1k tbn, 50 tbc Stream #0.1: Audio: libvorbis, 44100 Hz, 2 channels, s16, 64 kb/s Stream mapping: Stream #0.0 -> #0.0 Stream #0.1 -> #0.1 Press [q] to stop, [?] for help Killed 5498 fps= 6 q=0.0 size= 131166kB time=00:09:28.38 bitrate=1890.5kbits/s 7030.15s real 5621.65s user 32.60s system "Killed" :( Incomplete webm file is 129M. From batguano999 at hotmail.com Sun Oct 2 18:48:09 2011 From: batguano999 at hotmail.com (bat guano) Date: Sun, 2 Oct 2011 16:48:09 +0000 Subject: [FFmpeg-user] -loop_input is deprecated use -loop 1 instead In-Reply-To: <4E879B3D.4040805@gmail.com> References: <4E879B3D.4040805@gmail.com> Message-ID: > ... But I have a question, if somebody knows, > what means the value 1 passed as parameter to -loop option? > > I have tried to search documentation about this but I have no found > meaningful pages. > Hi It's a puzzle. ;-) I found this reference in the man pages, but I don't really understand it. -loop_input Loop over the input stream. Currently it works only for image streams. This option is used for automatic FFserver testing.? This option is deprecated, use -loop 1. -loop_output number_of_times Repeatedly loop output for formats that support looping such as animated GIF (0 will loop the output infinitely).? This option is deprecated, use -loop. From andycivil at gmail.com Sun Oct 2 20:37:07 2011 From: andycivil at gmail.com (Andy Civil) Date: Sun, 02 Oct 2011 14:37:07 -0400 Subject: [FFmpeg-user] -loop_input is deprecated use -loop 1 instead In-Reply-To: References: <4E879B3D.4040805@gmail.com> Message-ID: <4E88AF53.6020702@gmail.com> On 2011-10-02 12:48 PM, bat guano wrote: > Hi > It's a puzzle. ;-) > I found this reference in the man pages, but I don't really understand it. This is a complete guess, but see if it makes sense: "The authors are aware of the problems people have (frustration) when the names and/or function of options changes. In the future they will want to expand the loop input option from just one, to many frames. They are getting people to move over from "loop_input" to "loop 1" now in advance, in a way that doesn't actually break anything, so that in the future they can allow "loop ". So for everyone who's using "loop 1", their scripts continue to work." i.e. Phase 1: loop_input works. Phase 2: loop_input and "loop 1" both work, people switch over to new form. Phase 3: "loop n" works. result... new feature introduced without pain. As I said, just a guess... -- Andy From hardik.sharma22 at yahoo.com Sun Oct 2 21:21:21 2011 From: hardik.sharma22 at yahoo.com (Hardik Sharma) Date: Sun, 2 Oct 2011 12:21:21 -0700 (PDT) Subject: [FFmpeg-user] error concealment from ffmpeg/x264 for h264 videos In-Reply-To: References: Message-ID: <1317583281.76772.YahooMailNeo@web46201.mail.sp1.yahoo.com> I am putting the video stream I used to do the test. I encoded on 512kbps and with 300 byte slice size from JM and ffmpeg. Then dropped- 5%, 10% and 20% slices to generate error. I am getting big difference in PSNR values and JM is coming out to be as better.?I don't know why. Video stream is- http://www.datafilehost.com/download-1eb395a4.html?? ? Let me know?if you need?any other information. Thanks. ? ________________________________ From: Carl Eugen Hoyos To: HardikSharma Cc: Michael Niedermayer Sent: Sunday, 2 October 2011 9:39 AM Subject: H.264 error concealment Hi! Please upload the test stream you used to http://www.datafilehost.com/ and send us the link (or send the link to ffmpeg-users). Thank you, Carl Eugen From hardik.sharma22 at yahoo.com Sun Oct 2 23:56:45 2011 From: hardik.sharma22 at yahoo.com (Hardik Sharma) Date: Sun, 2 Oct 2011 14:56:45 -0700 (PDT) Subject: [FFmpeg-user] error concealment from ffmpeg/x264 for h264 videos In-Reply-To: References: <1317583281.76772.YahooMailNeo@web46201.mail.sp1.yahoo.com> Message-ID: <1317592605.25750.YahooMailNeo@web46201.mail.sp1.yahoo.com> Sorry for all the confusion. Following is .264 video stream encoded with ffmpeg- http://www.datafilehost.com/download-1c199ae3.html ? This is from JM- http://www.datafilehost.com/download-b12f7db9.html ________________________________ From: Carl Eugen Hoyos To: Hardik Sharma Cc: Michael Niedermayer Sent: Sunday, 2 October 2011 4:06 PM Subject: Re: [FFmpeg-user] error concealment from ffmpeg/x264 for h264 videos On Sun, 2 Oct 2011, Hardik Sharma wrote: > I am putting the video stream I used to do the test. I encoded on 512kbps and with 300 byte slice size from JM and ffmpeg. Then dropped- 5%, 10% and 20% slices to generate error. I am getting big difference > in PSNR values and JM is coming out to be as better.?I don't know why. Video stream is- http://www.datafilehost.com/download-1eb395a4.html?? If you have a problem with H.264 decoding or need an improvement for the H264 decoder, you will have to upload a H264 stream that allows to reproduce the issue you describe. Uploading a yuv stream is not very helpful. Carl Eugen From stefasab at gmail.com Mon Oct 3 02:10:51 2011 From: stefasab at gmail.com (Stefano Sabatini) Date: Mon, 3 Oct 2011 02:10:51 +0200 Subject: [FFmpeg-user] -loop_input is deprecated use -loop 1 instead In-Reply-To: <4E88AF53.6020702@gmail.com> References: <4E879B3D.4040805@gmail.com> <4E88AF53.6020702@gmail.com> Message-ID: <20111003001051.GB13567@geppetto> On date Sunday 2011-10-02 14:37:07 -0400, Andy Civil encoded: > On 2011-10-02 12:48 PM, bat guano wrote: > > >Hi > >It's a puzzle. ;-) > >I found this reference in the man pages, but I don't really understand it. > > This is a complete guess, but see if it makes sense: > > "The authors are aware of the problems people have (frustration) > when the names and/or function of options changes. In the future > they will want to expand the loop input option from just one, to > many frames. They are getting people to move over from "loop_input" > to "loop 1" now in advance, in a way that doesn't actually break > anything, so that in the future they can allow "loop ". So for > everyone who's using "loop 1", their scripts continue to work." > > i.e. > Phase 1: loop_input works. > Phase 2: loop_input and "loop 1" both work, people switch over to new form. > Phase 3: "loop n" works. > result... new feature introduced without pain. > > As I said, just a guess... Yes, in the meanwhile we forgot to properly update docs, feel free to file a bug report against this one (or even better write a patch for it) so the next fellow won't waste his time again. From mfanlin at gmail.com Mon Oct 3 09:15:06 2011 From: mfanlin at gmail.com (Wan-Yi Lin) Date: Mon, 3 Oct 2011 00:15:06 -0700 Subject: [FFmpeg-user] ffmpeg crashes with -force_key_frames? Message-ID: Hi, ffmpeg: I am very new to ffmpeg so if my question is silly, please forgive me. Thanks in advance. My goal is to encode the video so that there is an I (key) frame at 10 second mark(or right after 10 second mark). I tried ffmpeg -i input.avi -acodec ac3 -vcodec libx264 -b 1200k -force_key_frames:v 00:00:10:00 out.avi but ffmpeg crashed. I tried on Windows and Linux, both ffmpeg crashed. Did any one encounter the same problem? Anything wrong with my command? Thanks in advance, Wan-Yi From ramandumcs at gmail.com Mon Oct 3 09:40:18 2011 From: ramandumcs at gmail.com (raman gupta) Date: Mon, 3 Oct 2011 13:10:18 +0530 Subject: [FFmpeg-user] Non-Monotonic Timestamp Message-ID: Hi all, I am trying to transcode a "flv" file in to "MP4" using FFmpeg. I am getting the error "non monotone timestamp av_interleaved_write_frame()." On looking in to the flv file it seems that few packets have same timestamp. Is there a flag in FFmpeg to transcode the file having packets with same timestamp Thx, Raman Gupta From homammo at gmail.com Mon Oct 3 10:19:22 2011 From: homammo at gmail.com (Homam Mokayed) Date: Mon, 3 Oct 2011 16:19:22 +0800 Subject: [FFmpeg-user] av_seek_frame issue Message-ID: Dear FFMpeg support team I faced a crash error while trying to execute av_seek_frame taking into consideration that i used av_open_input_stream to fill aVFormatContext in order to be able to handle Unicode Video file using) , if i used av_open_input_file rather than av_open_input_stream everything will go smooth, any clue can help me to handle this issue pleeeeeease regards Hamam From michaelni at gmx.at Mon Oct 3 15:57:20 2011 From: michaelni at gmx.at (Michael Niedermayer) Date: Mon, 3 Oct 2011 15:57:20 +0200 Subject: [FFmpeg-user] error concealment from ffmpeg/x264 for h264 videos In-Reply-To: <1317592605.25750.YahooMailNeo@web46201.mail.sp1.yahoo.com> References: <1317583281.76772.YahooMailNeo@web46201.mail.sp1.yahoo.com> <1317592605.25750.YahooMailNeo@web46201.mail.sp1.yahoo.com> Message-ID: <20111003135720.GK5496@kiste2> On Sun, Oct 02, 2011 at 02:56:45PM -0700, Hardik Sharma wrote: > Sorry for all the confusion. Following is .264 video stream encoded with ffmpeg- > http://www.datafilehost.com/download-1c199ae3.html This stream has no missing slices. [...] > On Sun, 2 Oct 2011, Hardik Sharma wrote: > > > I am putting the video stream I used to do the test. I encoded on 512kbps and with 300 byte slice size from JM and ffmpeg. Then dropped- 5%, 10% and 20% slices to generate error. I am getting big difference > > in PSNR values and JM is coming out to be as better.?I don't know why. Video stream is- http://www.datafilehost.com/download-1eb395a4.html?? [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Opposition brings concord. Out of discord comes the fairest harmony. -- Heraclitus -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From rogerdpack2 at gmail.com Mon Oct 3 17:43:57 2011 From: rogerdpack2 at gmail.com (Roger Pack) Date: Mon, 3 Oct 2011 09:43:57 -0600 Subject: [FFmpeg-user] CLI ffmpeg on MacOS In-Reply-To: References: Message-ID: > Apologies for bumping up this thread, I only would like to know if > there is a solution or not: should I dig further? > Thanks, AFAIK OS X doesn't have a screen capture input currently, though I may port VLC's qtcapture to it at some point. From 3518759 at gmail.com Mon Oct 3 17:45:11 2011 From: 3518759 at gmail.com (3589157 3589157) Date: Mon, 3 Oct 2011 18:45:11 +0300 Subject: [FFmpeg-user] recording screen with audio to webm Message-ID: Hello. I'm trying to record directly to webm using f.e. this command: ffmpeg -f alsa -ac 2 -i pulse -an -f x11grab -r 30 -s 1440x900 -i :0.0 -threads 4 -y 1.webm But I get only video without a sound(not from microphon nor from internal sound). Any ideas? From apolyxrono at yahoo.co.uk Sun Oct 2 21:37:48 2011 From: apolyxrono at yahoo.co.uk (adreas Polyxronopoulos) Date: Sun, 2 Oct 2011 20:37:48 +0100 (BST) Subject: [FFmpeg-user] rtp streaming problem Message-ID: <1317584268.78813.YahooMailNeo@web28611.mail.ukl.yahoo.com> I have the same problem with xflay here:?http://ffmpeg.org/pipermail/ffmpeg-user/2011-September/002385.html Have any one found a solution ? thanks ? Adreas Polychronopoulos From derschu50 at googlemail.com Mon Oct 3 10:26:34 2011 From: derschu50 at googlemail.com (DasDing) Date: Mon, 3 Oct 2011 01:26:34 -0700 (PDT) Subject: [FFmpeg-user] No encpding Frames with MPEG-TS H.264 Message-ID: <1317630394693-3866884.post@n4.nabble.com> Hi, i have a problem that I can't solve: i want to encode a video with the MPEG-TS Container and H.264. This Video is in HD 1080p. I have recorded it with DVB Viewer from a TV Channel. But when I start the process I get a lots of red line. See here: http://www.abload.de/img/daaa2pwn.png http://www.abload.de/img/daaa2pwn.png It only happens with HD recordings, from a normal TV Channel there are no problems. I hope you can find my problem. Best regards -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/No-encpding-Frames-with-MPEG-TS-H-264-tp3866884p3866884.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From philip at turmel.org Mon Oct 3 19:34:27 2011 From: philip at turmel.org (Phil Turmel) Date: Mon, 03 Oct 2011 13:34:27 -0400 Subject: [FFmpeg-user] recording screen with audio to webm In-Reply-To: References: Message-ID: <4E89F223.7040201@turmel.org> On 10/03/2011 11:45 AM, 3589157 3589157 wrote: > Hello. I'm trying to record directly to webm using f.e. this command: > > > ffmpeg -f alsa -ac 2 -i pulse -an -f x11grab -r 30 -s 1440x900 -i :0.0 > -threads 4 -y 1.webm > But I get only video without a sound(not from microphon nor from internal > sound). > Any ideas? Option "-an" means "no sound". HTH, Phil From 3518759 at gmail.com Mon Oct 3 20:17:10 2011 From: 3518759 at gmail.com (3589157 3589157) Date: Mon, 3 Oct 2011 21:17:10 +0300 Subject: [FFmpeg-user] recording screen with audio to webm In-Reply-To: <4E89F223.7040201@turmel.org> References: <4E89F223.7040201@turmel.org> Message-ID: > > Option "-an" means "no sound". > > HTH, > > Phil > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > Man... thanks, I didn't know it about. I puted away -an option and now it records audio. What is the options which give the best quality of video and sound when recording to webm -- what will be the command? From hardik.sharma22 at yahoo.com Mon Oct 3 20:46:18 2011 From: hardik.sharma22 at yahoo.com (HardikSharma) Date: Mon, 3 Oct 2011 11:46:18 -0700 (PDT) Subject: [FFmpeg-user] error concealment from ffmpeg/x264 for h264 videos In-Reply-To: <20111003135720.GK5496@kiste2> References: <1317447135300-3862185.post@n4.nabble.com> <1317583281.76772.YahooMailNeo@web46201.mail.sp1.yahoo.com> <1317592605.25750.YahooMailNeo@web46201.mail.sp1.yahoo.com> <20111003135720.GK5496@kiste2> Message-ID: <1317667578973-3868442.post@n4.nabble.com> This is error file with 5% error (random slice drop) from ffmpeg- http://www.datafilehost.com/download-89e9d3da.html http://www.datafilehost.com/download-89e9d3da.html -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/error-concealment-from-ffmpeg-x264-for-h264-videos-tp3862185p3868442.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From rhodri at kynesim.co.uk Mon Oct 3 20:58:00 2011 From: rhodri at kynesim.co.uk (Rhodri James) Date: Mon, 03 Oct 2011 19:58:00 +0100 Subject: [FFmpeg-user] No encpding Frames with MPEG-TS H.264 In-Reply-To: <1317630394693-3866884.post@n4.nabble.com> References: <1317630394693-3866884.post@n4.nabble.com> Message-ID: On Mon, 03 Oct 2011 09:26:34 +0100, DasDing wrote: > Hi, > > i have a problem that I can't solve: i want to encode a video with the > MPEG-TS Container and H.264. This Video is in HD 1080p. I have recorded > it > with DVB Viewer from a TV Channel. > But when I start the process I get a lots of red line. > See here: http://www.abload.de/img/daaa2pwn.png > http://www.abload.de/img/daaa2pwn.png > It only happens with HD recordings, from a normal TV Channel there are no > problems. The H.264 encoder (libx264?) doesn't seem to like your input. What command line do you use? Does the output of DVB Viewer look correct? -- Rhodri James Kynesim Ltd From gialloporpora at gmail.com Mon Oct 3 23:09:34 2011 From: gialloporpora at gmail.com (gialloporpora) Date: Mon, 03 Oct 2011 23:09:34 +0200 Subject: [FFmpeg-user] -loop_input is deprecated use -loop 1 instead In-Reply-To: <20111003001051.GB13567@geppetto> References: <4E879B3D.4040805@gmail.com> <4E88AF53.6020702@gmail.com> <20111003001051.GB13567@geppetto> Message-ID: <4E8A248E.7000407@gmail.com> Risposta al messaggio di Stefano Sabatini : > On date Sunday 2011-10-02 14:37:07 -0400, Andy Civil encoded: >> On 2011-10-02 12:48 PM, bat guano wrote: >> >>> Hi >>> It's a puzzle. ;-) >>> I found this reference in the man pages, but I don't really understand it. >> >> This is a complete guess, but see if it makes sense: >> >> "The authors are aware of the problems people have (frustration) >> when the names and/or function of options changes. In the future >> they will want to expand the loop input option from just one, to >> many frames. They are getting people to move over from "loop_input" >> to "loop 1" now in advance, in a way that doesn't actually break >> anything, so that in the future they can allow "loop". So for >> everyone who's using "loop 1", their scripts continue to work." >> >> i.e. >> Phase 1: loop_input works. >> Phase 2: loop_input and "loop 1" both work, people switch over to new form. >> Phase 3: "loop n" works. >> result... new feature introduced without pain. >> >> As I said, just a guess... > > Yes, in the meanwhile we forgot to properly update docs, feel free to > file a bug report against this one (or even better write a patch for > it) so the next fellow won't waste his time again. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user Thank you much, now I have understood. Thanks also to other that have replied to my question Sandro -- Sto ascoltando: *Pink Floyd ? Set The Controls For The Heart Of The Sun * - http://bit.ly/q73sQd To divide a cube into two other cubes, a fourth power or in general any power whatever into two powers of the same denomination above the second is impossible, and I have assuredly found an admirable proof of this, but the margin is too narrow to contain it. From hardik.sharma22 at yahoo.com Tue Oct 4 00:08:50 2011 From: hardik.sharma22 at yahoo.com (Hardik Sharma) Date: Mon, 3 Oct 2011 15:08:50 -0700 (PDT) Subject: [FFmpeg-user] error concealment from ffmpeg/x264 for h264 videos In-Reply-To: <20111001171847.GL15198@kiste2> References: <1317447135300-3862185.post@n4.nabble.com> <20111001171847.GL15198@kiste2> Message-ID: <1317679730.22069.YahooMailNeo@web46204.mail.sp1.yahoo.com> So I tried one more time by dropping 5% slices other then I slices from the sequence.?Stream is - http://www.datafilehost.com/download-cb9f3d25.html ? It dropped more then 35 frames while decoding through ffmpeg and psnr also get worse. Please let me know regarding his problem. ? ________________________________ From: Michael Niedermayer [via FFmpeg-users] To: HardikSharma Sent: Saturday, 1 October 2011 10:19 AM Subject: Re: error concealment from ffmpeg/x264 for h264 videos On Fri, Sep 30, 2011 at 10:32:15PM -0700, HardikSharma wrote: ________________________________ Please provide the h264 stream you use so we can reproduce this difference [...] -- Michael ? ? GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB It is what and why we do it that matters, not just one of them. _______________________________________________ ffmpeg-user mailing list [hidden email] http://ffmpeg.org/mailman/listinfo/ffmpeg-user signature.asc (205 bytes) Download Attachment ________________________________ If you reply to this email, your message will be added to the discussion below: http://ffmpeg-users.933282.n4.nabble.com/error-concealment-from-ffmpeg-x264-for-h264-videos-tp3862185p3863299.html To unsubscribe from error concealment from ffmpeg/x264 for h264 videos, click here. From phamsyquybk at gmail.com Tue Oct 4 03:39:34 2011 From: phamsyquybk at gmail.com (Quy Pham Sy) Date: Tue, 4 Oct 2011 10:39:34 +0900 Subject: [FFmpeg-user] [ffmpeg-user] transcode and segment at the same time Message-ID: Hi all, I want to implement HTTP streaming server, which is similar to this (http://www.ioncannon.net/programming/452/iphone-http-streaming-with-ffmpeg-and-an-open-source-segmenter/) But, instead of segment the video file after it is completely converted by ffmpeg, I want to do encoding and segmenting at the same time (something like if the output stream from the encoder is sent to the segmenter immediately). what should be the appropriate solution for this? Thanks Quy From jeisom at gmail.com Tue Oct 4 13:15:08 2011 From: jeisom at gmail.com (Jonathan Isom) Date: Tue, 4 Oct 2011 06:15:08 -0500 Subject: [FFmpeg-user] [ffmpeg-user] transcode and segment at the same time In-Reply-To: References: Message-ID: On Mon, Oct 3, 2011 at 8:39 PM, Quy Pham Sy wrote: > Hi all, > > I want to implement HTTP streaming server, which is similar to this > (http://www.ioncannon.net/programming/452/iphone-http-streaming-with-ffmpeg-and-an-open-source-segmenter/) > But, instead of segment the video file after it is completely > converted by ffmpeg, I want to do encoding and segmenting at the same > time (something like if the output stream from the encoder is sent to > the segmenter immediately). > > what should be the appropriate solution for this? Hi I was just messing with this the other day. Something like this should do. set the output to "pipe:" and use a pipe to the segmenter and "-" for the segmenter to read from the pipe. example ffmpeg -i rtp://127.0.0.1:1234 -y -r 29.97 -vcodec libx264 -vprofile baseline -preset veryfast -threads 4 -b 300000 -acodec libfaac -ac 2 -ab 128000 -f mpegts -s 854x480 pipe: | segmenter - Jonathan > Thanks > Quy > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From derschu50 at googlemail.com Tue Oct 4 17:03:29 2011 From: derschu50 at googlemail.com (DasDing) Date: Tue, 4 Oct 2011 08:03:29 -0700 (PDT) Subject: [FFmpeg-user] No encpding Frames with MPEG-TS H.264 In-Reply-To: References: <1317630394693-3866884.post@n4.nabble.com> Message-ID: <1317740609275-3871312.post@n4.nabble.com> This is my command line for ffmpeg, http://pastebin.com/m5UujZCb click . It's a batch (I don't know if everyone does this on the same way :D). And I recorded, with DVB Viewer, a MPEG-TS file and looked the encoder up with "MediaInfo" (if anyone ask, I don't want a MPEG-TS file). Here the text-log from MediInfo, http://pastebin.com/UsDVKEh4 click . I hope now you have got all information to help me :). -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/No-encoding-Frames-with-MPEG-TS-H-264-tp3866884p3871312.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From rogerdpack2 at gmail.com Tue Oct 4 17:50:23 2011 From: rogerdpack2 at gmail.com (Roger Pack) Date: Tue, 4 Oct 2011 09:50:23 -0600 Subject: [FFmpeg-user] recording screen with audio to webm In-Reply-To: References: <4E89F223.7040201@turmel.org> Message-ID: > Man... thanks, I didn't know it about. I puted away -an option and now it > records audio. > What is the options which give the best quality of video and sound when > recording to webm -- what will be the command? There are some presets I believe. If you figure out a good one post back I'd love to know. -r From rogerdpack2 at gmail.com Tue Oct 4 17:51:52 2011 From: rogerdpack2 at gmail.com (Roger Pack) Date: Tue, 4 Oct 2011 09:51:52 -0600 Subject: [FFmpeg-user] [ffmpeg-user] transcode and segment at the same time In-Reply-To: References: Message-ID: > I want to implement HTTP streaming server, which is similar to this > (http://www.ioncannon.net/programming/452/iphone-http-streaming-with-ffmpeg-and-an-open-source-segmenter/) > But, instead of segment the video file after it is completely > converted by ffmpeg, I want to do encoding and segmenting at the same > time (something like if the output stream from the encoder is sent to > the segmenter immediately). > > what should be the appropriate solution for this? You may be able to modify the segmenter code (which uses libav) so that it does transcoding as well. -r From belcampo at zonnet.nl Tue Oct 4 18:41:02 2011 From: belcampo at zonnet.nl (belcampo) Date: Tue, 04 Oct 2011 18:41:02 +0200 Subject: [FFmpeg-user] No encpding Frames with MPEG-TS H.264 In-Reply-To: <1317740609275-3871312.post@n4.nabble.com> References: <1317630394693-3866884.post@n4.nabble.com> <1317740609275-3871312.post@n4.nabble.com> Message-ID: <4E8B371E.6060800@zonnet.nl> On 10/04/2011 05:03 PM, DasDing wrote: > This is my command line for ffmpeg, http://pastebin.com/m5UujZCb click . > It's a batch (I don't know if everyone does this on the same way :D). > > And I recorded, with DVB Viewer, a MPEG-TS file and looked the encoder up I don't know dvb viewer, but your command line says ffmpeg -i http://...... Are you trying to live-encode ?? from a http://stream then that would probably the reason for those messages. If you first save it to original.ts and the ffmpeg -i original.ts ...... it would probably solve your error messages. Further this isn't a 1080p recording but as mediainfo says Scan type : Interlaced Scan order : Top Field First > with "MediaInfo" (if anyone ask, I don't want a MPEG-TS file). > Here the text-log from MediInfo, http://pastebin.com/UsDVKEh4 click . > > I hope now you have got all information to help me :). > > -- > View this message in context: http://ffmpeg-users.933282.n4.nabble.com/No-encoding-Frames-with-MPEG-TS-H-264-tp3866884p3871312.html > Sent from the FFmpeg-users mailing list archive at Nabble.com. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From derschu50 at googlemail.com Tue Oct 4 19:03:46 2011 From: derschu50 at googlemail.com (DasDing) Date: Tue, 4 Oct 2011 10:03:46 -0700 (PDT) Subject: [FFmpeg-user] No encpding Frames with MPEG-TS H.264 In-Reply-To: <4E8B371E.6060800@zonnet.nl> References: <1317630394693-3866884.post@n4.nabble.com> <1317740609275-3871312.post@n4.nabble.com> <4E8B371E.6060800@zonnet.nl> Message-ID: <1317747826689-3871659.post@n4.nabble.com> belcampo wrote: > > I don't know dvb viewer, but your command line says ffmpeg -i > http://...... > Are you trying to live-encode ?? from a http://stream then that would > probably the reason for those messages. If you first save it to > original.ts and the ffmpeg -i original.ts ...... > it would probably solve your error messages. > Further this isn't a 1080p recording but as mediainfo says > Scan type : Interlaced > Scan order : Top Field First > I have said, that it works with normal TV channels. There is no problem. I havealso tried, first to record from DVB Viewer and then encoded with ffmpeg, but i doesn't work either. It's the same error message. Here a little info how it work's with the "http stream": First the source comes from the tv card to my DVB Viewer. Then I have a picture there. I have installed a plugin called "netstream", it restreamed the video to a http protocol. So I can get a picture with this adress "http://127.0.0.1:2345", for example in vlc media player. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/No-encoding-Frames-with-MPEG-TS-H-264-tp3866884p3871659.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From belcampo at zonnet.nl Tue Oct 4 19:19:36 2011 From: belcampo at zonnet.nl (belcampo) Date: Tue, 04 Oct 2011 19:19:36 +0200 Subject: [FFmpeg-user] No encpding Frames with MPEG-TS H.264 In-Reply-To: <1317747826689-3871659.post@n4.nabble.com> References: <1317630394693-3866884.post@n4.nabble.com> <1317740609275-3871312.post@n4.nabble.com> <4E8B371E.6060800@zonnet.nl> <1317747826689-3871659.post@n4.nabble.com> Message-ID: <4E8B4028.6090601@zonnet.nl> On 10/04/2011 07:03 PM, DasDing wrote: > belcampo wrote: >> I don't know dvb viewer, but your command line says ffmpeg -i >> http://...... >> Are you trying to live-encode ?? from a http://stream then that would >> probably the reason for those messages. If you first save it to >> original.ts and the ffmpeg -i original.ts ...... >> it would probably solve your error messages. >> Further this isn't a 1080p recording but as mediainfo says >> Scan type : Interlaced >> Scan order : Top Field First >> > I have said, that it works with normal TV channels. There is no problem. The difference is that 'normal' TV is mpeg2 with 25fps and a certain I-frame every 12th frame. HD is h264 with far less certainty when an I-frame comes, that's why I suggested to 1st save the file. But as you stated that also isn't working. VLC also can encode, is that working with the file you have ? > I havealso tried, first to record from DVB Viewer and then encoded with > ffmpeg, but i doesn't work either. It's the same error message. > > Here a little info how it work's with the "http stream": > First the source comes from the tv card to my DVB Viewer. Then I have a > picture there. I have installed a plugin called "netstream", it restreamed > the video to a http protocol. So I can get a picture with this adress > "http://127.0.0.1:2345", for example in vlc media player. > > -- > View this message in context: http://ffmpeg-users.933282.n4.nabble.com/No-encoding-Frames-with-MPEG-TS-H-264-tp3866884p3871659.html > Sent from the FFmpeg-users mailing list archive at Nabble.com. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From derschu50 at googlemail.com Tue Oct 4 19:23:59 2011 From: derschu50 at googlemail.com (DasDing) Date: Tue, 4 Oct 2011 10:23:59 -0700 (PDT) Subject: [FFmpeg-user] No encpding Frames with MPEG-TS H.264 In-Reply-To: <4E8B4028.6090601@zonnet.nl> References: <1317630394693-3866884.post@n4.nabble.com> <1317740609275-3871312.post@n4.nabble.com> <4E8B371E.6060800@zonnet.nl> <1317747826689-3871659.post@n4.nabble.com> <4E8B4028.6090601@zonnet.nl> Message-ID: <1317749039887-3871718.post@n4.nabble.com> belcampo wrote: > > The difference is that 'normal' TV is mpeg2 with 25fps and a certain > I-frame every 12th frame. > HD is h264 with far less certainty when an I-frame comes, that's why I > suggested to 1st save the file. But as you stated that also isn't > working. VLC also can encode, is that working with the file you have ? > Yeah, I know that normal TV channels are in MPEG-2 and HD Channels in h.264, but I think vlc is not really an alternative for me. Is there no way to get it work with ffmpeg? Because I saw that ffmpeg can also encode h.264 and AVC so why not with the source from DVB Viewer? -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/No-encoding-Frames-with-MPEG-TS-H-264-tp3866884p3871718.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From belcampo at zonnet.nl Tue Oct 4 19:29:04 2011 From: belcampo at zonnet.nl (belcampo) Date: Tue, 04 Oct 2011 19:29:04 +0200 Subject: [FFmpeg-user] No encpding Frames with MPEG-TS H.264 In-Reply-To: <1317749039887-3871718.post@n4.nabble.com> References: <1317630394693-3866884.post@n4.nabble.com> <1317740609275-3871312.post@n4.nabble.com> <4E8B371E.6060800@zonnet.nl> <1317747826689-3871659.post@n4.nabble.com> <4E8B4028.6090601@zonnet.nl> <1317749039887-3871718.post@n4.nabble.com> Message-ID: <4E8B4260.4010905@zonnet.nl> On 10/04/2011 07:23 PM, DasDing wrote: > belcampo wrote: >> The difference is that 'normal' TV is mpeg2 with 25fps and a certain >> I-frame every 12th frame. >> HD is h264 with far less certainty when an I-frame comes, that's why I >> suggested to 1st save the file. But as you stated that also isn't >> working. VLC also can encode, is that working with the file you have ? >> > Yeah, I know that normal TV channels are in MPEG-2 and HD Channels in h.264, > but I think vlc is not really an alternative for me. I only asked to be sure there is no problem with the source file, just for testing purpose. > Is there no way to get it work with ffmpeg? Because I saw that ffmpeg can > also encode h.264 and AVC so why not with the source from DVB Viewer? I encode daily h264 material with ffmpeg without any problem. source coming frome satelite DVB-S > > -- > View this message in context: http://ffmpeg-users.933282.n4.nabble.com/No-encoding-Frames-with-MPEG-TS-H-264-tp3866884p3871718.html > Sent from the FFmpeg-users mailing list archive at Nabble.com. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From derschu50 at googlemail.com Tue Oct 4 19:36:40 2011 From: derschu50 at googlemail.com (DasDing) Date: Tue, 4 Oct 2011 10:36:40 -0700 (PDT) Subject: [FFmpeg-user] No encpding Frames with MPEG-TS H.264 In-Reply-To: <4E8B4260.4010905@zonnet.nl> References: <1317630394693-3866884.post@n4.nabble.com> <1317740609275-3871312.post@n4.nabble.com> <4E8B371E.6060800@zonnet.nl> <1317747826689-3871659.post@n4.nabble.com> <4E8B4028.6090601@zonnet.nl> <1317749039887-3871718.post@n4.nabble.com> <4E8B4260.4010905@zonnet.nl> Message-ID: <1317749800741-3871765.post@n4.nabble.com> belcampo wrote: > > I only asked to be sure there is no problem with the source file, just > for testing purpose. > The source file is just fine, good bild and sound quality. belcampo wrote: > > I encode daily h264 material with ffmpeg without any problem. source > coming frome satelite DVB-S > I have DVB-C, but I think there is no quality difference. What source file do you have? MPEG-TS? -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/No-encoding-Frames-with-MPEG-TS-H-264-tp3866884p3871765.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From kiran at web4half.com Tue Oct 4 07:08:36 2011 From: kiran at web4half.com (Kiran) Date: Tue, 4 Oct 2011 10:38:36 +0530 Subject: [FFmpeg-user] ffmpeg.so Message-ID: <000501cc8253$b1c02d80$15408880$@com> Hi, We have installed ffmpeg in our server. But ffmpeg.so file is missing in extension directory '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/' and we are getting error log as follows each time when we are running the tool. PHP.ini is not showing any details regarding installed. Please help us to fix this issue . Error Log: [03-Oct-2011 02:02:33] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/ffmpeg.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/ffmpeg.so: cannot open shared object file: No such file or directory in Unknown on line 0 We are hopefully waiting for a reply from you. Thank you. Thanks & Regards Web Development Team signature Web4half.com 5306 Six Forks Rd, Suite # 221, Raleigh, NC 27609 Office : 888-880-4253 | Fax : 516-809-0386 E-mail : services at web4half.com | www.Web4half.com -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 7787 bytes Desc: not available URL: From marcreichman at gmail.com Tue Oct 4 15:47:41 2011 From: marcreichman at gmail.com (Marc Reichman) Date: Tue, 04 Oct 2011 09:47:41 -0400 Subject: [FFmpeg-user] image extractions using image2 don't line up with video Message-ID: <4E8B0E7D.5050102@gmail.com> I am extracting images from videos to use as a thumbnail storyboard such that clicking images will advance a video player to the time of the extracted image. I'm using the following command line: ffmpeg -i input.m4v -f image2 -r 1/1 -s 96x72 image%06d.jpg I am finding that the extracted images do not line up with the video used to extract them. This for example, should be outputting one image per second of video, but the images seem to lag behind the video time about 1-2 seconds. Am I doing something wrong with the command line or can I add something to help it line up better? Thanks, Marc From htgirish at gmail.com Tue Oct 4 18:48:18 2011 From: htgirish at gmail.com (Girish H T) Date: Tue, 4 Oct 2011 22:18:18 +0530 Subject: [FFmpeg-user] Android Camera + FFMPEG + RTP Message-ID: Hi, Is it possible to stream android camera data over ffserver so that i can receive it @ VLC connected in the same network. Is it possible to pass raw buffer (YUV420) to ffserver which i get from android camera. I dont have access to video4linux2. Please let me know a configuration where in i can stream on the fly data i am getting from the android camera data. What are the steps i need to accomplish this task. Please suggest. Regards Girish From lou at lrcd.com Tue Oct 4 20:00:55 2011 From: lou at lrcd.com (Lou) Date: Tue, 4 Oct 2011 10:00:55 -0800 Subject: [FFmpeg-user] ffmpeg.so In-Reply-To: <000501cc8253$b1c02d80$15408880$@com> References: <000501cc8253$b1c02d80$15408880$@com> Message-ID: <20111004100055.6ed2f2dc@lrcd.com> On Tue, 4 Oct 2011 10:38:36 +0530 "Kiran" wrote: > Hi, > > > > We have installed ffmpeg in our server. But ffmpeg.so file is missing > in extension directory > '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/' and we are > getting error log as follows each time when we are running the tool. > PHP.ini is not showing any details regarding installed. Please help > us to fix this issue . > > > > > > Error Log: > > > > [03-Oct-2011 02:02:33] PHP Warning: PHP Startup: Unable to load > dynamic library > '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/ffmpeg.so' > - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/ffmpeg.so: > cannot open shared object file: No such file or directory in Unknown > on line 0 > > > > We are hopefully waiting for a reply from you. Thank you. > > > > > > > > Thanks & Regards > > Web Development Team > > signature > > Web4half.com > > 5306 Six Forks Rd, Suite # 221, Raleigh, NC 27609 > > Office : 888-880-4253 | Fax : 516-809-0386 > > E-mail : services at web4half.com | > www.Web4half.com Despite the name, ffmpeg-php is not a FFmpeg project and therefore is not supported by FFmpeg. I'm not sure if the authors will offer any support because the project appears dead to me. There's a fork that looks more active: https://github.com/char0n/ffmpeg-php From belcampo at zonnet.nl Tue Oct 4 23:42:39 2011 From: belcampo at zonnet.nl (belcampo) Date: Tue, 04 Oct 2011 23:42:39 +0200 Subject: [FFmpeg-user] No encpding Frames with MPEG-TS H.264 In-Reply-To: <1317749800741-3871765.post@n4.nabble.com> References: <1317630394693-3866884.post@n4.nabble.com> <1317740609275-3871312.post@n4.nabble.com> <4E8B371E.6060800@zonnet.nl> <1317747826689-3871659.post@n4.nabble.com> <4E8B4028.6090601@zonnet.nl> <1317749039887-3871718.post@n4.nabble.com> <4E8B4260.4010905@zonnet.nl> <1317749800741-3871765.post@n4.nabble.com> Message-ID: <4E8B7DCF.4080608@zonnet.nl> On 10/04/2011 07:36 PM, DasDing wrote: > belcampo wrote: >> I only asked to be sure there is no problem with the source file, just >> for testing purpose. >> > The source file is just fine, good bild and sound quality. Checked with ?? If, and I only if, so it may not be true, DVB Viewer is what you test it with, and if DVB Viewer somehow changes the stream, you won't be able to say that it is a unaltered DVB-C stream. This is all speculation. Therefore to be sure, test what vlc does with it, as asked before. Beside the error messages, how is the encoded file playable or not? > > > belcampo wrote: >> I encode daily h264 material with ffmpeg without any problem. source >> coming frome satelite DVB-S >> > I have DVB-C, but I think there is no quality difference. > What source file do you have? MPEG-TS? Everything from satelite is in mpeg-ts container. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/No-encoding-Frames-with-MPEG-TS-H-264-tp3866884p3871765.html Sent from the FFmpeg-users mailing list archive at Nabble.com. _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From hardik.sharma22 at yahoo.com Tue Oct 4 23:47:02 2011 From: hardik.sharma22 at yahoo.com (HardikSharma) Date: Tue, 4 Oct 2011 14:47:02 -0700 (PDT) Subject: [FFmpeg-user] error concealment from ffmpeg/x264 for h264 videos In-Reply-To: <1317679730.22069.YahooMailNeo@web46204.mail.sp1.yahoo.com> References: <1317447135300-3862185.post@n4.nabble.com> <20111001171847.GL15198@kiste2> <1317679730.22069.YahooMailNeo@web46204.mail.sp1.yahoo.com> Message-ID: <1317764822724-3872547.post@n4.nabble.com> Any clue that why it is dropping frames? Thats the main reason why I am getting so low PSNR as compared to JM. The ffmpeg version I am using is - git-N-30860-g83f9bc8. I don't think this version should be a problem. Please let me know. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/error-concealment-from-ffmpeg-x264-for-h264-videos-tp3862185p3872547.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From gaurav.g at sasken.com Wed Oct 5 12:19:44 2011 From: gaurav.g at sasken.com (Gaurav G) Date: Wed, 5 Oct 2011 15:49:44 +0530 Subject: [FFmpeg-user] how to understand a given file AAC file is of SBR profile(AAC+) Message-ID: <6F91E0FFDA542149961F7BDED2D2B94B22636C3839@EXGMBX01.sasken.com> Hi, For my code i need to know at the time of parser init whether a given file is a SBR or HE to make my application initialization proper. I have gone through the code in libavcodec/aac.c file in the aac_decode_init() and understood that if extradata_size is more than zero then i can know the required information. But my input file does not have the extradata so i am not able to know the aac type. Please, help me to understand is their a way to know at the time of initialization the AAC type. Thanks, gaurav SASKEN BUSINESS DISCLAIMER: This message may contain confidential, proprietary or legally privileged information. In case you are not the original intended Recipient of the message, you must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message and you are requested to delete it and inform the sender. Any views expressed in this message are those of the individual sender unless otherwise stated. Nothing contained in this message shall be construed as an offer or acceptance of any offer by Sasken Communication Technologies Limited ("Sasken") unless sent with that express intent and with due authority of Sasken. Sasken has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email. Read Disclaimer at http://www.sasken.com/extras/mail_disclaimer.html From dusa.adrian at gmail.com Wed Oct 5 13:19:48 2011 From: dusa.adrian at gmail.com (Adrian Dusa) Date: Wed, 5 Oct 2011 14:19:48 +0300 Subject: [FFmpeg-user] CLI ffmpeg on MacOS In-Reply-To: References: Message-ID: On Mon, Oct 3, 2011 at 18:43, Roger Pack wrote: >> Apologies for bumping up this thread, I only would like to know if >> there is a solution or not: should I dig further? >> Thanks, > > AFAIK OS X doesn't have a screen capture input currently, though I may > port VLC's qtcapture to it at some point. Thanks for this, I figured this much. Currently, I am able to capture screen portions using QuickTime, which proves that screen capture is generally possible. The question is if I can do it from the command line (specifying precise parameters) instead of an imprecise drag, and of course I would very much prefer ffmpeg instead of QuickTime (it's so much better...). Thanks again, Adrian From derschu50 at googlemail.com Wed Oct 5 13:20:58 2011 From: derschu50 at googlemail.com (DasDing) Date: Wed, 5 Oct 2011 04:20:58 -0700 (PDT) Subject: [FFmpeg-user] No encpding Frames with MPEG-TS H.264 In-Reply-To: <4E8B7DCF.4080608@zonnet.nl> References: <1317630394693-3866884.post@n4.nabble.com> <1317740609275-3871312.post@n4.nabble.com> <4E8B371E.6060800@zonnet.nl> <1317747826689-3871659.post@n4.nabble.com> <4E8B4028.6090601@zonnet.nl> <1317749039887-3871718.post@n4.nabble.com> <4E8B4260.4010905@zonnet.nl> <1317749800741-3871765.post@n4.nabble.com> <4E8B7DCF.4080608@zonnet.nl> Message-ID: <1317813658183-3874123.post@n4.nabble.com> belcampo wrote: > > The source file is just fine, good bild and sound quality. > Checked with ?? > I tested this file with vlc media player, i don't know no other program that plays MPEG-TS. belcampo wrote: > > Beside the error messages, how is the encoded file playable or not? > The file is only 0 kb big and it's not playable (tested also with vlc media player). The ffmpeg don't encode any frame (see screenshot in the first post). -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/No-encoding-Frames-with-MPEG-TS-H-264-tp3866884p3874123.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From nicolas.george at normalesup.org Wed Oct 5 14:05:07 2011 From: nicolas.george at normalesup.org (Nicolas George) Date: Wed, 5 Oct 2011 14:05:07 +0200 Subject: [FFmpeg-user] ffmpeg crashes with -force_key_frames? In-Reply-To: References: Message-ID: <20111005120507.GA21142@phare.normalesup.org> Le duodi 12 vend?miaire, an CCXX, Wan-Yi Lin a ?crit?: > I am very new to ffmpeg so if my question is silly, please forgive me. It was not silly at all. > My goal is to encode the video so that there is an I (key) frame at 10 > second mark(or right after 10 second mark). I tried > > ffmpeg -i input.avi -acodec ac3 -vcodec libx264 -b 1200k > -force_key_frames:v 00:00:10:00 out.avi > > but ffmpeg crashed. I tried on Windows and Linux, both ffmpeg crashed. Can you try the patch I just submitted: https://lists.ffmpeg.org/pipermail/ffmpeg-devel/2011-October/115562.html and see if it fixes the problem for you? And if you have other reasons to post questions here, please try to remember to also include a verbatim copy of the full output of ffmpeg. It was not necessary here because the problem was very specific, but it may have been. Regards, -- Nicolas George -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From krueger at signal7.de Wed Oct 5 17:42:24 2011 From: krueger at signal7.de (=?iso-8859-1?Q?Robert_Kr=FCger?=) Date: Wed, 5 Oct 2011 17:42:24 +0200 Subject: [FFmpeg-user] Has anyone successfully used the deshake filter? Message-ID: Hi, first of all, thanks a lot for integrating the deshake filter so quickly! I have tried it on two samples so far, both with default parameters. Both contain raw footage from a camera that shakes noticably but I could not see a difference between result and original clip and I would expect black edges here and there when the image is moved to correct the camera shake. Has anyone tried this and achieved better results? Regards, Robert From nikolay.pruss at baesystems.com Wed Oct 5 19:30:44 2011 From: nikolay.pruss at baesystems.com (Pruss, Nikolay (US SSA)) Date: Wed, 5 Oct 2011 13:30:44 -0400 Subject: [FFmpeg-user] ffmpeg windows build Message-ID: Hello, I have downloaded FFmpeg libraries from ffmpeg.zeranoe.com/builds/ site. These are the windows dlls from "32-bit Builds (Dev)" section. However, I noticed that these libraries were built with - -enable-libx264 compiler's flag which is a problem in my case. What would be the easiest way to get these libraries compiled without libx264? I know that there is an option to rebuild the code myself, however it looks like I would have to setup Cygwin, mingw-w64 and the rest of 3-rd party software and build rebuild them all. It looks like it may take much effort and time that I don't really have. Is there any simpler way to get these dlls? Thanks! Sincerely, Nikolay Pruss From openworld at uralweb.ru Wed Oct 5 19:47:01 2011 From: openworld at uralweb.ru (Alexander Bokovikov) Date: Wed, 5 Oct 2011 23:47:01 +0600 Subject: [FFmpeg-user] FFMPEG BUG REPORT - FLV to MOV (incorrect codec FOURCC) In-Reply-To: References: Message-ID: <6C9523CB-2EA7-4655-9266-F59160349FE4@uralweb.ru> Hi, All, Hope I'm writing to a correct list... It's an obvious bug, which occurs when I use -vcodec copy option for FLV conversion to MOV container. My FLV file has Sorenson H263 video (i.e. FLV video codec #2). It should be placed into MOV container with "FLV1" FOURCC signature, but it is placed as "H263" FOURCC, which is not recognized by QT player. This was tested on mac OS X 10.5 with QT Pro v. 7.7 Can it be fixed? I can update fourcc manually within mov file and it starts to work correctly. So, the problem is just in the incorrect fourcc, but not in the codec itself. Here is FFMPEG build data: ffmpeg version N-33243-g85ea5c6, Copyright (c) 2000-2011 the FFmpeg developers built on Oct 5 2011 22:37:07 with gcc 4.0.1 (Apple Inc. build 5493) configuration: --enable-static --enable-memalign-hack -- enable-gpl --enable-libx264 --disable-doc --disable-ffserver --disable- ffplay --disable-ffprobe --enable-pthreads --enable-runtime-cpudetect --disable-network --disable-shared --disable-filters --disable- decoders --disable-encoders --disable-muxers --disable-demuxers -- disable-parsers --disable-bsfs --disable-protocols --disable-devices -- enable-filter=crop --enable-filter=scale --enable-protocol=file -- enable-decoder=aac --enable-decoder=h263 --enable-decoder=flv --enable- decoder=vp6f --enable-decoder=vp6a --enable-decoder=h264 --enable- decoder=nellymoser --enable-decoder=mp3 --enable-encoder=libx264 -- enable-encoder=flv --enable-encoder=aac --enable-parser=h264 --enable- parser=mpegaudio --enable-demuxer=flv --enable-muxer=ipod --enable- muxer=mp4 libavutil 51. 19. 0 / 51. 19. 0 libavcodec 53. 19. 0 / 53. 19. 0 libavformat 53. 13. 0 / 53. 13. 0 libavdevice 53. 4. 0 / 53. 4. 0 libavfilter 2. 43. 6 / 2. 43. 6 libswscale 2. 1. 0 / 2. 1. 0 libpostproc 51. 2. 0 / 51. 2. 0 mov muxer is not enabled explicitly here, but it is enabled automatically as we enable ipod muxer. -Thanks. From openworld at uralweb.ru Wed Oct 5 21:54:19 2011 From: openworld at uralweb.ru (Alexander Bokovikov) Date: Thu, 6 Oct 2011 01:54:19 +0600 Subject: [FFmpeg-user] FFMPEG BUG REPORT - FLV to MOV (incorrect codec FOURCC) [SOLVED] In-Reply-To: References: Message-ID: Followup: Here is a 5-minute patch. It works for me, though I don't think this is a pretty correct location to insert this patch. Probably it is better to patch a location, where "copy" codec type is casted to "H263". movenc.c: static int mov_write_video_tag(AVIOContext *pb, MOVTrack *track) { int64_t pos = avio_tell(pb); char compressor_name[32]; // uint32_t myTag; // avio_wb32(pb, 0); /* size */ // myTag = track->tag; if (myTag = 0x33363248) { myTag = 0x31564C46; //av_log(pb, AV_LOG_QUIET, "track tag %08x\n", track->tag); } avio_wl32(pb, myTag); // store it byteswapped // .............. Regards, -Alex From belcampo at zonnet.nl Wed Oct 5 23:05:23 2011 From: belcampo at zonnet.nl (belcampo) Date: Wed, 05 Oct 2011 23:05:23 +0200 Subject: [FFmpeg-user] No encpding Frames with MPEG-TS H.264 In-Reply-To: <1317813658183-3874123.post@n4.nabble.com> References: <1317630394693-3866884.post@n4.nabble.com> <1317740609275-3871312.post@n4.nabble.com> <4E8B371E.6060800@zonnet.nl> <1317747826689-3871659.post@n4.nabble.com> <4E8B4028.6090601@zonnet.nl> <1317749039887-3871718.post@n4.nabble.com> <4E8B4260.4010905@zonnet.nl> <1317749800741-3871765.post@n4.nabble.com> <4E8B7DCF.4080608@zonnet.nl> <1317813658183-3874123.post@n4.nabble.com> Message-ID: <4E8CC693.80806@zonnet.nl> On 10/05/2011 01:20 PM, DasDing wrote: > belcampo wrote: >> The source file is just fine, good bild and sound quality. >> Checked with ?? >> > I tested this file with vlc media player, i don't know no other program that > plays MPEG-TS. > > > belcampo wrote: >> Beside the error messages, how is the encoded file playable or not? >> > The file is only 0 kb big and it's not playable (tested also with vlc media > player). > The ffmpeg don't encode any frame (see screenshot in the first post). > > -- > View this message in context: http://ffmpeg-users.933282.n4.nabble.com/No-encoding-Frames-with-MPEG-TS-H-264-tp3866884p3874123.html > Sent from the FFmpeg-users mailing list archive at Nabble.com. The switching from my mail-client to my browser to view things in context is very anoying to me. Further you don't seem to want to test how vlc encodes makes me stop reacting on this. A lot of success with it. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From rogerdpack2 at gmail.com Wed Oct 5 23:24:34 2011 From: rogerdpack2 at gmail.com (Roger Pack) Date: Wed, 5 Oct 2011 15:24:34 -0600 Subject: [FFmpeg-user] ffmpeg windows build In-Reply-To: <20111005182636.525DC10E196@avserver.banki.hu> References: <20111005182636.525DC10E196@avserver.banki.hu> Message-ID: > I have downloaded FFmpeg libraries from ffmpeg.zeranoe.com/builds/ site. ?These are the windows dlls from "32-bit Builds (Dev)" section. ?However, I noticed that these libraries were built with ? - -enable-libx264 compiler's flag which is a problem in my case. ?What would be the easiest way to get these libraries compiled without libx264? ?I know that there is an option to rebuild the code myself, however it looks like I would have to setup Cygwin, mingw-w64 and the rest of 3-rd party software and build rebuild them all. ?It looks like it may take much effort and time that I don't really have. ?Is there any simpler way to get these dlls? ?Thanks! Asking on the zeranoe forum might help :) In general, you can build your own by running the scripts from his blog: http://ffmpeg.zeranoe.com/blog/ then compile without those options: http://betterlogic.com/roger/2011/09/ffmpeg-compileconfigure-windows/ might help too. GL! -r From rogerdpack2 at gmail.com Wed Oct 5 23:26:21 2011 From: rogerdpack2 at gmail.com (Roger Pack) Date: Wed, 5 Oct 2011 15:26:21 -0600 Subject: [FFmpeg-user] ffmpeg.so In-Reply-To: <000501cc8253$b1c02d80$15408880$@com> References: <000501cc8253$b1c02d80$15408880$@com> Message-ID: > [03-Oct-2011 02:02:33] PHP Warning: ?PHP Startup: Unable to load dynamic > library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/ffmpeg.so' > - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/ffmpeg.so: cannot > open shared object file: No such file or directory in Unknown on line 0 Perhaps it's missing a dependency? run ldd against it? -r From rectalogic at rectalogic.com Wed Oct 5 23:38:13 2011 From: rectalogic at rectalogic.com (Andrew Wason) Date: Wed, 5 Oct 2011 17:38:13 -0400 Subject: [FFmpeg-user] FFMPEG BUG REPORT - FLV to MOV (incorrect codec FOURCC) In-Reply-To: <6C9523CB-2EA7-4655-9266-F59160349FE4@uralweb.ru> References: <6C9523CB-2EA7-4655-9266-F59160349FE4@uralweb.ru> Message-ID: On Wed, Oct 5, 2011 at 1:47 PM, Alexander Bokovikov wrote: > It should be placed into MOV container with "FLV1" FOURCC > signature, but it is placed as "H263" FOURCC, which is > not recognized by QT Can you use "-vtag FLV1" to fix it? Andrew From openworld at uralweb.ru Thu Oct 6 05:35:43 2011 From: openworld at uralweb.ru (Alexander Bokovikov) Date: Thu, 6 Oct 2011 09:35:43 +0600 Subject: [FFmpeg-user] FFMPEG BUG REPORT - FLV to MOV (incorrect codec FOURCC) [SOLVED 2] In-Reply-To: References: Message-ID: On 06.10.2011, at 3:55, Carl Eugen Hoyos wrote: > http://thread.gmane.org/gmane.comp.video.ffmpeg.user/33102 > > I didn't know QuickTime supports Sorenson Spark in mov - could you > upload a sample (one of those you modified and tested successfully) > to http://www.datafilehost.com/ and send us the link? > > In my tests, I was unable to play Sorenson Spark in mov with > QuickTime, Flash Media Server unfortunately produces isom files > containg Sorenson Spark with "H263". I'm sorry, I've forgot to tell that I use Perian add-on for QT (http://perian.org/ ). It extends QT player with support of many famous formats like H264, DIVX, etc. So, I don't know exactly, if Perian is used or not when I'm playing this movie, but QT definitely doesn't recognize "H263" FOURCC. A screen appears, inviting to download an add-on, when I'm opening this movie. I'll test this fact on a "pure" Mac OS X though... As for QT native support for Sorenson Video, AFAIK, it supports "SVQ1" and "SVQ3" FOURCC's, and I had such movies somewhere on my PC. Unfortunately both Sorenson Video v1 and v3 are completely incompatible with the SV subversion, used in FLV/SWF. Taking into account the fact that Perian package is based on the libavcodec, I believe my question about incorrect FOURCC, inserted into the file, becomes just more actual, if it is not related to QT itself, but to Perian add-on. Regards, -Alex From mimeini at gmail.com Thu Oct 6 11:24:24 2011 From: mimeini at gmail.com (mikkel meinike) Date: Thu, 6 Oct 2011 11:24:24 +0200 Subject: [FFmpeg-user] Can ffplay do this? Message-ID: I thought of something this morning. Now if you had a cli media player that could play from a given starting point to a given end point in a video clip so you could do a quick demo kind of visualason of your "cliping" ideas with a shell script. player -from -to vide1.avi; player -from -to vide2.avi; player -from -to vide3.avi; etc MPlayer can set a start point with -ss option but no end point as the ffmpeg -t option can when converting with ffmpeg. Can ffplay set a start point and an ending point for playing a part of a video clip? other thoughts on my idea? Thanks Mikkel From ubitux at gmail.com Thu Oct 6 11:43:16 2011 From: ubitux at gmail.com (=?utf-8?B?Q2zDqW1lbnQgQsWTc2No?=) Date: Thu, 6 Oct 2011 11:43:16 +0200 Subject: [FFmpeg-user] Can ffplay do this? In-Reply-To: References: Message-ID: <20111006094316.GL1166@leki> On Thu, Oct 06, 2011 at 11:24:24AM +0200, mikkel meinike wrote: [...] > MPlayer can set a start point with -ss option but no end point as the > ffmpeg -t option can when converting with ffmpeg. mplayer -endpos ? > Can ffplay set a start point and an ending point for playing a part of a > video clip? ffplay -ss -t It's in the manpage and `ffplay -h` -- Cl?ment B. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 490 bytes Desc: not available URL: From mimeini at gmail.com Thu Oct 6 13:37:41 2011 From: mimeini at gmail.com (mikkel meinike) Date: Thu, 6 Oct 2011 13:37:41 +0200 Subject: [FFmpeg-user] Can ffplay do this? In-Reply-To: <20111006094316.GL1166@leki> References: <20111006094316.GL1166@leki> Message-ID: Fine thank you. I have ffplay. I just found out. It was compiled when i compiled ffmpeg. So I can play with it. Nice. Mikkel On Thu, Oct 6, 2011 at 11:43 AM, Cl?ment B?sch wrote: > On Thu, Oct 06, 2011 at 11:24:24AM +0200, mikkel meinike wrote: > [...] >> MPlayer can set a start point with -ss option but no end point as the >> ffmpeg -t option can when converting with ffmpeg. > > mplayer -endpos ? > >> Can ffplay set a start point and an ending point for playing a part of a >> video clip? > > ffplay -ss -t > > It's in the manpage and `ffplay -h` > > -- > Cl?ment B. > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > From derschu50 at googlemail.com Thu Oct 6 13:50:48 2011 From: derschu50 at googlemail.com (DasDing) Date: Thu, 6 Oct 2011 04:50:48 -0700 (PDT) Subject: [FFmpeg-user] No encpding Frames with MPEG-TS H.264 In-Reply-To: <4E8CC693.80806@zonnet.nl> References: <1317740609275-3871312.post@n4.nabble.com> <4E8B371E.6060800@zonnet.nl> <1317747826689-3871659.post@n4.nabble.com> <4E8B4028.6090601@zonnet.nl> <1317749039887-3871718.post@n4.nabble.com> <4E8B4260.4010905@zonnet.nl> <1317749800741-3871765.post@n4.nabble.com> <4E8B7DCF.4080608@zonnet.nl> <1317813658183-3874123.post@n4.nabble.com> <4E8CC693.80806@zonnet.nl> Message-ID: <1317901848510-3877880.post@n4.nabble.com> I can't test it with vlc, because I need ffmpeg for a little privat program. And I can't use vlc for this. I thought this is a ffmpeg froum, right? So why do you want me to use vlc when ffmpeg works with your recordings? Then it must work with my either, if their are also HD recordings. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/No-encoding-Frames-with-MPEG-TS-H-264-tp3866884p3877880.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From rhodri at kynesim.co.uk Thu Oct 6 14:03:46 2011 From: rhodri at kynesim.co.uk (Rhodri James) Date: Thu, 06 Oct 2011 13:03:46 +0100 Subject: [FFmpeg-user] No encpding Frames with MPEG-TS H.264 In-Reply-To: <1317901848510-3877880.post@n4.nabble.com> References: <1317740609275-3871312.post@n4.nabble.com> <4E8B371E.6060800@zonnet.nl> <1317747826689-3871659.post@n4.nabble.com> <4E8B4028.6090601@zonnet.nl> <1317749039887-3871718.post@n4.nabble.com> <4E8B4260.4010905@zonnet.nl> <1317749800741-3871765.post@n4.nabble.com> <4E8B7DCF.4080608@zonnet.nl> <1317813658183-3874123.post@n4.nabble.com> <4E8CC693.80806@zonnet.nl> <1317901848510-3877880.post@n4.nabble.com> Message-ID: On Thu, 06 Oct 2011 12:50:48 +0100, DasDing wrote: > I can't test it with vlc, because I need ffmpeg for a little privat > program. > And I can't use vlc for this. > I thought this is a ffmpeg froum, right? So why do you want me to use vlc > when ffmpeg works with your recordings? Then it must work with my > either, if > their are also HD recordings. Only if your recordings are both made the same way, with the same parameters, of the same channels with the same encoding choices and all. This is highly unlikely to be true. Finding out whether VLC likes your recordings would help us narrow down what the problem really is. -- Rhodri James Kynesim Ltd From sjturley at gmail.com Thu Oct 6 17:02:48 2011 From: sjturley at gmail.com (Steve Turley) Date: Thu, 6 Oct 2011 10:02:48 -0500 Subject: [FFmpeg-user] Input from named pipes Message-ID: I am reading a live/real-time MPEG-2 transport stream from a named pipe into FFmpeg. The incoming stream is MPEG-2 video and AC-3 audio. I need to transcode to H.264 and MP3. I can cat the named pipe to a file and play back the MPEG-2 video without issue in VLC or TS Reader. Does anyone have tips on how to use named pipes as input to FFmpeg? Here are some commands I've tried: ffmpeg -i ~/stream_pipe -acodec libmp3lame -ab 128k -ar 44100 -ac 2 -vcodec libx264 -vpre lossless_ultrafast -b 1000k -s 640x480 -r 29.97 -strict experimental -deinterlace -f mpegts -y udp://192.168.1.1:10000 ffmpeg -f mpegts -re -i ~/stream_pipe -acodec libmp3lame -ab 128k -ar 44100 -ac 2 -vcodec libx264 -vpre lossless_ultrafast -b 1000k -s 640x480 -r 29.97 -strict experimental -deinterlace -f mpegts -y udp://192.168.1.1:10000 And the output: [mpeg2video @ 0x207b9c0] ac-tex damaged at 1 5 [mpeg2video @ 0x207b9c0] slice mismatch [mpeg2video @ 0x207b9c0] ac-tex damaged at 6 7 [mpeg2video @ 0x207b9c0] 00 motion_type at 3 8 [mpeg2video @ 0x207b9c0] ac-tex damaged at 5 9 [mpeg2video @ 0x207b9c0] slice mismatch [mpeg2video @ 0x207b9c0] 00 motion_type at 31 11 [mpeg2video @ 0x207b9c0] 00 motion_type at 22 12 [mpeg2video @ 0x207b9c0] ac-tex damaged at 3 13 [mpeg2video @ 0x207b9c0] invalid cbp at 2 14 [mpeg2video @ 0x207b9c0] 00 motion_type at 7 15 [mpeg2video @ 0x207b9c0] slice mismatch [mpeg2video @ 0x207b9c0] 00 motion_type at 43 17 [mpeg2video @ 0x207b9c0] invalid cbp at 17 18 [mpeg2video @ 0x207b9c0] slice mismatch [mpeg2video @ 0x207b9c0] ac-tex damaged at 0 20 [mpeg2video @ 0x207b9c0] 00 motion_type at 14 21 [mpeg2video @ 0x207b9c0] ac-tex damaged at 17 22 [mpeg2video @ 0x207b9c0] invalid mb type in P Frame at 1 23 [mpeg2video @ 0x207b9c0] 00 motion_type at 1 24 [mpeg2video @ 0x207b9c0] slice mismatch [mpeg2video @ 0x207b9c0] 00 motion_type at 15 26 [mpeg2video @ 0x207b9c0] ac-tex damaged at 6 27 [mpeg2video @ 0x207b9c0] invalid cbp at 4 28 [mpeg2video @ 0x207b9c0] 00 motion_type at 9 29 [mpeg2video @ 0x207b9c0] Warning MVs not available [mpeg2video @ 0x207b9c0] concealing 1100 DC, 1100 AC, 1100 MV errors [mpeg2video @ 0x207b9c0] ac-tex damaged at 32 12 ] [mpeg2video @ 0x207b9c0] Warning MVs not available [mpeg2video @ 0x207b9c0] concealing 88 DC, 88 AC, 88 MV errors Version Info: ffmpeg version 0.8.5, Copyright (c) 2000-2011 the FFmpeg developers built on Oct 6 2011 13:19:37 with gcc 4.4.3 configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libx264 --enable-librtmp --enable-libmp3lame What is the best method of passing live video from another process into FFmpeg? Thanks, Steve Turley From derschu50 at googlemail.com Thu Oct 6 21:01:53 2011 From: derschu50 at googlemail.com (DasDing) Date: Thu, 6 Oct 2011 12:01:53 -0700 (PDT) Subject: [FFmpeg-user] No encpding Frames with MPEG-TS H.264 In-Reply-To: References: <1317747826689-3871659.post@n4.nabble.com> <4E8B4028.6090601@zonnet.nl> <1317749039887-3871718.post@n4.nabble.com> <4E8B4260.4010905@zonnet.nl> <1317749800741-3871765.post@n4.nabble.com> <4E8B7DCF.4080608@zonnet.nl> <1317813658183-3874123.post@n4.nabble.com> <4E8CC693.80806@zonnet.nl> <1317901848510-3877880.post@n4.nabble.com> Message-ID: <1317927713488-3879578.post@n4.nabble.com> Rhodri James wrote: > > Only if your recordings are both made the same way, with the same > parameters, of the same channels with the same encoding choices > and all. This is highly unlikely to be true. Finding out whether > VLC likes your recordings would help us narrow down what the > problem really is. > Hm I encoded it with VLC, the recordings from a SD channel and a HD channel. Both of the aren't playable. .. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/No-encoding-Frames-with-MPEG-TS-H-264-tp3866884p3879578.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From nackasha at gmail.com Fri Oct 7 03:20:05 2011 From: nackasha at gmail.com (Wael Louis) Date: Thu, 6 Oct 2011 21:20:05 -0400 Subject: [FFmpeg-user] Process video while streaming from youtube? Message-ID: I have some image processing function that I want to apply to a video. I am re-implementing the function in PHP. What I am planning to do is the following: 1- On my website, a user search a video from Youtube (I have google code API for YouTube). 2- The desired video doesn't play right away, rather my image processing function is applied on the streamed data. And the user only gets the processed video. I know one of the methods would be saving the video then processing it using FFMPEG, but what I want to do is processing whatever is buffered and displaying the processed frames. An example: I want to do what is called cartooning. I have the function for it, so by just entering YouTube, I need to display the cartooned video 'instantly'; hence, I want to process the video on the go. Do you know if that is possible ? can you please guide me to some possible approaches ? Many thanks, Louis From anaerin at gmail.com Fri Oct 7 05:17:59 2011 From: anaerin at gmail.com (Robert Johnston) Date: Thu, 06 Oct 2011 21:17:59 -0600 Subject: [FFmpeg-user] Process video while streaming from youtube? In-Reply-To: References: Message-ID: <4E8E6F67.5070900@gmail.com> On October-06-11 7:20:05 PM, Wael Louis wrote: > I have some image processing function that I want to apply to a video. I am > re-implementing the function in PHP. What I am planning to do is the > following: > > 1- On my website, a user search a video from Youtube (I have google code API > for YouTube). > 2- The desired video doesn't play right away, rather my image processing > function is applied on the streamed data. And the user only gets the > processed video. > > I know one of the methods would be saving the video then processing it using > FFMPEG, but what I want to do is processing whatever is buffered and > displaying the processed frames. > > An example: I want to do what is called cartooning. I have the function for > it, so by just entering YouTube, I need to display the cartooned video > 'instantly'; hence, I want to process the video on the go. > > Do you know if that is possible ? can you please guide me to some possible > approaches ? How about using pipes to run the data through FFMpeg. WGet to STDOUT, pipe that into FFMpeg with FFMpeg's STDOUT then serving to the client? So, something like: wget -q0- http://youtube.address/goes/here | ffmpeg -i -- -- From panayotis at panayotis.com Fri Oct 7 08:23:23 2011 From: panayotis at panayotis.com (Panayotis Katsaloulis) Date: Fri, 7 Oct 2011 09:23:23 +0300 Subject: [FFmpeg-user] Compile 32 bit version of FFMPEG under Mac OSX Lion Message-ID: <8F29388C-4D83-4C01-BE1E-952EBD5C048A@panayotis.com> Hello All! I am trying to compile a 32 bit version of ffmpeg but I fail :( I tried incrementally many combinations of configure options but all failed with this message: CC libavcodec/h264_cabac.o fatal error: error in backend: Ran out of registers during register allocation! The configure command I tried last is this one: ./configure --extra-cflags=" -arch i386" --arch=x86 --target-os=darwin --extra-ldflags="-arch i386" --enable-cross-compile --cc=clang I tried the latest git version, as well as the 0.7.6 version (which I am actually interested) Any idea how to proceed from here? From gregbartnick at gmail.com Fri Oct 7 16:23:59 2011 From: gregbartnick at gmail.com (Greg Bartnick) Date: Fri, 7 Oct 2011 09:23:59 -0500 Subject: [FFmpeg-user] Raw DNxHD and framerate Message-ID: Hello List, If I use a file of raw DNxHD video (no wrapper) as an input for ffmpeg, how does it determine the framerate of the video or how do I tell it the framerate of the input? thanks, Greg From dave.bevan at bbc.co.uk Fri Oct 7 16:25:10 2011 From: dave.bevan at bbc.co.uk (Dave Bevan) Date: Fri, 7 Oct 2011 15:25:10 +0100 Subject: [FFmpeg-user] Raw DNxHD and framerate References: Message-ID: >If I use a file of raw DNxHD video (no wrapper) as an input for ffmpeg, how >does it determine the framerate of the video or how do I tell it the >framerate of the input? >thanks, >Greg You prepend your -i with settings (any so rate, pixel format, audio format etc etc), for example: ffmpeg -r 25 -i filename --Dave. http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/ms-tnef Size: 3614 bytes Desc: not available URL: From gregbartnick at gmail.com Fri Oct 7 20:32:19 2011 From: gregbartnick at gmail.com (Greg Bartnick) Date: Fri, 7 Oct 2011 13:32:19 -0500 Subject: [FFmpeg-user] Raw DNxHD and framerate In-Reply-To: References: Message-ID: Thanks Dave. Works as advertised. I thought I had tried that, but I probably had something out of order. On Fri, Oct 7, 2011 at 9:25 AM, Dave Bevan wrote: > >If I use a file of raw DNxHD video (no wrapper) as an input for ffmpeg, > how > >does it determine the framerate of the video or how do I tell it the > >framerate of the input? > >thanks, > >Greg > > You prepend your -i with settings (any so rate, pixel format, audio format > etc etc), for example: > > ffmpeg -r 25 -i filename > > --Dave. > > http://www.bbc.co.uk/ > This e-mail (and any attachments) is confidential and may contain personal > views which are not the views of the BBC unless specifically stated. > If you have received it in error, please delete it from your system. > Do not use, copy or disclose the information in any way nor act in reliance > on it and notify the sender immediately. > Please note that the BBC monitors e-mails sent or received. > Further communication will signify your consent to this. > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > From mark at mdsh.com Fri Oct 7 21:26:15 2011 From: mark at mdsh.com (Mark Himsley) Date: Fri, 07 Oct 2011 20:26:15 +0100 Subject: [FFmpeg-user] 8 channel audio codec in mp4 Message-ID: <4E8F5257.4030509@mdsh.com> Is there an audio codec I can use to encode 8 channels of audio into one stream in an mp4 container? Preferably without an LFE channel filter. Preferably that can be opened in Premier Pro. The motivation is to make proxy-viewing / offline-editing files of 8 channel rushes material. I've made the suggestion of 8 streams of mono aac, which works nicely in FCP but apparently Premier Pro is a bit sluggish with. Thanks :-) -- Mark From HothTJ at mtc.byu.edu Fri Oct 7 21:31:39 2011 From: HothTJ at mtc.byu.edu (Hoth, Trevor J.) Date: Fri, 7 Oct 2011 13:31:39 -0600 Subject: [FFmpeg-user] svn question Message-ID: <49733DD428294C40A04CF3470AB8A0BA014C848A4D@exchangead> I have a question about svn. I am installing a product that requires ffmpeg but says that the terminal command is: svn checkout svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg I then get an error saying, "svn: No repository found in 'svn://svn.ffmpeg.org/ffmpeg/trunk'" Has the repository moved or am I doing something wrong? From lou at lrcd.com Fri Oct 7 21:50:10 2011 From: lou at lrcd.com (Lou) Date: Fri, 7 Oct 2011 11:50:10 -0800 Subject: [FFmpeg-user] svn question In-Reply-To: <49733DD428294C40A04CF3470AB8A0BA014C848A4D@exchangead> References: <49733DD428294C40A04CF3470AB8A0BA014C848A4D@exchangead> Message-ID: <20111007115010.40050ba5@lrcd.com> On Fri, 7 Oct 2011 13:31:39 -0600 "Hoth, Trevor J." wrote: > I have a question about svn. I am installing a product that requires > ffmpeg but says that the terminal command is: > > svn checkout svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg > > I then get an error saying, "svn: No repository found in > 'svn://svn.ffmpeg.org/ffmpeg/trunk'" Has the repository moved or am > I doing something wrong? From http://ffmpeg.org/download.html "FFmpeg development has moved to a Git repository, and the SVN repository is no longer updated. The last revision committed to SVN was r26402 on 2011-01-19. The SVN repository may be removed in a near future, so you're recommended to use the Git repository instead." From unga888 at yahoo.com Sat Oct 8 07:36:56 2011 From: unga888 at yahoo.com (Unga) Date: Fri, 7 Oct 2011 22:36:56 -0700 (PDT) Subject: [FFmpeg-user] 8 channel audio codec in mp4 In-Reply-To: <4E8F5257.4030509@mdsh.com> References: <4E8F5257.4030509@mdsh.com> Message-ID: <1318052216.59401.YahooMailNeo@web160109.mail.bf1.yahoo.com> ----- Original Message ----- > From: Mark Himsley > To: FFmpeg user questions and RTFMs > Cc: > Sent: Friday, October 7, 2011 7:26 PM > Subject: [FFmpeg-user] 8 channel audio codec in mp4 > > Is there an audio codec I can use to encode 8 channels of audio into one stream > in an mp4 container? > > Preferably without an LFE channel filter. > Preferably that can be opened in Premier Pro. > > The motivation is to make proxy-viewing / offline-editing files of 8 channel > rushes material. > > I've made the suggestion of 8 streams of mono aac, which works nicely in FCP > but apparently Premier Pro is a bit sluggish with. > > Thanks :-) > FLAC: flac.sourceforge.net http://flac.sourceforge.net/faq.html#general__channels Unga From derschu50 at googlemail.com Sat Oct 8 18:49:46 2011 From: derschu50 at googlemail.com (DasDing) Date: Sat, 8 Oct 2011 09:49:46 -0700 (PDT) Subject: [FFmpeg-user] No encoding Frames with MPEG-TS H.264 In-Reply-To: <1317927713488-3879578.post@n4.nabble.com> References: <4E8B4028.6090601@zonnet.nl> <1317749039887-3871718.post@n4.nabble.com> <4E8B4260.4010905@zonnet.nl> <1317749800741-3871765.post@n4.nabble.com> <4E8B7DCF.4080608@zonnet.nl> <1317813658183-3874123.post@n4.nabble.com> <4E8CC693.80806@zonnet.nl> <1317901848510-3877880.post@n4.nabble.com> <1317927713488-3879578.post@n4.nabble.com> Message-ID: <1318092586740-3885473.post@n4.nabble.com> I have an idea: Maybe I can take the source from DVB Viewer and stream it with vlc media player to an adress for example: http://127.0.0.1:8080/stream. And later get it with ffmpeg and transcode it. It's an difficult way I know, but I must ecnode it with ffmpeg. I tested it, but I only get sound in ffmpeg. Maybe I have wrong settings. I used as container MPEG-TS, as video codec MPEG2 and as audio codec mp3. Do anybody know some settings that works with ffmpeg? -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/No-encoding-Frames-with-MPEG-TS-H-264-tp3866884p3885473.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From aidafreixanet at gmail.com Sat Oct 8 19:02:53 2011 From: aidafreixanet at gmail.com (aida) Date: Sat, 8 Oct 2011 10:02:53 -0700 (PDT) Subject: [FFmpeg-user] Encoding audio and video from different files Message-ID: <1318093373452-3885513.post@n4.nabble.com> Hello, If we have an avi movie file and a wav audio file, is there any way that you can merge them and encode it to a mp4 format (h.264 and AAC) using ffmpeg? Thanks. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Encoding-audio-and-video-from-different-files-tp3885513p3885513.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From belcampo at zonnet.nl Sat Oct 8 19:17:26 2011 From: belcampo at zonnet.nl (belcampo) Date: Sat, 08 Oct 2011 19:17:26 +0200 Subject: [FFmpeg-user] No encoding Frames with MPEG-TS H.264 In-Reply-To: <1318092586740-3885473.post@n4.nabble.com> References: <4E8B4028.6090601@zonnet.nl> <1317749039887-3871718.post@n4.nabble.com> <4E8B4260.4010905@zonnet.nl> <1317749800741-3871765.post@n4.nabble.com> <4E8B7DCF.4080608@zonnet.nl> <1317813658183-3874123.post@n4.nabble.com> <4E8CC693.80806@zonnet.nl> <1317901848510-3877880.post@n4.nabble.com> <1317927713488-3879578.post@n4.nabble.com> <1318092586740-3885473.post@n4.nabble.com> Message-ID: <4E9085A6.7020105@zonnet.nl> On 10/08/2011 06:49 PM, DasDing wrote: > I have an idea: > Maybe I can take the source from DVB Viewer and stream it with vlc media > player to an adress for example: http://127.0.0.1:8080/stream. And later get > it with ffmpeg and transcode it. > It's an difficult way I know, but I must ecnode it with ffmpeg. > > I tested it, but I only get sound in ffmpeg. Maybe I have wrong settings. I > used as container MPEG-TS, as video codec MPEG2 and as audio codec mp3. > > Do anybody know some settings that works with ffmpeg? I'm almost 100% certain that the problem lies in the way DVB Viewer creates the MPEG-TS container. You'll have to find a way to create a MPEG-TS conformant file, or conformant file in an MKV or MP4 container. Otherwise no way to make any encoder, be it ffmpeg or mencoder or vlc that will do the job you need. > > -- > View this message in context: http://ffmpeg-users.933282.n4.nabble.com/No-encoding-Frames-with-MPEG-TS-H-264-tp3866884p3885473.html > Sent from the FFmpeg-users mailing list archive at Nabble.com. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From mark at mdsh.com Sat Oct 8 20:17:23 2011 From: mark at mdsh.com (Mark Himsley) Date: Sat, 08 Oct 2011 19:17:23 +0100 Subject: [FFmpeg-user] Encoding audio and video from different files In-Reply-To: <1318093373452-3885513.post@n4.nabble.com> References: <1318093373452-3885513.post@n4.nabble.com> Message-ID: <4E9093B3.8010400@mdsh.com> On 08/10/2011 18:02, aida wrote: > > Hello, > > If we have an avi movie file and a wav audio file, is there any way that you > can merge them and encode it to a mp4 format (h.264 and AAC) using ffmpeg? Yes, there is. Basically, something like this: ffmpeg -i video.mp4 -i audio.wav -vcodec libx264 -profile high -crf 23 -acodec libfaac -ab 192 -map 0:0 -map 1:0 out.mp4 Hope that helps. -- Mark From vidwork at flight.us Sun Oct 9 03:21:47 2011 From: vidwork at flight.us (Video Work) Date: Sat, 8 Oct 2011 21:21:47 -0400 (EDT) Subject: [FFmpeg-user] generate blank/black frame sequence? Message-ID: <1965201705.568332.1318123307998.JavaMail.open-xchange@oxusltgw06.schlund.de> How do you use ffmpeg to create blank/black background video and mux it with an audio track? ? I guess it is possible to use ImageMagick or something like that to generate a bunch of black rectangle jpegs, and then assemble them into a video, as frames? ? thanks in advance! ? From andycivil at gmail.com Sun Oct 9 04:08:09 2011 From: andycivil at gmail.com (Andy Civil) Date: Sat, 08 Oct 2011 22:08:09 -0400 Subject: [FFmpeg-user] generate blank/black frame sequence? In-Reply-To: <1965201705.568332.1318123307998.JavaMail.open-xchange@oxusltgw06.schlund.de> References: <1965201705.568332.1318123307998.JavaMail.open-xchange@oxusltgw06.schlund.de> Message-ID: <4E910209.2050808@gmail.com> On 2011-10-08 9:21 PM, Video Work wrote: > How do you use ffmpeg to create blank/black background video and mux it with an > audio track? > > I guess it is possible to use ImageMagick or something like that to generate a > bunch of black rectangle jpegs, and then assemble them into a video, as frames? > > thanks in advance! I'm just "thinking out loud" here, but I wonder if you could combine Mark Himsley's post of 2:17 today (to combine video and audio) and then use any old random video, but use the 'pad' filter to move the video off the screen. The pad filter takes string colours e.g. "black" or hex values, check the manual: http://ffmpeg.org/ffmpeg-doc.html#SEC87 so you could in theory make your entire frame padding. Unfortunately, I didn't check whether it crashes out if none of the input video is on the output - that's why I say I'm thinking out loud... -- Andy From lou at lrcd.com Sun Oct 9 07:13:19 2011 From: lou at lrcd.com (Lou) Date: Sat, 8 Oct 2011 21:13:19 -0800 Subject: [FFmpeg-user] generate blank/black frame sequence? In-Reply-To: <1965201705.568332.1318123307998.JavaMail.open-xchange@oxusltgw06.schlund.de> References: <1965201705.568332.1318123307998.JavaMail.open-xchange@oxusltgw06.schlund.de> Message-ID: <20111008211319.5d5e7d5f@lrcd.com> On Sat, 8 Oct 2011 21:21:47 -0400 (EDT) Video Work wrote: > How do you use ffmpeg to create blank/black background video and mux > it with an audio track? > ? > I guess it is possible to use ImageMagick or something like that to > generate a bunch of black rectangle jpegs, and then assemble them > into a video, as frames? > thanks in advance! There are several ways to do this including ffmpeg-user random tip #11 from Stefano Sabatini: ffmpeg -t 60 -s qcif -f rawvideo -pix_fmt rgb24 -r 25 -i /dev/zero \ silence.mpeg Which can be modified to fit your needs: ffmpeg -s 640x480 -f rawvideo -pix_fmt rgb24 -r 25 -i /dev/zero \ -i music.mp3 -vcodec libx264 -preset medium -tune stillimage \ -crf 24 -acodec copy -shortest output.mkv Or you could use a single image with ImageMagick/GraphicsMagick: convert -size 320x240 xc:black black.png Then mux with ffmpeg: ffmpeg -loop 1 -i black.png -i music.ogg -acodec copy -shortest output There is also the "color" filter which might do this, but I've never used it and didn't investigate. From stefasab at gmail.com Sun Oct 9 14:23:50 2011 From: stefasab at gmail.com (Stefano Sabatini) Date: Sun, 9 Oct 2011 14:23:50 +0200 Subject: [FFmpeg-user] generate blank/black frame sequence? In-Reply-To: <20111008211319.5d5e7d5f@lrcd.com> References: <1965201705.568332.1318123307998.JavaMail.open-xchange@oxusltgw06.schlund.de> <20111008211319.5d5e7d5f@lrcd.com> Message-ID: <20111009122350.GB21285@arborea> On date Saturday 2011-10-08 21:13:19 -0800, Lou encoded: > On Sat, 8 Oct 2011 21:21:47 -0400 (EDT) > Video Work wrote: [...] > There is also the "color" filter which might do this, but I've never > used it and didn't investigate. ffmpeg -f lavfi -i color=COLOR:WxS OUTPUT -- ffmpeg-user random tip #9 One minute of audio silence with ffmpeg: ffmpeg -ar 48000 -t 60 -f s16le -acodec pcm_s16le -i /dev/zero \ -ab 64K -f mp2 -acodec mp2 -y silence.mp2 From benoit at friry.net Sun Oct 9 17:34:21 2011 From: benoit at friry.net (Benoit) Date: Sun, 9 Oct 2011 17:34:21 +0200 Subject: [FFmpeg-user] [partially solved] Bug for bug file? In-Reply-To: <20111002103818.GA4382@friry.net> References: <20110928172545.GA17932@friry.net> <20111002103818.GA4382@friry.net> Message-ID: <20111009153421.GA1321@friry.net> I wrote: > I wrote: > > I'm trying to convert mjpeg into h264. > > But ffmpeg is "killed" before finishing the job. [...] > > $ cat convert_h264.sh > > #!/bin/ksh > > time nice ffmpeg \ > > -i $1 \ > > -acodec libfaac -aq 120 \ > > -vcodec libx264 -r 50 -vf "yadif=1:0,crop=in_w-24:in_h-8:8:0" \ > > -preset veryfast -profile $3 -crf 23 \ > > -f mp4 $2 > > myvideo.avi is a 7.2 GB file, grabbed from a VHS via a Dazzle device. > My webm script file: > time nice ffmpeg \ > -i $1 \ > -acodec libvorbis -aq 40 -ac 2 \ > -vcodec libvpx -r 50 -vf "yadif=1:0,crop=in_w-24:in_h-8:8:0" \ > -g 200 -keyint_min 0 \ > -qmax 40 -rc_lookahead 16 -skip_threshold 0 -level 116 \ > -f webm $2 > > $ ./convert_h264.sh myvideo.avi myvideo.veryfast_main_23.mp4 main > [...] > > Killed 9261 fps= 22 q=31.0 size= 408590kB time=00:26:24.96 bitrate=2111.8kbits/s dup=6289 drop=0 > > 6138.46s real 5820.28s user 30.55s system > > $ ./convert_h264.sh myvideo.avi myvideo.veryfast_baseline_23.mp4 baseline > [...] > > Killed 9557 fps= 15 q=31.0 size= 434826kB time=00:19:50.92 bitrate=2991.0kbits/s dup=4937 drop=0 > > 6632.78s real 5736.91s user 31.41s system > > $ ./convert_h264.sh myvideo.avi myvideo.veryfast_baseline_23_nocropyadif.mp4 baseline > [...] > > Memory fault ps= 19 q=31.0 size= 185766kB time=00:06:23.14 bitrate=3971.9kbits/s dup=10522 drop=0 > > 1658.33s real 1590.50s user 10.18s system [webm test] > Killed 5498 fps= 6 q=0.0 size= 131166kB time=00:09:28.38 bitrate=1890.5kbits/s > 7030.15s real 5621.65s user 32.60s system It was on a Debian box, with debian-multimedia.org packages. With Zeranoe builds on Windows 7 (http://ffmpeg.zeranoe.com/builds/), it works. (webm encoding only works with 32bit builds) I'm unstuck. But why Linux builds do not work? benoit From h.reindl at thelounge.net Sun Oct 9 17:59:26 2011 From: h.reindl at thelounge.net (Reindl Harald) Date: Sun, 09 Oct 2011 17:59:26 +0200 Subject: [FFmpeg-user] [partially solved] Bug for bug file? In-Reply-To: <20111009153421.GA1321@friry.net> References: <20110928172545.GA17932@friry.net> <20111002103818.GA4382@friry.net> <20111009153421.GA1321@friry.net> Message-ID: <4E91C4DE.50307@thelounge.net> Am 09.10.2011 17:34, schrieb Benoit: > It was on a Debian box, with debian-multimedia.org packages. > > With Zeranoe builds on Windows 7 (http://ffmpeg.zeranoe.com/builds/), it works. > (webm encoding only works with 32bit builds) > > I'm unstuck. But why Linux builds do not work? complain at debian! on recent fedora machines webm works like a charme (encode and decode) independent of x86_64 / i686 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 262 bytes Desc: OpenPGP digital signature URL: From benoit at friry.net Sun Oct 9 21:14:39 2011 From: benoit at friry.net (Benoit) Date: Sun, 9 Oct 2011 21:14:39 +0200 Subject: [FFmpeg-user] [partially solved] Bug for bug file? In-Reply-To: <4E91C4DE.50307@thelounge.net> References: <20110928172545.GA17932@friry.net> <20111002103818.GA4382@friry.net> <20111009153421.GA1321@friry.net> <4E91C4DE.50307@thelounge.net> Message-ID: <20111009191439.GA5919@friry.net> Reindl Harald wrote: > Am 09.10.2011 17:34, schrieb Benoit: > > It was on a Debian box, with debian-multimedia.org packages. > > > > With Zeranoe builds on Windows 7 (http://ffmpeg.zeranoe.com/builds/), it works. > > (webm encoding only works with 32bit builds) > > > > I'm unstuck. But why Linux builds do not work? > complain at debian! > on recent fedora machines webm works like a charme (encode and decode) > independent of x86_64 / i686 It might be a problem specific to Debian. But most of my encodings succeed. Just the encoding of this big mjpeg file fails. I think the issue is not just about a bad Debian packaging. Benoit From lou at lrcd.com Sun Oct 9 21:29:29 2011 From: lou at lrcd.com (Lou) Date: Sun, 9 Oct 2011 11:29:29 -0800 Subject: [FFmpeg-user] [partially solved] Bug for bug file? In-Reply-To: <20111009191439.GA5919@friry.net> References: <20110928172545.GA17932@friry.net> <20111002103818.GA4382@friry.net> <20111009153421.GA1321@friry.net> <4E91C4DE.50307@thelounge.net> <20111009191439.GA5919@friry.net> Message-ID: <20111009112929.6f031681@lrcd.com> On Sun, 9 Oct 2011 21:14:39 +0200 Benoit wrote: > Reindl Harald wrote: > > > Am 09.10.2011 17:34, schrieb Benoit: > > > It was on a Debian box, with debian-multimedia.org packages. > > > > > > With Zeranoe builds on Windows 7 > > > (http://ffmpeg.zeranoe.com/builds/), it works. (webm encoding > > > only works with 32bit builds) > > > > > > I'm unstuck. But why Linux builds do not work? > > > complain at debian! > > > on recent fedora machines webm works like a charme (encode and > > decode) independent of x86_64 / i686 > > It might be a problem specific to Debian. But most of my > encodings succeed. Just the encoding of this big mjpeg file > fails. I think the issue is not just about a bad Debian > packaging. > > Benoit Can you reproduce the issue with FFmpeg from Git master? If no, then either the issue has been fixed in FFmpeg, or you can blame Debian. You can adapt this FFmpeg compile guide: http://ubuntuforums.org/showthread.php?t=786095 From if at xip.at Sun Oct 9 22:16:26 2011 From: if at xip.at (Ingo Flaschberger) Date: Sun, 9 Oct 2011 22:16:26 +0200 (CEST) Subject: [FFmpeg-user] restore video written with opencv Message-ID: Hi, opencv changed some time ago how rawvideos are written, see: https://code.ros.org/trac/opencv/ticket/1400#comment:2 https://code.ros.org/trac/opencv/ticket/782 my problem is: rawvideo is written with pixfmt bgr24: Stream #0.0: Video: rawvideo, bgr24, 456x400, q=2-31, 11673 kb/s, 90k tbn, 4 tbc ffmpeg (and also all video-players) recognize the video as avi with codec 420p / IYUV - and plays a broken video. I can force ffmpeg to use bgp24 as pixfmt when transcoding the video to 420p - resulting in a viewable video but the image runs now from left to right and top to bottom. Any ideas how I can restore the original video? I can provide a test-video if needed. Kind regards, Ingo Flaschberger From dm101085 at gmail.com Mon Oct 10 02:03:38 2011 From: dm101085 at gmail.com (DM) Date: Mon, 10 Oct 2011 01:03:38 +0100 Subject: [FFmpeg-user] Command line to keep original aspect ration and encode to iPhone with borders Message-ID: We need a command line to keep any original aspect ration and encode to iPhone (.mp4), but with black borders. We have customers uploading lots of different aspect ratio inputs, and only the same one command line to enable the video to play in any iPhone (and Android if possible) So we can't have a command line with a changing border size, as we can't change the command line for each upload. From suneets at gmail.com Mon Oct 10 09:35:48 2011 From: suneets at gmail.com (Suneet Shah) Date: Mon, 10 Oct 2011 00:35:48 -0700 Subject: [FFmpeg-user] No audio or poor audio when converting HDTV broadcasts Message-ID: Hello, I'm trying to splice and convert HDTV broadcasts that I've recorded from over the air with a Hauppage video card, using ffmpeg. I'm running into problems where I can either get very poor audio, or no audio. Note: I am using ffmpeg on Win7, using static build from here: http://ffmpeg.zeranoe.com/builds/ The source file is recorded via Windows Media Center in DVR-MS format, a container format for MPEG2 video. I am trying to encode using the following: ffmpeg -ss 475 -t 120 -i INPUT -ac 2 -async 44100 test.mpeg --> This produces very poor audio.. the original source file has 5.1 AC3 audio (dolby digital) so then I try: ffmpeg -ss 475 -t 120 -i INPUT -acodec copy -async 44100 test.mpeg --> This fails Question: how can I down mix the AC3 audio properly to 2 channels in an mpeg file to preserve the high fidelity of the audio? Thanks in advance From jfield at lincoln.ac.uk Mon Oct 10 10:04:32 2011 From: jfield at lincoln.ac.uk (James Field) Date: Mon, 10 Oct 2011 09:04:32 +0100 Subject: [FFmpeg-user] Long delay on encoded f4v files Message-ID: <05EB201423015E4CBC59DF30AE7687EB02F1D52A@AEXCMS03.network.uni> Hello, I am encountering problems with long buffer times on encoded f4v files once converted using ffmpeg. When I had been converting them via Adobe Media Encoder manually there was no issue but as soon as I started using ffmpeg to encode I am waiting 5 - 15 seconds for the clips to display (stream/start playing) where previously they appeared straight away. My conversion command line call is: ffmpeg -i $in -s 1180x664 -ar 32000 -ab 48k -vcodec libx264 -vpre slow -b 2100k -f mp4 $outFVideo Is there anything anyone can spot that might be causing the issue or that I could try to improve the situation. I am new to the world of ffmepg and any help would be gratefully received as the documentation is at times confusing. Thanks, James The University of Lincoln - a top performer in student satisfaction, enjoying an unrivalled ascent through the University league tables, set in a dynamic, research rich and vibrant campus in the heart of a great historic student-friendly city. The information in this e-mail and any attachments may be confidential. If you have received this email in error please notify the sender immediately and remove it from your system. Do not disclose the contents to another person or take copies. Email is not secure and may contain viruses. The University of Lincoln makes every effort to ensure email is sent without viruses, but cannot guarantee this and recommends recipients take appropriate precautions. The University may monitor email traffic data and content in accordance with its policies and English law. Further information can be found at: http://www.lincoln.ac.uk/legal. From blacktrash at gmx.net Mon Oct 10 11:02:12 2011 From: blacktrash at gmx.net (Christian Ebert) Date: Mon, 10 Oct 2011 10:02:12 +0100 Subject: [FFmpeg-user] Long delay on encoded f4v files In-Reply-To: <05EB201423015E4CBC59DF30AE7687EB02F1D52A@AEXCMS03.network.uni> References: <05EB201423015E4CBC59DF30AE7687EB02F1D52A@AEXCMS03.network.uni> Message-ID: <20111010090212.GE31419@krille.blacktrash.org> * James Field on Monday, October 10, 2011 at 09:04:32 +0100 > I am encountering problems with long buffer times on encoded > f4v files once converted using ffmpeg. > > When I had been converting them via Adobe Media Encoder > manually there was no issue but as soon as I started using > ffmpeg to encode I am waiting 5 - 15 seconds for the clips to > display (stream/start playing) where previously they appeared > straight away. > > My conversion command line call is: > > ffmpeg -i $in -s 1180x664 -ar 32000 -ab 48k -vcodec libx264 -vpre slow -b 2100k -f mp4 $outFVideo > > Is there anything anyone can spot that might be causing the > issue or that I could try to improve the situation. I am new > to the world of ffmepg and any help would be gratefully > received as the documentation is at times confusing. qt-faststart $outFVideo $finalized Google for "moov atom qt-faststart". qt-faststart is distributed with ffmpeg. It doesn't build and install automatically though. In the ffmpeg source directory after building ffmpeg: make tools/qt-faststart sudo install tools/qt-faststart /usr/local/bin/ c -- Flowplayer http://flowplayer.org Flowplayer on Facebook http://www.facebook.com/flowplayer From acgacosta at gmail.com Mon Oct 10 11:13:29 2011 From: acgacosta at gmail.com (Antony Acosta) Date: Mon, 10 Oct 2011 17:13:29 +0800 Subject: [FFmpeg-user] Installation and Compilation Message-ID: Hi, Can anyone give me a full command list on how to install the latest version of FFMPEG with the all the libraries I can use. Just assume that I am not a Linux guy and sort of new to FFMPEG. But I would like to use FFMPEG for my project on converting videos to mp4, h.264 and such. Not to mention converting audio files as well. Can anyone assist. Also a side note, there seems to be a previous installation on my server of FFMPEG which is 'FFmpeg version SVN-r20220'. Now I am not sure what version this is because when I went to ffmpeg.org, I only see version 0.8. And it doesn't help me at all finding out what release is SVN-r20220. Any assistance would be much appreciated! -- Antony [Programmer, Allied Web Design] ?[C][G]? "THere is no cHaLLenge THaT can'T Be FinisHeD!" ? ?'?'\????\?=(???)=?/????/'?'? ? From tim.nicholson at bbc.co.uk Mon Oct 10 11:26:06 2011 From: tim.nicholson at bbc.co.uk (Tim Nicholson) Date: Mon, 10 Oct 2011 10:26:06 +0100 Subject: [FFmpeg-user] ffmpeg windows build In-Reply-To: References: <20111005182636.525DC10E196@avserver.banki.hu> Message-ID: <4E92BA2E.8070908@bbc.co.uk> On 05/10/11 22:24, Roger Pack wrote: >> I have downloaded FFmpeg libraries from ffmpeg.zeranoe.com/builds/ site. These are the windows dlls from "32-bit Builds (Dev)" section. However, I noticed that these libraries were built with - -enable-libx264 compiler's flag which is a problem in my case. What would be the easiest way to get these libraries compiled without libx264? I know that there is an option to rebuild the code myself, however it looks like I would have to setup Cygwin, mingw-w64 and the rest of 3-rd party software and build rebuild them all. It looks like it may take much effort and time that I don't really have. Is there any simpler way to get these dlls? Thanks! > > Asking on the zeranoe forum might help :) > In general, you can build your own by running the scripts from his blog: > http://ffmpeg.zeranoe.com/blog/ > > then compile without those options: > http://betterlogic.com/roger/2011/09/ffmpeg-compileconfigure-windows/ All this helps a lot, thanks to Zerano and Roger, and I have managed to get a basic build off ffmpeg working on windows. Now I am at the point where I need to build the external libraries and then link them into ffmpeg as a static build, and this is where my understanding runs out. According to ./configure -help if I set --prefix=PREFIX then ffmpeg will be installed there. However how do I tell it where to find the individual libraries I have pre built? What I really want to do is build everything in a separate dir from the usual system structure so it doesn't get tainted with all the different versions. I presumably do this by setting prefix on all my library builds, but then I need to tell the ffmpeg compiler where to find them. Can anybody point me to any helpers on this subject. I have searched through the Zerano forums but failed (the section labelled "Compiling FFmpeg Examples/Samples" is somewhat empty) -- Tim http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. From hardik.sharma22 at yahoo.com Mon Oct 10 12:16:34 2011 From: hardik.sharma22 at yahoo.com (Hardik Sharma) Date: Mon, 10 Oct 2011 03:16:34 -0700 (PDT) Subject: [FFmpeg-user] Installation and Compilation Message-ID: <1318241794.34540.YahooMailNeo@web46214.mail.sp1.yahoo.com> I believe following link will help you for installation of ffmpeg and x264 both.? http://ubuntuforums.org/showthread.php?t=786095 From gagandeep.bawa at ironroad.com Mon Oct 10 12:22:02 2011 From: gagandeep.bawa at ironroad.com (Gagandeep Bawa) Date: Mon, 10 Oct 2011 12:22:02 +0200 Subject: [FFmpeg-user] Installation and Compilation In-Reply-To: <1318241794.34540.YahooMailNeo@web46214.mail.sp1.yahoo.com> References: <1318241794.34540.YahooMailNeo@web46214.mail.sp1.yahoo.com> Message-ID: Hi Hardik, Can you help me to installation of these both libraray in IPhone sdk ? I have done with ffmpeg in IPhone and it's working fine but when i compile x264 for IPhone 4.3 sdk it compiles and create libx264.a file but when i try to use this x264.a file in IPhone project it doesn't work. I am not able to include this x264 library and use it's functions programatically. It would be great if you have any idea on how to use x264 in IPhone. Note : I am doing this stuff programmatically in IPhone not from command line tool. On Mon, Oct 10, 2011 at 12:16 PM, Hardik Sharma wrote: > I believe following link will help you for installation of ffmpeg and x264 > both. > > http://ubuntuforums.org/showthread.php?t=786095 > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From svnpenn at gmail.com Mon Oct 10 14:15:36 2011 From: svnpenn at gmail.com (Steven Penny) Date: Mon, 10 Oct 2011 07:15:36 -0500 Subject: [FFmpeg-user] Poor quality on JPG encode Message-ID: Source image http://farm6.static.flickr.com/5306/5568785285_d8d5aa3c7d_o.jpg Resized with MS Paint 29.3 KB http://dl.dropbox.com/u/26639067/paint.jpg Resized with ffmpeg 22.4 KB http://dl.dropbox.com/u/26639067/ffmpeg.jpg ffmpeg -i 5568785285_d8d5aa3c7d_o.jpg -qmax 1 -vf scale=360:-1 -sws_flags lanczos ffmpeg.jpg The color on the ffmpeg photo is much worse, I cannot find a way to improve the quality. From dashing.meng at gmail.com Mon Oct 10 15:51:45 2011 From: dashing.meng at gmail.com (littlebat) Date: Mon, 10 Oct 2011 21:51:45 +0800 Subject: [FFmpeg-user] Installation and Compilation In-Reply-To: References: <1318241794.34540.YahooMailNeo@web46214.mail.sp1.yahoo.com> Message-ID: <20111010215145.34bd6106.dashing.meng@gmail.com> On Mon, 10 Oct 2011 12:22:02 +0200 Gagandeep Bawa wrote: > Note : I am doing this stuff programmatically in IPhone not from > command line tool. Hi, a question, Does IPhone have the enough capability to do this kind of video converting job? From gaurav.g at sasken.com Mon Oct 10 16:15:39 2011 From: gaurav.g at sasken.com (gaurav) Date: Mon, 10 Oct 2011 19:45:39 +0530 Subject: [FFmpeg-user] Support of encrypt & decrypt FLV stream Message-ID: <4E92FE0B.4080906@sasken.com> Hi, Looking for information whether the FFMPEG do support encryption FLV & decryption FLV. Thanks, Gaurav From svoop at delirium.ch Mon Oct 10 16:32:35 2011 From: svoop at delirium.ch (Svoop) Date: Mon, 10 Oct 2011 14:32:35 +0000 (UTC) Subject: [FFmpeg-user] No audio with Message-ID: Hi I'm writing a little script which splits movies into 5min segments (because my USB reading TV ridiculously features no rewind nor ff). The following is executed with various ss-offsets, for example: ffmpeg -i in.avi -acodec copy -vcodec copy -scodec copy -ss 0 -t 300 out1.avi ffmpeg -i in.avi -acodec copy -vcodec copy -scodec copy -ss 300 -t 300 out2.avi ffmpeg -i in.avi -acodec copy -vcodec copy -scodec copy -ss 600 -t 300 out3.avi ... This works fine for the first segment with "-ss 0", but subsequent segments like the above play no audio. (If I try playback on VLC by the way, the audio is crippled on all 5min segments.) Here's what "ffmpeg -i in.avi" shows: Stream #0.0: Video: mpeg4 (Advanced Simple Profile), yuv420p, 624x352 [PAR 1:1 DAR 39:22], 23.98 tbr, 23.98 tbn, 23.98 tbc Stream #0.1: Audio: mp3, 48000 Hz, stereo, s16, 127 kb/s Any idea what's wrong here? Thanks! From svoop at delirium.ch Mon Oct 10 16:46:40 2011 From: svoop at delirium.ch (Svoop) Date: Mon, 10 Oct 2011 14:46:40 +0000 (UTC) Subject: [FFmpeg-user] No audio with References: Message-ID: Forgot to add this, here's the full output of the first two segments: ffmpeg version 0.7, Copyright (c) 2000-2011 the Libav developers built on Sep 4 2011 18:24:25 with gcc 4.2.1 (Gentoo 4.2.1_p5666, Apple Inc. build 5666) (dot 3) configuration: --prefix=/Gentoo/usr --libdir=/Gentoo/usr/lib --shlibdir=/Gentoo/usr/lib --mandir=/Gentoo/usr/share/man --enable-shared --cc=i686-apple-darwin9-gcc --disable-static --enable-gpl --enable-version3 --enable-postproc --enable-avfilter --disable-debug --disable-doc --disable-network --disable-vaapi --disable-avplay --disable-vdpau --enable-libmp3lame --disable-indev=v4l --disable-indev=v4l2 --disable-indev=alsa --disable-indev=oss --disable-indev=jack --disable-outdev=alsa --disable-outdev=oss --disable-altivec --disable-amd3dnow --disable-amd3dnowext --cpu=nocona --enable-hardcoded-tables libavutil 51. 8. 0 / 51. 8. 0 libavcodec 53. 8. 0 / 53. 8. 0 libavformat 53. 5. 0 / 53. 5. 0 libavdevice 53. 0. 0 / 53. 0. 0 libavfilter 2. 4. 0 / 2. 4. 0 libswscale 2. 0. 0 / 2. 0. 0 libpostproc 52. 0. 0 / 52. 0. 0 This program is not developed anymore and is only provided for compatibility. Use avconv instead (see Changelog for the list of incompatible changes). Input #0, avi, from 'in.avi': Metadata: artist : none Duration: 00:41:11.85, start: 0.000000, bitrate: 1187 kb/s Stream #0.0: Video: mpeg4 (Advanced Simple Profile), yuv420p, 624x352 [PAR 1:1 DAR 39:22], 23.98 tbr, 23.98 tbn, 23.98 tbc Stream #0.1: Audio: mp3, 48000 Hz, stereo, s16, 127 kb/s Output #0, avi, to 'e02/01.avi': Metadata: IART : none ISFT : Lavf53.5.0 Stream #0.0: Video: mpeg4, yuv420p, 624x352 [PAR 1:1 DAR 39:22], q=2-31, 23.98 tbn, 23.98 tbc Stream #0.1: Audio: libmp3lame, 48000 Hz, stereo, 127 kb/s Stream mapping: Stream #0.0 -> #0.0 Stream #0.1 -> #0.1 Press ctrl-c to stop encoding frame= 7194 fps= 0 q=-1.0 Lsize= 36852kB time=300.00 bitrate=1006.3kbits/s video:31698kB audio:4679kB global headers:0kB muxing overhead 1.305399% ffmpeg version 0.7, Copyright (c) 2000-2011 the Libav developers built on Sep 4 2011 18:24:25 with gcc 4.2.1 (Gentoo 4.2.1_p5666, Apple Inc. build 5666) (dot 3) configuration: --prefix=/Gentoo/usr --libdir=/Gentoo/usr/lib --shlibdir=/Gentoo/usr/lib --mandir=/Gentoo/usr/share/man --enable-shared --cc=i686-apple-darwin9-gcc --disable-static --enable-gpl --enable-version3 --enable-postproc --enable-avfilter --disable-debug --disable-doc --disable-network --disable-vaapi --disable-avplay --disable-vdpau --enable-libmp3lame --disable-indev=v4l --disable-indev=v4l2 --disable-indev=alsa --disable-indev=oss --disable-indev=jack --disable-outdev=alsa --disable-outdev=oss --disable-altivec --disable-amd3dnow --disable-amd3dnowext --cpu=nocona --enable-hardcoded-tables libavutil 51. 8. 0 / 51. 8. 0 libavcodec 53. 8. 0 / 53. 8. 0 libavformat 53. 5. 0 / 53. 5. 0 libavdevice 53. 0. 0 / 53. 0. 0 libavfilter 2. 4. 0 / 2. 4. 0 libswscale 2. 0. 0 / 2. 0. 0 libpostproc 52. 0. 0 / 52. 0. 0 This program is not developed anymore and is only provided for compatibility. Use avconv instead (see Changelog for the list of incompatible changes). Input #0, avi, from 'in.avi': Metadata: artist : none Duration: 00:41:11.85, start: 0.000000, bitrate: 1187 kb/s Stream #0.0: Video: mpeg4 (Advanced Simple Profile), yuv420p, 624x352 [PAR 1:1 DAR 39:22], 23.98 tbr, 23.98 tbn, 23.98 tbc Stream #0.1: Audio: mp3, 48000 Hz, stereo, s16, 127 kb/s Output #0, avi, to 'e02/02.avi': Metadata: IART : none ISFT : Lavf53.5.0 Stream #0.0: Video: mpeg4, yuv420p, 624x352 [PAR 1:1 DAR 39:22], q=2-31, 23.98 tbn, 23.98 tbc Stream #0.1: Audio: libmp3lame, 48000 Hz, stereo, 127 kb/s Stream mapping: Stream #0.0 -> #0.0 Stream #0.1 -> #0.1 Press ctrl-c to stop encoding frame= 6977 fps= 0 q=-1.0 Lsize= 50965kB time=300.00 bitrate=1391.7kbits/s video:45873kB audio:4617kB global headers:0kB muxing overhead 0.940401% From rogerdpack2 at gmail.com Mon Oct 10 18:07:07 2011 From: rogerdpack2 at gmail.com (Roger Pack) Date: Mon, 10 Oct 2011 10:07:07 -0600 Subject: [FFmpeg-user] ffmpeg windows build In-Reply-To: <4E92BA2E.8070908@bbc.co.uk> References: <20111005182636.525DC10E196@avserver.banki.hu> <4E92BA2E.8070908@bbc.co.uk> Message-ID: > According to ./configure -help if I set --prefix=PREFIX then ffmpeg will be > installed there. > > However how do I tell it where to find the individual libraries I have pre > built? Sometimes configure has a --with-blahblahblah-dir= where you can specify it. If not then you might be able to just install them all "somewhere" then pass in the include and lib dirs through your CFLAGS or the like. I might suggest asking on the Zerano forum too... -r From rogerdpack2 at gmail.com Mon Oct 10 18:08:28 2011 From: rogerdpack2 at gmail.com (Roger Pack) Date: Mon, 10 Oct 2011 10:08:28 -0600 Subject: [FFmpeg-user] Poor quality on JPG encode In-Reply-To: References: Message-ID: > The color on the ffmpeg photo is much worse, I cannot find a way to > improve the quality. What if the image is white, does it stay "pure" white when you do the conversion? From frederiksunne at gmail.com Mon Oct 10 18:10:33 2011 From: frederiksunne at gmail.com (Frederik Dam Sunne) Date: Mon, 10 Oct 2011 18:10:33 +0200 Subject: [FFmpeg-user] Poor quality on JPG encode In-Reply-To: References: Message-ID: > > The color on the ffmpeg photo is much worse, I cannot find a way to > improve the quality. > I don't know if it will improve your colors, but you can use the -q parameter to control the compression. -q 5 seems to be the default, using values less than 5 increases the quality and file size. You can also try grabbing your frames to the lossless bmp format by using the .bmp file extension instead of .jpg when typing in your output file name - and subsequent compress the bmp to jpg using your favorite jpg compression library. Regards, Frederik From rogerdpack2 at gmail.com Mon Oct 10 18:10:31 2011 From: rogerdpack2 at gmail.com (Roger Pack) Date: Mon, 10 Oct 2011 10:10:31 -0600 Subject: [FFmpeg-user] Input from named pipes In-Reply-To: References: Message-ID: On Thu, Oct 6, 2011 at 9:02 AM, Steve Turley wrote: > I am reading a live/real-time MPEG-2 transport stream from a named pipe into > FFmpeg. ?The incoming stream is MPEG-2 video and AC-3 audio. ?I need to > transcode to H.264 and MP3. ?I can cat the named pipe to a file and play > back the MPEG-2 video without issue in VLC or TS Reader. ?Does anyone have > tips on how to use named pipes as input to FFmpeg? > > Here are some commands I've tried: > ffmpeg -i ~/stream_pipe -acodec libmp3lame -ab 128k -ar 44100 -ac 2 -vcodec > libx264 -vpre lossless_ultrafast -b 1000k -s 640x480 -r 29.97 -strict > experimental -deinterlace -f mpegts -y udp://192.168.1.1:10000 > ffmpeg -f mpegts -re -i ~/stream_pipe -acodec libmp3lame -ab 128k -ar 44100 > -ac 2 -vcodec libx264 -vpre lossless_ultrafast -b 1000k -s 640x480 -r 29.97 > -strict experimental -deinterlace -f mpegts -y udp://192.168.1.1:10000 Does it just die immediately then? From foerster at pixbyte.com Mon Oct 10 18:48:14 2011 From: foerster at pixbyte.com (Ingo Foerster) Date: Mon, 10 Oct 2011 18:48:14 +0200 Subject: [FFmpeg-user] compile with HW accelerator Message-ID: <1345339217.20111010184814@pixbyte.com> Hello, how I can compile ffmpeg with HW accelerator enabled? What settings/configuration I have to use? Where is the documentation referred in the header: "FFmpeg HW accelerator documentation to know how to fill this" Iam using WIndows and mingw. Ingo From tim.nicholson at bbc.co.uk Mon Oct 10 18:51:11 2011 From: tim.nicholson at bbc.co.uk (Tim Nicholson) Date: Mon, 10 Oct 2011 17:51:11 +0100 Subject: [FFmpeg-user] ffmpeg windows build In-Reply-To: References: <20111005182636.525DC10E196@avserver.banki.hu> <4E92BA2E.8070908@bbc.co.uk> Message-ID: <4E93227F.6030003@bbc.co.uk> On 10/10/11 17:07, Roger Pack wrote: >> According to ./configure -help if I set --prefix=PREFIX then ffmpeg will be >> installed there. >> >> However how do I tell it where to find the individual libraries I have pre >> built? > > Sometimes configure has a --with-blahblahblah-dir= where you can specify it. > If not then you might be able to just install them all "somewhere" > then pass in the include and lib dirs through your CFLAGS or the like. > I might suggest asking on the Zerano forum too... --sysroot=/blah/blah where /blah/blah contains /usr/local/ seems to do the trick...... Well so far on the libraries I have got to work... -- Tim http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. From forum at numerizik.com Mon Oct 10 19:15:15 2011 From: forum at numerizik.com (Guillaume (Numerizik)) Date: Mon, 10 Oct 2011 19:15:15 +0200 Subject: [FFmpeg-user] VHOOK Message-ID: <034401cc8770$2ddf2f30$899d8d90$@numerizik.com> Hello Everybody, I installed new server and -vhook seems too old option ==> ffmpeg -sameq -y -i /home/video/temp/temp.mp4 -vhook '/usr/lib/vhook/watermark.so -f /home/temp/logo.png -m 1' /home/video/temp/final.mp4 Can you tell me what I can use now ? Thanks for your help Guillaume From lou at lrcd.com Mon Oct 10 21:09:27 2011 From: lou at lrcd.com (Lou) Date: Mon, 10 Oct 2011 11:09:27 -0800 Subject: [FFmpeg-user] Command line to keep original aspect ration and encode to iPhone with borders In-Reply-To: References: Message-ID: <20111010110927.38c55ea2@lrcd.com> On Mon, 10 Oct 2011 01:03:38 +0100 DM wrote: > We need a command line to keep any original aspect ration and encode > to iPhone (.mp4), but with black borders. > > We have customers uploading lots of different aspect ratio inputs, > and only the same one command line to enable the video > to play in any iPhone (and Android if possible) > > So we can't have a command line with a changing border size, as we > can't change the command line for each upload. I don't own any iDevices, but you could try something like: ffmpeg -i input -vf scale="640:trunc(ow/a/2)*2" -vcodec libx264 \ -preset medium -profile baseline -level 3.0 -crf 24 -acodec libfaac \ -aq 100 output.mp4 or: ffmpeg -i input -vf scale="640:trunc(ow/a/2)*2" -vcodec libx264 \ -preset medium -vpre ipod640 -crf 24 -acodec libfaac -aq 100 output.mp4 You will have to test these examples to see which works best in your device(s). The scale filter in these examples will resize your output to 640 pixels wide and will automatically use a value for the height that preserves the aspect ratio and provides an even number for libx264 (you could perhaps use "640:-1" with less picky encoders). Note that "-vpre ipod640" was broken for some time, but this is fixed in Git master. If you still want the black borders see the "pad" filter. From sjturley at gmail.com Mon Oct 10 22:32:52 2011 From: sjturley at gmail.com (sjturley) Date: Mon, 10 Oct 2011 13:32:52 -0700 (PDT) Subject: [FFmpeg-user] Input from named pipes In-Reply-To: References: Message-ID: <1318278772606-3891727.post@n4.nabble.com> It will run for 5-10 seconds before it dies. Roger Pack wrote: > > On Thu, Oct 6, 2011 at 9:02 AM, Steve Turley <sjturley@> wrote: >> I am reading a live/real-time MPEG-2 transport stream from a named pipe >> into >> FFmpeg. ?The incoming stream is MPEG-2 video and AC-3 audio. ?I need to >> transcode to H.264 and MP3. ?I can cat the named pipe to a file and play >> back the MPEG-2 video without issue in VLC or TS Reader. ?Does anyone >> have >> tips on how to use named pipes as input to FFmpeg? >> >> Here are some commands I've tried: >> ffmpeg -i ~/stream_pipe -acodec libmp3lame -ab 128k -ar 44100 -ac 2 >> -vcodec >> libx264 -vpre lossless_ultrafast -b 1000k -s 640x480 -r 29.97 -strict >> experimental -deinterlace -f mpegts -y udp://192.168.1.1:10000 >> ffmpeg -f mpegts -re -i ~/stream_pipe -acodec libmp3lame -ab 128k -ar >> 44100 >> -ac 2 -vcodec libx264 -vpre lossless_ultrafast -b 1000k -s 640x480 -r >> 29.97 >> -strict experimental -deinterlace -f mpegts -y udp://192.168.1.1:10000 > > Does it just die immediately then? > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user@ > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Input-from-named-pipes-tp3879348p3891727.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From hardik.sharma22 at yahoo.com Tue Oct 11 00:50:35 2011 From: hardik.sharma22 at yahoo.com (Hardik Sharma) Date: Mon, 10 Oct 2011 15:50:35 -0700 (PDT) Subject: [FFmpeg-user] Is it possible to get P and B slices in one frame? Message-ID: <1318287035.31311.YahooMailNeo@web46202.mail.sp1.yahoo.com> According to my parser I am getting P and B slices in one frame and that is giving errors in later frames. Please let me know how it is possible or is there anything I am doing wrong.? To check this I encoded the video couple of times but getting same information regarding frames in parser. ?? From stefasab at gmail.com Tue Oct 11 00:55:15 2011 From: stefasab at gmail.com (Stefano Sabatini) Date: Tue, 11 Oct 2011 00:55:15 +0200 Subject: [FFmpeg-user] VHOOK In-Reply-To: <034401cc8770$2ddf2f30$899d8d90$@numerizik.com> References: <034401cc8770$2ddf2f30$899d8d90$@numerizik.com> Message-ID: <20111010225515.GB700@arborea> On date Monday 2011-10-10 19:15:15 +0200, Guillaume (Numerizik) encoded: > Hello Everybody, > > I installed new server and -vhook seems too old option > > ==> ffmpeg -sameq -y -i /home/video/temp/temp.mp4 -vhook > '/usr/lib/vhook/watermark.so -f /home/temp/logo.png -m 1' > /home/video/temp/final.mp4 > > Can you tell me what I can use now ? http://ffmpeg.org/libavfilter.html in particular, check the overlay filter. VHOOK was removed just after 0.5 release, libavfilter is integrated in FFmpeg >= 0.7. -- ffmpeg-user random tip #14 Smart questions (un)official document: http://www.catb.org/~esr/faqs/smart-questions.html From hardik.sharma22 at yahoo.com Tue Oct 11 02:21:27 2011 From: hardik.sharma22 at yahoo.com (Hardik Sharma) Date: Mon, 10 Oct 2011 17:21:27 -0700 (PDT) Subject: [FFmpeg-user] Is it possible to get P and B slices in one frame? In-Reply-To: <1318287035.31311.YahooMailNeo@web46202.mail.sp1.yahoo.com> References: <1318287035.31311.YahooMailNeo@web46202.mail.sp1.yahoo.com> Message-ID: <1318292487.48932.YahooMailNeo@web46201.mail.sp1.yahoo.com> I got it. It's my parser's problem. ________________________________ From: Hardik Sharma To: ffmpeg Sent: Monday, 10 October 2011 3:50 PM Subject: Is it possible to get P and B slices in one frame? According to my parser I am getting P and B slices in one frame and that is giving errors in later frames. Please let me know how it is possible or is there anything I am doing wrong.? To check this I encoded the video couple of times but getting same information regarding frames in parser. ?? From if at xip.at Tue Oct 11 02:47:23 2011 From: if at xip.at (Ingo Flaschberger) Date: Tue, 11 Oct 2011 02:47:23 +0200 (CEST) Subject: [FFmpeg-user] restore video written with opencv In-Reply-To: References: Message-ID: > opencv changed some time ago how rawvideos are written, see: > https://code.ros.org/trac/opencv/ticket/1400#comment:2 > https://code.ros.org/trac/opencv/ticket/782 > > my problem is: > rawvideo is written with pixfmt bgr24: > Stream #0.0: Video: rawvideo, bgr24, 456x400, q=2-31, 11673 kb/s, 90k tbn, 4 > tbc > > ffmpeg (and also all video-players) recognize the video as avi with codec > 420p / IYUV - and plays a broken video. > > I can force ffmpeg to use bgp24 as pixfmt when transcoding the video to 420p > - resulting in a viewable video but the image runs now from left to right and > top to bottom. > > Any ideas how I can restore the original video? > > I can provide a test-video if needed. I have placed test-videos: http://upload.confusion.at/test1.avi Video created with opencv / ffmpeg (same result also with opencv svn / ffmpeg svn) opencv set pixfmt bgr24 for rawvideo, but codec tells this is a IYUV / 420p video http://upload.confusion.at/test2.avi converted with: ffmpeg -f rawvideo -pix_fmt bgr24 -r 4 -s 456x400 -i test1.avi -vcodec rawvideo -pix_fmt bgr24 test2.avi now the videos looks "better", but moves from left to right and top to bottom. Any ideas if the original video stored by opencv could be restored? Kind regards, Ingo Flaschberger From public at stevenocchipinti.com Tue Oct 11 04:26:31 2011 From: public at stevenocchipinti.com (Steven Occhipinti) Date: Tue, 11 Oct 2011 13:26:31 +1100 Subject: [FFmpeg-user] Newbie streaming problem Message-ID: Hi, I'm pretty new to ffmpeg and am a little confused on how ffserver works. My goal is to stream a webcam from one machine to (one or more) others. Ideally I would want the client machine to only require a web browser and the basic plugins, etc. to view the stream. I have Ubuntu 10.04.3 server installed and ffmpeg/ffserver from the repo. If I run this command to test the webcam and it starts up and a video file is successfully recorded /tmp/test.mp4: #> ffmpeg -an -f video4linux2 -s 320x240 -r 15 -i /dev/video0 -vcodec mpeg4 -vtag DIVX /tmp/test.mp4 I copied /etc/ffserver.conf to my home dir - I think I need to tweak this file a bit, but need a little help. I ran this command and it started a server on localhost:8090 ? #> ffserver -f ~/ffserver.conf I then ran #> ffmpeg -an -f video4linux2 -s 320x240 -r 15 -i /dev/video0 -vcodec mpeg4 -vtag DIVX http://localhost:8090/feed1.ffm and this is the output I get: #> ffmpeg -an -f video4linux2 -s 320x240 -r 15 -i /dev/video0 -vcodec mpeg4 -vtag DIVX http://localhost:8090/feed1.ffm FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1.2, Copyright (c) 2000-2009 Fabrice Bellard, et al. configuration: --extra-version=4:0.5.1-1ubuntu1.2 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping --disable-vhook --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared --disable-static libavutil 49.15. 0 / 49.15. 0 libavcodec 52.20. 1 / 52.20. 1 libavformat 52.31. 0 / 52.31. 0 libavdevice 52. 1. 0 / 52. 1. 0 libavfilter 0. 4. 0 / 0. 4. 0 libswscale 0. 7. 1 / 0. 7. 1 libpostproc 51. 2. 0 / 51. 2. 0 built on Sep 16 2011 17:04:18, gcc: 4.4.3 [video4linux2 @ 0x89092c0][3]Capabilities: 4000001 [video4linux2 @ 0x89092c0]The V4L2 driver changed the video from 320x240 to 176x144 Input #0, video4linux2, from '/dev/video0': Duration: N/A, start: 1318298315.446232, bitrate: 6082 kb/s Stream #0.0: Video: rawvideo, yuyv422, 176x144, 6082 kb/s, 15 tbr, 1000k tbn, 15 tbc Output #0, ffm, to 'http://localhost:8090/feed1.ffm': Stream #0.0: Audio: mp2, 44100 Hz, mono, s16, 32 kb/s Stream #0.1: Video: mpeg1video, yuv420p, 176x144, q=3-31, 64 kb/s, 1000k tbn, 3 tbc Stream #0.2: Audio: mp2, 22050 Hz, mono, s16, 64 kb/s Stream #0.3: Video: msmpeg4, yuv420p, 352x240, q=3-31, 256 kb/s, 1000k tbn, 15 tbc Could not find input stream matching output stream #0.0 ioctl(VIDIOC_QBUF) I'm assuming I need to setup a more suitable definition to match the input, but after some fiddling I can't seem to get it working. I've attached my ffserver.conf - Any help is much appreciated. Cheers, Steve -------------- next part -------------- A non-text attachment was scrubbed... Name: ffserver.conf Type: application/octet-stream Size: 8679 bytes Desc: not available URL: From prashant at b-one.net Tue Oct 11 08:15:35 2011 From: prashant at b-one.net (Prashant Rathi) Date: Tue, 11 Oct 2011 10:15:35 +0400 Subject: [FFmpeg-user] Unregister Message-ID: <004c01cc87dd$31240c70$936c2550$@b-one.net> Hi, Please unregister me. Regards Prashant From belcampo at zonnet.nl Tue Oct 11 09:43:03 2011 From: belcampo at zonnet.nl (belcampo) Date: Tue, 11 Oct 2011 09:43:03 +0200 Subject: [FFmpeg-user] Newbie streaming problem In-Reply-To: References: Message-ID: <4E93F387.7070407@zonnet.nl> On 10/11/2011 04:26 AM, Steven Occhipinti wrote: > Hi, > > I'm pretty new to ffmpeg and am a little confused on how ffserver works. > My goal is to stream a webcam from one machine to (one or more) others. > Ideally I would want the client machine to only require a web browser > and the basic plugins, etc. to view the stream. > > I have Ubuntu 10.04.3 server installed and ffmpeg/ffserver from the repo. > If I run this command to test the webcam and it starts up and a video > file is successfully recorded /tmp/test.mp4: > #> ffmpeg -an -f video4linux2 -s 320x240 -r 15 -i /dev/video0 > -vcodec mpeg4 -vtag DIVX /tmp/test.mp4 > I copied /etc/ffserver.conf to my home dir - I think I need to tweak > this file a bit, but need a little help. > I ran this command and it started a server on localhost:8090 > #> ffserver -f ~/ffserver.conf > I then ran > #> ffmpeg -an -f video4linux2 -s 320x240 -r 15 -i /dev/video0 > -vcodec mpeg4 -vtag DIVX http://localhost:8090/feed1.ffm > > and this is the output I get: > > #> ffmpeg -an -f video4linux2 -s 320x240 -r 15 -i /dev/video0 > -vcodec mpeg4 -vtag DIVX http://localhost:8090/feed1.ffm > FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1.2, Copyright (c) 2000-2009 > Fabrice Bellard, et al. > configuration: --extra-version=4:0.5.1-1ubuntu1.2 --prefix=/usr > --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib > --enable-libgsm --enable-libschroedinger --enable-libspeex > --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib > --disable-stripping --disable-vhook --enable-runtime-cpudetect > --enable-gpl --enable-postproc --enable-swscale --enable-x11grab > --enable-libdc1394 --enable-shared --disable-static > libavutil 49.15. 0 / 49.15. 0 > libavcodec 52.20. 1 / 52.20. 1 > libavformat 52.31. 0 / 52.31. 0 > libavdevice 52. 1. 0 / 52. 1. 0 > libavfilter 0. 4. 0 / 0. 4. 0 > libswscale 0. 7. 1 / 0. 7. 1 > libpostproc 51. 2. 0 / 51. 2. 0 > built on Sep 16 2011 17:04:18, gcc: 4.4.3 > [video4linux2 @ 0x89092c0][3]Capabilities: 4000001 > [video4linux2 @ 0x89092c0]The V4L2 driver changed the video from > 320x240 to 176x144 > Input #0, video4linux2, from '/dev/video0': > Duration: N/A, start: 1318298315.446232, bitrate: 6082 kb/s > Stream #0.0: Video: rawvideo, yuyv422, 176x144, 6082 kb/s, 15 tbr, > 1000k tbn, 15 tbc > Output #0, ffm, to 'http://localhost:8090/feed1.ffm': > Stream #0.0: Audio: mp2, 44100 Hz, mono, s16, 32 kb/s > Stream #0.1: Video: mpeg1video, yuv420p, 176x144, q=3-31, 64 kb/s, > 1000k tbn, 3 tbc > Stream #0.2: Audio: mp2, 22050 Hz, mono, s16, 64 kb/s > Stream #0.3: Video: msmpeg4, yuv420p, 352x240, q=3-31, 256 kb/s, > 1000k tbn, 15 tbc > Could not find input stream matching output stream #0.0 > ioctl(VIDIOC_QBUF) > > > I'm assuming I need to setup a more suitable definition to > match the input, but after some fiddling I can't seem to get it > working. Your camera is providing 2 video and 2 audio streams you need to use the map function to make it work. Adding -map 0.3 -map 0.2 to your ffmpeg command line will choose the higher definition video and audio. > I've attached my ffserver.conf - Any help is much appreciated. > > > Cheers, > Steve > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From jdmls at yahoo.com Tue Oct 11 11:06:48 2011 From: jdmls at yahoo.com (John Doe) Date: Tue, 11 Oct 2011 02:06:48 -0700 (PDT) Subject: [FFmpeg-user] libx264 2 pass encoding... Message-ID: <1318324008.35380.YahooMailNeo@web114720.mail.gq1.yahoo.com> Hi, I am debugging my old command lines and I bumped into an x264 2 pass problem:"[libx264 @ 0x1ccd460] constant rate-factor is incompatible with 2pass." I understand that lossless presets won't work. I tried the ipod presets... same. I did not find any *pass presets files... I only got: libvpx-*, libx264-ipod* and libx264-lossless* presets. I tried no presets... I have reduced my command-lines down to the minimum: ffmpeg -y -i "test.mov" -pass 1 "test.m4v" ffmpeg -y -i "test.mov" -pass 2 "test.m4v" But it still fails... ffmpeg version N-32814-gcab2860 libx264 r2085 8a62835 Anyone has some working 2-pass libx264 command-lines? Thx, JD From jonathan at free.fr Tue Oct 11 11:09:54 2011 From: jonathan at free.fr (Jonathan Tanant) Date: Tue, 11 Oct 2011 11:09:54 +0200 Subject: [FFmpeg-user] libx264 2 pass encoding... In-Reply-To: <1318324008.35380.YahooMailNeo@web114720.mail.gq1.yahoo.com> References: <1318324008.35380.YahooMailNeo@web114720.mail.gq1.yahoo.com> Message-ID: Hi, I use these ones to convert my movies to an iPhone/iPod compatible x264 : ffmpeg -i "./input.mov" -sameq -r 25 -pass 1 -s 1024x512 -vcodec libx264 -vpre slow_firstpass -vpre ipod640 -b 1500kb -aspect 2:1 -threads 0 -f ipod -y output.mp4 ffmpeg -i "./input.mov" -sameq -r 25 -pass 2 -s 1024x512 -vcodec libx264 -vpre slow -vpre ipod640 -b 1500kb -aspect 2:1 -threads 0 -f ipod -y output.mp4 Best, Jonathan. Le 11 oct. 2011 ? 11:06, John Doe a ?crit : > Hi, > > I am debugging my old command lines and I bumped into an x264 2 pass problem:"[libx264 @ 0x1ccd460] constant rate-factor is incompatible with 2pass." > > I understand that lossless presets won't work. > I tried the ipod presets... same. > I did not find any *pass presets files... > I only got: libvpx-*, libx264-ipod* and libx264-lossless* presets. > I tried no presets... > > I have reduced my command-lines down to the minimum: > ffmpeg -y -i "test.mov" -pass 1 "test.m4v" > > ffmpeg -y -i "test.mov" -pass 2 "test.m4v" > > But it still fails... > > > ffmpeg version N-32814-gcab2860 > libx264 r2085 8a62835 > > Anyone has some working 2-pass libx264 command-lines? > > > Thx, > JD > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From jonathan at free.fr Tue Oct 11 11:09:54 2011 From: jonathan at free.fr (Jonathan Tanant) Date: Tue, 11 Oct 2011 11:09:54 +0200 Subject: [FFmpeg-user] libx264 2 pass encoding... In-Reply-To: <1318324008.35380.YahooMailNeo@web114720.mail.gq1.yahoo.com> References: <1318324008.35380.YahooMailNeo@web114720.mail.gq1.yahoo.com> Message-ID: Hi, I use these ones to convert my movies to an iPhone/iPod compatible x264 : ffmpeg -i "./input.mov" -sameq -r 25 -pass 1 -s 1024x512 -vcodec libx264 -vpre slow_firstpass -vpre ipod640 -b 1500kb -aspect 2:1 -threads 0 -f ipod -y output.mp4 ffmpeg -i "./input.mov" -sameq -r 25 -pass 2 -s 1024x512 -vcodec libx264 -vpre slow -vpre ipod640 -b 1500kb -aspect 2:1 -threads 0 -f ipod -y output.mp4 Best, Jonathan. Le 11 oct. 2011 ? 11:06, John Doe a ?crit : > Hi, > > I am debugging my old command lines and I bumped into an x264 2 pass problem:"[libx264 @ 0x1ccd460] constant rate-factor is incompatible with 2pass." > > I understand that lossless presets won't work. > I tried the ipod presets... same. > I did not find any *pass presets files... > I only got: libvpx-*, libx264-ipod* and libx264-lossless* presets. > I tried no presets... > > I have reduced my command-lines down to the minimum: > ffmpeg -y -i "test.mov" -pass 1 "test.m4v" > > ffmpeg -y -i "test.mov" -pass 2 "test.m4v" > > But it still fails... > > > ffmpeg version N-32814-gcab2860 > libx264 r2085 8a62835 > > Anyone has some working 2-pass libx264 command-lines? > > > Thx, > JD > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From sheen.andy at googlemail.com Tue Oct 11 11:12:38 2011 From: sheen.andy at googlemail.com (Andy Sheen) Date: Tue, 11 Oct 2011 10:12:38 +0100 Subject: [FFmpeg-user] libx264 2 pass encoding... In-Reply-To: <1318324008.35380.YahooMailNeo@web114720.mail.gq1.yahoo.com> References: <1318324008.35380.YahooMailNeo@web114720.mail.gq1.yahoo.com> Message-ID: <4E940886.4040100@googlemail.com> The error suggests the default encode of x264 is to use a constant rate. 2 pass is used to adapt the bitrate across the stream, so you can't use constant bitrate. I use this as a recode command in a bash shell (bitrate 3000k): recode_video () { nice ffmpeg -y -i "$1" -pass 1 -vcodec libx264 -vpre slow_firstpass -vpre main -b 3000k -threads 0 -f mp4 -an /dev/null; nice ffmpeg -y -i "$1" -pass 2 -vcodec libx264 -vpre slow -vpre main -b 3000k -threads 0 "rec_$1.mkv" } Note this may not work directly for you as I use an ffmpeg that is from January this year. John Doe wrote on Tue 11 Oct at 10:06 UK time > Hi, > > I am debugging my old command lines and I bumped into an x264 2 pass problem:"[libx264 @ 0x1ccd460] constant rate-factor is incompatible with 2pass." > > I understand that lossless presets won't work. > I tried the ipod presets... same. > I did not find any *pass presets files... > I only got: libvpx-*, libx264-ipod* and libx264-lossless* presets. > I tried no presets... > > I have reduced my command-lines down to the minimum: > ffmpeg -y -i "test.mov" -pass 1 "test.m4v" > > ffmpeg -y -i "test.mov" -pass 2 "test.m4v" > > But it still fails... > > > ffmpeg version N-32814-gcab2860 > libx264 r2085 8a62835 > > Anyone has some working 2-pass libx264 command-lines? > > > Thx, > JD > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From forum at numerizik.com Tue Oct 11 11:34:03 2011 From: forum at numerizik.com (Guillaume (Numerizik)) Date: Tue, 11 Oct 2011 11:34:03 +0200 Subject: [FFmpeg-user] VHOOK In-Reply-To: <20111010225515.GB700@arborea> References: <034401cc8770$2ddf2f30$899d8d90$@numerizik.com> <20111010225515.GB700@arborea> Message-ID: <055601cc87f8$ea82edb0$bf88c910$@numerizik.com> Hello I i installed movie filter but when i did this: ffmpeg -sameq -y -i /home/video/temp/D7Q2B3D9F3W8J0O6K2_step2.mp4 -vf "movie=0:png:/home/logo/logo.png [logo]; [in][logo] overlay=5:5" /home/video/temp/D7Q2B3D9F3W8J0O6K2_final.mp4 I have this error: [buffer @ 0x8bc5460] w:1280 h:720 pixfmt:yuv420p [image2 @ 0x8bb0c80] Could not find codec parameters (Video: [0][0][0][0] / 0x0000, yuv420p) [movie @ 0x8bb0a20] movie_init() Failed to find stream info Error initializing filter 'movie' with args '0:png:/home/logo/logo.png' Error opening filters! Can you help me again :) thanks -----Message d'origine----- De?: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user-bounces at ffmpeg.org] De la part de Stefano Sabatini Envoy??: mardi 11 octobre 2011 00:55 ??: FFmpeg user questions and RTFMs Objet?: Re: [FFmpeg-user] VHOOK On date Monday 2011-10-10 19:15:15 +0200, Guillaume (Numerizik) encoded: > Hello Everybody, > > I installed new server and -vhook seems too old option > > ==> ffmpeg -sameq -y -i /home/video/temp/temp.mp4 -vhook > '/usr/lib/vhook/watermark.so -f /home/temp/logo.png -m 1' > /home/video/temp/final.mp4 > > Can you tell me what I can use now ? http://ffmpeg.org/libavfilter.html in particular, check the overlay filter. VHOOK was removed just after 0.5 release, libavfilter is integrated in FFmpeg >= 0.7. -- ffmpeg-user random tip #14 Smart questions (un)official document: http://www.catb.org/~esr/faqs/smart-questions.html _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From jdmls at yahoo.com Tue Oct 11 12:08:46 2011 From: jdmls at yahoo.com (John Doe) Date: Tue, 11 Oct 2011 03:08:46 -0700 (PDT) Subject: [FFmpeg-user] libx264 2 pass encoding... In-Reply-To: <4E940886.4040100@googlemail.com> References: <1318324008.35380.YahooMailNeo@web114720.mail.gq1.yahoo.com> <4E940886.4040100@googlemail.com> Message-ID: <1318327726.37633.YahooMailNeo@web114710.mail.gq1.yahoo.com> From: Andy Sheen > John Doe wrote on Tue 11 Oct at 10:06 UK time >> I am debugging my old command lines and I bumped into an x264 2 pass >> problem:"[libx264 @ 0x1ccd460] constant rate-factor is incompatible with >> 2pass." >> I understand that lossless presets won't work. >> I tried the ipod presets... same. >> I did not find any *pass presets files... >> I only got: libvpx-*, libx264-ipod* and libx264-lossless* presets. >> I tried no presets... > ... -vpre slow_firstpass -vpre main ... > ... -vpre slow -vpre main From: Jonathan Tanant > ... -vpre slow_firstpass -vpre ipod640 ... > ... -vpre slow -vpre ipod640 ... Thanks for your replies. The problem is that: ? File for preset 'slow' not found ? File for preset 'slow_firstpass' not found From ffmpeg source: ? $ ls ffmpeg/ffpresets/ ? libvpx-1080p.ffpreset ? libvpx-1080p50_60.ffpreset ? libvpx-360p.ffpreset ? libvpx-720p.ffpreset ? libvpx-720p50_60.ffpreset ? libx264-ipod320.ffpreset ? libx264-ipod640.ffpreset ? libx264-lossless_fast.ffpreset ? libx264-lossless_max.ffpreset ? libx264-lossless_medium.ffpreset ? libx264-lossless_slow.ffpreset ? libx264-lossless_slower.ffpreset ? libx264-lossless_ultrafast.ffpreset Any idea from where I could get these presets...? Thx, JD From jonathan at free.fr Tue Oct 11 12:13:08 2011 From: jonathan at free.fr (Jonathan Tanant) Date: Tue, 11 Oct 2011 12:13:08 +0200 Subject: [FFmpeg-user] libx264 2 pass encoding... In-Reply-To: <1318327726.37633.YahooMailNeo@web114710.mail.gq1.yahoo.com> References: <1318324008.35380.YahooMailNeo@web114720.mail.gq1.yahoo.com> <4E940886.4040100@googlemail.com> <1318327726.37633.YahooMailNeo@web114710.mail.gq1.yahoo.com> Message-ID: Le 11 oct. 2011 ? 12:08, John Doe a ?crit : > From: Andy Sheen > >> John Doe wrote on Tue 11 Oct at 10:06 UK time >>> I am debugging my old command lines and I bumped into an x264 2 pass >>> problem:"[libx264 @ 0x1ccd460] constant rate-factor is incompatible with >>> 2pass." >>> I understand that lossless presets won't work. >>> I tried the ipod presets... same. >>> I did not find any *pass presets files... >>> I only got: libvpx-*, libx264-ipod* and libx264-lossless* presets. >>> I tried no presets... >> ... -vpre slow_firstpass -vpre main ... >> ... -vpre slow -vpre main > > From: Jonathan Tanant >> ... -vpre slow_firstpass -vpre ipod640 ... >> ... -vpre slow -vpre ipod640 ... > > Thanks for your replies. > The problem is that: > File for preset 'slow' not found > File for preset 'slow_firstpass' not found > From ffmpeg source: > $ ls ffmpeg/ffpresets/ > libvpx-1080p.ffpreset > libvpx-1080p50_60.ffpreset > libvpx-360p.ffpreset > libvpx-720p.ffpreset > libvpx-720p50_60.ffpreset > libx264-ipod320.ffpreset > libx264-ipod640.ffpreset > libx264-lossless_fast.ffpreset > libx264-lossless_max.ffpreset > libx264-lossless_medium.ffpreset > libx264-lossless_slow.ffpreset > libx264-lossless_slower.ffpreset > libx264-lossless_ultrafast.ffpreset > > Any idea from where I could get these presets...? Sorry, I don't know, I just got them "out from the box". FFmpeg 0.6, compiled from the sources on Aug 9 2010. ================================================ FFmpeg version 0.6, Copyright (c) 2000-2010 the FFmpeg developers built on Aug 9 2010 14:35:37 with gcc 4.2.1 (Apple Inc. build 5664) configuration: --prefix=/opt/local --enable-gpl --enable-postproc --enable-swscale --enable-avfilter --enable-avfilter-lavf --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libdirac --enable-libschroedinger --enable-libfaac --enable-libfaad --enable-libxvid --enable-libx264 --enable-libvpx --enable-libspeex --enable-nonfree --mandir=/opt/local/share/man --enable-shared --enable-pthreads --disable-indevs --cc=/usr/bin/gcc-4.2 --arch=x86_64 libavutil 50.15. 1 / 50.15. 1 libavcodec 52.72. 2 / 52.72. 2 libavformat 52.64. 2 / 52.64. 2 libavdevice 52. 2. 0 / 52. 2. 0 libavfilter 1.19. 0 / 1.19. 0 libswscale 1.11. 0 / 1.11. 0 libpostproc 51. 2. 0 / 51. 2. 0 Hyper fast Audio and Video encoder usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}... ================================================ Jonathan. > > Thx, > JD > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From public at stevenocchipinti.com Tue Oct 11 12:15:43 2011 From: public at stevenocchipinti.com (Steven Occhipinti) Date: Tue, 11 Oct 2011 21:15:43 +1100 Subject: [FFmpeg-user] Newbie streaming problem In-Reply-To: <4E93F387.7070407@zonnet.nl> References: <4E93F387.7070407@zonnet.nl> Message-ID: On Tue, Oct 11, 2011 at 6:43 PM, belcampo wrote: > On 10/11/2011 04:26 AM, Steven Occhipinti wrote: >> >> Hi, >> >> I'm pretty new to ffmpeg and am a little confused on how ffserver works. >> My goal is to stream a webcam from one machine to (one or more) others. >> Ideally I would want the client machine to only require a web browser >> and the basic plugins, etc. to view the stream. >> >> I have Ubuntu 10.04.3 server installed and ffmpeg/ffserver from the repo. >> If I run this command to test the webcam and it starts up and a video >> file is successfully recorded /tmp/test.mp4: >> ? #> ?ffmpeg -an -f video4linux2 -s 320x240 ?-r 15 -i /dev/video0 >> -vcodec mpeg4 -vtag DIVX /tmp/test.mp4 >> I copied /etc/ffserver.conf to my home dir - I think I need to tweak >> this file a bit, but need a little help. >> I ran this command and it started a server on localhost:8090 >> ? #> ?ffserver -f ~/ffserver.conf >> I then ran >> ? #> ?ffmpeg -an -f video4linux2 -s 320x240 ?-r 15 -i /dev/video0 >> -vcodec mpeg4 -vtag DIVX http://localhost:8090/feed1.ffm >> >> and this is the output I get: >> >> ? #> ?ffmpeg -an -f video4linux2 -s 320x240 ?-r 15 -i /dev/video0 >> -vcodec mpeg4 -vtag DIVX http://localhost:8090/feed1.ffm >> FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1.2, Copyright (c) 2000-2009 >> Fabrice Bellard, et al. >> ? configuration: --extra-version=4:0.5.1-1ubuntu1.2 --prefix=/usr >> --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib >> --enable-libgsm --enable-libschroedinger --enable-libspeex >> --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib >> --disable-stripping --disable-vhook --enable-runtime-cpudetect >> --enable-gpl --enable-postproc --enable-swscale --enable-x11grab >> --enable-libdc1394 --enable-shared --disable-static >> ? libavutil ? ? 49.15. 0 / 49.15. 0 >> ? libavcodec ? ?52.20. 1 / 52.20. 1 >> ? libavformat ? 52.31. 0 / 52.31. 0 >> ? libavdevice ? 52. 1. 0 / 52. 1. 0 >> ? libavfilter ? ?0. 4. 0 / ?0. 4. 0 >> ? libswscale ? ? 0. 7. 1 / ?0. 7. 1 >> ? libpostproc ? 51. 2. 0 / 51. 2. 0 >> ? built on Sep 16 2011 17:04:18, gcc: 4.4.3 >> [video4linux2 @ 0x89092c0][3]Capabilities: 4000001 >> [video4linux2 @ 0x89092c0]The V4L2 driver changed the video from >> 320x240 to 176x144 >> Input #0, video4linux2, from '/dev/video0': >> ? Duration: N/A, start: 1318298315.446232, bitrate: 6082 kb/s >> ? ? Stream #0.0: Video: rawvideo, yuyv422, 176x144, 6082 kb/s, 15 tbr, >> 1000k tbn, 15 tbc >> Output #0, ffm, to 'http://localhost:8090/feed1.ffm': >> ? ? Stream #0.0: Audio: mp2, 44100 Hz, mono, s16, 32 kb/s >> ? ? Stream #0.1: Video: mpeg1video, yuv420p, 176x144, q=3-31, 64 kb/s, >> 1000k tbn, 3 tbc >> ? ? Stream #0.2: Audio: mp2, 22050 Hz, mono, s16, 64 kb/s >> ? ? Stream #0.3: Video: msmpeg4, yuv420p, 352x240, q=3-31, 256 kb/s, >> 1000k tbn, 15 tbc >> Could not find input stream matching output stream #0.0 >> ioctl(VIDIOC_QBUF) >> >> >> I'm assuming I need to setup a more suitable ?definition to >> match the input, but after some fiddling I can't seem to get it >> working. > > Your camera is providing 2 video and 2 audio streams you need to use the map > function to make it work. > Adding -map 0.3 -map 0.2 to your ffmpeg command line will choose the higher > definition video and audio. >> >> I've attached my ffserver.conf - Any help is much appreciated. >> >> >> Cheers, >> Steve >> >> >> _______________________________________________ >> ffmpeg-user mailing list >> ffmpeg-user at ffmpeg.org >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > Thanks for your prompt reply. Your reply makes sense to me, but when I add those 2 map options, I get this error: "Number of stream maps must match number of output streams" I tried just the video stream too, but that gives the same result.. what are the output streams? # ffmpeg -map 0.3 -map 0.2 -an -f video4linux2 -s 320x240 -r 15 -i /dev/video0 -vcodec mpeg4 -vtag DIVX http://localhost:8090/feed1.ffm FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1.2, Copyright (c) 2000-2009 Fabrice Bellard, et al. configuration: --extra-version=4:0.5.1-1ubuntu1.2 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping --disable-vhook --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared --disable-static libavutil 49.15. 0 / 49.15. 0 libavcodec 52.20. 1 / 52.20. 1 libavformat 52.31. 0 / 52.31. 0 libavdevice 52. 1. 0 / 52. 1. 0 libavfilter 0. 4. 0 / 0. 4. 0 libswscale 0. 7. 1 / 0. 7. 1 libpostproc 51. 2. 0 / 51. 2. 0 built on Sep 16 2011 17:04:18, gcc: 4.4.3 [video4linux2 @ 0x9ce02c0][3]Capabilities: 4000001 [video4linux2 @ 0x9ce02c0]The V4L2 driver changed the video from 320x240 to 176x144 Input #0, video4linux2, from '/dev/video0': Duration: N/A, start: 1318328002.348537, bitrate: 6082 kb/s Stream #0.0: Video: rawvideo, yuyv422, 176x144, 6082 kb/s, 15 tbr, 1000k tbn, 15 tbc Number of stream maps must match number of output streams ioctl(VIDIOC_QBUF) From rickcorteza at gmail.com Tue Oct 11 14:32:26 2011 From: rickcorteza at gmail.com (Rick C.) Date: Tue, 11 Oct 2011 20:32:26 +0800 Subject: [FFmpeg-user] looking for converting advice Message-ID: <8CEC2638-6328-4E9F-94B2-01B34CA0139F@gmail.com> Hi, I will often do something like this: ffmpeg -i input.mp4 -vcodec mpeg4 -mbd 2 -b (same as input file) output.avi But sometimes it will result in a pixelated conversion. I have been trying to play around with different options (qmin/qmax, qscale, etc.) but haven't been able to really figure out the best options. If anyone would be willing to pass along some advice or guidelines on how to best set options especially bitrate that would be most helpful. Thanks, rc From jdmls at yahoo.com Tue Oct 11 15:45:40 2011 From: jdmls at yahoo.com (John Doe) Date: Tue, 11 Oct 2011 06:45:40 -0700 (PDT) Subject: [FFmpeg-user] libx264 2 pass encoding... In-Reply-To: References: <1318324008.35380.YahooMailNeo@web114720.mail.gq1.yahoo.com> <4E940886.4040100@googlemail.com> <1318327726.37633.YahooMailNeo@web114710.mail.gq1.yahoo.com> Message-ID: <1318340740.12758.YahooMailNeo@web114716.mail.gq1.yahoo.com> From: Jonathan Tanant > Sorry, I don't know, I just got them "out from the box". > FFmpeg 0.6, compiled from the sources on Aug 9 2010. Found an svn comment from 2011-04-16: "Remove now useless ffpresets for x264, use -preset" So I replaced -vpre with -preset and tried the presets listed from x264: ?ultrafast superfast veryfast faster fast medium slow slower veryslow But still get "constant rate-factor is incompatible with 2pass." JD From drabner at zoobe.com Tue Oct 11 16:05:28 2011 From: drabner at zoobe.com (Drabner) Date: Tue, 11 Oct 2011 07:05:28 -0700 (PDT) Subject: [FFmpeg-user] Converting mpg file to ARGB frames Message-ID: <1318341928282-3894533.post@n4.nabble.com> Hey, I am trying to decode an *.mpg video file into single frames and then convert these frames to the ARGB format to pass them on to a DirectX-Shader (to play them on an object). Now my problem is that the decoding seems to work fine, but the conversion to ARGB seems to really f*ck up. When outputting the frames, all I get is a screwed up pixel mash and definitely not the video I encoded. And then it crashes in the following memcpy function at some frame. I am passing the converted frame to the texture like this (GetFrames() returns a vector of previously created AVFrames, 640*360 is the texture and video size): *//-----------------------------------------------------------------* /memcpy(textureDest, _videoFrames->GetFrames()[_videoFramesPassed]->data, 4*640*360);/ *//-----------------------------------------------------------------* The data-to-texture-to-shader-code itself works well, I tested it with some random colors using D3DCOLOR_ARGB(). I decode the video like this: *//-----------------------------------------------------------------* /void FramesCollection::DecodeVideo(const char* p_filename) { av_log(NULL, AV_LOG_ERROR, "%s","Starting video decoding\n"); // Get the format context... int ret = avformat_open_input(&_videoFormatContext, p_filename, NULL, NULL); if (ret < 0) { av_log(NULL, AV_LOG_ERROR, "%s","Error opening file '%s'\n", p_filename); exit(-1); } // ... and fill it with stream info (contains number of frames, etc.) av_find_stream_info(_videoFormatContext); // Find the video stream AVStream* stream; for(int i = 0; i < (int)_videoFormatContext->nb_streams; i++) { if(_videoFormatContext->streams[i]->codec->codec_type == AVMEDIA_TYPE_VIDEO) { stream = _videoFormatContext->streams[i]; break; } } // Use stream to set the context _videoCodecContext = stream->codec; // Find the codec _videoCodec = avcodec_find_decoder(_videoCodecContext->codec_id); if (!_videoCodec) { av_log(_videoCodecContext, AV_LOG_ERROR, "%s","codec not found\n"); exit(-1); } // Open the codec if (avcodec_open(_videoCodecContext, _videoCodec) < 0) { av_log(_videoCodecContext, AV_LOG_ERROR, "%s","could not open codec\n"); exit(-1); } // Read each frame into a packet AVFrame *frame; frame = avcodec_alloc_frame(); bool codexInitialized = false; SwsContext *converterContext = NULL; AVPacket packet; av_init_packet(&packet); while (av_read_frame(_videoFormatContext, &packet) == 0) { // Decode the packet to get this frame int got_picture; int length; length = avcodec_decode_video2(_videoCodecContext, frame, &got_picture, &packet); if (length < 0) { av_log(_videoCodecContext, AV_LOG_ERROR, "%s","Error while decoding\n"); exit(-1); } if (got_picture) { // Convert the image from its native format to ARGB (for shader) // Create correct context if (!codexInitialized) { converterContext = sws_getContext( _videoCodecContext->width, _videoCodecContext->height, _videoCodecContext->pix_fmt, _videoCodecContext->width, _videoCodecContext->height, PIX_FMT_ARGB, SWS_BICUBIC, NULL, NULL, NULL ); } // Convert frame to target format AVFrame* dstFrame; dstFrame = avcodec_alloc_frame(); avcodec_get_frame_defaults(dstFrame); avpicture_alloc((AVPicture*)dstFrame, PIX_FMT_ARGB, _videoCodecContext->width, _videoCodecContext->height); sws_scale( converterContext, frame->data, frame->linesize, 0, _videoCodecContext->height, dstFrame->data, dstFrame->linesize); // Save the frame _videoFrames.push_back(dstFrame); } } // END decoding each frame // Clean up av_free_packet(&packet); av_free(frame); if (converterContext) sws_freeContext(converterContext); if (_videoCodecContext) avcodec_close(_videoCodecContext); if (_videoFormatContext) av_close_input_file(_videoFormatContext); }/ *//-----------------------------------------------------------------* While decoding, I get the following message each frame (don't mind the log format, it's my own): *//-----------------------------------------------------------------* /swscaler ******************** lvl: 24 msg: No accelerated colorspace conversion found from yuv420p to argb./ *//-----------------------------------------------------------------* I don't think this causes the erratic behaviour, though. Any ideas? Cause I certainly don't have any. HELP :( Also, if anyone knows a video format in which this would definitely work, I'd be glad to hear it, since I can use any video format for this, anyway. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Converting-mpg-file-to-ARGB-frames-tp3894533p3894533.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From belcampo at zonnet.nl Tue Oct 11 16:42:38 2011 From: belcampo at zonnet.nl (belcampo) Date: Tue, 11 Oct 2011 16:42:38 +0200 Subject: [FFmpeg-user] Newbie streaming problem In-Reply-To: References: <4E93F387.7070407@zonnet.nl> Message-ID: <4E9455DE.1000605@zonnet.nl> On 10/11/2011 12:15 PM, Steven Occhipinti wrote: > On Tue, Oct 11, 2011 at 6:43 PM, belcampo wrote: >> On 10/11/2011 04:26 AM, Steven Occhipinti wrote: >>> Hi, >>> >>> I'm pretty new to ffmpeg and am a little confused on how ffserver works. >>> My goal is to stream a webcam from one machine to (one or more) others. >>> Ideally I would want the client machine to only require a web browser >>> and the basic plugins, etc. to view the stream. >>> >>> I have Ubuntu 10.04.3 server installed and ffmpeg/ffserver from the repo. >>> If I run this command to test the webcam and it starts up and a video >>> file is successfully recorded /tmp/test.mp4: >>> #> ffmpeg -an -f video4linux2 -s 320x240 -r 15 -i /dev/video0 >>> -vcodec mpeg4 -vtag DIVX /tmp/test.mp4 >>> I copied /etc/ffserver.conf to my home dir - I think I need to tweak >>> this file a bit, but need a little help. >>> I ran this command and it started a server on localhost:8090 >>> #> ffserver -f ~/ffserver.conf >>> I then ran >>> #> ffmpeg -an -f video4linux2 -s 320x240 -r 15 -i /dev/video0 >>> -vcodec mpeg4 -vtag DIVX http://localhost:8090/feed1.ffm >>> >>> and this is the output I get: >>> >>> #> ffmpeg -an -f video4linux2 -s 320x240 -r 15 -i /dev/video0 >>> -vcodec mpeg4 -vtag DIVX http://localhost:8090/feed1.ffm >>> FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1.2, Copyright (c) 2000-2009 >>> Fabrice Bellard, et al. >>> configuration: --extra-version=4:0.5.1-1ubuntu1.2 --prefix=/usr >>> --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib >>> --enable-libgsm --enable-libschroedinger --enable-libspeex >>> --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib >>> --disable-stripping --disable-vhook --enable-runtime-cpudetect >>> --enable-gpl --enable-postproc --enable-swscale --enable-x11grab >>> --enable-libdc1394 --enable-shared --disable-static >>> libavutil 49.15. 0 / 49.15. 0 >>> libavcodec 52.20. 1 / 52.20. 1 >>> libavformat 52.31. 0 / 52.31. 0 >>> libavdevice 52. 1. 0 / 52. 1. 0 >>> libavfilter 0. 4. 0 / 0. 4. 0 >>> libswscale 0. 7. 1 / 0. 7. 1 >>> libpostproc 51. 2. 0 / 51. 2. 0 >>> built on Sep 16 2011 17:04:18, gcc: 4.4.3 >>> [video4linux2 @ 0x89092c0][3]Capabilities: 4000001 >>> [video4linux2 @ 0x89092c0]The V4L2 driver changed the video from >>> 320x240 to 176x144 >>> Input #0, video4linux2, from '/dev/video0': >>> Duration: N/A, start: 1318298315.446232, bitrate: 6082 kb/s >>> Stream #0.0: Video: rawvideo, yuyv422, 176x144, 6082 kb/s, 15 tbr, >>> 1000k tbn, 15 tbc >>> Output #0, ffm, to 'http://localhost:8090/feed1.ffm': >>> Stream #0.0: Audio: mp2, 44100 Hz, mono, s16, 32 kb/s >>> Stream #0.1: Video: mpeg1video, yuv420p, 176x144, q=3-31, 64 kb/s, >>> 1000k tbn, 3 tbc >>> Stream #0.2: Audio: mp2, 22050 Hz, mono, s16, 64 kb/s >>> Stream #0.3: Video: msmpeg4, yuv420p, 352x240, q=3-31, 256 kb/s, >>> 1000k tbn, 15 tbc >>> Could not find input stream matching output stream #0.0 >>> ioctl(VIDIOC_QBUF) >>> >>> >>> I'm assuming I need to setup a more suitable definition to >>> match the input, but after some fiddling I can't seem to get it >>> working. >> Your camera is providing 2 video and 2 audio streams you need to use the map >> function to make it work. >> Adding -map 0.3 -map 0.2 to your ffmpeg command line will choose the higher >> definition video and audio. >>> I've attached my ffserver.conf - Any help is much appreciated. >>> >>> >>> Cheers, >>> Steve >>> >>> >>> _______________________________________________ >>> ffmpeg-user mailing list >>> ffmpeg-user at ffmpeg.org >>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >> _______________________________________________ >> ffmpeg-user mailing list >> ffmpeg-user at ffmpeg.org >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >> > > > Thanks for your prompt reply. > Your reply makes sense to me, but when I add those 2 map options, I > get this error: > "Number of stream maps must match number of output streams" I think the order of options is important, try to change in something like: ffmpeg -i /dev/video0 -vcodec mpeg4 -map 0.3 -map 0.2 -vtag DIVX -f video4linux2 -s 320x240 -r 15 http://localhost:8090/feed1.ffm > > I tried just the video stream too, but that gives the same result.. > what are the output streams? > > # ffmpeg -map 0.3 -map 0.2 -an -f video4linux2 -s 320x240 -r 15 -i > /dev/video0 -vcodec mpeg4 -vtag DIVX http://localhost:8090/feed1.ffm You choose 0.3 and 0.2 as input and therefore output,and then disable audio with -an that won't work. > FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1.2, Copyright (c) 2000-2009 > Fabrice Bellard, et al. > configuration: --extra-version=4:0.5.1-1ubuntu1.2 --prefix=/usr > --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib > --enable-libgsm --enable-libschroedinger --enable-libspeex > --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib > --disable-stripping --disable-vhook --enable-runtime-cpudetect > --enable-gpl --enable-postproc --enable-swscale --enable-x11grab > --enable-libdc1394 --enable-shared --disable-static > libavutil 49.15. 0 / 49.15. 0 > libavcodec 52.20. 1 / 52.20. 1 > libavformat 52.31. 0 / 52.31. 0 > libavdevice 52. 1. 0 / 52. 1. 0 > libavfilter 0. 4. 0 / 0. 4. 0 > libswscale 0. 7. 1 / 0. 7. 1 > libpostproc 51. 2. 0 / 51. 2. 0 > built on Sep 16 2011 17:04:18, gcc: 4.4.3 > [video4linux2 @ 0x9ce02c0][3]Capabilities: 4000001 > [video4linux2 @ 0x9ce02c0]The V4L2 driver changed the video from > 320x240 to 176x144 > Input #0, video4linux2, from '/dev/video0': > Duration: N/A, start: 1318328002.348537, bitrate: 6082 kb/s > Stream #0.0: Video: rawvideo, yuyv422, 176x144, 6082 kb/s, 15 tbr, > 1000k tbn, 15 tbc > Number of stream maps must match number of output streams > ioctl(VIDIOC_QBUF) > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From james.darnley at gmail.com Tue Oct 11 17:39:59 2011 From: james.darnley at gmail.com (James Darnley) Date: Tue, 11 Oct 2011 16:39:59 +0100 Subject: [FFmpeg-user] libx264 2 pass encoding... In-Reply-To: <1318340740.12758.YahooMailNeo@web114716.mail.gq1.yahoo.com> References: <1318324008.35380.YahooMailNeo@web114720.mail.gq1.yahoo.com> <4E940886.4040100@googlemail.com> <1318327726.37633.YahooMailNeo@web114710.mail.gq1.yahoo.com> <1318340740.12758.YahooMailNeo@web114716.mail.gq1.yahoo.com> Message-ID: On 11/10/2011, John Doe wrote: > But still get "constant rate-factor is incompatible with 2pass." If you want to use 2-pass, set a bitrate. From jdmls at yahoo.com Tue Oct 11 18:10:31 2011 From: jdmls at yahoo.com (John Doe) Date: Tue, 11 Oct 2011 09:10:31 -0700 (PDT) Subject: [FFmpeg-user] libx264 2 pass encoding... In-Reply-To: References: <1318324008.35380.YahooMailNeo@web114720.mail.gq1.yahoo.com> <4E940886.4040100@googlemail.com> <1318327726.37633.YahooMailNeo@web114710.mail.gq1.yahoo.com> <1318340740.12758.YahooMailNeo@web114716.mail.gq1.yahoo.com> Message-ID: <1318349431.18401.YahooMailNeo@web114708.mail.gq1.yahoo.com> From: James Darnley > On 11/10/2011, John Doe wrote: >> But still get "constant rate-factor is incompatible with 2pass." > If you want to use 2-pass, set a bitrate. Indeed, problem solved. I thought it would choose the input bitrate as default for the output... Thx, JD From suneets at gmail.com Wed Oct 12 00:24:44 2011 From: suneets at gmail.com (Suneet Shah) Date: Tue, 11 Oct 2011 15:24:44 -0700 Subject: [FFmpeg-user] Ffmpeg on Mac OS X? Message-ID: I installed ffmpeg on Mac OS using brew, but I get a segmentation fault when trying to use libx264.. I have attached the output below 1) Is there a recommended way to setup ffmpeg on OS X lion? 2) Is there a workaround for my issue below? ----------- $ ffmpeg -ss 60 -t 60 -i 5th\ Quarter_KPIXDT_2011_10_09_12_58_00\ -\ DVRMS.dvr-ms -vcodec libx264 -preset fast -acodec libfaac -ac 2 -ar 48000 -ab 192k test.mp4 ffmpeg version git-2011-09-30-812010c, Copyright (c) 2000-2011 the FFmpeg developers built on Sep 30 2011 15:34:01 with clang 2.1 (tags/Apple/clang-163.7.1) configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libxvid --cc=clang libavutil 51. 18. 0 / 51. 18. 0 libavcodec 53. 19. 0 / 53. 19. 0 libavformat 53. 13. 0 / 53. 13. 0 libavdevice 53. 4. 0 / 53. 4. 0 libavfilter 2. 43. 6 / 2. 43. 6 libswscale 2. 1. 0 / 2. 1. 0 libpostproc 51. 2. 0 / 51. 2. 0 [mpeg2video @ 0x7faeca80d800] mpeg_decode_postinit() failure Last message repeated 12 times Input #0, asf, from '5th Quarter_KPIXDT_2011_10_09_12_58_00 - DVRMS.dvr-ms': Metadata: DVR Index Granularity: 500 genre : Sports;General;Football WM/OriginalReleaseTime: 0 WM/MediaCredits : ;;; service_provider: KPIXDT service_name : KPIXDT (KPIX-DT) WM/MediaNetworkAffiliation: CBS Affiliate WM/MediaOriginalChannel: 5 WM/MediaOriginalChannelSubNumber: 1 WM/MediaOriginalBroadcastDateTime: 0001-01-01T00:00:00Z WM/MediaOriginalRunTime: 1194987 WM/MediaIsStereo: 0 WM/MediaIsRepeat: 0 WM/MediaIsLive : 0 WM/MediaIsTape : 0 WM/MediaIsDelay : 0 WM/MediaIsSubtitled: 0 WM/MediaIsMovie : 0 WM/MediaIsPremiere: 0 WM/MediaIsFinale: 0 WM/MediaIsSAP : 0 WM/MediaIsSport : 1 WM/Provider : MediaCenterDefault WM/VideoClosedCaptioning: 0 WM/WMRVEncodeTime: 1844674 WM/WMRVSeriesUID: !GenericSeries!5th Quarter WM/WMRVServiceID: !MCService!28456657 WM/WMRVProgramID: !MCProgram!38547157 WM/WMRVRequestID: 0 WM/WMRVScheduleItemID: 0 WM/WMRVQuality : 0 WM/WMRVOriginalSoftPrePadding: 291 WM/WMRVOriginalSoftPostPadding: 180 WM/WMRVHardPrePadding: 184 WM/WMRVHardPostPadding: 0 WM/WMRVATSCContent: 1 WM/WMRVDTVContent: 1 WM/WMRVHDContent: 1 WM/WMRVEndTime : 1844674 WM/WMRVBitrate : 5951106 WM/WMRVKeepUntil: 184 WM/WMRVActualSoftPrePadding: 184 WM/WMRVActualSoftPostPadding: 180 WM/WMRVContentProtected: 0 WM/WMRVContentProtectedPercent: 0 WM/WMRVExpirationDate: 1844674 WM/WMRVExpirationSpan: 1844674 WM/WMRVInBandRatingSystem: 255 WM/WMRVInBandRatingLevel: 255 WM/WMRVInBandRatingAttributes: 0 WM/WMRVWatched : 0 WM/MediaThumbWidth: 352 WM/MediaThumbHeight: 198 WM/MediaThumbStride: 105 WM/MediaThumbRet: 0 WM/MediaThumbRatingSystem: 255 WM/MediaThumbRatingLevel: 255 WM/MediaThumbRatingAttributes: 0 WM/MediaThumbAspectRatioX: 16 WM/MediaThumbAspectRatioY: 9 WM/MediaThumbTimeStamp: 1844674 WM/MediaThumbType: 3 WMFSDKVersion : 12.0.7601.17514 WMFSDKNeeded : 0.0.0.0000 VBR Peak : 159 IsVBR : 1 title : 5th Quarter Duration: 00:16:18.47, start: 0.000000, bitrate: 15310 kb/s Stream #0:0(eng): Audio: ac3, 48000 Hz, 5.1(side), s16, 384 kb/s Stream #0:1(eng): Unknown: none Stream #0:2(eng): Video: mpeg2video (Main) (DVR / 0x20525644), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 17066 kb/s, 35.59 fps, 29.97 tbr, 1k tbn, 59.94 tbc [buffer @ 0x7faeca403c00] w:1920 h:1080 pixfmt:yuv420p tb:1/1000000 sar:1/1 sws_param: [libx264 @ 0x7faeca822a00] using SAR=1/1 [libx264 @ 0x7faeca822a00] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 AVX [libx264 @ 0x7faeca822a00] profile High, level 4.0 [libx264 @ 0x7faeca822a00] 264 - core 118 - H.264/MPEG-4 AVC codec - Copyleft 2003-2011 - http://www.videolan.org/x264.html - options: cabac=1 ref=2 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=6 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=-2 threads=6 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=1 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=30 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 'test.mp4': Metadata: DVR Index Granularity: 500 genre : Sports;General;Football WM/OriginalReleaseTime: 0 WM/MediaCredits : ;;; service_provider: KPIXDT service_name : KPIXDT (KPIX-DT) WM/MediaNetworkAffiliation: CBS Affiliate WM/MediaOriginalChannel: 5 WM/MediaOriginalChannelSubNumber: 1 WM/MediaOriginalBroadcastDateTime: 0001-01-01T00:00:00Z WM/MediaOriginalRunTime: 1194987 WM/MediaIsStereo: 0 WM/MediaIsRepeat: 0 WM/MediaIsLive : 0 WM/MediaIsTape : 0 WM/MediaIsDelay : 0 WM/MediaIsSubtitled: 0 WM/MediaIsMovie : 0 WM/MediaIsPremiere: 0 WM/MediaIsFinale: 0 WM/MediaIsSAP : 0 WM/MediaIsSport : 1 WM/Provider : MediaCenterDefault WM/VideoClosedCaptioning: 0 WM/WMRVEncodeTime: 1844674 WM/WMRVSeriesUID: !GenericSeries!5th Quarter WM/WMRVServiceID: !MCService!28456657 WM/WMRVProgramID: !MCProgram!38547157 WM/WMRVRequestID: 0 WM/WMRVScheduleItemID: 0 WM/WMRVQuality : 0 WM/WMRVOriginalSoftPrePadding: 291 WM/WMRVOriginalSoftPostPadding: 180 WM/WMRVHardPrePadding: 184 WM/WMRVHardPostPadding: 0 WM/WMRVATSCContent: 1 WM/WMRVDTVContent: 1 WM/WMRVHDContent: 1 WM/WMRVEndTime : 1844674 WM/WMRVBitrate : 5951106 WM/WMRVKeepUntil: 184 WM/WMRVActualSoftPrePadding: 184 WM/WMRVActualSoftPostPadding: 180 WM/WMRVContentProtected: 0 WM/WMRVContentProtectedPercent: 0 WM/WMRVExpirationDate: 1844674 WM/WMRVExpirationSpan: 1844674 WM/WMRVInBandRatingSystem: 255 WM/WMRVInBandRatingLevel: 255 WM/WMRVInBandRatingAttributes: 0 WM/WMRVWatched : 0 WM/MediaThumbWidth: 352 WM/MediaThumbHeight: 198 WM/MediaThumbStride: 105 WM/MediaThumbRet: 0 WM/MediaThumbRatingSystem: 255 WM/MediaThumbRatingLevel: 255 WM/MediaThumbRatingAttributes: 0 WM/MediaThumbAspectRatioX: 16 WM/MediaThumbAspectRatioY: 9 WM/MediaThumbTimeStamp: 1844674 WM/MediaThumbType: 3 WMFSDKVersion : 12.0.7601.17514 WMFSDKNeeded : 0.0.0.0000 VBR Peak : 159 IsVBR : 1 title : 5th Quarter encoder : Lavf53.13.0 Stream #0:0(eng): Video: h264 (![0][0][0] / 0x0021), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 30k tbn, 29.97 tbc Stream #0:1(eng): Audio: aac (@[0][0][0] / 0x0040), 48000 Hz, 2 channels, s16, 192 kb/s Stream mapping: Stream #0.2 -> #0.0 (mpeg2video -> libx264) Stream #0.0 -> #0.1 (ac3 -> libfaac) Press [q] to stop, [?] for help [asf @ 0x7faeca805800] ignoring invalid packet_obj_size (5977 18450 18450 32768) [asf @ 0x7faeca805800] freeing incomplete packet size 32768, new 32768 [mpeg2video @ 0x7faeca80d800] warning: first frame is no keyframe Input stream #0.0 frame changed from rate:48000 fmt:s16 ch:6 to rate:48000 fmt:s16 ch:2 frame= 38 fps= 0 q=0.0 size= 0kB time=00:00:00.00 bitrate= 0.0kbits/sSegmentation fault: 11 From suneets at gmail.com Wed Oct 12 01:30:12 2011 From: suneets at gmail.com (Suneet Shah) Date: Tue, 11 Oct 2011 16:30:12 -0700 Subject: [FFmpeg-user] Ffmpeg on Mac OS X? In-Reply-To: References: Message-ID: I solved this issue by uninstalling x264, and ffmpeg, then reinstalling x264 and ffmpeg. Note to get it working with brew I had to use: brew install ffmpeg --use-gcc On Tue, Oct 11, 2011 at 3:24 PM, Suneet Shah wrote: > I installed ffmpeg on Mac OS using brew, but I get a segmentation fault > when trying to use libx264.. I have attached the output below > > > > 1) Is there a recommended way to setup ffmpeg on OS X lion? > > 2) Is there a workaround for my issue below? > > > > ----------- > $ ffmpeg -ss 60 -t 60 -i 5th\ Quarter_KPIXDT_2011_10_09_12_58_00\ -\ > DVRMS.dvr-ms -vcodec libx264 -preset fast -acodec libfaac -ac 2 -ar 48000 > -ab 192k test.mp4 > ffmpeg version git-2011-09-30-812010c, Copyright (c) 2000-2011 the FFmpeg > developers > built on Sep 30 2011 15:34:01 with clang 2.1 (tags/Apple/clang-163.7.1) > configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD --enable-gpl > --enable-version3 --enable-nonfree --enable-hardcoded-tables > --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libtheora > --enable-libvorbis --enable-libvpx --enable-libxvid --cc=clang > libavutil 51. 18. 0 / 51. 18. 0 > libavcodec 53. 19. 0 / 53. 19. 0 > libavformat 53. 13. 0 / 53. 13. 0 > libavdevice 53. 4. 0 / 53. 4. 0 > libavfilter 2. 43. 6 / 2. 43. 6 > libswscale 2. 1. 0 / 2. 1. 0 > libpostproc 51. 2. 0 / 51. 2. 0 > [mpeg2video @ 0x7faeca80d800] mpeg_decode_postinit() failure > Last message repeated 12 times > Input #0, asf, from '5th Quarter_KPIXDT_2011_10_09_12_58_00 - > DVRMS.dvr-ms': > Metadata: > DVR Index Granularity: 500 > genre : Sports;General;Football > WM/OriginalReleaseTime: 0 > WM/MediaCredits : ;;; > service_provider: KPIXDT > service_name : KPIXDT (KPIX-DT) > WM/MediaNetworkAffiliation: CBS Affiliate > WM/MediaOriginalChannel: 5 > WM/MediaOriginalChannelSubNumber: 1 > WM/MediaOriginalBroadcastDateTime: 0001-01-01T00:00:00Z > WM/MediaOriginalRunTime: 1194987 > WM/MediaIsStereo: 0 > WM/MediaIsRepeat: 0 > WM/MediaIsLive : 0 > WM/MediaIsTape : 0 > WM/MediaIsDelay : 0 > WM/MediaIsSubtitled: 0 > WM/MediaIsMovie : 0 > WM/MediaIsPremiere: 0 > WM/MediaIsFinale: 0 > WM/MediaIsSAP : 0 > WM/MediaIsSport : 1 > WM/Provider : MediaCenterDefault > WM/VideoClosedCaptioning: 0 > WM/WMRVEncodeTime: 1844674 > WM/WMRVSeriesUID: !GenericSeries!5th Quarter > WM/WMRVServiceID: !MCService!28456657 > WM/WMRVProgramID: !MCProgram!38547157 > WM/WMRVRequestID: 0 > WM/WMRVScheduleItemID: 0 > WM/WMRVQuality : 0 > WM/WMRVOriginalSoftPrePadding: 291 > WM/WMRVOriginalSoftPostPadding: 180 > WM/WMRVHardPrePadding: 184 > WM/WMRVHardPostPadding: 0 > WM/WMRVATSCContent: 1 > WM/WMRVDTVContent: 1 > WM/WMRVHDContent: 1 > WM/WMRVEndTime : 1844674 > WM/WMRVBitrate : 5951106 > WM/WMRVKeepUntil: 184 > WM/WMRVActualSoftPrePadding: 184 > WM/WMRVActualSoftPostPadding: 180 > WM/WMRVContentProtected: 0 > WM/WMRVContentProtectedPercent: 0 > WM/WMRVExpirationDate: 1844674 > WM/WMRVExpirationSpan: 1844674 > WM/WMRVInBandRatingSystem: 255 > WM/WMRVInBandRatingLevel: 255 > WM/WMRVInBandRatingAttributes: 0 > WM/WMRVWatched : 0 > WM/MediaThumbWidth: 352 > WM/MediaThumbHeight: 198 > WM/MediaThumbStride: 105 > WM/MediaThumbRet: 0 > WM/MediaThumbRatingSystem: 255 > WM/MediaThumbRatingLevel: 255 > WM/MediaThumbRatingAttributes: 0 > WM/MediaThumbAspectRatioX: 16 > WM/MediaThumbAspectRatioY: 9 > WM/MediaThumbTimeStamp: 1844674 > WM/MediaThumbType: 3 > WMFSDKVersion : 12.0.7601.17514 > WMFSDKNeeded : 0.0.0.0000 > VBR Peak : 159 > IsVBR : 1 > title : 5th Quarter > Duration: 00:16:18.47, start: 0.000000, bitrate: 15310 kb/s > Stream #0:0(eng): Audio: ac3, 48000 Hz, 5.1(side), s16, 384 kb/s > Stream #0:1(eng): Unknown: none > Stream #0:2(eng): Video: mpeg2video (Main) (DVR / 0x20525644), > yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 17066 kb/s, 35.59 fps, 29.97 tbr, 1k > tbn, 59.94 tbc > [buffer @ 0x7faeca403c00] w:1920 h:1080 pixfmt:yuv420p tb:1/1000000 sar:1/1 > sws_param: > [libx264 @ 0x7faeca822a00] using SAR=1/1 > [libx264 @ 0x7faeca822a00] using cpu capabilities: MMX2 SSE2Fast SSSE3 > FastShuffle SSE4.2 AVX > [libx264 @ 0x7faeca822a00] profile High, level 4.0 > [libx264 @ 0x7faeca822a00] 264 - core 118 - H.264/MPEG-4 AVC codec - > Copyleft 2003-2011 - http://www.videolan.org/x264.html - options: cabac=1 > ref=2 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=6 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=-2 threads=6 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=1 keyint=250 > keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=30 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 'test.mp4': > Metadata: > DVR Index Granularity: 500 > genre : Sports;General;Football > WM/OriginalReleaseTime: 0 > WM/MediaCredits : ;;; > service_provider: KPIXDT > service_name : KPIXDT (KPIX-DT) > WM/MediaNetworkAffiliation: CBS Affiliate > WM/MediaOriginalChannel: 5 > WM/MediaOriginalChannelSubNumber: 1 > WM/MediaOriginalBroadcastDateTime: 0001-01-01T00:00:00Z > WM/MediaOriginalRunTime: 1194987 > WM/MediaIsStereo: 0 > WM/MediaIsRepeat: 0 > WM/MediaIsLive : 0 > WM/MediaIsTape : 0 > WM/MediaIsDelay : 0 > WM/MediaIsSubtitled: 0 > WM/MediaIsMovie : 0 > WM/MediaIsPremiere: 0 > WM/MediaIsFinale: 0 > WM/MediaIsSAP : 0 > WM/MediaIsSport : 1 > WM/Provider : MediaCenterDefault > WM/VideoClosedCaptioning: 0 > WM/WMRVEncodeTime: 1844674 > WM/WMRVSeriesUID: !GenericSeries!5th Quarter > WM/WMRVServiceID: !MCService!28456657 > WM/WMRVProgramID: !MCProgram!38547157 > WM/WMRVRequestID: 0 > WM/WMRVScheduleItemID: 0 > WM/WMRVQuality : 0 > WM/WMRVOriginalSoftPrePadding: 291 > WM/WMRVOriginalSoftPostPadding: 180 > WM/WMRVHardPrePadding: 184 > WM/WMRVHardPostPadding: 0 > WM/WMRVATSCContent: 1 > WM/WMRVDTVContent: 1 > WM/WMRVHDContent: 1 > WM/WMRVEndTime : 1844674 > WM/WMRVBitrate : 5951106 > WM/WMRVKeepUntil: 184 > WM/WMRVActualSoftPrePadding: 184 > WM/WMRVActualSoftPostPadding: 180 > WM/WMRVContentProtected: 0 > WM/WMRVContentProtectedPercent: 0 > WM/WMRVExpirationDate: 1844674 > WM/WMRVExpirationSpan: 1844674 > WM/WMRVInBandRatingSystem: 255 > WM/WMRVInBandRatingLevel: 255 > WM/WMRVInBandRatingAttributes: 0 > WM/WMRVWatched : 0 > WM/MediaThumbWidth: 352 > WM/MediaThumbHeight: 198 > WM/MediaThumbStride: 105 > WM/MediaThumbRet: 0 > WM/MediaThumbRatingSystem: 255 > WM/MediaThumbRatingLevel: 255 > WM/MediaThumbRatingAttributes: 0 > WM/MediaThumbAspectRatioX: 16 > WM/MediaThumbAspectRatioY: 9 > WM/MediaThumbTimeStamp: 1844674 > WM/MediaThumbType: 3 > WMFSDKVersion : 12.0.7601.17514 > WMFSDKNeeded : 0.0.0.0000 > VBR Peak : 159 > IsVBR : 1 > title : 5th Quarter > encoder : Lavf53.13.0 > Stream #0:0(eng): Video: h264 (![0][0][0] / 0x0021), yuv420p, 1920x1080 > [SAR 1:1 DAR 16:9], q=-1--1, 30k tbn, 29.97 tbc > Stream #0:1(eng): Audio: aac (@[0][0][0] / 0x0040), 48000 Hz, 2 > channels, s16, 192 kb/s > Stream mapping: > Stream #0.2 -> #0.0 (mpeg2video -> libx264) > Stream #0.0 -> #0.1 (ac3 -> libfaac) > Press [q] to stop, [?] for help > [asf @ 0x7faeca805800] ignoring invalid packet_obj_size (5977 18450 18450 > 32768) > [asf @ 0x7faeca805800] freeing incomplete packet size 32768, new 32768 > [mpeg2video @ 0x7faeca80d800] warning: first frame is no keyframe > Input stream #0.0 frame changed from rate:48000 fmt:s16 ch:6 to rate:48000 > fmt:s16 ch:2 > frame= 38 fps= 0 q=0.0 size= 0kB time=00:00:00.00 bitrate= > 0.0kbits/sSegmentation fault: 11 > > > > From ficola2000 at yahoo.com Wed Oct 12 02:50:16 2011 From: ficola2000 at yahoo.com (Fico Mico) Date: Tue, 11 Oct 2011 17:50:16 -0700 (PDT) Subject: [FFmpeg-user] (no subject) Message-ID: <1318380616.65145.yint-ygo-j2me@web39301.mail.mud.yahoo.com> ...These pills will bring you back to life! http://www.pgpnet.com.ar/com.friend.php?aid_friend=49im0 From hardik.sharma22 at yahoo.com Wed Oct 12 06:20:31 2011 From: hardik.sharma22 at yahoo.com (Hardik Sharma) Date: Tue, 11 Oct 2011 21:20:31 -0700 (PDT) Subject: [FFmpeg-user] Why frame is getting dropped? Message-ID: <1318393231.26252.YahooMailNeo@web46208.mail.sp1.yahoo.com> I tried to encode and decode video stream several times to make sure but still I am getting frame drop. I have slice formation in my encoded video stream but as I drop some slices one by one, i m getting next whole frame dropped. Please help or atleast tell me from where to start. For some slices drop (individually) whole frame is getting lost and I have no idea why. I am trying to solve this issue from past some weeks. Let me know if you want more information but give me your suggestions regarding the same. I will really appreciate any kind of help. ? ?? From forum at numerizik.com Wed Oct 12 10:33:43 2011 From: forum at numerizik.com (Guillaume (Numerizik)) Date: Wed, 12 Oct 2011 10:33:43 +0200 Subject: [FFmpeg-user] Drawtext problem - Not enough inputs specified for the drawtext filter. Message-ID: <080901cc88b9$a76d0990$f6471cb0$@numerizik.com> Hello everybody I try to use drawtext but i have problem ! :( ffmpeg -sameq -i /home/video/temp/step1.mp4 -vf "movie=0:png:/home/temp/tpl_box.png [logo];drawtext=fontfile=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif.tt f: text='Test Text' [txt]; [in][logo][txt] overlay=0:0 [out]" /home/video/temp/step3.mp4 FFmpeg version SVN-r26402, Copyright (c) 2000-2011 the FFmpeg developers built on Oct 12 2011 10:27:12 with gcc 4.4.5 configuration: --enable-filter=movie --enable-libfreetype libavutil 50.36. 0 / 50.36. 0 libavcore 0.16. 1 / 0.16. 1 libavcodec 52.108. 0 / 52.108. 0 libavformat 52.93. 0 / 52.93. 0 libavdevice 52. 2. 3 / 52. 2. 3 libavfilter 1.74. 0 / 1.74. 0 libswscale 0.12. 0 / 0.12. 0 I have this error msg [buffer @ 0x8bfff10] w:1280 h:720 pixfmt:yuv420p Not enough inputs specified for the "drawtext" filter. Error opening filters! I check in doc and only fontfile and text are mandatory ? Can you help me ? Thanks Guillaume From mb at powerflasher.de Wed Oct 12 12:11:18 2011 From: mb at powerflasher.de (Malte Beyer) Date: Wed, 12 Oct 2011 12:11:18 +0200 Subject: [FFmpeg-user] Looking for experienced developer support for a paid job Message-ID: <24E4D111F793154782E3D8FC9E0125C5606F840946@mail1.powerflasher.de> Hi there, we are looking for experienced developer support (encoding and streaming) for a paid customer project. These are the requirements for the project: - User plugs in 1 to n webcams as video source - User plugs in audio mixer as audio source - User installs the application, we/you are supposed to implement - The application allows the user to stream his audio and video live to a streaming server (at the moment Flash Media Server via RTMP, but can be discussed) - Video and audio are encoded on the clients machine (if you suggest that server encoding would be better we could switch that) - Video is encoded in H.264 - Audio is encoded in AAC stereo (at least MP3 stereo) - Video and especially audio quality should be perfect - User can switch webcams during runtime (stream does not stop, in best case the two videos will have a transition like a cross fade) - The application runs cross platform (Mac OS and Windows) - In best case just one application (no side installations of other tools) You are free in the choice of technology (application, encoder, ...) as long as they fulfill the requirements. We made a lot of research to find the best solution for it, but until now every solutions seems to have at least one weakness. If you are interested in this paid job, we will be happy in working together with you. In case you are interested, please contact me. If you are interested in our company - this is our website: www.powerflasher.com! Thanks Malte Beyer Technical Director ------------------------------------------------------ Powerflasher GmbH Drehturm Belvedereallee 5 52070 Aachen, Germany E mb at powerflasher.de W http://www.powerflasher.de B http://blog.powerflasher.de S Facebook | Twitter | Xing T +49 241 91880 247 Powerflasher Showreel 2011 FDT 4 - Coding Comfort Gesch?ftsf?hrung: Carlo Blatz, Amtsgericht Aachen - HRB 8683, Ust-IdNr.: DE220959918 From public at stevenocchipinti.com Wed Oct 12 14:07:48 2011 From: public at stevenocchipinti.com (Steven Occhipinti) Date: Wed, 12 Oct 2011 23:07:48 +1100 Subject: [FFmpeg-user] Newbie streaming problem In-Reply-To: <4E9455DE.1000605@zonnet.nl> References: <4E93F387.7070407@zonnet.nl> <4E9455DE.1000605@zonnet.nl> Message-ID: Thanks, must be close now. I thought the -an would be a little contradicting, but I tried removing one of the -map options instead of removing the -an option. Either way, rearranging the options as you suggested helped, but I'm getting a different error now. # ffmpeg -i /dev/video0 -vcodec mpeg4 -map 0.3 -map 0.2 -vtag DIVX -f video4linux2 -s 320x240 -r 15 http://localhost:8090/feed1.ffm FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1.2, Copyright (c) 2000-2009 Fabrice Bellard, et al. configuration: --extra-version=4:0.5.1-1ubuntu1.2 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping --disable-vhook --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared --disable-static libavutil 49.15. 0 / 49.15. 0 libavcodec 52.20. 1 / 52.20. 1 libavformat 52.31. 0 / 52.31. 0 libavdevice 52. 1. 0 / 52. 1. 0 libavfilter 0. 4. 0 / 0. 4. 0 libswscale 0. 7. 1 / 0. 7. 1 libpostproc 51. 2. 0 / 51. 2. 0 built on Sep 16 2011 17:04:18, gcc: 4.4.3 /dev/video0: Unknown format Sorry to keep asking like this :( I wouldn't have thought it would compain about "-f video4linux2" as that was one of the options I thought I got right initially when I recorded my first video clip. Any ideas? I appreciate you help! On Wed, Oct 12, 2011 at 1:42 AM, belcampo wrote: > On 10/11/2011 12:15 PM, Steven Occhipinti wrote: > >> On Tue, Oct 11, 2011 at 6:43 PM, belcampo wrote: >> >>> On 10/11/2011 04:26 AM, Steven Occhipinti wrote: >>> >>>> Hi, >>>> >>>> I'm pretty new to ffmpeg and am a little confused on how ffserver works. >>>> My goal is to stream a webcam from one machine to (one or more) others. >>>> Ideally I would want the client machine to only require a web browser >>>> and the basic plugins, etc. to view the stream. >>>> >>>> I have Ubuntu 10.04.3 server installed and ffmpeg/ffserver from the >>>> repo. >>>> If I run this command to test the webcam and it starts up and a video >>>> file is successfully recorded /tmp/test.mp4: >>>> #> ffmpeg -an -f video4linux2 -s 320x240 -r 15 -i /dev/video0 >>>> -vcodec mpeg4 -vtag DIVX /tmp/test.mp4 >>>> I copied /etc/ffserver.conf to my home dir - I think I need to tweak >>>> this file a bit, but need a little help. >>>> I ran this command and it started a server on localhost:8090 >>>> #> ffserver -f ~/ffserver.conf >>>> I then ran >>>> #> ffmpeg -an -f video4linux2 -s 320x240 -r 15 -i /dev/video0 >>>> -vcodec mpeg4 -vtag DIVX http://localhost:8090/feed1.**ffm >>>> >>>> and this is the output I get: >>>> >>>> #> ffmpeg -an -f video4linux2 -s 320x240 -r 15 -i /dev/video0 >>>> -vcodec mpeg4 -vtag DIVX http://localhost:8090/feed1.**ffm >>>> FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1.2, Copyright (c) 2000-2009 >>>> Fabrice Bellard, et al. >>>> configuration: --extra-version=4:0.5.1-**1ubuntu1.2 --prefix=/usr >>>> --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib >>>> --enable-libgsm --enable-libschroedinger --enable-libspeex >>>> --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib >>>> --disable-stripping --disable-vhook --enable-runtime-cpudetect >>>> --enable-gpl --enable-postproc --enable-swscale --enable-x11grab >>>> --enable-libdc1394 --enable-shared --disable-static >>>> libavutil 49.15. 0 / 49.15. 0 >>>> libavcodec 52.20. 1 / 52.20. 1 >>>> libavformat 52.31. 0 / 52.31. 0 >>>> libavdevice 52. 1. 0 / 52. 1. 0 >>>> libavfilter 0. 4. 0 / 0. 4. 0 >>>> libswscale 0. 7. 1 / 0. 7. 1 >>>> libpostproc 51. 2. 0 / 51. 2. 0 >>>> built on Sep 16 2011 17:04:18, gcc: 4.4.3 >>>> [video4linux2 @ 0x89092c0][3]Capabilities: 4000001 >>>> [video4linux2 @ 0x89092c0]The V4L2 driver changed the video from >>>> 320x240 to 176x144 >>>> Input #0, video4linux2, from '/dev/video0': >>>> Duration: N/A, start: 1318298315.446232, bitrate: 6082 kb/s >>>> Stream #0.0: Video: rawvideo, yuyv422, 176x144, 6082 kb/s, 15 tbr, >>>> 1000k tbn, 15 tbc >>>> Output #0, ffm, to 'http://localhost:8090/feed1.**ffm >>>> ': >>>> Stream #0.0: Audio: mp2, 44100 Hz, mono, s16, 32 kb/s >>>> Stream #0.1: Video: mpeg1video, yuv420p, 176x144, q=3-31, 64 kb/s, >>>> 1000k tbn, 3 tbc >>>> Stream #0.2: Audio: mp2, 22050 Hz, mono, s16, 64 kb/s >>>> Stream #0.3: Video: msmpeg4, yuv420p, 352x240, q=3-31, 256 kb/s, >>>> 1000k tbn, 15 tbc >>>> Could not find input stream matching output stream #0.0 >>>> ioctl(VIDIOC_QBUF) >>>> >>>> >>>> I'm assuming I need to setup a more suitable definition to >>>> match the input, but after some fiddling I can't seem to get it >>>> working. >>>> >>> Your camera is providing 2 video and 2 audio streams you need to use the >>> map >>> function to make it work. >>> Adding -map 0.3 -map 0.2 to your ffmpeg command line will choose the >>> higher >>> definition video and audio. >>> >>>> I've attached my ffserver.conf - Any help is much appreciated. >>>> >>>> >>>> Cheers, >>>> Steve >>>> >>>> >>>> ______________________________**_________________ >>>> ffmpeg-user mailing list >>>> ffmpeg-user at ffmpeg.org >>>> http://ffmpeg.org/mailman/**listinfo/ffmpeg-user >>>> >>> ______________________________**_________________ >>> ffmpeg-user mailing list >>> ffmpeg-user at ffmpeg.org >>> http://ffmpeg.org/mailman/**listinfo/ffmpeg-user >>> >>> >> >> Thanks for your prompt reply. >> Your reply makes sense to me, but when I add those 2 map options, I >> get this error: >> "Number of stream maps must match number of output streams" >> > I think the order of options is important, try to change in something like: > > ffmpeg -i /dev/video0 -vcodec mpeg4 -map 0.3 -map 0.2 -vtag DIVX -f > video4linux2 -s 320x240 -r 15 > http://localhost:8090/feed1.**ffm > > > >> I tried just the video stream too, but that gives the same result.. >> what are the output streams? >> >> # ffmpeg -map 0.3 -map 0.2 -an -f video4linux2 -s 320x240 -r 15 -i >> /dev/video0 -vcodec mpeg4 -vtag DIVX http://localhost:8090/feed1.**ffm >> > You choose 0.3 and 0.2 as input and therefore output,and then disable audio > with -an that won't work. > >> FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1.2, Copyright (c) 2000-2009 >> Fabrice Bellard, et al. >> configuration: --extra-version=4:0.5.1-**1ubuntu1.2 --prefix=/usr >> --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib >> --enable-libgsm --enable-libschroedinger --enable-libspeex >> --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib >> --disable-stripping --disable-vhook --enable-runtime-cpudetect >> --enable-gpl --enable-postproc --enable-swscale --enable-x11grab >> --enable-libdc1394 --enable-shared --disable-static >> libavutil 49.15. 0 / 49.15. 0 >> libavcodec 52.20. 1 / 52.20. 1 >> libavformat 52.31. 0 / 52.31. 0 >> libavdevice 52. 1. 0 / 52. 1. 0 >> libavfilter 0. 4. 0 / 0. 4. 0 >> libswscale 0. 7. 1 / 0. 7. 1 >> libpostproc 51. 2. 0 / 51. 2. 0 >> built on Sep 16 2011 17:04:18, gcc: 4.4.3 >> [video4linux2 @ 0x9ce02c0][3]Capabilities: 4000001 >> [video4linux2 @ 0x9ce02c0]The V4L2 driver changed the video from >> 320x240 to 176x144 >> Input #0, video4linux2, from '/dev/video0': >> Duration: N/A, start: 1318328002.348537, bitrate: 6082 kb/s >> Stream #0.0: Video: rawvideo, yuyv422, 176x144, 6082 kb/s, 15 tbr, >> 1000k tbn, 15 tbc >> Number of stream maps must match number of output streams >> ioctl(VIDIOC_QBUF) >> ______________________________**_________________ >> ffmpeg-user mailing list >> ffmpeg-user at ffmpeg.org >> http://ffmpeg.org/mailman/**listinfo/ffmpeg-user >> > > ______________________________**_________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/**listinfo/ffmpeg-user > From stefasab at gmail.com Wed Oct 12 14:36:09 2011 From: stefasab at gmail.com (Stefano Sabatini) Date: Wed, 12 Oct 2011 14:36:09 +0200 Subject: [FFmpeg-user] VHOOK In-Reply-To: <055601cc87f8$ea82edb0$bf88c910$@numerizik.com> References: <034401cc8770$2ddf2f30$899d8d90$@numerizik.com> <20111010225515.GB700@arborea> <055601cc87f8$ea82edb0$bf88c910$@numerizik.com> Message-ID: <20111012123609.GA1891@arborea> On date Tuesday 2011-10-11 11:34:03 +0200, Guillaume (Numerizik) encoded: > Hello > > I i installed movie filter but when i did this: > > ffmpeg -sameq -y -i /home/video/temp/D7Q2B3D9F3W8J0O6K2_step2.mp4 -vf > "movie=0:png:/home/logo/logo.png [logo]; [in][logo] overlay=5:5" > /home/video/temp/D7Q2B3D9F3W8J0O6K2_final.mp4 > > I have this error: > > [buffer @ 0x8bc5460] w:1280 h:720 pixfmt:yuv420p > [image2 @ 0x8bb0c80] Could not find codec parameters (Video: [0][0][0][0] / > 0x0000, yuv420p) > [movie @ 0x8bb0a20] movie_init() Failed to find stream info > Error initializing filter 'movie' with args '0:png:/home/logo/logo.png' > Error opening filters! > > Can you help me again :) Please update to a recent version, and check *against the official docs* (in the ffmpeg manual or in doc/libavfilter.html), don't rely on random guides found on the web which may contain wrong information (the movie syntax in this case). From stefasab at gmail.com Wed Oct 12 14:38:51 2011 From: stefasab at gmail.com (Stefano Sabatini) Date: Wed, 12 Oct 2011 14:38:51 +0200 Subject: [FFmpeg-user] Drawtext problem - Not enough inputs specified for the drawtext filter. In-Reply-To: <080901cc88b9$a76d0990$f6471cb0$@numerizik.com> References: <080901cc88b9$a76d0990$f6471cb0$@numerizik.com> Message-ID: <20111012123851.GB1891@arborea> On date Wednesday 2011-10-12 10:33:43 +0200, Guillaume (Numerizik) encoded: > Hello everybody > > I try to use drawtext but i have problem ! :( > > ffmpeg -sameq -i /home/video/temp/step1.mp4 -vf > "movie=0:png:/home/temp/tpl_box.png > [logo];drawtext=fontfile=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif.tt ^ wrong syntax > f: text='Test Text' [txt]; [in][logo][txt] overlay=0:0 [out]" ^^^^^^^^^^^^^^^ this is wrong as well (three input provided to overlay, which takes only two). > /home/video/temp/step3.mp4 > > FFmpeg version SVN-r26402, Copyright (c) 2000-2011 the FFmpeg developers ^^^^^^^^^^ oooold, use git master instead, check the download page on the website. From drabner at zoobe.com Wed Oct 12 15:26:10 2011 From: drabner at zoobe.com (Drabner) Date: Wed, 12 Oct 2011 06:26:10 -0700 (PDT) Subject: [FFmpeg-user] Converting mpg file to ARGB frames In-Reply-To: <1318341928282-3894533.post@n4.nabble.com> References: <1318341928282-3894533.post@n4.nabble.com> Message-ID: <1318425970225-3897964.post@n4.nabble.com> I think I've tried with most available video formats now and all yield similar weird results. My guess is that there is something wrong with the sws_scale function, since it always crashes at some frame in the memcpy-function. Somehow, it seems as if the sws_scale does not fill the target data with a whole 640x360 ARGB picture, and instead with random data that may or may not be 4x640*360 bytes long. But why? ffmpeg does not show any errors while decoding the frames. Only a guess, however. I'm still pretty clueless. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Converting-mpg-file-to-ARGB-frames-tp3894533p3897964.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From belcampo at zonnet.nl Wed Oct 12 18:03:38 2011 From: belcampo at zonnet.nl (belcampo) Date: Wed, 12 Oct 2011 18:03:38 +0200 Subject: [FFmpeg-user] Newbie streaming problem In-Reply-To: References: <4E93F387.7070407@zonnet.nl> <4E9455DE.1000605@zonnet.nl> Message-ID: <4E95BA5A.9010500@zonnet.nl> On 10/12/2011 02:07 PM, Steven Occhipinti wrote: > Thanks, must be close now. > > I thought the -an would be a little contradicting, but I tried removing one > of the -map options instead of removing the -an option. Either way, > rearranging the options as you suggested helped, but I'm getting a different > error now. I'm no webcam/video4linux2 guru, so I'm guessing a little bit. Earlier you stated that you could create a playable mp4 with the command ffmpeg -an -f video4linux2 -s 320x240 -r 15 -i /dev/video0 -vcodec mpeg4 -vtag DIVX /tmp/test.mp4 Does the later used command also produce a playable file? ffmpeg -i /dev/video0 -vcodec mpeg4 -map 0.3 -map 0.2 -vtag DIVX -f video4linux2 -s 320x240 -r 15 /tmp/test.mp4 if not, maybe placing -f video4linux2 in front of -i makes a difference So maybe try ffmpeg -f video4linux2 -i /dev/video0 -vcodec mpeg4 -map 0.3 -map 0.2 -vtag DIVX -s 320x240 -r 15 /tmp/test.mp4 > > # ffmpeg -i /dev/video0 -vcodec mpeg4 -map 0.3 -map 0.2 -vtag DIVX -f > video4linux2 -s 320x240 -r 15 http://localhost:8090/feed1.ffm > FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1.2, Copyright (c) 2000-2009 > Fabrice Bellard, et al. > configuration: --extra-version=4:0.5.1-1ubuntu1.2 --prefix=/usr > --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib > --enable-libgsm --enable-libschroedinger --enable-libspeex > --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib > --disable-stripping --disable-vhook --enable-runtime-cpudetect --enable-gpl > --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 > --enable-shared --disable-static > libavutil 49.15. 0 / 49.15. 0 > libavcodec 52.20. 1 / 52.20. 1 > libavformat 52.31. 0 / 52.31. 0 > libavdevice 52. 1. 0 / 52. 1. 0 > libavfilter 0. 4. 0 / 0. 4. 0 > libswscale 0. 7. 1 / 0. 7. 1 > libpostproc 51. 2. 0 / 51. 2. 0 > built on Sep 16 2011 17:04:18, gcc: 4.4.3 > /dev/video0: Unknown format > > > Sorry to keep asking like this :( > I wouldn't have thought it would compain about "-f video4linux2" as that was > one of the options I thought I got right initially when I recorded my first > video clip. > > Any ideas? > I appreciate you help! > > > On Wed, Oct 12, 2011 at 1:42 AM, belcampo wrote: > >> On 10/11/2011 12:15 PM, Steven Occhipinti wrote: >> >>> On Tue, Oct 11, 2011 at 6:43 PM, belcampo wrote: >>> >>>> On 10/11/2011 04:26 AM, Steven Occhipinti wrote: >>>> >>>>> Hi, >>>>> >>>>> I'm pretty new to ffmpeg and am a little confused on how ffserver works. >>>>> My goal is to stream a webcam from one machine to (one or more) others. >>>>> Ideally I would want the client machine to only require a web browser >>>>> and the basic plugins, etc. to view the stream. >>>>> >>>>> I have Ubuntu 10.04.3 server installed and ffmpeg/ffserver from the >>>>> repo. >>>>> If I run this command to test the webcam and it starts up and a video >>>>> file is successfully recorded /tmp/test.mp4: >>>>> #> ffmpeg -an -f video4linux2 -s 320x240 -r 15 -i /dev/video0 >>>>> -vcodec mpeg4 -vtag DIVX /tmp/test.mp4 >>>>> I copied /etc/ffserver.conf to my home dir - I think I need to tweak >>>>> this file a bit, but need a little help. >>>>> I ran this command and it started a server on localhost:8090 >>>>> #> ffserver -f ~/ffserver.conf >>>>> I then ran >>>>> #> ffmpeg -an -f video4linux2 -s 320x240 -r 15 -i /dev/video0 >>>>> -vcodec mpeg4 -vtag DIVX http://localhost:8090/feed1.**ffm >>>>> >>>>> and this is the output I get: >>>>> >>>>> #> ffmpeg -an -f video4linux2 -s 320x240 -r 15 -i /dev/video0 >>>>> -vcodec mpeg4 -vtag DIVX http://localhost:8090/feed1.**ffm >>>>> FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1.2, Copyright (c) 2000-2009 >>>>> Fabrice Bellard, et al. >>>>> configuration: --extra-version=4:0.5.1-**1ubuntu1.2 --prefix=/usr >>>>> --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib >>>>> --enable-libgsm --enable-libschroedinger --enable-libspeex >>>>> --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib >>>>> --disable-stripping --disable-vhook --enable-runtime-cpudetect >>>>> --enable-gpl --enable-postproc --enable-swscale --enable-x11grab >>>>> --enable-libdc1394 --enable-shared --disable-static >>>>> libavutil 49.15. 0 / 49.15. 0 >>>>> libavcodec 52.20. 1 / 52.20. 1 >>>>> libavformat 52.31. 0 / 52.31. 0 >>>>> libavdevice 52. 1. 0 / 52. 1. 0 >>>>> libavfilter 0. 4. 0 / 0. 4. 0 >>>>> libswscale 0. 7. 1 / 0. 7. 1 >>>>> libpostproc 51. 2. 0 / 51. 2. 0 >>>>> built on Sep 16 2011 17:04:18, gcc: 4.4.3 >>>>> [video4linux2 @ 0x89092c0][3]Capabilities: 4000001 >>>>> [video4linux2 @ 0x89092c0]The V4L2 driver changed the video from >>>>> 320x240 to 176x144 >>>>> Input #0, video4linux2, from '/dev/video0': >>>>> Duration: N/A, start: 1318298315.446232, bitrate: 6082 kb/s >>>>> Stream #0.0: Video: rawvideo, yuyv422, 176x144, 6082 kb/s, 15 tbr, >>>>> 1000k tbn, 15 tbc >>>>> Output #0, ffm, to 'http://localhost:8090/feed1.**ffm >>>>> ': >>>>> Stream #0.0: Audio: mp2, 44100 Hz, mono, s16, 32 kb/s >>>>> Stream #0.1: Video: mpeg1video, yuv420p, 176x144, q=3-31, 64 kb/s, >>>>> 1000k tbn, 3 tbc >>>>> Stream #0.2: Audio: mp2, 22050 Hz, mono, s16, 64 kb/s >>>>> Stream #0.3: Video: msmpeg4, yuv420p, 352x240, q=3-31, 256 kb/s, >>>>> 1000k tbn, 15 tbc >>>>> Could not find input stream matching output stream #0.0 >>>>> ioctl(VIDIOC_QBUF) >>>>> >>>>> >>>>> I'm assuming I need to setup a more suitable definition to >>>>> match the input, but after some fiddling I can't seem to get it >>>>> working. >>>>> >>>> Your camera is providing 2 video and 2 audio streams you need to use the >>>> map >>>> function to make it work. >>>> Adding -map 0.3 -map 0.2 to your ffmpeg command line will choose the >>>> higher >>>> definition video and audio. >>>> >>>>> I've attached my ffserver.conf - Any help is much appreciated. >>>>> >>>>> >>>>> Cheers, >>>>> Steve >>>>> >>>>> >>>>> ______________________________**_________________ >>>>> ffmpeg-user mailing list >>>>> ffmpeg-user at ffmpeg.org >>>>> http://ffmpeg.org/mailman/**listinfo/ffmpeg-user >>>>> >>>> ______________________________**_________________ >>>> ffmpeg-user mailing list >>>> ffmpeg-user at ffmpeg.org >>>> http://ffmpeg.org/mailman/**listinfo/ffmpeg-user >>>> >>>> >>> Thanks for your prompt reply. >>> Your reply makes sense to me, but when I add those 2 map options, I >>> get this error: >>> "Number of stream maps must match number of output streams" >>> >> I think the order of options is important, try to change in something like: >> >> ffmpeg -i /dev/video0 -vcodec mpeg4 -map 0.3 -map 0.2 -vtag DIVX -f >> video4linux2 -s 320x240 -r 15 >> http://localhost:8090/feed1.**ffm >> >> >> >>> I tried just the video stream too, but that gives the same result.. >>> what are the output streams? >>> >>> # ffmpeg -map 0.3 -map 0.2 -an -f video4linux2 -s 320x240 -r 15 -i >>> /dev/video0 -vcodec mpeg4 -vtag DIVX http://localhost:8090/feed1.**ffm >>> >> You choose 0.3 and 0.2 as input and therefore output,and then disable audio >> with -an that won't work. >> >>> FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1.2, Copyright (c) 2000-2009 >>> Fabrice Bellard, et al. >>> configuration: --extra-version=4:0.5.1-**1ubuntu1.2 --prefix=/usr >>> --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib >>> --enable-libgsm --enable-libschroedinger --enable-libspeex >>> --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib >>> --disable-stripping --disable-vhook --enable-runtime-cpudetect >>> --enable-gpl --enable-postproc --enable-swscale --enable-x11grab >>> --enable-libdc1394 --enable-shared --disable-static >>> libavutil 49.15. 0 / 49.15. 0 >>> libavcodec 52.20. 1 / 52.20. 1 >>> libavformat 52.31. 0 / 52.31. 0 >>> libavdevice 52. 1. 0 / 52. 1. 0 >>> libavfilter 0. 4. 0 / 0. 4. 0 >>> libswscale 0. 7. 1 / 0. 7. 1 >>> libpostproc 51. 2. 0 / 51. 2. 0 >>> built on Sep 16 2011 17:04:18, gcc: 4.4.3 >>> [video4linux2 @ 0x9ce02c0][3]Capabilities: 4000001 >>> [video4linux2 @ 0x9ce02c0]The V4L2 driver changed the video from >>> 320x240 to 176x144 >>> Input #0, video4linux2, from '/dev/video0': >>> Duration: N/A, start: 1318328002.348537, bitrate: 6082 kb/s >>> Stream #0.0: Video: rawvideo, yuyv422, 176x144, 6082 kb/s, 15 tbr, >>> 1000k tbn, 15 tbc >>> Number of stream maps must match number of output streams >>> ioctl(VIDIOC_QBUF) >>> ______________________________**_________________ >>> ffmpeg-user mailing list >>> ffmpeg-user at ffmpeg.org >>> http://ffmpeg.org/mailman/**listinfo/ffmpeg-user >>> >> ______________________________**_________________ >> ffmpeg-user mailing list >> ffmpeg-user at ffmpeg.org >> http://ffmpeg.org/mailman/**listinfo/ffmpeg-user >> > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From 3pin.audiovisual at gmail.com Wed Oct 12 16:06:04 2011 From: 3pin.audiovisual at gmail.com (3pin Audiovisual) Date: Wed, 12 Oct 2011 15:06:04 +0100 Subject: [FFmpeg-user] error configuring ffmpeg during compile Message-ID: Hello I am encountering errors when attempting to compile ffmpeg - I strive to set the configuration to include the external libraries for LAME and FAAC despite seeming to have the latest version of GIT installed. Attached is the config log ----- 3pin.audiovisual at gmail.com -------------- next part -------------- A non-text attachment was scrubbed... Name: config.log Type: application/octet-stream Size: 86707 bytes Desc: not available URL: From rhodri at kynesim.co.uk Wed Oct 12 19:37:09 2011 From: rhodri at kynesim.co.uk (Rhodri James) Date: Wed, 12 Oct 2011 18:37:09 +0100 Subject: [FFmpeg-user] error configuring ffmpeg during compile In-Reply-To: References: Message-ID: On Wed, 12 Oct 2011 15:06:04 +0100, 3pin Audiovisual <3pin.audiovisual at gmail.com> wrote: > Hello > > I am encountering errors when attempting to compile ffmpeg - I strive to > set > the configuration to include the external libraries for LAME and FAAC > despite seeming to have the latest version of GIT installed. > Attached is the config log From the end of that log: > yasm not found, use --disable-yasm for a crippled build You need to install the yasm package on your computer, or configure with --disable-yasm if you are prepared to take the consequences. -- Rhodri James Kynesim Ltd From forum at numerizik.com Wed Oct 12 22:29:42 2011 From: forum at numerizik.com (Guillaume (Numerizik)) Date: Wed, 12 Oct 2011 22:29:42 +0200 Subject: [FFmpeg-user] VHOOK In-Reply-To: <20111012123609.GA1891@arborea> References: <034401cc8770$2ddf2f30$899d8d90$@numerizik.com> <20111010225515.GB700@arborea> <055601cc87f8$ea82edb0$bf88c910$@numerizik.com> <20111012123609.GA1891@arborea> Message-ID: <09f101cc891d$ad509ca0$07f1d5e0$@numerizik.com> Hello Yes i updated my ffmpeg version and check directly on docs folder in svn It's working now :) thanks -----Message d'origine----- De?: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user-bounces at ffmpeg.org] De la part de Stefano Sabatini Envoy??: mercredi 12 octobre 2011 14:36 ??: FFmpeg user questions and RTFMs Objet?: Re: [FFmpeg-user] VHOOK On date Tuesday 2011-10-11 11:34:03 +0200, Guillaume (Numerizik) encoded: > Hello > > I i installed movie filter but when i did this: > > ffmpeg -sameq -y -i /home/video/temp/D7Q2B3D9F3W8J0O6K2_step2.mp4 -vf > "movie=0:png:/home/logo/logo.png [logo]; [in][logo] overlay=5:5" > /home/video/temp/D7Q2B3D9F3W8J0O6K2_final.mp4 > > I have this error: > > [buffer @ 0x8bc5460] w:1280 h:720 pixfmt:yuv420p > [image2 @ 0x8bb0c80] Could not find codec parameters (Video: > [0][0][0][0] / 0x0000, yuv420p) [movie @ 0x8bb0a20] movie_init() > Failed to find stream info Error initializing filter 'movie' with args > '0:png:/home/logo/logo.png' > Error opening filters! > > Can you help me again :) Please update to a recent version, and check *against the official docs* (in the ffmpeg manual or in doc/libavfilter.html), don't rely on random guides found on the web which may contain wrong information (the movie syntax in this case). _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From drabner at zoobe.com Thu Oct 13 09:11:24 2011 From: drabner at zoobe.com (Drabner) Date: Thu, 13 Oct 2011 00:11:24 -0700 (PDT) Subject: [FFmpeg-user] Converting mpg file to ARGB frames In-Reply-To: <1318425970225-3897964.post@n4.nabble.com> References: <1318341928282-3894533.post@n4.nabble.com> <1318425970225-3897964.post@n4.nabble.com> Message-ID: <1318489884820-3900747.post@n4.nabble.com> It seems I have found the reason for the weird behaviour. It is this line: *//---------------------------------------------------------* memcpy(textureDest, [b]_videoFrames->GetFrames()[_videoFramesPassed]->data[/b], 4*640*360); *//---------------------------------------------------------* Instead of using ->data of the AVFrame*, you have to use ->data[0], at least when using PIX_FMT_ARGB. data itself is only a pointer to four streams or layers or whatever of picture data. And the linesize of AVFrame tells you where to look for the data, it also points to four streams/layers. Of course, you have to find this out on your own and waste a day with it. Gotta love the clarity of the library if you've not studied video codecs ;) However, I still have a problem of some sort... The video is blue. As if the B value is always too high. It works well when I fill every pixel of the picture like this: *//---------------------------------------------------------* int videoSrc[640*360] = {0}; for (int i = 0; i < (640*360); i++) { uint8_t* pixel = (uint8_t*)(_videoFrames->GetFrames()[_videoFramesPassed]->data[0]+i*4); videoSrc[i] = D3DCOLOR_ARGB(pixel[0], pixel[1], pixel[2], pixel[3]); } memcpy( textureDest, videoSrc, 4*640*360); *//---------------------------------------------------------* Yeah I know, you could skip that last memcpy and fill textureDest directly within the loop. But anyway... Obviously, this goes kinda heavy on the performance compared to just one simple memcpy. If anyone has an idea what's going on there, I'd be grateful :) -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Converting-mpg-file-to-ARGB-frames-tp3894533p3900747.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From tomek at at-net.com.pl Thu Oct 13 12:06:42 2011 From: tomek at at-net.com.pl (=?UTF-8?B?VG9tYXN6IEfDs3JhbA==?=) Date: Thu, 13 Oct 2011 12:06:42 +0200 Subject: [FFmpeg-user] Skipping frame (slow connection) when use live stream Message-ID: <4E96B832.3050802@at-net.com.pl> Hello, ffmpeg send stream 330kbits (to ffserver or crtmpserver), after 5 minutes delay reaches 20 seconds (more if the connection is poor quality). To internet connection use 3G modem (HSPA if available). Modem speed average between 100kbits ~ 1200kbits. Is it possible to reject data that ffmpeg could not be sent? How to minimize the delay ? When the connection is a high quality of the delay is fixed at approximately 5 sec. -- Tomasz G?ral AT-net http://www.at-net.com.pl - oprogramowanie na zam?wienie http://www.imprezylive.pl - transmisje na ?ywo w internecie Tel. +48 509 288 840 From sabine565 at gmail.com Thu Oct 13 12:24:17 2011 From: sabine565 at gmail.com (Sabine B) Date: Thu, 13 Oct 2011 13:24:17 +0300 Subject: [FFmpeg-user] Streaming a data stream Message-ID: Hello! Is it possible to stream an MPEG-TS file which includes besides the video and audio stream also a data stream? Thanks for your help! Br, Sabine From atish.kathpal at gmail.com Thu Oct 13 12:57:18 2011 From: atish.kathpal at gmail.com (Atish Kathpal) Date: Thu, 13 Oct 2011 16:27:18 +0530 Subject: [FFmpeg-user] FFmpeg API function for transcoding Message-ID: Hello Can anyone point me to the function in libavformat/libavcodec APIs of FFmpeg which can transcode an input video file to an outputvideo file of choice. I am basically looking for the corresponding function in API that is an equivalent of the CLI command, say: ffmpeg -i /tmp/test.yuv /tmp/out.avi Please help me out. Regards Atish From atish.kathpal at gmail.com Thu Oct 13 13:07:28 2011 From: atish.kathpal at gmail.com (Atish Kathpal) Date: Thu, 13 Oct 2011 16:37:28 +0530 Subject: [FFmpeg-user] FFmpeg API function for transcoding In-Reply-To: References: Message-ID: I mean to ask, if there is an API that looks like this: TranscodeVideo(InFilePath, OutFilePath, *argumentslist[]); Or the only way to do this with the FFmpeg APIs is to read the input file one frame at a time and then encode/decode it according to requirements? In either case, it will be useful if you could point me to useful documentations. Please tell me if the former is possible with the given APIs without having to code for every frame. Regards Atish On Thu, Oct 13, 2011 at 4:27 PM, Atish Kathpal wrote: > Hello > > Can anyone point me to the function in libavformat/libavcodec APIs of > FFmpeg which can transcode an input video file to an outputvideo file of > choice. > > I am basically looking for the corresponding function in API that is an > equivalent of the CLI command, say: ffmpeg -i /tmp/test.yuv /tmp/out.avi > > Please help me out. > > Regards > Atish > From drabner at zoobe.com Thu Oct 13 13:23:17 2011 From: drabner at zoobe.com (Drabner) Date: Thu, 13 Oct 2011 04:23:17 -0700 (PDT) Subject: [FFmpeg-user] Converting mpg file to ARGB frames In-Reply-To: <1318489884820-3900747.post@n4.nabble.com> References: <1318341928282-3894533.post@n4.nabble.com> <1318425970225-3897964.post@n4.nabble.com> <1318489884820-3900747.post@n4.nabble.com> Message-ID: <1318504997030-3901176.post@n4.nabble.com> Thanks to a user in another mailing list (libav-users), I now know that the reason was the reverse byte order in ARGB. I had to use PIX_FMT_BGRA to get the correct pictures. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Converting-mpg-file-to-ARGB-frames-tp3894533p3901176.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From public at stevenocchipinti.com Thu Oct 13 14:35:15 2011 From: public at stevenocchipinti.com (Steven Occhipinti) Date: Thu, 13 Oct 2011 23:35:15 +1100 Subject: [FFmpeg-user] Newbie streaming problem In-Reply-To: <4E95BA5A.9010500@zonnet.nl> References: <4E93F387.7070407@zonnet.nl> <4E9455DE.1000605@zonnet.nl> <4E95BA5A.9010500@zonnet.nl> Message-ID: On Thu, Oct 13, 2011 at 3:03 AM, belcampo wrote: > On 10/12/2011 02:07 PM, Steven Occhipinti wrote: > >> Thanks, must be close now. >> >> I thought the -an would be a little contradicting, but I tried removing >> one >> of the -map options instead of removing the -an option. Either way, >> rearranging the options as you suggested helped, but I'm getting a >> different >> error now. >> > I'm no webcam/video4linux2 guru, so I'm guessing a little bit. > Earlier you stated that you could create a playable mp4 with the command > > > ffmpeg -an -f video4linux2 -s 320x240 -r 15 -i /dev/video0 > -vcodec mpeg4 -vtag DIVX /tmp/test.mp4 > > Does the later used command also produce a playable file? > > ffmpeg -i /dev/video0 -vcodec mpeg4 -map 0.3 -map 0.2 -vtag DIVX -f > video4linux2 -s 320x240 -r 15 /tmp/test.mp4 > This does not produce a playable file, I get this error: [video4linux2 @ 0x823a2c0]Wrong size (0x0) /dev/video0: Error while opening file > > if not, maybe placing -f video4linux2 > in front of -i makes a difference > I've found the -f video4linux2 must be before the -i /dev/video1, otherwise I get an "Unknown format" error. That also matches other examples I have found. I was also getting a "Wrong size (0x0)" error, and so I have moved all other arguments between the -f and the -i to fix that. After a fair amount of experimenting, this is the best I can come up with: # ffmpeg -f video4linux2 -s 320x240 -r 15 -vcodec mpeg4 -map 0.3 -map 0.2 -vtag DIVX -i /dev/video0 http://localhost:8090/feed1.ffm FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1.2, Copyright (c) 2000-2009 Fabrice Bellard, et al. configuration: --extra-version=4:0.5.1-1ubuntu1.2 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping --disable-vhook --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared --disable-static libavutil 49.15. 0 / 49.15. 0 libavcodec 52.20. 1 / 52.20. 1 libavformat 52.31. 0 / 52.31. 0 libavdevice 52. 1. 0 / 52. 1. 0 libavfilter 0. 4. 0 / 0. 4. 0 libswscale 0. 7. 1 / 0. 7. 1 libpostproc 51. 2. 0 / 51. 2. 0 built on Sep 16 2011 17:04:18, gcc: 4.4.3 [video4linux2 @ 0x9b322d0][3]Capabilities: 4000001 [video4linux2 @ 0x9b322d0]The V4L2 driver changed the video from 320x240 to 176x144 Input #0, video4linux2, from '/dev/video0': Duration: N/A, start: 1318508978.203480, bitrate: 6082 kb/s Stream #0.0: Video: mpeg4, yuyv422, 176x144, 6082 kb/s, 15 tbr, 1000k tbn, 15 tbc Number of stream maps must match number of output streams ioctl(VIDIOC_QBUF) I also experimented with different -map options, but no luck. Is there a way I can ensure which streams need to set with -map. The man page says it maps input streams to output streams, but it looks like there is only 1 input stream and 4 output streams. Man page: -map input_stream_id[:sync_stream_id] Set stream mapping from input streams to output streams. Just enumerate the input streams in the order you want them in the output. sync_stream_id if specified sets the input stream to sync against. It looks like it take input streams as argument, which I think I only have 1 of. When I run it without the -map options, it lists 1 input stream and 4 output streams: # ffmpeg -f video4linux2 -s 320x240 -r 15 -vcodec mpeg4 -vtag DIVX -i /dev/video0 http://localhost:8090/feed1.ffm FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1.2, Copyright (c) 2000-2009 Fabrice Bellard, et al. configuration: --extra-version=4:0.5.1-1ubuntu1.2 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping --disable-vhook --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared --disable-static libavutil 49.15. 0 / 49.15. 0 libavcodec 52.20. 1 / 52.20. 1 libavformat 52.31. 0 / 52.31. 0 libavdevice 52. 1. 0 / 52. 1. 0 libavfilter 0. 4. 0 / 0. 4. 0 libswscale 0. 7. 1 / 0. 7. 1 libpostproc 51. 2. 0 / 51. 2. 0 built on Sep 16 2011 17:04:18, gcc: 4.4.3 [video4linux2 @ 0x812c2d0][3]Capabilities: 4000001 [video4linux2 @ 0x812c2d0]The V4L2 driver changed the video from 320x240 to 176x144 Input #0, video4linux2, from '/dev/video0': Duration: N/A, start: 1318509208.059178, bitrate: 6082 kb/s Stream #0.0: Video: mpeg4, yuyv422, 176x144, 6082 kb/s, 15 tbr, 1000k tbn, 15 tbc Output #0, ffm, to 'http://localhost:8090/feed1.ffm': Stream #0.0: Audio: mp2, 44100 Hz, mono, s16, 32 kb/s Stream #0.1: Video: mpeg4, yuv420p, 176x144, q=3-31, 64 kb/s, 1000k tbn, 3 tbc Stream #0.2: Audio: mp2, 22050 Hz, mono, s16, 64 kb/s Stream #0.3: Video: msmpeg4, yuv420p, 352x240, q=3-31, 256 kb/s, 1000k tbn, 15 tbc Could not find input stream matching output stream #0.0 ioctl(VIDIOC_QBUF) These "streams" still confuse me :S > So maybe try > ffmpeg -f video4linux2 -i /dev/video0 -vcodec mpeg4 -map 0.3 -map 0.2 > -vtag DIVX > -s 320x240 -r 15 /tmp/test.mp4 > >> # ffmpeg -i /dev/video0 -vcodec mpeg4 -map 0.3 -map 0.2 -vtag DIVX -f >> video4linux2 -s 320x240 -r 15 http://localhost:8090/feed1.**ffm >> FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1.2, Copyright (c) 2000-2009 >> Fabrice Bellard, et al. >> configuration: --extra-version=4:0.5.1-**1ubuntu1.2 --prefix=/usr >> --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib >> --enable-libgsm --enable-libschroedinger --enable-libspeex >> --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib >> --disable-stripping --disable-vhook --enable-runtime-cpudetect >> --enable-gpl >> --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 >> --enable-shared --disable-static >> libavutil 49.15. 0 / 49.15. 0 >> libavcodec 52.20. 1 / 52.20. 1 >> libavformat 52.31. 0 / 52.31. 0 >> libavdevice 52. 1. 0 / 52. 1. 0 >> libavfilter 0. 4. 0 / 0. 4. 0 >> libswscale 0. 7. 1 / 0. 7. 1 >> libpostproc 51. 2. 0 / 51. 2. 0 >> built on Sep 16 2011 17:04:18, gcc: 4.4.3 >> /dev/video0: Unknown format >> >> >> Sorry to keep asking like this :( >> I wouldn't have thought it would compain about "-f video4linux2" as that >> was >> one of the options I thought I got right initially when I recorded my >> first >> video clip. >> >> Any ideas? >> I appreciate you help! >> >> >> On Wed, Oct 12, 2011 at 1:42 AM, belcampo wrote: >> >> On 10/11/2011 12:15 PM, Steven Occhipinti wrote: >>> >>> On Tue, Oct 11, 2011 at 6:43 PM, belcampo wrote: >>>> >>>> On 10/11/2011 04:26 AM, Steven Occhipinti wrote: >>>>> >>>>> Hi, >>>>>> >>>>>> I'm pretty new to ffmpeg and am a little confused on how ffserver >>>>>> works. >>>>>> My goal is to stream a webcam from one machine to (one or more) >>>>>> others. >>>>>> Ideally I would want the client machine to only require a web browser >>>>>> and the basic plugins, etc. to view the stream. >>>>>> >>>>>> I have Ubuntu 10.04.3 server installed and ffmpeg/ffserver from the >>>>>> repo. >>>>>> If I run this command to test the webcam and it starts up and a video >>>>>> file is successfully recorded /tmp/test.mp4: >>>>>> #> ffmpeg -an -f video4linux2 -s 320x240 -r 15 -i /dev/video0 >>>>>> -vcodec mpeg4 -vtag DIVX /tmp/test.mp4 >>>>>> I copied /etc/ffserver.conf to my home dir - I think I need to tweak >>>>>> this file a bit, but need a little help. >>>>>> I ran this command and it started a server on localhost:8090 >>>>>> #> ffserver -f ~/ffserver.conf >>>>>> I then ran >>>>>> #> ffmpeg -an -f video4linux2 -s 320x240 -r 15 -i /dev/video0 >>>>>> -vcodec mpeg4 -vtag DIVX http://localhost:8090/feed1.****ffm >>>>>> > >>>>>> >>>>>> >>>>>> and this is the output I get: >>>>>> >>>>>> #> ffmpeg -an -f video4linux2 -s 320x240 -r 15 -i /dev/video0 >>>>>> -vcodec mpeg4 -vtag DIVX http://localhost:8090/feed1.****ffm >>>>>> > >>>>>> >>>>>> FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1.2, Copyright (c) 2000-2009 >>>>>> Fabrice Bellard, et al. >>>>>> configuration: --extra-version=4:0.5.1-****1ubuntu1.2 --prefix=/usr >>>>>> >>>>>> --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib >>>>>> --enable-libgsm --enable-libschroedinger --enable-libspeex >>>>>> --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib >>>>>> --disable-stripping --disable-vhook --enable-runtime-cpudetect >>>>>> --enable-gpl --enable-postproc --enable-swscale --enable-x11grab >>>>>> --enable-libdc1394 --enable-shared --disable-static >>>>>> libavutil 49.15. 0 / 49.15. 0 >>>>>> libavcodec 52.20. 1 / 52.20. 1 >>>>>> libavformat 52.31. 0 / 52.31. 0 >>>>>> libavdevice 52. 1. 0 / 52. 1. 0 >>>>>> libavfilter 0. 4. 0 / 0. 4. 0 >>>>>> libswscale 0. 7. 1 / 0. 7. 1 >>>>>> libpostproc 51. 2. 0 / 51. 2. 0 >>>>>> built on Sep 16 2011 17:04:18, gcc: 4.4.3 >>>>>> [video4linux2 @ 0x89092c0][3]Capabilities: 4000001 >>>>>> [video4linux2 @ 0x89092c0]The V4L2 driver changed the video from >>>>>> 320x240 to 176x144 >>>>>> Input #0, video4linux2, from '/dev/video0': >>>>>> Duration: N/A, start: 1318298315.446232, bitrate: 6082 kb/s >>>>>> Stream #0.0: Video: rawvideo, yuyv422, 176x144, 6082 kb/s, 15 tbr, >>>>>> 1000k tbn, 15 tbc >>>>>> Output #0, ffm, to 'http://localhost:8090/feed1.****ffm >>>>>> > >>>>>> >>>>>> ': >>>>>> Stream #0.0: Audio: mp2, 44100 Hz, mono, s16, 32 kb/s >>>>>> Stream #0.1: Video: mpeg1video, yuv420p, 176x144, q=3-31, 64 kb/s, >>>>>> 1000k tbn, 3 tbc >>>>>> Stream #0.2: Audio: mp2, 22050 Hz, mono, s16, 64 kb/s >>>>>> Stream #0.3: Video: msmpeg4, yuv420p, 352x240, q=3-31, 256 kb/s, >>>>>> 1000k tbn, 15 tbc >>>>>> Could not find input stream matching output stream #0.0 >>>>>> ioctl(VIDIOC_QBUF) >>>>>> >>>>>> >>>>>> I'm assuming I need to setup a more suitable definition to >>>>>> match the input, but after some fiddling I can't seem to get it >>>>>> working. >>>>>> >>>>>> Your camera is providing 2 video and 2 audio streams you need to use >>>>> the >>>>> map >>>>> function to make it work. >>>>> Adding -map 0.3 -map 0.2 to your ffmpeg command line will choose the >>>>> higher >>>>> definition video and audio. >>>>> >>>>> I've attached my ffserver.conf - Any help is much appreciated. >>>>>> >>>>>> >>>>>> Cheers, >>>>>> Steve >>>>>> >>>>>> >>>>>> ______________________________****_________________ >>>>>> ffmpeg-user mailing list >>>>>> ffmpeg-user at ffmpeg.org >>>>>> http://ffmpeg.org/mailman/****listinfo/ffmpeg-user >>>>>> >>>>>> > >>>>>> >>>>>> ______________________________****_________________ >>>>> ffmpeg-user mailing list >>>>> ffmpeg-user at ffmpeg.org >>>>> http://ffmpeg.org/mailman/****listinfo/ffmpeg-user >>>>> >>>>> > >>>>> >>>>> >>>>> Thanks for your prompt reply. >>>> Your reply makes sense to me, but when I add those 2 map options, I >>>> get this error: >>>> "Number of stream maps must match number of output streams" >>>> >>>> I think the order of options is important, try to change in something >>> like: >>> >>> ffmpeg -i /dev/video0 -vcodec mpeg4 -map 0.3 -map 0.2 -vtag DIVX -f >>> video4linux2 -s 320x240 -r 15 >>> http://localhost:8090/feed1.****ffm < >>> http://localhost:8090/**feed1.ffm > >>> >>> >>> >>> I tried just the video stream too, but that gives the same result.. >>>> what are the output streams? >>>> >>>> # ffmpeg -map 0.3 -map 0.2 -an -f video4linux2 -s 320x240 -r 15 -i >>>> /dev/video0 -vcodec mpeg4 -vtag DIVX http://localhost:8090/feed1.**** >>>> ffm >>> feed1.ffm > >>>> >>>> You choose 0.3 and 0.2 as input and therefore output,and then disable >>> audio >>> with -an that won't work. >>> >>> FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1.2, Copyright (c) 2000-2009 >>>> Fabrice Bellard, et al. >>>> configuration: --extra-version=4:0.5.1-****1ubuntu1.2 --prefix=/usr >>>> >>>> --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib >>>> --enable-libgsm --enable-libschroedinger --enable-libspeex >>>> --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib >>>> --disable-stripping --disable-vhook --enable-runtime-cpudetect >>>> --enable-gpl --enable-postproc --enable-swscale --enable-x11grab >>>> --enable-libdc1394 --enable-shared --disable-static >>>> libavutil 49.15. 0 / 49.15. 0 >>>> libavcodec 52.20. 1 / 52.20. 1 >>>> libavformat 52.31. 0 / 52.31. 0 >>>> libavdevice 52. 1. 0 / 52. 1. 0 >>>> libavfilter 0. 4. 0 / 0. 4. 0 >>>> libswscale 0. 7. 1 / 0. 7. 1 >>>> libpostproc 51. 2. 0 / 51. 2. 0 >>>> built on Sep 16 2011 17:04:18, gcc: 4.4.3 >>>> [video4linux2 @ 0x9ce02c0][3]Capabilities: 4000001 >>>> [video4linux2 @ 0x9ce02c0]The V4L2 driver changed the video from >>>> 320x240 to 176x144 >>>> Input #0, video4linux2, from '/dev/video0': >>>> Duration: N/A, start: 1318328002.348537, bitrate: 6082 kb/s >>>> Stream #0.0: Video: rawvideo, yuyv422, 176x144, 6082 kb/s, 15 tbr, >>>> 1000k tbn, 15 tbc >>>> Number of stream maps must match number of output streams >>>> ioctl(VIDIOC_QBUF) >>>> ______________________________****_________________ >>>> ffmpeg-user mailing list >>>> ffmpeg-user at ffmpeg.org >>>> http://ffmpeg.org/mailman/****listinfo/ffmpeg-user >>>> >>>> > >>>> >>>> ______________________________****_________________ >>> ffmpeg-user mailing list >>> ffmpeg-user at ffmpeg.org >>> http://ffmpeg.org/mailman/****listinfo/ffmpeg-user >>> >>> > >>> >>> ______________________________**_________________ >> ffmpeg-user mailing list >> ffmpeg-user at ffmpeg.org >> http://ffmpeg.org/mailman/**listinfo/ffmpeg-user >> > > From belcampo at zonnet.nl Thu Oct 13 16:28:18 2011 From: belcampo at zonnet.nl (belcampo) Date: Thu, 13 Oct 2011 16:28:18 +0200 Subject: [FFmpeg-user] Newbie streaming problem In-Reply-To: References: <4E93F387.7070407@zonnet.nl> <4E9455DE.1000605@zonnet.nl> <4E95BA5A.9010500@zonnet.nl> Message-ID: <4E96F582.1070100@zonnet.nl> On 10/13/2011 02:35 PM, Steven Occhipinti wrote: > On Thu, Oct 13, 2011 at 3:03 AM, belcampo wrote: > >> On 10/12/2011 02:07 PM, Steven Occhipinti wrote: >> >>> Thanks, must be close now. >>> >>> I thought the -an would be a little contradicting, but I tried removing >>> one >>> of the -map options instead of removing the -an option. Either way, >>> rearranging the options as you suggested helped, but I'm getting a >>> different >>> error now. >>> >> I'm no webcam/video4linux2 guru, so I'm guessing a little bit. >> Earlier you stated that you could create a playable mp4 with the command >> >> >> ffmpeg -an -f video4linux2 -s 320x240 -r 15 -i /dev/video0 >> -vcodec mpeg4 -vtag DIVX /tmp/test.mp4 >> >> Does the later used command also produce a playable file? >> >> ffmpeg -i /dev/video0 -vcodec mpeg4 -map 0.3 -map 0.2 -vtag DIVX -f >> video4linux2 -s 320x240 -r 15 /tmp/test.mp4 >> > This does not produce a playable file, I get this error: > [video4linux2 @ 0x823a2c0]Wrong size (0x0) > /dev/video0: Error while opening file > > >> if not, maybe placing -f video4linux2 >> in front of -i makes a difference >> > I've found the -f video4linux2 must be before the -i /dev/video1, otherwise > I get an "Unknown format" error. > That also matches other examples I have found. > > I was also getting a "Wrong size (0x0)" error, and so I have moved all other > arguments between the -f and the -i to fix that. > After a fair amount of experimenting, this is the best I can come up with: > > # ffmpeg -f video4linux2 -s 320x240 -r 15 -vcodec mpeg4 -map 0.3 -map 0.2 > -vtag DIVX -i /dev/video0 http://localhost:8090/feed1.ffm > FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1.2, Copyright (c) 2000-2009 > Fabrice Bellard, et al. > configuration: --extra-version=4:0.5.1-1ubuntu1.2 --prefix=/usr > --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib > --enable-libgsm --enable-libschroedinger --enable-libspeex > --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib > --disable-stripping --disable-vhook --enable-runtime-cpudetect --enable-gpl > --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 > --enable-shared --disable-static > libavutil 49.15. 0 / 49.15. 0 > libavcodec 52.20. 1 / 52.20. 1 > libavformat 52.31. 0 / 52.31. 0 > libavdevice 52. 1. 0 / 52. 1. 0 > libavfilter 0. 4. 0 / 0. 4. 0 > libswscale 0. 7. 1 / 0. 7. 1 > libpostproc 51. 2. 0 / 51. 2. 0 > built on Sep 16 2011 17:04:18, gcc: 4.4.3 > [video4linux2 @ 0x9b322d0][3]Capabilities: 4000001 > [video4linux2 @ 0x9b322d0]The V4L2 driver changed the video from 320x240 to > 176x144 > Input #0, video4linux2, from '/dev/video0': > Duration: N/A, start: 1318508978.203480, bitrate: 6082 kb/s > Stream #0.0: Video: mpeg4, yuyv422, 176x144, 6082 kb/s, 15 tbr, 1000k > tbn, 15 tbc > Number of stream maps must match number of output streams > ioctl(VIDIOC_QBUF) > > > I also experimented with different -map options, but no luck. > Is there a way I can ensure which streams need to set with -map. > The man page says it maps input streams to output streams, but it looks like > there is only 1 input stream and 4 output streams. The term stream confuses I think, you have 1 webcam which can produce 2 video streams, and 2 audio streams, where the difference is the quaility. Video resolution of 320x240 or 176x144 and audio bitrate of 32kb/s or 64kb/s. Maybe, again I'm no webcam guru, you should have a look at the program v4l2-ctl to set the webcam in one of the different quality modes. After 'setting' this you only will have one video and one audio stream, which perhaps makes the map function obsolete. Give it a try, maybe it'll solve all or a few of the problems. > > Man page: > -map input_stream_id[:sync_stream_id] > Set stream mapping from input streams to output streams. Just > enumerate > the input streams in the order you want them in the output. > sync_stream_id > if specified sets the input stream to sync against. > > It looks like it take input streams as argument, which I think I only have 1 > of. > When I run it without the -map options, it lists 1 input stream and 4 output > streams: > # ffmpeg -f video4linux2 -s 320x240 -r 15 -vcodec mpeg4 -vtag DIVX -i > /dev/video0 http://localhost:8090/feed1.ffm > FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1.2, Copyright (c) 2000-2009 > Fabrice Bellard, et al. > configuration: --extra-version=4:0.5.1-1ubuntu1.2 --prefix=/usr > --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib > --enable-libgsm --enable-libschroedinger --enable-libspeex > --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib > --disable-stripping --disable-vhook --enable-runtime-cpudetect --enable-gpl > --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 > --enable-shared --disable-static > libavutil 49.15. 0 / 49.15. 0 > libavcodec 52.20. 1 / 52.20. 1 > libavformat 52.31. 0 / 52.31. 0 > libavdevice 52. 1. 0 / 52. 1. 0 > libavfilter 0. 4. 0 / 0. 4. 0 > libswscale 0. 7. 1 / 0. 7. 1 > libpostproc 51. 2. 0 / 51. 2. 0 > built on Sep 16 2011 17:04:18, gcc: 4.4.3 > [video4linux2 @ 0x812c2d0][3]Capabilities: 4000001 > [video4linux2 @ 0x812c2d0]The V4L2 driver changed the video from 320x240 to > 176x144 > Input #0, video4linux2, from '/dev/video0': > Duration: N/A, start: 1318509208.059178, bitrate: 6082 kb/s > Stream #0.0: Video: mpeg4, yuyv422, 176x144, 6082 kb/s, 15 tbr, 1000k > tbn, 15 tbc > Output #0, ffm, to 'http://localhost:8090/feed1.ffm': > Stream #0.0: Audio: mp2, 44100 Hz, mono, s16, 32 kb/s > Stream #0.1: Video: mpeg4, yuv420p, 176x144, q=3-31, 64 kb/s, 1000k tbn, > 3 tbc > Stream #0.2: Audio: mp2, 22050 Hz, mono, s16, 64 kb/s > Stream #0.3: Video: msmpeg4, yuv420p, 352x240, q=3-31, 256 kb/s, 1000k > tbn, 15 tbc > Could not find input stream matching output stream #0.0 > ioctl(VIDIOC_QBUF) > > These "streams" still confuse me :S > > >> So maybe try >> ffmpeg -f video4linux2 -i /dev/video0 -vcodec mpeg4 -map 0.3 -map 0.2 >> -vtag DIVX >> -s 320x240 -r 15 /tmp/test.mp4 >> > >>> # ffmpeg -i /dev/video0 -vcodec mpeg4 -map 0.3 -map 0.2 -vtag DIVX -f >>> video4linux2 -s 320x240 -r 15 http://localhost:8090/feed1.**ffm >>> FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1.2, Copyright (c) 2000-2009 >>> Fabrice Bellard, et al. >>> configuration: --extra-version=4:0.5.1-**1ubuntu1.2 --prefix=/usr >>> --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib >>> --enable-libgsm --enable-libschroedinger --enable-libspeex >>> --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib >>> --disable-stripping --disable-vhook --enable-runtime-cpudetect >>> --enable-gpl >>> --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 >>> --enable-shared --disable-static >>> libavutil 49.15. 0 / 49.15. 0 >>> libavcodec 52.20. 1 / 52.20. 1 >>> libavformat 52.31. 0 / 52.31. 0 >>> libavdevice 52. 1. 0 / 52. 1. 0 >>> libavfilter 0. 4. 0 / 0. 4. 0 >>> libswscale 0. 7. 1 / 0. 7. 1 >>> libpostproc 51. 2. 0 / 51. 2. 0 >>> built on Sep 16 2011 17:04:18, gcc: 4.4.3 >>> /dev/video0: Unknown format >>> >>> >>> Sorry to keep asking like this :( >>> I wouldn't have thought it would compain about "-f video4linux2" as that >>> was >>> one of the options I thought I got right initially when I recorded my >>> first >>> video clip. >>> >>> Any ideas? >>> I appreciate you help! >>> >>> >>> On Wed, Oct 12, 2011 at 1:42 AM, belcampo wrote: >>> >>> On 10/11/2011 12:15 PM, Steven Occhipinti wrote: >>>> On Tue, Oct 11, 2011 at 6:43 PM, belcampo wrote: >>>>> On 10/11/2011 04:26 AM, Steven Occhipinti wrote: >>>>>> Hi, >>>>>>> I'm pretty new to ffmpeg and am a little confused on how ffserver >>>>>>> works. >>>>>>> My goal is to stream a webcam from one machine to (one or more) >>>>>>> others. >>>>>>> Ideally I would want the client machine to only require a web browser >>>>>>> and the basic plugins, etc. to view the stream. >>>>>>> >>>>>>> I have Ubuntu 10.04.3 server installed and ffmpeg/ffserver from the >>>>>>> repo. >>>>>>> If I run this command to test the webcam and it starts up and a video >>>>>>> file is successfully recorded /tmp/test.mp4: >>>>>>> #> ffmpeg -an -f video4linux2 -s 320x240 -r 15 -i /dev/video0 >>>>>>> -vcodec mpeg4 -vtag DIVX /tmp/test.mp4 >>>>>>> I copied /etc/ffserver.conf to my home dir - I think I need to tweak >>>>>>> this file a bit, but need a little help. >>>>>>> I ran this command and it started a server on localhost:8090 >>>>>>> #> ffserver -f ~/ffserver.conf >>>>>>> I then ran >>>>>>> #> ffmpeg -an -f video4linux2 -s 320x240 -r 15 -i /dev/video0 >>>>>>> -vcodec mpeg4 -vtag DIVX http://localhost:8090/feed1.****ffm >>>>>>> > >>>>>>> >>>>>>> >>>>>>> and this is the output I get: >>>>>>> >>>>>>> #> ffmpeg -an -f video4linux2 -s 320x240 -r 15 -i /dev/video0 >>>>>>> -vcodec mpeg4 -vtag DIVX http://localhost:8090/feed1.****ffm >>>>>>> > >>>>>>> >>>>>>> FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1.2, Copyright (c) 2000-2009 >>>>>>> Fabrice Bellard, et al. >>>>>>> configuration: --extra-version=4:0.5.1-****1ubuntu1.2 --prefix=/usr >>>>>>> >>>>>>> --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib >>>>>>> --enable-libgsm --enable-libschroedinger --enable-libspeex >>>>>>> --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib >>>>>>> --disable-stripping --disable-vhook --enable-runtime-cpudetect >>>>>>> --enable-gpl --enable-postproc --enable-swscale --enable-x11grab >>>>>>> --enable-libdc1394 --enable-shared --disable-static >>>>>>> libavutil 49.15. 0 / 49.15. 0 >>>>>>> libavcodec 52.20. 1 / 52.20. 1 >>>>>>> libavformat 52.31. 0 / 52.31. 0 >>>>>>> libavdevice 52. 1. 0 / 52. 1. 0 >>>>>>> libavfilter 0. 4. 0 / 0. 4. 0 >>>>>>> libswscale 0. 7. 1 / 0. 7. 1 >>>>>>> libpostproc 51. 2. 0 / 51. 2. 0 >>>>>>> built on Sep 16 2011 17:04:18, gcc: 4.4.3 >>>>>>> [video4linux2 @ 0x89092c0][3]Capabilities: 4000001 >>>>>>> [video4linux2 @ 0x89092c0]The V4L2 driver changed the video from >>>>>>> 320x240 to 176x144 >>>>>>> Input #0, video4linux2, from '/dev/video0': >>>>>>> Duration: N/A, start: 1318298315.446232, bitrate: 6082 kb/s >>>>>>> Stream #0.0: Video: rawvideo, yuyv422, 176x144, 6082 kb/s, 15 tbr, >>>>>>> 1000k tbn, 15 tbc >>>>>>> Output #0, ffm, to 'http://localhost:8090/feed1.****ffm >>>>>>> > >>>>>>> >>>>>>> ': >>>>>>> Stream #0.0: Audio: mp2, 44100 Hz, mono, s16, 32 kb/s >>>>>>> Stream #0.1: Video: mpeg1video, yuv420p, 176x144, q=3-31, 64 kb/s, >>>>>>> 1000k tbn, 3 tbc >>>>>>> Stream #0.2: Audio: mp2, 22050 Hz, mono, s16, 64 kb/s >>>>>>> Stream #0.3: Video: msmpeg4, yuv420p, 352x240, q=3-31, 256 kb/s, >>>>>>> 1000k tbn, 15 tbc >>>>>>> Could not find input stream matching output stream #0.0 >>>>>>> ioctl(VIDIOC_QBUF) >>>>>>> >>>>>>> >>>>>>> I'm assuming I need to setup a more suitable definition to >>>>>>> match the input, but after some fiddling I can't seem to get it >>>>>>> working. >>>>>>> >>>>>>> Your camera is providing 2 video and 2 audio streams you need to use >>>>>> the >>>>>> map >>>>>> function to make it work. >>>>>> Adding -map 0.3 -map 0.2 to your ffmpeg command line will choose the >>>>>> higher >>>>>> definition video and audio. >>>>>> >>>>>> I've attached my ffserver.conf - Any help is much appreciated. >>>>>>> >>>>>>> Cheers, >>>>>>> Steve >>>>>>> >>>>>>> >>>>>>> ______________________________****_________________ >>>>>>> ffmpeg-user mailing list >>>>>>> ffmpeg-user at ffmpeg.org >>>>>>> http://ffmpeg.org/mailman/****listinfo/ffmpeg-user >>>>>>> >>>>>>> ______________________________****_________________ >>>>>> ffmpeg-user mailing list >>>>>> ffmpeg-user at ffmpeg.org >>>>>> http://ffmpeg.org/mailman/****listinfo/ffmpeg-user >>>>>> >>>>>> >>>>>> Thanks for your prompt reply. >>>>> Your reply makes sense to me, but when I add those 2 map options, I >>>>> get this error: >>>>> "Number of stream maps must match number of output streams" >>>>> >>>>> I think the order of options is important, try to change in something >>>> like: >>>> >>>> ffmpeg -i /dev/video0 -vcodec mpeg4 -map 0.3 -map 0.2 -vtag DIVX -f >>>> video4linux2 -s 320x240 -r 15 >>>> http://localhost:8090/feed1.****ffm< >>>> http://localhost:8090/**feed1.ffm> >>>> >>>> >>>> >>>> I tried just the video stream too, but that gives the same result.. >>>>> what are the output streams? >>>>> >>>>> # ffmpeg -map 0.3 -map 0.2 -an -f video4linux2 -s 320x240 -r 15 -i >>>>> /dev/video0 -vcodec mpeg4 -vtag DIVX http://localhost:8090/feed1.**** >>>>> ffm>>>> feed1.ffm> >>>>> >>>>> You choose 0.3 and 0.2 as input and therefore output,and then disable >>>> audio >>>> with -an that won't work. >>>> >>>> FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1.2, Copyright (c) 2000-2009 >>>>> Fabrice Bellard, et al. >>>>> configuration: --extra-version=4:0.5.1-****1ubuntu1.2 --prefix=/usr >>>>> >>>>> --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib >>>>> --enable-libgsm --enable-libschroedinger --enable-libspeex >>>>> --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib >>>>> --disable-stripping --disable-vhook --enable-runtime-cpudetect >>>>> --enable-gpl --enable-postproc --enable-swscale --enable-x11grab >>>>> --enable-libdc1394 --enable-shared --disable-static >>>>> libavutil 49.15. 0 / 49.15. 0 >>>>> libavcodec 52.20. 1 / 52.20. 1 >>>>> libavformat 52.31. 0 / 52.31. 0 >>>>> libavdevice 52. 1. 0 / 52. 1. 0 >>>>> libavfilter 0. 4. 0 / 0. 4. 0 >>>>> libswscale 0. 7. 1 / 0. 7. 1 >>>>> libpostproc 51. 2. 0 / 51. 2. 0 >>>>> built on Sep 16 2011 17:04:18, gcc: 4.4.3 >>>>> [video4linux2 @ 0x9ce02c0][3]Capabilities: 4000001 >>>>> [video4linux2 @ 0x9ce02c0]The V4L2 driver changed the video from >>>>> 320x240 to 176x144 >>>>> Input #0, video4linux2, from '/dev/video0': >>>>> Duration: N/A, start: 1318328002.348537, bitrate: 6082 kb/s >>>>> Stream #0.0: Video: rawvideo, yuyv422, 176x144, 6082 kb/s, 15 tbr, >>>>> 1000k tbn, 15 tbc >>>>> Number of stream maps must match number of output streams >>>>> ioctl(VIDIOC_QBUF) >>>>> ______________________________****_________________ >>>>> ffmpeg-user mailing list >>>>> ffmpeg-user at ffmpeg.org >>>>> http://ffmpeg.org/mailman/****listinfo/ffmpeg-user >>>>> >>>>> ______________________________****_________________ >>>> ffmpeg-user mailing list >>>> ffmpeg-user at ffmpeg.org >>>> http://ffmpeg.org/mailman/****listinfo/ffmpeg-user >>>> >>>> ______________________________**_________________ >>> ffmpeg-user mailing list >>> ffmpeg-user at ffmpeg.org >>> http://ffmpeg.org/mailman/**listinfo/ffmpeg-user >>> >> > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From benjamin.frazier at gmail.com Thu Oct 13 17:03:29 2011 From: benjamin.frazier at gmail.com (Benjamin Frazier) Date: Thu, 13 Oct 2011 11:03:29 -0400 Subject: [FFmpeg-user] VLC will decode a video but ffmeg will not (How do I get ffmpeg from command prompt to decode) Message-ID: I've got a complicated problem (at least I think it is). I want to use an ffmpeg command from the terminal to transcode a video but can't figure out why ffmeg will not allow me to do it. When I attempt to use ffmpeg from a terminal, I keep getting the error message of: [quote] Something went wrong during header parsing, I will ignore it and try to continue anyway. [avi @ 0x2e087c0] parser not found for codec none, packets or times may be invalid. [avi @ 0x2e087c0] max_analyze_duration 5000000 reached at 5000000 /quote] Here is my ffmeg configuration: [quote] configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-nonfree --enable-postproc --enable-version3 --enable-x11grab [/quote] I know that ffmpeg is being used in VLC to play the video because I can use the following command at a terminal to get it to play: [code]vlc -vvv --codec ffmpeg my_file.avi[/code] Using the "vlc -vvv --codec ffmpeg my_file.avi" command at the terminal shows that output to the terminal and it shows that the libavcodec is being used with the ffmpeg module codec to decode the video: [code] [0xf48e40] avcodec decoder debug: libavcodec initialized (interface 0x344802) [0xf48e40] avcodec decoder debug: trying to use direct rendering [0xf48e40] avcodec decoder debug: ffmpeg codec (Motion JPEG Video) started [0xf48e40] main decoder debug: using decoder module "avcodec" /code] How do I get ffmpeg from the command prompt to use the (Motion JPEG Video) codec to decode the video? Thanks, Ben From h.reindl at thelounge.net Thu Oct 13 17:13:37 2011 From: h.reindl at thelounge.net (Reindl Harald) Date: Thu, 13 Oct 2011 17:13:37 +0200 Subject: [FFmpeg-user] VLC will decode a video but ffmeg will not (How do I get ffmpeg from command prompt to decode) In-Reply-To: References: Message-ID: <4E970021.6070909@thelounge.net> Am 13.10.2011 17:03, schrieb Benjamin Frazier: > How do I get ffmpeg from the command prompt to use the (Motion JPEG Video) > codec to decode the video? usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}... -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 262 bytes Desc: OpenPGP digital signature URL: From elliottbalsley at gmail.com Thu Oct 13 07:10:24 2011 From: elliottbalsley at gmail.com (spookybathtub) Date: Wed, 12 Oct 2011 22:10:24 -0700 (PDT) Subject: [FFmpeg-user] Error with DNxHD 36 MXF files In-Reply-To: References: <4E5D0086.7070907@bbc.co.uk> Message-ID: <1318482624754-3900594.post@n4.nabble.com> It seems Avid MC users the Op-Atom format for its media. It would be great to play these MXF files with ffmpeg. Can anyone tell me why this isn't supported, or if it's a work in progress? -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Error-with-DNxHD-36-MXF-files-tp3778972p3900594.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From Eray.Dogan at mirsis.com.tr Thu Oct 13 18:01:28 2011 From: Eray.Dogan at mirsis.com.tr (Eray Dogan) Date: Thu, 13 Oct 2011 16:01:28 +0000 Subject: [FFmpeg-user] FLV to TS convert problem Message-ID: <6E7F893560C82B45AB1740C935E7ED17250A0FA6@MBTADEX003.mirsis.local> Hi, I'm try to flv file to ts file. Generaly, convert correctly by sometime convertion return 1kb file. My convertion script like as: -i "input.flv" -f mpegts -acodec libmp3lame -ar 48000 -ab 64k -s 320x240 -vcodec libx264 -b 256k -flags +loop -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 -subq 5 -trellis 1 -refs 1 -coder 0 -me_range 16 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -bt 200k -maxrate 96k -bufsize 96k -rc_eq 'blurCplx^(1-qComp)' -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -level 30 -aspect 320:240 -g 30 -async 2 -y "output.ts" -ss 00:00:00 -t 00:00:10" what is my mistake?, May you help me? From dave.bevan at bbc.co.uk Fri Oct 14 00:15:08 2011 From: dave.bevan at bbc.co.uk (Dave Bevan) Date: Thu, 13 Oct 2011 23:15:08 +0100 Subject: [FFmpeg-user] Error with DNxHD 36 MXF files References: <4E5D0086.7070907@bbc.co.uk> <1318482624754-3900594.post@n4.nabble.com> Message-ID: >It seems Avid MC users the Op-Atom format for its media. It would be great >to play these MXF files with ffmpeg. Can anyone tell me why this isn't >supported, or if it's a work in progress? Consider using the excellent http://code.google.com/p/ffmbc/ (we do here in the BBC). --Dave. http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/ms-tnef Size: 3124 bytes Desc: not available URL: From phamsyquybk at gmail.com Fri Oct 14 11:24:14 2011 From: phamsyquybk at gmail.com (Quy Pham Sy) Date: Fri, 14 Oct 2011 18:24:14 +0900 Subject: [FFmpeg-user] Hardcode subtitle in video file Message-ID: Hi, Is it possible to hardcode a subtitle in a video file? if so how to do that? Thanks. Quy From cyrfung at gmail.com Fri Oct 14 12:14:25 2011 From: cyrfung at gmail.com (Ryan Fung) Date: Fri, 14 Oct 2011 18:14:25 +0800 Subject: [FFmpeg-user] Using ffmpeg to convert a live stream to MPEG2 stream? Message-ID: Sorry if this is not what ffmpeg does. I'm looking for a solution to encode live inputs to a live MEPG2 stream for feeding to Apple's segmenter. For input, I can provide series of short movie fragments, or raw frame and audio samples. Is there anyway, ffmpeg or otherwise, this can be done? Thanks. From Eray.Dogan at mirsis.com.tr Fri Oct 14 13:04:52 2011 From: Eray.Dogan at mirsis.com.tr (Eray Dogan) Date: Fri, 14 Oct 2011 11:04:52 +0000 Subject: [FFmpeg-user] FLV to TS convert problem Message-ID: <6E7F893560C82B45AB1740C935E7ED17250A0FDD@MBTADEX003.mirsis.local> Hi, I'm try to flv file to ts file. Generaly, convert correctly by sometime convertion return 1kb file. My convertion script like as: -i "input.flv" -f mpegts -acodec libmp3lame -ar 48000 -ab 64k -s 320x240 -vcodec libx264 -b 256k -flags +loop -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 -subq 5 -trellis 1 -refs 1 -coder 0 -me_range 16 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -bt 200k -maxrate 96k -bufsize 96k -rc_eq 'blurCplx^(1-qComp)' -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -level 30 -aspect 320:240 -g 30 -async 2 -y "output.ts" -ss 00:00:00 -t 00:00:10" what is my mistake?, May you help me? From atish.kathpal at gmail.com Fri Oct 14 13:16:56 2011 From: atish.kathpal at gmail.com (Atish Kathpal) Date: Fri, 14 Oct 2011 16:46:56 +0530 Subject: [FFmpeg-user] FFmpeg API function for transcoding In-Reply-To: References: Message-ID: Hello friends Your insights would be of great help. Please throw some light on my newbie question. Regards Atish On Thu, Oct 13, 2011 at 4:37 PM, Atish Kathpal wrote: > I mean to ask, if there is an API that looks like this: > > TranscodeVideo(InFilePath, OutFilePath, *argumentslist[]); > > Or the only way to do this with the FFmpeg APIs is to read the input file > one frame at a time and then encode/decode it according to requirements? > > In either case, it will be useful if you could point me to useful > documentations. Please tell me if the former is possible with the given APIs > without having to code for every frame. > > Regards > Atish > > > On Thu, Oct 13, 2011 at 4:27 PM, Atish Kathpal wrote: > >> Hello >> >> Can anyone point me to the function in libavformat/libavcodec APIs of >> FFmpeg which can transcode an input video file to an outputvideo file of >> choice. >> >> I am basically looking for the corresponding function in API that is an >> equivalent of the CLI command, say: ffmpeg -i /tmp/test.yuv /tmp/out.avi >> >> Please help me out. >> >> Regards >> Atish >> > > From rogerdpack2 at gmail.com Fri Oct 14 14:54:26 2011 From: rogerdpack2 at gmail.com (Roger Pack) Date: Fri, 14 Oct 2011 06:54:26 -0600 Subject: [FFmpeg-user] Using ffmpeg to convert a live stream to MPEG2 stream? In-Reply-To: References: Message-ID: > I'm looking for a solution to encode live inputs to a live MEPG2 stream for > feeding to Apple's segmenter. For input, I can provide series of short movie > fragments, or raw frame and audio samples. Is there anyway, ffmpeg or > otherwise, this can be done? ffmpeg can output to pipe.. http://wiki.videolan.org/Uncommon_uses From rogerdpack2 at gmail.com Fri Oct 14 14:55:05 2011 From: rogerdpack2 at gmail.com (Roger Pack) Date: Fri, 14 Oct 2011 06:55:05 -0600 Subject: [FFmpeg-user] Streaming a data stream In-Reply-To: References: Message-ID: > Is it possible to stream an MPEG-TS file which includes besides the video > and audio stream also a > data stream? You want to stream the data stream? From rogerdpack2 at gmail.com Fri Oct 14 15:23:33 2011 From: rogerdpack2 at gmail.com (Roger Pack) Date: Fri, 14 Oct 2011 07:23:33 -0600 Subject: [FFmpeg-user] VLC will decode a video but ffmeg will not (How do I get ffmpeg from command prompt to decode) In-Reply-To: References: Message-ID: > How do I get ffmpeg from the command prompt to use the (Motion JPEG Video) > codec to decode the video? -vcodec mjpeg before the input might work. From rogerdpack2 at gmail.com Fri Oct 14 15:28:49 2011 From: rogerdpack2 at gmail.com (Roger Pack) Date: Fri, 14 Oct 2011 07:28:49 -0600 Subject: [FFmpeg-user] Input from named pipes In-Reply-To: <1318278772606-3891727.post@n4.nabble.com> References: <1318278772606-3891727.post@n4.nabble.com> Message-ID: Maybe try to specify the input type too: -f mpegts or the like. Maybe you can output through stdout instead of a named pipe? -r From atish.kathpal at gmail.com Fri Oct 14 16:30:19 2011 From: atish.kathpal at gmail.com (Atish Kathpal) Date: Fri, 14 Oct 2011 20:00:19 +0530 Subject: [FFmpeg-user] FFmpeg API function for transcoding In-Reply-To: References: Message-ID: Any tips? Regards Atish On Fri, Oct 14, 2011 at 4:46 PM, Atish Kathpal wrote: > Hello friends > > Your insights would be of great help. Please throw some light on my newbie > question. > > Regards > Atish > > > On Thu, Oct 13, 2011 at 4:37 PM, Atish Kathpal wrote: > >> I mean to ask, if there is an API that looks like this: >> >> TranscodeVideo(InFilePath, OutFilePath, *argumentslist[]); >> >> Or the only way to do this with the FFmpeg APIs is to read the input file >> one frame at a time and then encode/decode it according to requirements? >> >> In either case, it will be useful if you could point me to useful >> documentations. Please tell me if the former is possible with the given APIs >> without having to code for every frame. >> >> Regards >> Atish >> >> >> On Thu, Oct 13, 2011 at 4:27 PM, Atish Kathpal wrote: >> >>> Hello >>> >>> Can anyone point me to the function in libavformat/libavcodec APIs of >>> FFmpeg which can transcode an input video file to an outputvideo file of >>> choice. >>> >>> I am basically looking for the corresponding function in API that is an >>> equivalent of the CLI command, say: ffmpeg -i /tmp/test.yuv /tmp/out.avi >>> >>> >>> Please help me out. >>> >>> Regards >>> Atish >>> >> >> > From gaurav.g at sasken.com Fri Oct 14 16:39:20 2011 From: gaurav.g at sasken.com (Gaurav G) Date: Fri, 14 Oct 2011 20:09:20 +0530 Subject: [FFmpeg-user] FFmpeg API function for transcoding In-Reply-To: References: , Message-ID: <6F91E0FFDA542149961F7BDED2D2B94B22636C387A@EXGMBX01.sasken.com> Hi Atish, As per my understanding of the FFMPEG i do not think we have a direct API for transcoding. We need to use the existing API of FFMPEG to make the transcoding application. Thanks, Gaurav ________________________________________ From: ffmpeg-user-bounces at ffmpeg.org [ffmpeg-user-bounces at ffmpeg.org] On Behalf Of Atish Kathpal [atish.kathpal at gmail.com] Sent: Friday, October 14, 2011 8:00 PM To: ffmpeg-user at ffmpeg.org Subject: Re: [FFmpeg-user] FFmpeg API function for transcoding Any tips? Regards Atish On Fri, Oct 14, 2011 at 4:46 PM, Atish Kathpal wrote: > Hello friends > > Your insights would be of great help. Please throw some light on my newbie > question. > > Regards > Atish > > > On Thu, Oct 13, 2011 at 4:37 PM, Atish Kathpal wrote: > >> I mean to ask, if there is an API that looks like this: >> >> TranscodeVideo(InFilePath, OutFilePath, *argumentslist[]); >> >> Or the only way to do this with the FFmpeg APIs is to read the input file >> one frame at a time and then encode/decode it according to requirements? >> >> In either case, it will be useful if you could point me to useful >> documentations. Please tell me if the former is possible with the given APIs >> without having to code for every frame. >> >> Regards >> Atish >> >> >> On Thu, Oct 13, 2011 at 4:27 PM, Atish Kathpal wrote: >> >>> Hello >>> >>> Can anyone point me to the function in libavformat/libavcodec APIs of >>> FFmpeg which can transcode an input video file to an outputvideo file of >>> choice. >>> >>> I am basically looking for the corresponding function in API that is an >>> equivalent of the CLI command, say: ffmpeg -i /tmp/test.yuv /tmp/out.avi >>> >>> >>> Please help me out. >>> >>> Regards >>> Atish >>> >> >> > _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user SASKEN BUSINESS DISCLAIMER: This message may contain confidential, proprietary or legally privileged information. In case you are not the original intended Recipient of the message, you must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message and you are requested to delete it and inform the sender. Any views expressed in this message are those of the individual sender unless otherwise stated. Nothing contained in this message shall be construed as an offer or acceptance of any offer by Sasken Communication Technologies Limited ("Sasken") unless sent with that express intent and with due authority of Sasken. Sasken has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email. Read Disclaimer at http://www.sasken.com/extras/mail_disclaimer.html From fcassia at gmail.com Fri Oct 14 16:55:09 2011 From: fcassia at gmail.com (Fernando Cassia) Date: Fri, 14 Oct 2011 11:55:09 -0300 Subject: [FFmpeg-user] RealVideo 8 encoding, possible? Message-ID: I have a need to encode real-time video from a webcam into RealVideo 8. Before someone asks why or warns me against it, let me tell you that this video is to be viewed by ancient computers which already have a port of realplayer 8 and the realvideo codec optimized to display 320x240 at 30fps on a 400 mhz transmeta crusoe cpu. That?s why I need the video to be rv8 and not another codec. The question is: can FFMPEG produce RV8 ?. If not, anyone here knows any other open source solution (besides realencoder, which is not). Finally, I remember 10 years ago there were producs (ISA or PCI boards) that did RealVideo G2 encoding on hardware (on a chip). Is there any hardware product (failing the above, that is, using FFMPEG) capable of encoding rv8 in hardware, with a minimum of cpu use? TIA. FC From rhkramer at gmail.com Fri Oct 14 19:53:19 2011 From: rhkramer at gmail.com (Randy Kramer) Date: Fri, 14 Oct 2011 13:53:19 -0400 Subject: [FFmpeg-user] Problem: some videos freeze, other very similar videos do not--difference might be just in resolution (pixels)--how to convert? Message-ID: <201110141353.19987.rhkramer@gmail.com> Background: I have what is probably a marginal system for playing videos, especially when I have other applications open. Still, many videos play fine, properly displaying video and playing audio (combined). On the other hand, some don't play--well, what I mean is, the audio plays, but the video freezes, showing only the first frame. Sometimes when that happens, I can shut down applications, or close web pages in a browser, or similar things, and when I try gmplayer again, the video works fine. That is why I describe my system as marginal. Below is the output from 2 such videos. video1 freezes often, video2 has never frozen. The only significant difference I can see is that the one that freezes was apparently originally recorded at 320x240, while the one that never freezes was apparently originally recorded at 480x360. (I should note that I'm a novice at videos, and [g]mplay and ffmpeg, so I may be misinterpreting some of the information I see.) The screen I display the videos on is 800x600 pixels. I'm assuming that [g]mplay has to do more work to get the 320x240 video to 800x600 than the 480x360 video, hence the reason the 320x240 video often freezes. Does that make sense? Presumably, what I need to do then is convert the 320x240 video(s) to something like 480x360. (I guess I could convert them to 800x600, but I'm assuming that would require more disk space, which I'd rather avoid.) If this sounds like I'm on the right track, can someone suggest an ffmpeg command that will let me convert the 320x240 videos to 480x360? Thanks! Randy Kramer = rhk at s17:/back2/videos/music_vid$ mplayer video1.flv MPlayer dev-SVN-r26940 CPU: Intel(R) Celeron(R) CPU 3.06GHz (Family: 15, Model: 4, Stepping: 1) CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1 Compiled with runtime CPU detection. Can't open joystick device /dev/input/js0: No such file or directory Can't init input joystick mplayer: could not connect to socket mplayer: No such file or directory Failed to open LIRC support. You will not be able to use your remote control. Playing video1.flv. libavformat file format detected. [lavf] Video stream found, -vid 0 [lavf] Audio stream found, -aid 1 VIDEO: [H264] 320x240 0bpp 1000.000 fps 0.0 kbps ( 0.0 kbyte/s) ========================================================================== Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264) ========================================================================== ========================================================================== Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding) FAAD: compressed input bitrate missing, assuming 128kbit/s! AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400) Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio) decoder) ========================================================================== AO: [alsa] 44100Hz 2ch s16le (2 bytes per sample) Starting playback... VDec: vo config request - 320 x 240 (preferred colorspace: Planar YV12) VDec: using Planar YV12 as output csp (no 0) Movie-Aspect is 1.33:1 - prescaling to correct movie aspect. VO: [xv] 320x240 => 320x240 Planar YV12 [fs] = = rhk at s17:/back2/videos/music_vid$ mplayer video2.flv MPlayer dev-SVN-r26940 CPU: Intel(R) Celeron(R) CPU 3.06GHz (Family: 15, Model: 4, Stepping: 1) CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1 Compiled with runtime CPU detection. Can't open joystick device /dev/input/js0: No such file or directory Can't init input joystick mplayer: could not connect to socket mplayer: No such file or directory Failed to open LIRC support. You will not be able to use your remote control. Playing video2.flv. libavformat file format detected. [h264 @ 0x87a0ff0]brainfart cropping not supported, this could look slightly wrong ... [lavf] Video stream found, -vid 0 [lavf] Audio stream found, -aid 1 VIDEO: [H264] 480x360 0bpp 29.917 fps 0.0 kbps ( 0.0 kbyte/s) ========================================================================== Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264) ========================================================================== ========================================================================== Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding) FAAD: compressed input bitrate missing, assuming 128kbit/s! AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400) Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio) decoder) ========================================================================== AO: [alsa] 44100Hz 2ch s16le (2 bytes per sample) Starting playback... [h264 @ 0x87a0ff0]brainfart cropping not supported, this could look slightly wrong ... VDec: vo config request - 480 x 360 (preferred colorspace: Planar YV12) VDec: using Planar YV12 as output csp (no 0) Movie-Aspect is 1.33:1 - prescaling to correct movie aspect. VO: [xv] 480x360 => 480x360 Planar YV12 [fs] A: 8.0 V: 8.0 A-V: 0.000 ct: 0.024 0/ 0 14% 4% 1.1% 4 0 = From public at stevenocchipinti.com Fri Oct 14 12:51:41 2011 From: public at stevenocchipinti.com (Steven Occhipinti) Date: Fri, 14 Oct 2011 21:51:41 +1100 Subject: [FFmpeg-user] Newbie streaming problem In-Reply-To: <4E96F582.1070100@zonnet.nl> References: <4E93F387.7070407@zonnet.nl> <4E9455DE.1000605@zonnet.nl> <4E95BA5A.9010500@zonnet.nl> <4E96F582.1070100@zonnet.nl> Message-ID: Hi, I had a look at v4lctl but other than setting attributes like contrast, etc. I couldn't see any way of specifying inputs/outputs. I've been playing around for a while, and then I came across this: http://www.moreno.marzolla.name/software/camera_control/#using_webcam Very similar situation to mine, so I grabbed this persons config file: http://www.moreno.marzolla.name/software/camera_control/ffserver.conf Then ran this command: # ffserver -f ~/ffserver.conf & ffmpeg -v 2 -r 5 -s 640x480 -f video4linux2 -i /dev/video0 http://localhost:8090/webcam.ffm And it started streaming! It was really slow - but it was something! The mjpeg stream was the fastest (just a refreshing jpeg in a webpage) The asf stream has about 10 seconds lag The flv stream I couldn't really test as I dont have a flash player.. yet. Now I just have to work out how to speed this up! I do eventually want this stream to be as cross-platform compliant as possible. (i.e. desktop and mobile web browsers, iphone apps, android apps, etc.) Thank you very much for all your help and your patience, I really appreciate it. On Fri, Oct 14, 2011 at 1:28 AM, belcampo wrote: > On 10/13/2011 02:35 PM, Steven Occhipinti wrote: > >> On Thu, Oct 13, 2011 at 3:03 AM, belcampo wrote: >> >> On 10/12/2011 02:07 PM, Steven Occhipinti wrote: >>> >>> Thanks, must be close now. >>>> >>>> I thought the -an would be a little contradicting, but I tried removing >>>> one >>>> of the -map options instead of removing the -an option. Either way, >>>> rearranging the options as you suggested helped, but I'm getting a >>>> different >>>> error now. >>>> >>>> I'm no webcam/video4linux2 guru, so I'm guessing a little bit. >>> Earlier you stated that you could create a playable mp4 with the command >>> >>> >>> ffmpeg -an -f video4linux2 -s 320x240 -r 15 -i /dev/video0 >>> -vcodec mpeg4 -vtag DIVX /tmp/test.mp4 >>> >>> Does the later used command also produce a playable file? >>> >>> ffmpeg -i /dev/video0 -vcodec mpeg4 -map 0.3 -map 0.2 -vtag DIVX -f >>> video4linux2 -s 320x240 -r 15 /tmp/test.mp4 >>> >>> This does not produce a playable file, I get this error: >> [video4linux2 @ 0x823a2c0]Wrong size (0x0) >> /dev/video0: Error while opening file >> >> >> if not, maybe placing -f video4linux2 >>> in front of -i makes a difference >>> >>> I've found the -f video4linux2 must be before the -i /dev/video1, >> otherwise >> I get an "Unknown format" error. >> That also matches other examples I have found. >> >> I was also getting a "Wrong size (0x0)" error, and so I have moved all >> other >> arguments between the -f and the -i to fix that. >> After a fair amount of experimenting, this is the best I can come up with: >> >> # ffmpeg -f video4linux2 -s 320x240 -r 15 -vcodec mpeg4 -map 0.3 -map 0.2 >> -vtag DIVX -i /dev/video0 http://localhost:8090/feed1.**ffm >> FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1.2, Copyright (c) 2000-2009 >> Fabrice Bellard, et al. >> configuration: --extra-version=4:0.5.1-**1ubuntu1.2 --prefix=/usr >> --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib >> --enable-libgsm --enable-libschroedinger --enable-libspeex >> --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib >> --disable-stripping --disable-vhook --enable-runtime-cpudetect >> --enable-gpl >> --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 >> --enable-shared --disable-static >> libavutil 49.15. 0 / 49.15. 0 >> libavcodec 52.20. 1 / 52.20. 1 >> libavformat 52.31. 0 / 52.31. 0 >> libavdevice 52. 1. 0 / 52. 1. 0 >> libavfilter 0. 4. 0 / 0. 4. 0 >> libswscale 0. 7. 1 / 0. 7. 1 >> libpostproc 51. 2. 0 / 51. 2. 0 >> built on Sep 16 2011 17:04:18, gcc: 4.4.3 >> [video4linux2 @ 0x9b322d0][3]Capabilities: 4000001 >> [video4linux2 @ 0x9b322d0]The V4L2 driver changed the video from 320x240 >> to >> 176x144 >> Input #0, video4linux2, from '/dev/video0': >> Duration: N/A, start: 1318508978.203480, bitrate: 6082 kb/s >> Stream #0.0: Video: mpeg4, yuyv422, 176x144, 6082 kb/s, 15 tbr, 1000k >> tbn, 15 tbc >> Number of stream maps must match number of output streams >> ioctl(VIDIOC_QBUF) >> >> >> I also experimented with different -map options, but no luck. >> Is there a way I can ensure which streams need to set with -map. >> The man page says it maps input streams to output streams, but it looks >> like >> there is only 1 input stream and 4 output streams. >> > The term stream confuses I think, you have 1 webcam which can produce 2 > video streams, and 2 audio streams, where the difference is the quaility. > Video resolution of 320x240 or 176x144 and audio bitrate of 32kb/s or > 64kb/s. > Maybe, again I'm no webcam guru, you should have a look at the program > v4l2-ctl to set the webcam in one of the different quality modes. After > 'setting' this you only will have one video and one audio stream, which > perhaps makes the map function obsolete. Give it a try, maybe it'll solve > all or a few of the problems. > >> >> Man page: >> -map input_stream_id[:sync_stream_**id] >> Set stream mapping from input streams to output streams. Just >> enumerate >> the input streams in the order you want them in the output. >> sync_stream_id >> if specified sets the input stream to sync against. >> >> It looks like it take input streams as argument, which I think I only have >> 1 >> of. >> When I run it without the -map options, it lists 1 input stream and 4 >> output >> streams: >> # ffmpeg -f video4linux2 -s 320x240 -r 15 -vcodec mpeg4 -vtag DIVX -i >> /dev/video0 http://localhost:8090/feed1.**ffm >> FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1.2, Copyright (c) 2000-2009 >> Fabrice Bellard, et al. >> configuration: --extra-version=4:0.5.1-**1ubuntu1.2 --prefix=/usr >> --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib >> --enable-libgsm --enable-libschroedinger --enable-libspeex >> --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib >> --disable-stripping --disable-vhook --enable-runtime-cpudetect >> --enable-gpl >> --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 >> --enable-shared --disable-static >> libavutil 49.15. 0 / 49.15. 0 >> libavcodec 52.20. 1 / 52.20. 1 >> libavformat 52.31. 0 / 52.31. 0 >> libavdevice 52. 1. 0 / 52. 1. 0 >> libavfilter 0. 4. 0 / 0. 4. 0 >> libswscale 0. 7. 1 / 0. 7. 1 >> libpostproc 51. 2. 0 / 51. 2. 0 >> built on Sep 16 2011 17:04:18, gcc: 4.4.3 >> [video4linux2 @ 0x812c2d0][3]Capabilities: 4000001 >> [video4linux2 @ 0x812c2d0]The V4L2 driver changed the video from 320x240 >> to >> 176x144 >> Input #0, video4linux2, from '/dev/video0': >> Duration: N/A, start: 1318509208.059178, bitrate: 6082 kb/s >> Stream #0.0: Video: mpeg4, yuyv422, 176x144, 6082 kb/s, 15 tbr, 1000k >> tbn, 15 tbc >> Output #0, ffm, to 'http://localhost:8090/feed1.**ffm >> ': >> Stream #0.0: Audio: mp2, 44100 Hz, mono, s16, 32 kb/s >> Stream #0.1: Video: mpeg4, yuv420p, 176x144, q=3-31, 64 kb/s, 1000k >> tbn, >> 3 tbc >> Stream #0.2: Audio: mp2, 22050 Hz, mono, s16, 64 kb/s >> Stream #0.3: Video: msmpeg4, yuv420p, 352x240, q=3-31, 256 kb/s, 1000k >> tbn, 15 tbc >> Could not find input stream matching output stream #0.0 >> ioctl(VIDIOC_QBUF) >> >> These "streams" still confuse me :S >> >> >> So maybe try >>> ffmpeg -f video4linux2 -i /dev/video0 -vcodec mpeg4 -map 0.3 -map 0.2 >>> -vtag DIVX >>> -s 320x240 -r 15 /tmp/test.mp4 >>> >>> >> # ffmpeg -i /dev/video0 -vcodec mpeg4 -map 0.3 -map 0.2 -vtag DIVX -f >>>> video4linux2 -s 320x240 -r 15 http://localhost:8090/feed1.****ffm >>>> > >>>> >>>> FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1.2, Copyright (c) 2000-2009 >>>> Fabrice Bellard, et al. >>>> configuration: --extra-version=4:0.5.1-****1ubuntu1.2 --prefix=/usr >>>> --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib >>>> --enable-libgsm --enable-libschroedinger --enable-libspeex >>>> --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib >>>> --disable-stripping --disable-vhook --enable-runtime-cpudetect >>>> --enable-gpl >>>> --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 >>>> --enable-shared --disable-static >>>> libavutil 49.15. 0 / 49.15. 0 >>>> libavcodec 52.20. 1 / 52.20. 1 >>>> libavformat 52.31. 0 / 52.31. 0 >>>> libavdevice 52. 1. 0 / 52. 1. 0 >>>> libavfilter 0. 4. 0 / 0. 4. 0 >>>> libswscale 0. 7. 1 / 0. 7. 1 >>>> libpostproc 51. 2. 0 / 51. 2. 0 >>>> built on Sep 16 2011 17:04:18, gcc: 4.4.3 >>>> /dev/video0: Unknown format >>>> >>>> >>>> Sorry to keep asking like this :( >>>> I wouldn't have thought it would compain about "-f video4linux2" as that >>>> was >>>> one of the options I thought I got right initially when I recorded my >>>> first >>>> video clip. >>>> >>>> Any ideas? >>>> I appreciate you help! >>>> >>>> >>>> On Wed, Oct 12, 2011 at 1:42 AM, belcampo wrote: >>>> >>>> On 10/11/2011 12:15 PM, Steven Occhipinti wrote: >>>> >>>>> On Tue, Oct 11, 2011 at 6:43 PM, belcampo >>>>> wrote: >>>>> >>>>>> On 10/11/2011 04:26 AM, Steven Occhipinti wrote: >>>>>> >>>>>>> Hi, >>>>>>> >>>>>>>> I'm pretty new to ffmpeg and am a little confused on how ffserver >>>>>>>> works. >>>>>>>> My goal is to stream a webcam from one machine to (one or more) >>>>>>>> others. >>>>>>>> Ideally I would want the client machine to only require a web >>>>>>>> browser >>>>>>>> and the basic plugins, etc. to view the stream. >>>>>>>> >>>>>>>> I have Ubuntu 10.04.3 server installed and ffmpeg/ffserver from the >>>>>>>> repo. >>>>>>>> If I run this command to test the webcam and it starts up and a >>>>>>>> video >>>>>>>> file is successfully recorded /tmp/test.mp4: >>>>>>>> #> ffmpeg -an -f video4linux2 -s 320x240 -r 15 -i >>>>>>>> /dev/video0 >>>>>>>> -vcodec mpeg4 -vtag DIVX /tmp/test.mp4 >>>>>>>> I copied /etc/ffserver.conf to my home dir - I think I need to tweak >>>>>>>> this file a bit, but need a little help. >>>>>>>> I ran this command and it started a server on localhost:8090 >>>>>>>> #> ffserver -f ~/ffserver.conf >>>>>>>> I then ran >>>>>>>> #> ffmpeg -an -f video4linux2 -s 320x240 -r 15 -i >>>>>>>> /dev/video0 >>>>>>>> -vcodec mpeg4 -vtag DIVX http://localhost:8090/feed1.******ffm >>>>>>>> >>>>>>>> > >>>>>>>> >>>>>>>> >>>>>>>> >> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> and this is the output I get: >>>>>>>> >>>>>>>> #> ffmpeg -an -f video4linux2 -s 320x240 -r 15 -i >>>>>>>> /dev/video0 >>>>>>>> -vcodec mpeg4 -vtag DIVX http://localhost:8090/feed1.******ffm >>>>>>>> >>>>>>>> > >>>>>>>> >>>>>>>> >>>>>>>> >> >>>>>>>> >>>>>>>> >>>>>>>> FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1.2, Copyright (c) >>>>>>>> 2000-2009 >>>>>>>> Fabrice Bellard, et al. >>>>>>>> configuration: --extra-version=4:0.5.1-******1ubuntu1.2 >>>>>>>> --prefix=/usr >>>>>>>> >>>>>>>> >>>>>>>> --enable-avfilter --enable-avfilter-lavf --enable-vdpau >>>>>>>> --enable-bzlib >>>>>>>> --enable-libgsm --enable-libschroedinger --enable-libspeex >>>>>>>> --enable-libtheora --enable-libvorbis --enable-pthreads >>>>>>>> --enable-zlib >>>>>>>> --disable-stripping --disable-vhook --enable-runtime-cpudetect >>>>>>>> --enable-gpl --enable-postproc --enable-swscale --enable-x11grab >>>>>>>> --enable-libdc1394 --enable-shared --disable-static >>>>>>>> libavutil 49.15. 0 / 49.15. 0 >>>>>>>> libavcodec 52.20. 1 / 52.20. 1 >>>>>>>> libavformat 52.31. 0 / 52.31. 0 >>>>>>>> libavdevice 52. 1. 0 / 52. 1. 0 >>>>>>>> libavfilter 0. 4. 0 / 0. 4. 0 >>>>>>>> libswscale 0. 7. 1 / 0. 7. 1 >>>>>>>> libpostproc 51. 2. 0 / 51. 2. 0 >>>>>>>> built on Sep 16 2011 17:04:18, gcc: 4.4.3 >>>>>>>> [video4linux2 @ 0x89092c0][3]Capabilities: 4000001 >>>>>>>> [video4linux2 @ 0x89092c0]The V4L2 driver changed the video from >>>>>>>> 320x240 to 176x144 >>>>>>>> Input #0, video4linux2, from '/dev/video0': >>>>>>>> Duration: N/A, start: 1318298315.446232, bitrate: 6082 kb/s >>>>>>>> Stream #0.0: Video: rawvideo, yuyv422, 176x144, 6082 kb/s, 15 >>>>>>>> tbr, >>>>>>>> 1000k tbn, 15 tbc >>>>>>>> Output #0, ffm, to 'http://localhost:8090/feed1.******ffm >>>>>>>> >>>>>>>> > >>>>>>>> >>>>>>>> >>>>>>>> >> >>>>>>>> >>>>>>>> >>>>>>>> ': >>>>>>>> Stream #0.0: Audio: mp2, 44100 Hz, mono, s16, 32 kb/s >>>>>>>> Stream #0.1: Video: mpeg1video, yuv420p, 176x144, q=3-31, 64 >>>>>>>> kb/s, >>>>>>>> 1000k tbn, 3 tbc >>>>>>>> Stream #0.2: Audio: mp2, 22050 Hz, mono, s16, 64 kb/s >>>>>>>> Stream #0.3: Video: msmpeg4, yuv420p, 352x240, q=3-31, 256 kb/s, >>>>>>>> 1000k tbn, 15 tbc >>>>>>>> Could not find input stream matching output stream #0.0 >>>>>>>> ioctl(VIDIOC_QBUF) >>>>>>>> >>>>>>>> >>>>>>>> I'm assuming I need to setup a more suitable definition >>>>>>>> to >>>>>>>> match the input, but after some fiddling I can't seem to get it >>>>>>>> working. >>>>>>>> >>>>>>>> Your camera is providing 2 video and 2 audio streams you need to >>>>>>>> use >>>>>>>> >>>>>>> the >>>>>>> map >>>>>>> function to make it work. >>>>>>> Adding -map 0.3 -map 0.2 to your ffmpeg command line will choose the >>>>>>> higher >>>>>>> definition video and audio. >>>>>>> >>>>>>> I've attached my ffserver.conf - Any help is much appreciated. >>>>>>> >>>>>>>> >>>>>>>> Cheers, >>>>>>>> Steve >>>>>>>> >>>>>>>> >>>>>>>> ______________________________******_________________ >>>>>>>> ffmpeg-user mailing list >>>>>>>> ffmpeg-user at ffmpeg.org >>>>>>>> http://ffmpeg.org/mailman/******listinfo/ffmpeg-user >>>>>>>> >>>>>>>> > >>>>>>>> >>>>>>>> >>>>>>>> > >>>>>>>> ______________________________******_________________ >>>>>>>> >>>>>>> ffmpeg-user mailing list >>>>>>> ffmpeg-user at ffmpeg.org >>>>>>> http://ffmpeg.org/mailman/******listinfo/ffmpeg-user >>>>>>> >>>>>>> > >>>>>>> >>>>>>> >>>>>>> > >>>>>>> >>>>>>> >>>>>>> Thanks for your prompt reply. >>>>>>> >>>>>> Your reply makes sense to me, but when I add those 2 map options, I >>>>>> get this error: >>>>>> "Number of stream maps must match number of output streams" >>>>>> >>>>>> I think the order of options is important, try to change in something >>>>>> >>>>> like: >>>>> >>>>> ffmpeg -i /dev/video0 -vcodec mpeg4 -map 0.3 -map 0.2 -vtag DIVX -f >>>>> video4linux2 -s 320x240 -r 15 >>>>> http://localhost:8090/feed1.******ffm >>>>> >>>>> >< >>>>> http://localhost:8090/**feed1.**ffm >>>>> >> >>>>> >>>>> >>>>> >>>>> >>>>> I tried just the video stream too, but that gives the same result.. >>>>> >>>>>> what are the output streams? >>>>>> >>>>>> # ffmpeg -map 0.3 -map 0.2 -an -f video4linux2 -s 320x240 -r 15 -i >>>>>> /dev/video0 -vcodec mpeg4 -vtag DIVX http://localhost:8090/feed1.**** >>>>>> ** >>>>>> ffm >>>>>> > >>>>>> feed1.ffm >>>>>> >> >>>>>> >>>>>> >>>>>> You choose 0.3 and 0.2 as input and therefore output,and then disable >>>>>> >>>>> audio >>>>> with -an that won't work. >>>>> >>>>> FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1.2, Copyright (c) 2000-2009 >>>>> >>>>>> Fabrice Bellard, et al. >>>>>> configuration: --extra-version=4:0.5.1-******1ubuntu1.2 >>>>>> --prefix=/usr >>>>>> >>>>>> >>>>>> --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib >>>>>> --enable-libgsm --enable-libschroedinger --enable-libspeex >>>>>> --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib >>>>>> --disable-stripping --disable-vhook --enable-runtime-cpudetect >>>>>> --enable-gpl --enable-postproc --enable-swscale --enable-x11grab >>>>>> --enable-libdc1394 --enable-shared --disable-static >>>>>> libavutil 49.15. 0 / 49.15. 0 >>>>>> libavcodec 52.20. 1 / 52.20. 1 >>>>>> libavformat 52.31. 0 / 52.31. 0 >>>>>> libavdevice 52. 1. 0 / 52. 1. 0 >>>>>> libavfilter 0. 4. 0 / 0. 4. 0 >>>>>> libswscale 0. 7. 1 / 0. 7. 1 >>>>>> libpostproc 51. 2. 0 / 51. 2. 0 >>>>>> built on Sep 16 2011 17:04:18, gcc: 4.4.3 >>>>>> [video4linux2 @ 0x9ce02c0][3]Capabilities: 4000001 >>>>>> [video4linux2 @ 0x9ce02c0]The V4L2 driver changed the video from >>>>>> 320x240 to 176x144 >>>>>> Input #0, video4linux2, from '/dev/video0': >>>>>> Duration: N/A, start: 1318328002.348537, bitrate: 6082 kb/s >>>>>> Stream #0.0: Video: rawvideo, yuyv422, 176x144, 6082 kb/s, 15 tbr, >>>>>> 1000k tbn, 15 tbc >>>>>> Number of stream maps must match number of output streams >>>>>> ioctl(VIDIOC_QBUF) >>>>>> ______________________________******_________________ >>>>>> ffmpeg-user mailing list >>>>>> ffmpeg-user at ffmpeg.org >>>>>> http://ffmpeg.org/mailman/******listinfo/ffmpeg-user >>>>>> >>>>>> > >>>>>> >>>>>> >>>>>> > >>>>>> ______________________________******_________________ >>>>>> >>>>> ffmpeg-user mailing list >>>>> ffmpeg-user at ffmpeg.org >>>>> http://ffmpeg.org/mailman/******listinfo/ffmpeg-user >>>>> >>>>> > >>>>> >>>>> >>>>> > >>>>> ______________________________****_________________ >>>>> >>>> ffmpeg-user mailing list >>>> ffmpeg-user at ffmpeg.org >>>> http://ffmpeg.org/mailman/****listinfo/ffmpeg-user >>>> >>>> > >>>> >>>> >>> ______________________________**_________________ >> ffmpeg-user mailing list >> ffmpeg-user at ffmpeg.org >> http://ffmpeg.org/mailman/**listinfo/ffmpeg-user >> > > ______________________________**_________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/**listinfo/ffmpeg-user > From rogerdpack2 at gmail.com Fri Oct 14 22:42:17 2011 From: rogerdpack2 at gmail.com (Roger Pack) Date: Fri, 14 Oct 2011 14:42:17 -0600 Subject: [FFmpeg-user] Problem: some videos freeze, other very similar videos do not--difference might be just in resolution (pixels)--how to convert? In-Reply-To: <201110141353.19987.rhkramer@gmail.com> References: <201110141353.19987.rhkramer@gmail.com> Message-ID: > Sometimes when that happens, I can shut down applications, or close web pages > in a browser, or similar things, and when I try gmplayer again, the video > works fine. ?That is why I describe my system as marginal. does ffplay show the same weirdness? From rhkramer at gmail.com Fri Oct 14 23:28:03 2011 From: rhkramer at gmail.com (Randy Kramer) Date: Fri, 14 Oct 2011 17:28:03 -0400 Subject: [FFmpeg-user] Problem: some videos freeze, other very similar videos do not--difference might be just in resolution (pixels)--how to convert? In-Reply-To: References: <201110141353.19987.rhkramer@gmail.com> Message-ID: <201110141728.03581.rhkramer@gmail.com> On Friday 14 October 2011 04:42:17 pm Roger Pack wrote: > > Sometimes when that happens, I can shut down applications, or close web > > pages in a browser, or similar things, and when I try gmplayer again, the > > video works fine. ?That is why I describe my system as marginal. > > does ffplay show the same weirdness? No, but I suspect ffplay uses fewer resources. I prefer to use gmplay for a few reasons, among them the video is displayed on all 8 of my desktops, so I can switch between desktops to work while videos are displayed. (Hopefully I'm paying (more) attention to what I'm doing than the videos.) Randy Kramer From unga888 at yahoo.com Mon Oct 17 07:47:50 2011 From: unga888 at yahoo.com (Unga) Date: Sun, 16 Oct 2011 22:47:50 -0700 (PDT) Subject: [FFmpeg-user] AVCodecContext returns wrong height Message-ID: <1318830470.87707.YahooMailNeo@web160120.mail.bf1.yahoo.com> Hi all In my sample program I get wrong video height, ie, instead of 1080, I get 1088! Example: Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/Shaggy/It Wasn't Me - Shaggy - HD 1080p.mp4': ? Metadata: ??? major_brand???? : mp42 ??? minor_version?? : 0 ??? compatible_brands: isomavc1mp42 ??? creation_time?? : 2010-03-17 14:36:11 ? Duration: 00:04:54.12, start: 0.000000, bitrate: 3673 kb/s ??? Stream #0.0(und): Audio: aac, 44100 Hz, stereo, s16, 125 kb/s ??? Metadata: ????? creation_time?? : 2010-03-17 14:36:11 ??? Stream #0.1(und): Video: h264 (High), yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 3545 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc ??? Metadata: ????? creation_time?? : 2010-03-17 14:36:12 sample_aspect_ratio: 1.0000000000 pCodecCtx->width: 1920 pCodecCtx->height: 1088? <<<<<<<<< aspect_ratio: 1.7647058964 mode.w: 1366 mode.h: 768 dst_w: 1366 dst_h: 774 This could most probably a programming error, but I don't see. Appreciate very much if someone could help me to identify the error. The program is attached. Its a C program and compilation instructions are found at beginning of the file. Many thanks in advance. Best regards Unga -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: tutorial03a.c URL: From ehouitte at yacast.fr Mon Oct 17 10:52:53 2011 From: ehouitte at yacast.fr (Emmanuel HOUITTE) Date: Mon, 17 Oct 2011 10:52:53 +0200 Subject: [FFmpeg-user] Bad palette in decoding MPEG2 Subtitle Message-ID: <7C0B03E609BB5B4CBF496040DCF482FBFB5B56EBD5@MAILBOX01.yacast.fr> Hi, I'm trying to decode MPEG2 Subtitle in TS file. There is no problem with an old version (02 december 2008) with rgba_palette code in AVSubtitleRect. rgba_palette was an (uint32_t *) variable. Since recent version, ffmpeg has included rgba_palette in (uint8_t *) data[1] table and we have got an 8 bits palette instead of 32 bits. So, every subtitle are monocolors. Is there something I have misunderstood or there is really a bug? This is some code to introduce my problem: // Main // Decode subtitle frame int nRes = avcodec_decode_subtitle(pCodecCtx, pSubtitle, &frameFinished, packet.data, packet.size); // Did we get a subtitle frame? if(frameFinished != 0) { nSize = pSubtitle->num_rects; for(i = 0; i < nSize; ++i) { int width = pSubtitle->rects[i].w; int height = pSubtitle->rects[i].h; SaveFrame(&pSubtitle->rects[i], width, height); } } // Save static void SaveFrame(AVSubtitleRect* pRect, int width, int height) { char szImagename[32]; sprintf(szImagename, "d:\\tmp\\ST\\frame%d.ppm", iFrame); FILE* pImage=fopen(szImagename, "w"); int x, y, v; for(y = 0; y < height; y++) { for(x = 0; x < width; x++) { // 20081202 version: v is uint32_t v = pRect->rgba_palette[pRect->bitmap[y * width + x]]; // recent version: v is uint8_t //v = pRect->pict.data[1][pRect->pict.data[0][y * width + x]]; putc((v >> 16) & 0xff, pImage); putc((v >> 8) & 0xff, pImage); putc((v >> 0) & 0xff, pImage); } } } From ramandumcs at gmail.com Mon Oct 17 15:36:21 2011 From: ramandumcs at gmail.com (raman gupta) Date: Mon, 17 Oct 2011 19:06:21 +0530 Subject: [FFmpeg-user] Assert Hit in libavformat/mov.c, line 1434 Message-ID: Hi Everyone, While transcoding a MP4 file , an assert statement is getting hit, due to which FFmpeg stops and does not proceeds further . " Assertion failed: st->duration % sc->time_rate == 0, file /home/autobuild/source/libavformat/mov.c, line 1434". Is there any workaroung or fix to overcome this issue. Thanks in advance, Regards, Raman Gupta From ramandumcs at gmail.com Mon Oct 17 15:42:55 2011 From: ramandumcs at gmail.com (raman gupta) Date: Mon, 17 Oct 2011 19:12:55 +0530 Subject: [FFmpeg-user] Fwd: Assert Hit in libavformat/mov.c, line 1434 In-Reply-To: References: Message-ID: Hi Everyone, While transcoding a MP4 file , an assert statement is getting hit, due to which FFmpeg stops and does not proceeds further . " Assertion failed: st->duration % sc->time_rate == 0, file /home/autobuild/source/libavformat/mov.c, line 1434". Is there any workaroung or fix to overcome this issue. I have uploaded the MP4 file at below path: http://www.datafilehost.com/download-4ecffe9b.html Thanks in advance, Regards, Raman Gupta From ramandumcs at gmail.com Mon Oct 17 15:47:12 2011 From: ramandumcs at gmail.com (raman gupta) Date: Mon, 17 Oct 2011 19:17:12 +0530 Subject: [FFmpeg-user] Fwd: Assert Hit in libavformat/mov.c, line 1434 In-Reply-To: References: Message-ID: Flattened file: http://www.datafilehost.com/download-ee6d3163.html Thx, Raman Gupta ---------- Forwarded message ---------- From: raman gupta Date: Mon, Oct 17, 2011 at 7:12 PM Subject: Fwd: Assert Hit in libavformat/mov.c, line 1434 To: ffmpeg-user at ffmpeg.org Hi Everyone, While transcoding a MP4 file , an assert statement is getting hit, due to which FFmpeg stops and does not proceeds further . " Assertion failed: st->duration % sc->time_rate == 0, file /home/autobuild/source/libavformat/mov.c, line 1434". Is there any workaroung or fix to overcome this issue. I have uploaded the MP4 file at below path: http://www.datafilehost.com/download-4ecffe9b.html Thanks in advance, Regards, Raman Gupta From rogerdpack2 at gmail.com Mon Oct 17 16:02:03 2011 From: rogerdpack2 at gmail.com (Roger Pack) Date: Mon, 17 Oct 2011 08:02:03 -0600 Subject: [FFmpeg-user] FFmpeg API function for transcoding In-Reply-To: References: Message-ID: > I mean to ask, if there is an API that looks like this: > > TranscodeVideo(InFilePath, OutFilePath, *argumentslist[]); You may be able to just call out to system("ffmpeg ...") if you just want it to do an entire file... -r From tim.nicholson at bbc.co.uk Mon Oct 17 16:16:21 2011 From: tim.nicholson at bbc.co.uk (Tim Nicholson) Date: Mon, 17 Oct 2011 15:16:21 +0100 Subject: [FFmpeg-user] ffmpeg windows build In-Reply-To: <4E93227F.6030003@bbc.co.uk> References: <20111005182636.525DC10E196@avserver.banki.hu> <4E92BA2E.8070908@bbc.co.uk> <4E93227F.6030003@bbc.co.uk> Message-ID: <4E9C38B5.5050700@bbc.co.uk> Well I am making good progress with this, but have stuck on an odd problem with librtmp. It compiles fine, both with and without OpenSSL support. However when trying to --enable-librtmp ffmpeg ./configure fails because it cannot find -ldl. Now this is curious because I am doing a static only build, so libdl.a should not be needed as far as I can see, but for some reason ffmpeg wants it (and it doesn't exist in the cross compile toolchain) I also notice that even when librtmp is compiled without openSSL support, ffmpeg still insists on having libssl.a and libcrpto.a to hand (and libdl.a) if you want to include librtmp. this is an error surely? -- Tim http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. From humer4489 at gmail.com Mon Oct 17 21:05:53 2011 From: humer4489 at gmail.com (Patrick) Date: Mon, 17 Oct 2011 15:05:53 -0400 Subject: [FFmpeg-user] Duplicate symbol _ff_inverse in libavcodec.a and libavutil.a when building in xcode Message-ID: Hi, When building version .8 in my xcode project, I am getting this error: duplicate symbol _ff_inverse in ../lib/libavcodec.a(inverse.o) and ../lib/libavutil.a(inverse.o) I found this entry in the .8 changelog: commit 3fc548df28f765c9f649248e1e14079120e7c74e Author: Diego Petten? Date: Wed Jul 21 12:37:37 2010 +0000 Make ff_inverse stay with libavutil, and optional copy it to libavcodec. Is there anything I can/should do to resolve this issue? Btw, the error only occurs when I set the search paths in xcode to point to the ../lib and ../include folders where all my required .a and .h files reside, including those of libav. Thanks, Pat From hardik.sharma22 at yahoo.com Mon Oct 17 22:23:56 2011 From: hardik.sharma22 at yahoo.com (Hardik Sharma) Date: Mon, 17 Oct 2011 13:23:56 -0700 (PDT) Subject: [FFmpeg-user] How to use RTP mode? Message-ID: <1318883036.33919.YahooMailNeo@web46208.mail.sp1.yahoo.com> Can anyone please tell me that how to use or enable rtp mode in ffmpeg for h264 encoding/decoding. I am facing a lot of problems in byte stream format. I will really appreciate any kind of help. Thanks. Hardik S. ? ? From stas.oskin at gmail.com Tue Oct 18 00:27:26 2011 From: stas.oskin at gmail.com (Stas Oskin) Date: Tue, 18 Oct 2011 00:27:26 +0200 Subject: [FFmpeg-user] Faad compilation option? Message-ID: Hi. I noticed that ffmpeg no longer links or allows specifying faad - does it mean all AAC decoding done via FFMPEG (while encoding still done via optional libfaac)? Regards. From rogerdpack2 at gmail.com Tue Oct 18 01:39:06 2011 From: rogerdpack2 at gmail.com (Roger Pack) Date: Mon, 17 Oct 2011 17:39:06 -0600 Subject: [FFmpeg-user] Thanks! Message-ID: Just wanted to thank the ffmpeg team. I went to a conference the other day and one of the presenters showed us how to use ffmpeg in windows to remux videos. Then I realized just how wide spread and useful it is. Thanks again. -roger- From hardik.sharma22 at yahoo.com Tue Oct 18 02:24:11 2011 From: hardik.sharma22 at yahoo.com (Hardik Sharma) Date: Mon, 17 Oct 2011 17:24:11 -0700 (PDT) Subject: [FFmpeg-user] How to use RTP mode? In-Reply-To: <1318883036.33919.YahooMailNeo@web46208.mail.sp1.yahoo.com> References: <1318883036.33919.YahooMailNeo@web46208.mail.sp1.yahoo.com> Message-ID: <1318897451.76605.YahooMailNeo@web46202.mail.sp1.yahoo.com> Also as ffmpeg uses x264 for encoding h264 format. Can I do encoding in x264 win RTP mode? ________________________________ From: Hardik Sharma To: ffmpeg Sent: Monday, 17 October 2011 1:23 PM Subject: How to use RTP mode? Can anyone please tell me that how to use or enable rtp mode in ffmpeg for h264 encoding/decoding. I am facing a lot of problems in byte stream format. I will really appreciate any kind of help. Thanks. Hardik S. ? ? From kshawkeye at gmail.com Tue Oct 18 04:21:42 2011 From: kshawkeye at gmail.com (Kyle) Date: Mon, 17 Oct 2011 22:21:42 -0400 Subject: [FFmpeg-user] ffmpeg windows build In-Reply-To: <4E9C38B5.5050700@bbc.co.uk> References: <20111005182636.525DC10E196@avserver.banki.hu> <4E92BA2E.8070908@bbc.co.uk> <4E93227F.6030003@bbc.co.uk> <4E9C38B5.5050700@bbc.co.uk> Message-ID: <4E9CE2B6.5060007@gmail.com> On 10/17/2011 10:16 AM, Tim Nicholson wrote: > Well I am making good progress with this, but have stuck on an odd > problem with librtmp. > > It compiles fine, both with and without OpenSSL support. > > However when trying to --enable-librtmp ffmpeg ./configure fails > because it cannot find -ldl. > > Now this is curious because I am doing a static only build, so libdl.a > should not be needed as far as I can see, but for some reason ffmpeg > wants it (and it doesn't exist in the cross compile toolchain) > > I also notice that even when librtmp is compiled without openSSL > support, ffmpeg still insists on having libssl.a and libcrpto.a to > hand (and libdl.a) if you want to include librtmp. this is an error > surely? How did you compile rtmp and openssl? Did you edit the pkgconfig files? From dashing.meng at gmail.com Tue Oct 18 05:45:51 2011 From: dashing.meng at gmail.com (littlebat) Date: Tue, 18 Oct 2011 11:45:51 +0800 Subject: [FFmpeg-user] Faad compilation option? In-Reply-To: References: Message-ID: <20111018114551.285bf1dc.dashing.meng@gmail.com> On Tue, 18 Oct 2011 00:27:26 +0200 Stas Oskin wrote: > Hi. > > I noticed that ffmpeg no longer links or allows specifying faad - > does it mean all AAC decoding done via FFMPEG (while encoding still > done via optional libfaac)? it seems no special configure optional needed for faad. From sabine565 at gmail.com Tue Oct 18 09:12:21 2011 From: sabine565 at gmail.com (Sabine B) Date: Tue, 18 Oct 2011 10:12:21 +0300 Subject: [FFmpeg-user] Streaming a data stream In-Reply-To: References: Message-ID: Hi! Well, I would like to stream an MPEG-TS file including one video stream, one audio stream and one data stream with pure text. Yes I would like to stream the whole package including the data stream. Thanks for your reply! Best regards, Sabine On Fri, Oct 14, 2011 at 3:55 PM, Roger Pack wrote: > > Is it possible to stream an MPEG-TS file which includes besides the video > > and audio stream also a > > data stream? > > You want to stream the data stream? > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From tim.nicholson at bbc.co.uk Tue Oct 18 09:36:15 2011 From: tim.nicholson at bbc.co.uk (Tim Nicholson) Date: Tue, 18 Oct 2011 08:36:15 +0100 Subject: [FFmpeg-user] ffmpeg windows build In-Reply-To: <4E9CE2B6.5060007@gmail.com> References: <20111005182636.525DC10E196@avserver.banki.hu> <4E92BA2E.8070908@bbc.co.uk> <4E93227F.6030003@bbc.co.uk> <4E9C38B5.5050700@bbc.co.uk> <4E9CE2B6.5060007@gmail.com> Message-ID: <4E9D2C6F.8090106@bbc.co.uk> On 18/10/11 03:21, Kyle wrote: > On 10/17/2011 10:16 AM, Tim Nicholson wrote: >> Well I am making good progress with this, but have stuck on an odd >> problem with librtmp. >> >> It compiles fine, both with and without OpenSSL support. >> >> However when trying to --enable-librtmp ffmpeg ./configure fails >> because it cannot find -ldl. >> >> Now this is curious because I am doing a static only build, so libdl.a >> should not be needed as far as I can see, but for some reason ffmpeg >> wants it (and it doesn't exist in the cross compile toolchain) >> >> I also notice that even when librtmp is compiled without openSSL >> support, ffmpeg still insists on having libssl.a and libcrpto.a to >> hand (and libdl.a) if you want to include librtmp. this is an error >> surely? > How did you compile rtmp and openssl? > http://pastebin.com/dnAngPCR http://pastebin.com/sgNUs6yq ...and not a shared library in sight, that I could see.... > Did you edit the pkgconfig files? I edited the librtmp.pc file as the prefix(es) were obviously wrong. I checked the libssl/pc and libcrypto.pc files but could not see any glaring errors, prefixes were correct and ldl was not listed under any of the Libs/Libs.private:- Libs: -L${libdir} -lrtmp -lz #librtmp Libs: -L${libdir} -lssl -lcrypto -lws2_32 -lgdi32 -lcrypt32 #libssl Libs: -L${libdir} -lcrypto -lws2_32 -lgdi32 -lcrypt32 #libcrypto -- Tim http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. From stas.oskin at gmail.com Tue Oct 18 14:34:55 2011 From: stas.oskin at gmail.com (Stas Oskin) Date: Tue, 18 Oct 2011 14:34:55 +0200 Subject: [FFmpeg-user] Faad compilation option? In-Reply-To: <20111018114551.285bf1dc.dashing.meng@gmail.com> References: <20111018114551.285bf1dc.dashing.meng@gmail.com> Message-ID: > it seems no special configure optional needed for faad. > > Meaning it's being linked automatically (if present on system)? Or it's not being used altogether, and the built-in AAC decoding used? I'm asking this from the reason if I need to have the FAAD installed or not before FFMPEG compilation. Regards. From rogerdpack2 at gmail.com Tue Oct 18 15:31:29 2011 From: rogerdpack2 at gmail.com (Roger Pack) Date: Tue, 18 Oct 2011 07:31:29 -0600 Subject: [FFmpeg-user] How to use RTP mode? In-Reply-To: <1318883036.33919.YahooMailNeo@web46208.mail.sp1.yahoo.com> References: <1318883036.33919.YahooMailNeo@web46208.mail.sp1.yahoo.com> Message-ID: > Can anyone please tell me that how to use or enable rtp mode in ffmpeg for h264 encoding/decoding. I am facing a lot of problems in byte stream format. I will really appreciate any kind of help. Thanks. Post your problems I guess. From rogerdpack2 at gmail.com Tue Oct 18 15:33:30 2011 From: rogerdpack2 at gmail.com (Roger Pack) Date: Tue, 18 Oct 2011 07:33:30 -0600 Subject: [FFmpeg-user] Skipping frame (slow connection) when use live stream In-Reply-To: <4E96B832.3050802@at-net.com.pl> References: <4E96B832.3050802@at-net.com.pl> Message-ID: > Is it possible to reject data that ffmpeg could not be sent? > How to minimize the delay ? Let me know if you figure out a solution, I'd be interested in it too. -r From tim.nicholson at bbc.co.uk Tue Oct 18 15:41:17 2011 From: tim.nicholson at bbc.co.uk (Tim Nicholson) Date: Tue, 18 Oct 2011 14:41:17 +0100 Subject: [FFmpeg-user] Faad compilation option? In-Reply-To: References: <20111018114551.285bf1dc.dashing.meng@gmail.com> Message-ID: <4E9D81FD.8000007@bbc.co.uk> On 18/10/11 13:34, Stas Oskin wrote: >> it seems no special configure optional needed for faad. >> >> > Meaning it's being linked automatically (if present on system)? Or it's not > being used altogether, and the built-in AAC decoding used? > > I'm asking this from the reason if I need to have the FAAD installed or not > before FFMPEG compilation. > faad is the aac decoder, and afaik is no longer used by ffmpeg, only faac is used for coding and ffmpeg decodes natively. -- Tim http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. From roundfile at tekbits.net Tue Oct 18 16:05:17 2011 From: roundfile at tekbits.net (Round File) Date: Tue, 18 Oct 2011 15:05:17 +0100 Subject: [FFmpeg-user] How to use RTP mode? In-Reply-To: References: <1318883036.33919.YahooMailNeo@web46208.mail.sp1.yahoo.com> Message-ID: <008a01cc8d9e$f791d2e0$e6b578a0$@net> Hi Roger, ffmpeg -i rtp://@238.1.1.1:1234 works great for me where 238.1.1.1 is my multicast stream and 1234 is the port I am listening to. Could you give more details about the problems you are seeing? Kind regards, Roundfile -----Original Message----- From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user-bounces at ffmpeg.org] On Behalf Of Roger Pack Sent: 18 October 2011 14:31 To: FFmpeg user questions and RTFMs Subject: Re: [FFmpeg-user] How to use RTP mode? > Can anyone please tell me that how to use or enable rtp mode in ffmpeg for h264 encoding/decoding. I am facing a lot of problems in byte stream format. I will really appreciate any kind of help. Thanks. Post your problems I guess. _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From antoine.villeret at gmail.com Tue Oct 18 18:40:16 2011 From: antoine.villeret at gmail.com (Antoine Villeret) Date: Tue, 18 Oct 2011 18:40:16 +0200 Subject: [FFmpeg-user] split n-channel wave file into n mono wave file In-Reply-To: References: Message-ID: hi, I would like to know if it's possible to split a n-channel wave file into n mono wave file each with one channel of the first and all of that with the command line interface ? The files i need to convert are all PCM encoded at 48000 kHz or 44100 kHz and in 24 or 32 bit, channel number is varying between 8 and 32. Thanks for the help Antoine From dave.bevan at bbc.co.uk Tue Oct 18 19:44:10 2011 From: dave.bevan at bbc.co.uk (Dave Bevan) Date: Tue, 18 Oct 2011 18:44:10 +0100 Subject: [FFmpeg-user] split n-channel wave file into n mono wave file In-Reply-To: References: Message-ID: >I would like to know if it's possible to split a n-channel wave file into n mono wave file each with one channel of the first and all of that with >the command line interface ? >The files i need to convert are all PCM encoded at 48000 kHz or 44100 kHz and in 24 or 32 bit, channel number is varying between 8 and 32. > >Antoine You could try http://sox.sourceforge.net, or http://code.google.com/p/ffmbc and it's -map_audio_channel option. --D. http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. From stefasab at gmail.com Tue Oct 18 19:53:30 2011 From: stefasab at gmail.com (Stefano Sabatini) Date: Tue, 18 Oct 2011 19:53:30 +0200 Subject: [FFmpeg-user] Hardcode subtitle in video file In-Reply-To: References: Message-ID: <20111018175330.GH1866@arborea> On date Friday 2011-10-14 18:24:14 +0900, Quy Pham Sy encoded: > Hi, > > Is it possible to hardcode a subtitle in a video file? if so how to do that? Not yet, but we're working on that, check the vf_ass.c patch in the devel mailing list. Open a ticket if you want to track this development. From betonpfeiler at googlemail.com Tue Oct 18 20:21:17 2011 From: betonpfeiler at googlemail.com (betonpfeiler) Date: Tue, 18 Oct 2011 20:21:17 +0200 Subject: [FFmpeg-user] split n-channel wave file into n mono wave file In-Reply-To: References: Message-ID: <4E9DC39D.8030408@googlemail.com> On 10/18/2011 07:44 PM, Dave Bevan wrote: >> I would like to know if it's possible to split a n-channel wave file > .... > You could try http://sox.sourceforge.net, or > http://code.google.com/p/ffmbc and it's -map_audio_channel option. > > --D. > Here you can find an example how the -map function works... http://ffmbc.wordpress.com/2011/01/15/monotracks-to-stereo-ii/ hope it helps... J From stas.oskin at gmail.com Tue Oct 18 20:24:13 2011 From: stas.oskin at gmail.com (Stas Oskin) Date: Tue, 18 Oct 2011 20:24:13 +0200 Subject: [FFmpeg-user] Faad compilation option? In-Reply-To: <4E9D81FD.8000007@bbc.co.uk> References: <20111018114551.285bf1dc.dashing.meng@gmail.com> <4E9D81FD.8000007@bbc.co.uk> Message-ID: Hi. > Meaning it's being linked automatically (if present on system)? Or it's not >> being used altogether, and the built-in AAC decoding used? >> >> > faad is the aac decoder, and afaik is no longer used by ffmpeg, only faac > is used for coding and ffmpeg decodes natively. > > Great, that what I wanted to confirm. Regards. From hardik.sharma22 at yahoo.com Tue Oct 18 20:46:16 2011 From: hardik.sharma22 at yahoo.com (Hardik Sharma) Date: Tue, 18 Oct 2011 11:46:16 -0700 (PDT) Subject: [FFmpeg-user] How to use RTP mode? In-Reply-To: <008a01cc8d9e$f791d2e0$e6b578a0$@net> References: <1318883036.33919.YahooMailNeo@web46208.mail.sp1.yahoo.com> <008a01cc8d9e$f791d2e0$e6b578a0$@net> Message-ID: <1318963576.1485.YahooMailNeo@web46212.mail.sp1.yahoo.com> With byte stream I m facing problem with slice drop. Whenever I drop slice header (near end or start of GOP) it drops the whole frame. As michael mentioned that may be it is because parser.c is not able to find access unit boundaries.? With enabling rtp mode with JM we didn't faced such problems which were there before. I am not sure how rtp mode is exactly working in JM but I?definitely?want to try in ffmpeg/x264 for h264 stream.? I am encoding raw yuv to .264 and then include error and decode back to yuv.? Regards, Hardik ?? ________________________________ From: Round File To: 'FFmpeg user questions and RTFMs' Sent: Tuesday, 18 October 2011 7:05 AM Subject: Re: [FFmpeg-user] How to use RTP mode? Hi Roger, ffmpeg -i rtp://@238.1.1.1:1234? works great for me where 238.1.1.1 is my multicast stream and 1234 is the port I am listening to. Could you give more details about the problems you are seeing? Kind regards, Roundfile -----Original Message----- From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user-bounces at ffmpeg.org] On Behalf Of Roger Pack Sent: 18 October 2011 14:31 To: FFmpeg user questions and RTFMs Subject: Re: [FFmpeg-user] How to use RTP mode? > Can anyone please tell me that how to use or enable rtp mode in ffmpeg for h264 encoding/decoding. I am facing a lot of problems in byte stream format. I will really appreciate any kind of help. Thanks. Post your problems I guess. _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From scoliver at 163.com Tue Oct 18 12:06:57 2011 From: scoliver at 163.com (scoliver) Date: Tue, 18 Oct 2011 03:06:57 -0700 (PDT) Subject: [FFmpeg-user] Fedora Unkown encoder 'libmp3lame' Message-ID: <1318932417312-3914790.post@n4.nabble.com> Hi, I'm new to linux and ffmpeg.Recently I am studying ffmpeg and meet some puzzled problems. I'm running Fedora release 15(2.6.40.6-0.fc15.i686.PAE). I installed some codecs and ffmpeg correctly referencing the internet.The configure of ffmpeg is following: ./configure --prefix=/usr --enable-gpl --enable-shared --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvorbis --enable-libxvid --enable-libfaac --enable-libx264 --enable-pthreads --disable-ffserver --disable-ffplay --enable-nonfree --enable-version3 --extra-ldflags=-ldl Then I begin to test ffmpeg.Some command line settings work successfully.But there are still some wrong. For example: I'm trying to convert an VOB to avi using the following: [zzh at localhost ~]$ ffmpeg -i videosource/test7.VOB -f avi -vcodec mpeg4 -b 800 -g 300 -bf 2 -acodec libmp3lame -ab 128k test7.avi The result is as follows: ffmpeg version 0.8.4, Copyright (c) 2000-2011 the FFmpeg developers built on Sep 29 2011 12:54:54 with gcc 4.6.0 20110428 (Red Hat 4.6.0-6) configuration: --prefix=/usr libavutil 51. 9. 1 / 51. 9. 1 libavcodec 53. 7. 0 / 53. 7. 0 libavformat 53. 4. 0 / 53. 4. 0 libavdevice 53. 1. 1 / 53. 1. 1 libavfilter 2. 23. 0 / 2. 23. 0 libswscale 2. 0. 0 / 2. 0. 0 [mpeg @ 0xa9ef340] max_analyze_duration 5000000 reached at 5000000 Input #0, mpeg, from 'videosource/test7.VOB': Duration: 00:00:29.92, start: 0.287267, bitrate: 31373 kb/s Stream #0.0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x576 [PAR 64:45 DAR 16:9], 7500 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0.1[0x20]: Subtitle: dvdsub Stream #0.2[0x21]: Subtitle: dvdsub Stream #0.3[0x80]: Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s WARNING: The bitrate parameter is set too low. It takes bits/s as argument, not kbits/s WARNING: The bitrate parameter is set too low. It takes bits/s as argument, not kbits/s Unknown encoder 'libmp3lame' And there are other similar problems like Unknown encoder 'libopencore-amrwb',Unknown encoder 'libfaac',Unknown encoder 'libxvid'.But when I configure ffmpeg,it shows the following: ...... libfaac enabled yes libgsm enabled no libmp3lame enabled yes libnut enabled no libopencore-amrnb support yes libopencore-amrwb support yes ...... So ,I am very puzzled.And I check the ways from this forum and use the latest version.But It does't work. I delete these acodec and vcodec settings.There are two results:one is it works out,and the other is 0 bytes---show:Encoder not found for output stream . I got the cmd line settings from the internet but cannot remember the forum.I don't know whether the cmd line settings or the installations make mistakes.Maybe the encoders are about the original videos. Can you give me some suggestion to make these conversions? Thanks! -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Fedora-Unkown-encoder-libmp3lame-tp3914790p3914790.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From drimux at gmail.com Tue Oct 18 15:39:38 2011 From: drimux at gmail.com (Drim D.) Date: Tue, 18 Oct 2011 15:39:38 +0200 Subject: [FFmpeg-user] Compilation failed Message-ID: Greetings, I used ffmpeg to get screen capture, with x11grab, so I need to compile ffmpeg. Everything was fine, until I change for *Ubuntu Oneiric Ocelot*recently. I followed a french tutorial ( http://doc.ubuntu-fr.org/tutoriel/comment_compiler_ffmpeg ) but I get some error because of lame : *ERROR: libmp3lame >= 3.98.3 not found* In the log : *fatal error: lame/lame.h: No such file or directory* but such file exists... And I compiled lame ... I try to get last lame version 3.98.4 & 3.99 (and of course last version of ffmpeg with git) but nothing works. So can you help me ? I remember I had this error before this version, I fixed it with replacing the line : enabled libmp3lame && require "libmp3lame >= 3.98.3" lame/lame.h hip_decode_init -lmp3lame' by 'enabled libmp3lame && require "libmp3lame >= 3.98.3" lame/lame.h lame_set_VBR_quality -lmp3lame' But this method doesn't work anymore sadly... Thank you, Regards. -------------- next part -------------- A non-text attachment was scrubbed... Name: config.log Type: text/x-log Size: 124190 bytes Desc: not available URL: From hardik.sharma22 at yahoo.com Wed Oct 19 06:03:26 2011 From: hardik.sharma22 at yahoo.com (Hardik Sharma) Date: Tue, 18 Oct 2011 21:03:26 -0700 (PDT) Subject: [FFmpeg-user] How to use RTP mode? In-Reply-To: <008a01cc8d9e$f791d2e0$e6b578a0$@net> References: <1318883036.33919.YahooMailNeo@web46208.mail.sp1.yahoo.com> <008a01cc8d9e$f791d2e0$e6b578a0$@net> Message-ID: <1318997006.83644.YahooMailNeo@web46212.mail.sp1.yahoo.com> I tried to do experiments with -f rtp command but it is not doing anything. I used following command line - ffmpeg -y -s 352x288 -r 30 -pix_fmt yuv420p -f rawvideo -i foreman_cif.yuv -vcodec libx264 -y -b 512k -r 30 -preset fast -s 352x288 -flags +loop -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8+parti8x8+partp4x4 -chromaoffset 0 -b_qfactor 0.45 -flags2 +wpred -subq 9 -flags2 +dct8x8 -me_range 32 -me_method umh -strict 1 -sc_threshold 40 -vstats -i_qfactor 0.71 -qcomp 0.5 -rc_eq 'blurCplx^(1-qComp)' -level 40 -coder 1 -f rtp -refs 6 -x264opts slice-max-size=300:bframes=1:keyint=20:trellis=2:subme=10 -f h264 -mbd 1 -profile high -deblockalpha 0 -deblockbeta 0 -threads 0 out_exp.264 ?Can someone explain what it does? Thanks. ? ________________________________ From: Round File To: 'FFmpeg user questions and RTFMs' Sent: Tuesday, 18 October 2011 7:05 AM Subject: Re: [FFmpeg-user] How to use RTP mode? Hi Roger, ffmpeg -i rtp://@238.1.1.1:1234? works great for me where 238.1.1.1 is my multicast stream and 1234 is the port I am listening to. Could you give more details about the problems you are seeing? Kind regards, Roundfile -----Original Message----- From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user-bounces at ffmpeg.org] On Behalf Of Roger Pack Sent: 18 October 2011 14:31 To: FFmpeg user questions and RTFMs Subject: Re: [FFmpeg-user] How to use RTP mode? > Can anyone please tell me that how to use or enable rtp mode in ffmpeg for h264 encoding/decoding. I am facing a lot of problems in byte stream format. I will really appreciate any kind of help. Thanks. Post your problems I guess. _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From jdmls at yahoo.com Wed Oct 19 10:59:50 2011 From: jdmls at yahoo.com (John Doe) Date: Wed, 19 Oct 2011 01:59:50 -0700 (PDT) Subject: [FFmpeg-user] Compilation failed In-Reply-To: References: Message-ID: <1319014790.91118.YahooMailNeo@web114712.mail.gq1.yahoo.com> From: Drim D. > In the log : *fatal error: lame/lame.h: No such file or directory* > but such file exists... Maybe try: configure --extra-cflags="-I$INCDIR" --extra-ldflags="-L$LIBDIR" JD From antoine.villeret at gmail.com Wed Oct 19 11:06:38 2011 From: antoine.villeret at gmail.com (Antoine Villeret) Date: Wed, 19 Oct 2011 11:06:38 +0200 Subject: [FFmpeg-user] split n-channel wave file into n mono wave file In-Reply-To: <4E9DC39D.8030408@googlemail.com> References: <4E9DC39D.8030408@googlemail.com> Message-ID: Hi, thanks for the links, I've already tried SoX but it doesn't work with my files which have been generated with Pyramix Studio and are not compliant with the Microsoft Wave Specification, some of the files exceed 4 GB. I successfully made a script that uses SoX to separate a 19-channel file which is around 250 MB. But SoX seems to cannot read the header of a the file larger than 4 GB and says : can't open input file `input.wav': WAVE: RIFF header not found Concerning FFmbc, it says "input.wav: Error number -1 occurred" and FFmpeg says : Input #0, wav, from 'input.wav': Duration: 01:36:24.34, bitrate: 36864 kb/s Stream #0.0: Audio: pcm_s24le, 48000 Hz, 32 channels, s32, 36864 kb/s so it seems to be able to read the file but there is no way to map audio channel with FFmpeg (for now) Also I can't use Pyramix Studio to convert thoses files because it's not a free software... Thanks for the help a. -- do it yourself http://antoine.villeret.free.fr http://drii.ensad.fr -- Google lit ce mail... si vous refusez cela, utilisez l'adresse antoine.villeret [at] free.fr pour me contacter 2011/10/18 betonpfeiler > On 10/18/2011 07:44 PM, Dave Bevan wrote: > >> I would like to know if it's possible to split a n-channel wave file >>> >> .... >> >> You could try http://sox.sourceforge.net, or >> http://code.google.com/p/ffmbc and it's -map_audio_channel option. >> >> --D. >> >> > Here you can find an example how the -map function works... > > http://ffmbc.wordpress.com/**2011/01/15/monotracks-to-**stereo-ii/ > > hope it helps... > > > J > ______________________________**_________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/**listinfo/ffmpeg-user > From dave.bevan at bbc.co.uk Wed Oct 19 13:04:26 2011 From: dave.bevan at bbc.co.uk (Dave Bevan) Date: Wed, 19 Oct 2011 12:04:26 +0100 Subject: [FFmpeg-user] split n-channel wave file into n mono wave file In-Reply-To: References: <4E9DC39D.8030408@googlemail.com> Message-ID: >can't open input file `input.wav': WAVE: RIFF header not found >Concerning FFmbc, it says "input.wav: Error number -1 occurred" Looks like your WAV files are headerless? Could you post perhaps 100MB from one if your files, somewhere? dd if=input.wav bs=100M count=1 of=input_head_100meg.wav Will copy the 1st 100MB of raw data from your wav, as-is. Post the file on the internet somewhere, let us know, and we'll try and figure out how to carve up your file. Ffmpeg and ffmbc both let you hint the input stream, so "ffmbc -format xxx -i in.file" for example. I presume ffmpeg got it right - that your file is PCM, 24bit, 48k ? > On 10/18/2011 07:44 PM, Dave Bevan wrote: > >> I would like to know if it's possible to split a n-channel wave file >>> >> .... >> >> You could try http://sox.sourceforge.net, or >> http://code.google.com/p/ffmbc and it's -map_audio_channel option. >> >> --D. >> >> > Here you can find an example how the -map function works... > > http://ffmbc.wordpress.com/**2011/01/15/monotracks-to-**stereo-ii/ > > hope it helps... > > > J > ______________________________**_________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/**listinfo/ffmpeg-user > _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. From atish.kathpal at gmail.com Wed Oct 19 13:55:16 2011 From: atish.kathpal at gmail.com (Atish Kathpal) Date: Wed, 19 Oct 2011 17:25:16 +0530 Subject: [FFmpeg-user] FFmpeg API function for transcoding In-Reply-To: References: Message-ID: Gaurav, Roger Thank you for your useful comments. Regards Atish On Mon, Oct 17, 2011 at 7:32 PM, Roger Pack wrote: > > I mean to ask, if there is an API that looks like this: > > > > TranscodeVideo(InFilePath, OutFilePath, *argumentslist[]); > > You may be able to just call out to system("ffmpeg ...") if you just > want it to do an entire file... > -r > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From kshawkeye at gmail.com Wed Oct 19 18:17:52 2011 From: kshawkeye at gmail.com (Kyle) Date: Wed, 19 Oct 2011 12:17:52 -0400 Subject: [FFmpeg-user] ffmpeg windows build In-Reply-To: <4E9D2C6F.8090106@bbc.co.uk> References: <20111005182636.525DC10E196@avserver.banki.hu> <4E92BA2E.8070908@bbc.co.uk> <4E93227F.6030003@bbc.co.uk> <4E9C38B5.5050700@bbc.co.uk> <4E9CE2B6.5060007@gmail.com> <4E9D2C6F.8090106@bbc.co.uk> Message-ID: <4E9EF830.5060104@gmail.com> On 10/18/2011 3:36 AM, Tim Nicholson wrote: > http://pastebin.com/dnAngPCR > > http://pastebin.com/sgNUs6yq > > ...and not a shared library in sight, that I could see.... > >> Did you edit the pkgconfig files? > > > I edited the librtmp.pc file as the prefix(es) were obviously wrong. > I checked the libssl/pc and libcrypto.pc files but could not see any > glaring errors, prefixes were correct and ldl was not listed under any > of the Libs/Libs.private:- > > > Libs: -L${libdir} -lrtmp -lz #librtmp > Libs: -L${libdir} -lssl -lcrypto -lws2_32 -lgdi32 -lcrypt32 #libssl > Libs: -L${libdir} -lcrypto -lws2_32 -lgdi32 -lcrypt32 #libcrypto You should be compiling openssl with: ./Configure --openssldir="/prefix" --prefix="/prefix" --cross-compile-prefix=i686-w64-mingw32- mingw no-shared and making rtmp with: make prefix="/prefix" SYS=mingw CROSS_COMPILE=i686-w64-mingw32- SHARED=no INC="-I/openssl/include -I/zlib/include" XLDFLAGS="-L/openssl/lib -L/zlib/lib" You'll obviously need to change the prefixes/dir's to meet your needs but that should be the basic configure. You might also need to change the --cross-compile-prefix and the CROSS_COMPILE to fit your needs as well. Lastly, if you are compiling for 64-bit, change the "mingw" in openssl to "mingw64" I've compiled fine with this so you shouldn't run into any issues. From thibault at capitalvision.fr Wed Oct 19 14:26:20 2011 From: thibault at capitalvision.fr (Thibault Leboucq) Date: Wed, 19 Oct 2011 14:26:20 +0200 Subject: [FFmpeg-user] ffmpeg -i and Bitrates/Duration : N/A Message-ID: Hi, I've got some trouble with HD video and ffmpeg. For example with 2 vid?os, ffmpeg -I "name.mpg" return : 1- Input #0, mpeg, from movie1.MPG': Duration: 00:01:56.9, start: 0.540233, bitrates: 74029 kb/s Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 70000 kb/s, 25.00 tb(r) Stream #0.1[0x1c1]: Audio: mp2, 48000 Hz, stereo, 384 kb/s Here, all is OK. 2- Input #0, mpeg, from movie2.MPG': Duration: N/A, start: 0.540233, bitrates: N/A Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 70000 kb/s, 25.00 tb(r) Stream #0.1[0x1c0]: Audio: mp2, 48000 Hz, stereo, 384 kb/s Here is the problem. I need to get the duration for an automatic analysis system. But for some videos I've got this error. It can't find Bitrates and Duration. Have you got an idea to correct this? Bien cordialement, Thibault Leboucq Responsable technique CAPITAL VISION T?l : 01 43 79 68 00 - Fax : 01 43 79 68 13 M?l : thibault at capitalvision.fr From ewald.peiszer at gmx.at Wed Oct 19 18:09:34 2011 From: ewald.peiszer at gmx.at (Ewald Peiszer) Date: Wed, 19 Oct 2011 18:09:34 +0200 Subject: [FFmpeg-user] GPL'd libfaad2 support when compiling without --enable-gpl ? Message-ID: <4E9EF63E.7050506@gmx.at> Hi all, I have quite a specific question as to LGPL vs GPL license and AAC decoder in ffmpeg. As far as I know: 1) and the output of ffmpeg -L also supports that: if I configure and make ffmpeg *without* --enable-gpl, the built lib can be used under LGPL. 2) ffmpeg uses libfaad2 for AAC decoding 3) libfaad2 is available only under GPL or a commercial license (but not LPGL) Still, my compiled ffmpeg binary is able to decode AAC (ffmpeg -formats shows this). Now I wonder how can this be? Any insights appreciated as to which of my assumption is/are wrong. Thanks, Ewald From philip at turmel.org Wed Oct 19 21:15:57 2011 From: philip at turmel.org (Phil Turmel) Date: Wed, 19 Oct 2011 15:15:57 -0400 Subject: [FFmpeg-user] GPL'd libfaad2 support when compiling without --enable-gpl ? In-Reply-To: <4E9EF63E.7050506@gmx.at> References: <4E9EF63E.7050506@gmx.at> Message-ID: <4E9F21ED.8030107@turmel.org> On 10/19/2011 12:09 PM, Ewald Peiszer wrote: [...] > Any insights appreciated as to which of my assumption is/are wrong. "2". Current versions of ffmpeg *decode* AAC internally. Try "ldd $(which ffmpeg)" HTH, Phil From dfnsonfsduifb at gmx.de Wed Oct 19 21:39:46 2011 From: dfnsonfsduifb at gmx.de (Johannes Bauer) Date: Wed, 19 Oct 2011 21:39:46 +0200 Subject: [FFmpeg-user] MTS videos have A/V async Message-ID: <4E9F2782.6000001@gmx.de> Hi list, it all started with a seeminly harmless update of my wife's Ubuntu to Oneiric. Then all hell broke loose. The videos she renders using kdenlive (which uses melt which uses ffmpeg, if I understand correctly) started to show A/V asynchonicity: When playing them back or rendering them, audio lags behind badly (about 3 seconds or so). On my system (Gentoo) I then tried it ans also could reproduce the lag by playing back a video just by using the "melt" command. So I'll be honest here: I have no clue wheter ffmpeg or melt are at fault here. I tend towards ffmpeg, which is why I posted here. But I would gladly like to get instructions on how to confirm/refute my suspicion. I have also uploded an original movie file that is well suited (since audio/video sync can nicely be seen on that sample) https://spornkuller.de/00022.mts Beware, it's 22 MB large. Any help is greatly appreciated, Best regards, Joe From mischievous.demon at gmail.com Wed Oct 19 23:28:15 2011 From: mischievous.demon at gmail.com (Alexandra Beebe) Date: Wed, 19 Oct 2011 14:28:15 -0700 Subject: [FFmpeg-user] ffmpeg.c wrapped up in a obj-c shared library Message-ID: Hello, I have code that wraps the ffmpeg.c source file up into a obj-c shared library. How do I commit the code back? Should I even commit the code back? Thanks, Alexandra From james.darnley at gmail.com Wed Oct 19 23:58:13 2011 From: james.darnley at gmail.com (James Darnley) Date: Wed, 19 Oct 2011 22:58:13 +0100 Subject: [FFmpeg-user] Fedora Unkown encoder 'libmp3lame' In-Reply-To: <1318932417312-3914790.post@n4.nabble.com> References: <1318932417312-3914790.post@n4.nabble.com> Message-ID: On 2011-10-18 12:06, scoliver wrote: > I installed some codecs and ffmpeg correctly referencing the internet.The > configure of ffmpeg is following: > ?./configure --prefix=/usr --enable-gpl --enable-shared --enable-libmp3lame > --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvorbis > --enable-libxvid --enable-libfaac --enable-libx264 --enable-pthreads > --disable-ffserver --disable-ffplay --enable-nonfree --enable-version3 > --extra-ldflags=-ldl FFmpeg disagrees with that: > > ? configuration: --prefix=/usr > And there are other similar problems like Unknown encoder > 'libopencore-amrwb',Unknown encoder 'libfaac',Unknown encoder 'libxvid'.But > when I configure ffmpeg,it shows the following: > ...... > libfaac enabled ? ? ? ? ? yes > libgsm enabled ? ? ? ? ? ?no > libmp3lame enabled ? ? ? ?yes > libnut enabled ? ? ? ? ? ?no > libopencore-amrnb support yes > libopencore-amrwb support yes > ...... Make sure you're running the right FFmpeg, not the one installed by your package manager. From mark at richardsemail.net Thu Oct 20 00:11:06 2011 From: mark at richardsemail.net (Mark Richards) Date: Wed, 19 Oct 2011 16:11:06 -0600 Subject: [FFmpeg-user] Flash VP6 Message-ID: <000301cc8eac$008d4880$01a7d980$@RichardsEmail.Net> Is there any way to encode to Flash VP6 with ffmpeg ? Thanks, Mark From hardik.sharma22 at yahoo.com Thu Oct 20 02:24:54 2011 From: hardik.sharma22 at yahoo.com (Hardik Sharma) Date: Wed, 19 Oct 2011 17:24:54 -0700 (PDT) Subject: [FFmpeg-user] How to use RTP mode? In-Reply-To: <1318883036.33919.YahooMailNeo@web46208.mail.sp1.yahoo.com> References: <1318883036.33919.YahooMailNeo@web46208.mail.sp1.yahoo.com> Message-ID: <1319070294.905.YahooMailNeo@web46215.mail.sp1.yahoo.com> So I send the .264 stream with rtp to some ip address just to do some experiment. Can someone tell me that how to decode that stream as i m getting individual packets of data/stream/NAL's with rtp header? I will really appreciate any help. Thanks ? ? ________________________________ From: Hardik Sharma To: ffmpeg Sent: Monday, 17 October 2011 1:23 PM Subject: How to use RTP mode? Can anyone please tell me that how to use or enable rtp mode in ffmpeg for h264 encoding/decoding. I am facing a lot of problems in byte stream format. I will really appreciate any kind of help. Thanks. Hardik S. ? ? From c.guo at nbsystems.tv Thu Oct 20 09:58:10 2011 From: c.guo at nbsystems.tv (Chao Guo) Date: Thu, 20 Oct 2011 15:58:10 +0800 Subject: [FFmpeg-user] ff_simple_idct_put_mmx Message-ID: <4e9fd3fe.4a600e0a.2117.1df4@mx.google.com> Hi Guys Can anyone tell me what's the difference between ff_simple_idct_put_mmx and ff_simple_idct_put ? The former was nestled in X86/simple_idct_mmx.c but it's written in assembly language, I cannot read. If who can send me a translated version in cpp or c, I will appreciate very much. Or just tell me what's the different with the algorithm? Edward From c.guo at nbsystems.tv Thu Oct 20 10:01:03 2011 From: c.guo at nbsystems.tv (Chao Guo) Date: Thu, 20 Oct 2011 16:01:03 +0800 Subject: [FFmpeg-user] ff_simple_idct_put_mmx Message-ID: <4e9fd4b7.490d0e0a.36e9.1e5f@mx.google.com> Hi Guys Can anyone tell me what's the difference between ff_simple_idct_put_mmx and ff_simple_idct_put ? The former was nestled in X86/simple_idct_mmx.c but it's written in assembly language, I cannot read. If who can send me a translated version in cpp or c, I will appreciate very much. Or just tell me what's the different with the algorithm? Edward From ewald.peiszer at gmx.at Thu Oct 20 10:01:36 2011 From: ewald.peiszer at gmx.at (Ewald Peiszer) Date: Thu, 20 Oct 2011 10:01:36 +0200 Subject: [FFmpeg-user] GPL'd libfaad2 support when compiling without --enable-gpl ? In-Reply-To: <4E9EF63E.7050506@gmx.at> References: <4E9EF63E.7050506@gmx.at> Message-ID: <4E9FD560.104@gmx.at> > "2". Current versions of ffmpeg *decode* AAC internally. Try "ldd $(which ffmpeg)" Thanks Phil! Two more things: 1) Are there notable/known quality differences between the internal AAC decoder and libfaad2 library in terms of system ressources, audio quality and stability/reliability? 2) the output of ldd does not show any references to an external mp3 decoder library so I assume that the same is true for mp3 decoding? linux-vdso.so.1 => (0x00007ffff83fe000) libavformat.so.1d => /usr/lib/libavformat.so.1d (0x00007f58efdb9000) libavcodec.so.1d => /usr/lib/libavcodec.so.1d (0x00007f58ef77e000) libavutil.so.1d => /usr/lib/libavutil.so.1d (0x00007f58ef575000) libm.so.6 => /lib/libm.so.6 (0x00007f58ef2f4000) libpthread.so.0 => /lib/libpthread.so.0 (0x00007f58ef0d8000) libc.so.6 => /lib/libc.so.6 (0x00007f58eed76000) libz.so.1 => /usr/lib/libz.so.1 (0x00007f58eeb5f000) libogg.so.0 => /usr/lib/libogg.so.0 (0x00007f58ee95a000) libdc1394_control.so.13 => /usr/lib/libdc1394_control.so.13 (0x00007f58ee74a000) libdl.so.2 => /lib/libdl.so.2 (0x00007f58ee546000) libgsm.so.1 => /usr/lib/libgsm.so.1 (0x00007f58ee339000) libtheora.so.0 => /usr/lib/libtheora.so.0 (0x00007f58ee0f5000) libvorbis.so.0 => /usr/lib/libvorbis.so.0 (0x00007f58edec9000) libvorbisenc.so.2 => /usr/lib/libvorbisenc.so.2 (0x00007f58edaef000) /lib64/ld-linux-x86-64.so.2 (0x00007f58f0040000) libraw1394.so.8 => /usr/lib/libraw1394.so.8 (0x00007f58ed8e9000) cheers Ewald From tim.nicholson at bbc.co.uk Thu Oct 20 10:42:11 2011 From: tim.nicholson at bbc.co.uk (Tim Nicholson) Date: Thu, 20 Oct 2011 09:42:11 +0100 Subject: [FFmpeg-user] ffmpeg windows build In-Reply-To: <4E9EF830.5060104@gmail.com> References: <20111005182636.525DC10E196@avserver.banki.hu> <4E92BA2E.8070908@bbc.co.uk> <4E93227F.6030003@bbc.co.uk> <4E9C38B5.5050700@bbc.co.uk> <4E9CE2B6.5060007@gmail.com> <4E9D2C6F.8090106@bbc.co.uk> <4E9EF830.5060104@gmail.com> Message-ID: <4E9FDEE3.3000608@bbc.co.uk> On 19/10/11 17:17, Kyle wrote: > On 10/18/2011 3:36 AM, Tim Nicholson wrote: >> http://pastebin.com/dnAngPCR >> >> http://pastebin.com/sgNUs6yq >> >> ...and not a shared library in sight, that I could see.... >> >>> Did you edit the pkgconfig files? >> >> >> I edited the librtmp.pc file as the prefix(es) were obviously wrong. >> I checked the libssl/pc and libcrypto.pc files but could not see any >> glaring errors, prefixes were correct and ldl was not listed under any >> of the Libs/Libs.private:- >> >> >> Libs: -L${libdir} -lrtmp -lz #librtmp >> Libs: -L${libdir} -lssl -lcrypto -lws2_32 -lgdi32 -lcrypt32 #libssl >> Libs: -L${libdir} -lcrypto -lws2_32 -lgdi32 -lcrypt32 #libcrypto > > You should be compiling openssl with: ./Configure --openssldir="/prefix" > --prefix="/prefix" --cross-compile-prefix=i686-w64-mingw32- mingw no-shared > adding --openssldir="/prefix" makes no difference to the install paths, nor would I expect it too after a peruse of the configure. I found using "--cross-compile-prefix=x86_64-w64-mingw32-" instead of presetting CC etc as I did led to an error:- ../x86_64-w64-mingw32/bin/as: unrecognized option '--noexecstack' which is odd as I preset AS to x86_64-w64-mingw32-as, and I presume that the ../x86_64-w64-mingw32/bin/* binaries are the same as the prefixed ones.. > and making rtmp with: make prefix="/prefix" SYS=mingw > CROSS_COMPILE=i686-w64-mingw32- SHARED=no INC="-I/openssl/include > -I/zlib/include" XLDFLAGS="-L/openssl/lib -L/zlib/lib" > > You'll obviously need to change the prefixes/dir's to meet your needs > but that should be the basic configure. > > You might also need to change the --cross-compile-prefix and the > CROSS_COMPILE to fit your needs as well. > > Lastly, if you are compiling for 64-bit, change the "mingw" in openssl > to "mingw64" > > I've compiled fine with this so you shouldn't run into any issues. I know you do and very useful they are too. However I'm just trying to roll my own now so I can include other things :P > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user -- Tim http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. From dev at rarevision.com Thu Oct 20 12:00:13 2011 From: dev at rarevision.com (Thomas Worth) Date: Thu, 20 Oct 2011 03:00:13 -0700 Subject: [FFmpeg-user] Woah, can I not change frame rate with 1:1 mapping? Message-ID: Hi, I'm trying to specify an alternate output frame rate with ffmpeg/avconv. I tried this: ffmpeg -r 23.976 -i movie.mov newmovie.mov All I get is: Option framerate not found. Now, if I put -r after -i: ffmpeg -i movie.mov -r 23.976 newmovie.mov This skips frames so the duration of the output the same as the input. However, that's not what I want. What I want to do is take an input file and remap each frame 1:1 to a different rate. A practical use for this would be NTSC->PAL conversions or taking overcranked footage (stuff shot at 60p, for example) and creating slow-motion output at 24 or 25 fps. I am aware that the durations would be different -- that is the expected result. The frame counts of both input/output should be identical. Is there no way I can do this via the ffmpeg binary? I know the API is easily capable of this. From nicolas.george at normalesup.org Thu Oct 20 12:42:13 2011 From: nicolas.george at normalesup.org (Nicolas George) Date: Thu, 20 Oct 2011 12:42:13 +0200 Subject: [FFmpeg-user] Woah, can I not change frame rate with 1:1 mapping? In-Reply-To: References: Message-ID: <20111020104213.GA20218@phare.normalesup.org> Le nonidi 29 vend?miaire, an CCXX, Thomas Worth a ?crit?: > What I want to do is take an input file and remap each frame 1:1 to a > different rate. I believe you can do that with the setpts filter. Regards, -- Nicolas George -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From stas.oskin at gmail.com Thu Oct 20 13:39:28 2011 From: stas.oskin at gmail.com (Stas Oskin) Date: Thu, 20 Oct 2011 13:39:28 +0200 Subject: [FFmpeg-user] Lowest latency for live RTMP streaming? Message-ID: Hi. We trying to reach the minimal latency using librtmp. I've passed over librtmp parameters, and seems there are two related ones, "buffer" and "live" parameters. "Live"parameter does not work with "buffer" parameter, so does it mean setting "live" parameter produces lowest possible latency, with the only buffer on Flash server and Flash client side? Thanks. From philip at turmel.org Thu Oct 20 14:05:34 2011 From: philip at turmel.org (Phil Turmel) Date: Thu, 20 Oct 2011 08:05:34 -0400 Subject: [FFmpeg-user] GPL'd libfaad2 support when compiling without --enable-gpl ? In-Reply-To: <4E9FD560.104@gmx.at> References: <4E9EF63E.7050506@gmx.at> <4E9FD560.104@gmx.at> Message-ID: <4EA00E8E.7090309@turmel.org> On 10/20/2011 04:01 AM, Ewald Peiszer wrote: >> "2". Current versions of ffmpeg *decode* AAC internally. Try "ldd $(which ffmpeg)" > > Thanks Phil! > > Two more things: > > 1) Are there notable/known quality differences between the internal AAC decoder and libfaad2 library in terms of system ressources, audio quality and stability/reliability? If I recall correctly, the internal decoder and faad coexisted in ffmpeg while the internal implementation was developed. I haven't seen any recent complaints about the lack of faad, so I suspect it's trustworthy. I'm not an authority, though, just a light-duty user and lurker. > 2) the output of ldd does not show any references to an external mp3 decoder library so I assume that the same is true for mp3 decoding? I believe so. > linux-vdso.so.1 => (0x00007ffff83fe000) > libavformat.so.1d => /usr/lib/libavformat.so.1d (0x00007f58efdb9000) > libavcodec.so.1d => /usr/lib/libavcodec.so.1d (0x00007f58ef77e000) > libavutil.so.1d => /usr/lib/libavutil.so.1d (0x00007f58ef575000) > libm.so.6 => /lib/libm.so.6 (0x00007f58ef2f4000) > libpthread.so.0 => /lib/libpthread.so.0 (0x00007f58ef0d8000) > libc.so.6 => /lib/libc.so.6 (0x00007f58eed76000) > libz.so.1 => /usr/lib/libz.so.1 (0x00007f58eeb5f000) > libogg.so.0 => /usr/lib/libogg.so.0 (0x00007f58ee95a000) > libdc1394_control.so.13 => /usr/lib/libdc1394_control.so.13 (0x00007f58ee74a000) > libdl.so.2 => /lib/libdl.so.2 (0x00007f58ee546000) > libgsm.so.1 => /usr/lib/libgsm.so.1 (0x00007f58ee339000) > libtheora.so.0 => /usr/lib/libtheora.so.0 (0x00007f58ee0f5000) > libvorbis.so.0 => /usr/lib/libvorbis.so.0 (0x00007f58edec9000) > libvorbisenc.so.2 => /usr/lib/libvorbisenc.so.2 (0x00007f58edaef000) > /lib64/ld-linux-x86-64.so.2 (0x00007f58f0040000) > libraw1394.so.8 => /usr/lib/libraw1394.so.8 (0x00007f58ed8e9000) Regards, Phil From scoliver at 163.com Thu Oct 20 14:16:46 2011 From: scoliver at 163.com (scoliver) Date: Thu, 20 Oct 2011 05:16:46 -0700 (PDT) Subject: [FFmpeg-user] Fedora Unkown encoder 'libmp3lame' In-Reply-To: References: <1318932417312-3914790.post@n4.nabble.com> Message-ID: <1319113006249-3921699.post@n4.nabble.com> Thanks James. I downloaded ffmpeg from websites http://ffmpeg.org/releases/ http://ffmpeg.org/releases/ instead of SVN. I use the latest version 0.8.5. Today I find ffmpeg installed /usr/local ,but the encodecs were installed /usr .So I install ffmpeg again . ./configure --prefix=/usr ..... Then it works out ! I am very glad! Ffmpeg can use these encoder like libmp3lame,libxvid,libfaac. But it still shows "Unknown encoder 'libopencore-amrwb'" . (cmd: ffmpeg -i test.avi -y -b 20 -s sqcif -r 10 -acodec libopencore-amrwb -ab 23.85 -ac 1 -ar 16000 test.3gp) ./configure --help shows: --enable-libopencore-amrnb enable AMR-NB de/encoding via libopencore-amrnb [no] --enable-libopencore-amrwb enable AMR-WB decoding via libopencore-amrwb [no] --enable-libvo-amrwbenc enable AMR-WB encoding via libvo-amrwbenc [no] I use opencore-amr -0.1.2. >From the internet ,there are amrnb-7.0.0.2 and amrwb-7.0.0.4. But from version 0.6 on ,ffmpeg use libopencore-amrnb. ffmpeg-0.5 ./configure --help --enable-libamr-nb enable libamr-nb floating point audio codec [no] --enable-libamr-wb enable libamr-wb floating point audio codec [no] I try to install ffmpeg-0.5,using amrnb-7.0.0.2 and amrwb-7.0.0.4. But it shows "Unknown encoder 'libamr-wb'" .(cmd: ffmpeg -i test.avi -y -b 20 -s sqcif -r 10 -acodec libamr-wb -ab 23.85 -ac 1 -ar 16000 test.3gp) I am very disappointed these days becausing of installing ffmpeg and testing it ! Can you give me some suggestion ? Thanks. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Fedora-Unkown-encoder-libmp3lame-tp3914790p3921699.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From h.reindl at thelounge.net Thu Oct 20 14:36:08 2011 From: h.reindl at thelounge.net (Reindl Harald) Date: Thu, 20 Oct 2011 14:36:08 +0200 Subject: [FFmpeg-user] Fedora Unkown encoder 'libmp3lame' In-Reply-To: <1319113006249-3921699.post@n4.nabble.com> References: <1318932417312-3914790.post@n4.nabble.com> <1319113006249-3921699.post@n4.nabble.com> Message-ID: <4EA015B8.8020703@thelounge.net> why do you not download the src.rpm from rpmfusion and build clean RPM-packages? we are using 0.7.6 and it works like a charme on F14 / F15 after patching some version-checks * patch libx264 .118 to provide 102 (F14) or 114 (F15) * patch ffmepg to require only 102/114 Am 20.10.2011 14:16, schrieb scoliver: > Thanks James. > I downloaded ffmpeg from websites http://ffmpeg.org/releases/ > http://ffmpeg.org/releases/ instead of SVN. I use the latest version 0.8.5. > Today I find ffmpeg installed /usr/local ,but the encodecs were installed > /usr .So I install ffmpeg again . > > ./configure --prefix=/usr ..... > Then it works out ! I am very glad! Ffmpeg can use these encoder like > libmp3lame,libxvid,libfaac. But it still shows "Unknown encoder > 'libopencore-amrwb'" . (cmd: ffmpeg -i test.avi -y -b 20 -s sqcif -r 10 > -acodec libopencore-amrwb -ab 23.85 -ac 1 -ar 16000 test.3gp) > > ./configure --help shows: > --enable-libopencore-amrnb enable AMR-NB de/encoding via > libopencore-amrnb [no] > --enable-libopencore-amrwb enable AMR-WB decoding via libopencore-amrwb > [no] > --enable-libvo-amrwbenc enable AMR-WB encoding via libvo-amrwbenc > [no] > I use opencore-amr -0.1.2. > > From the internet ,there are amrnb-7.0.0.2 and amrwb-7.0.0.4. But from > version 0.6 on ,ffmpeg use libopencore-amrnb. > ffmpeg-0.5 ./configure --help > --enable-libamr-nb enable libamr-nb floating point audio codec [no] > --enable-libamr-wb enable libamr-wb floating point audio codec [no] > > I try to install ffmpeg-0.5,using amrnb-7.0.0.2 and amrwb-7.0.0.4. But it > shows "Unknown encoder 'libamr-wb'" .(cmd: ffmpeg -i test.avi -y -b 20 -s > sqcif -r 10 -acodec libamr-wb -ab 23.85 -ac 1 -ar 16000 test.3gp) > I am very disappointed these days becausing of installing ffmpeg and testing > it ! > > Can you give me some suggestion ? > > Thanks. > > > -- > View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Fedora-Unkown-encoder-libmp3lame-tp3914790p3921699.html > Sent from the FFmpeg-users mailing list archive at Nabble.com. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user -- Mit besten Gr??en, Reindl Harald the lounge interactive design GmbH A-1060 Vienna, Hofm?hlgasse 17 CTO / software-development / cms-solutions p: +43 (1) 595 3999 33, m: +43 (676) 40 221 40 icq: 154546673, http://www.thelounge.net/ http://www.thelounge.net/signature.asc.what.htm -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 262 bytes Desc: OpenPGP digital signature URL: From scoliver at 163.com Thu Oct 20 15:22:41 2011 From: scoliver at 163.com (scoliver) Date: Thu, 20 Oct 2011 06:22:41 -0700 (PDT) Subject: [FFmpeg-user] Fedora Unkown encoder 'libmp3lame' In-Reply-To: <4EA015B8.8020703@thelounge.net> References: <1318932417312-3914790.post@n4.nabble.com> <1319113006249-3921699.post@n4.nabble.com> <4EA015B8.8020703@thelounge.net> Message-ID: <1319116961903-3921880.post@n4.nabble.com> Thanks Reindl . Your suggestion is good . I am new to linux and ffmpeg. I neglect the src.rpm at first. I have spent so much time on it ,so I don't want to give up.Meantime I want to study the ffmpeg souce codes. I'll try again before using src.rpm. Thank you all the same. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Fedora-Unkown-encoder-libmp3lame-tp3914790p3921880.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From vlad.ion at gmail.com Thu Oct 20 17:21:26 2011 From: vlad.ion at gmail.com (oblivion) Date: Thu, 20 Oct 2011 08:21:26 -0700 (PDT) Subject: [FFmpeg-user] Muxing raw H264 to container format (MP4, MOV) Message-ID: <1319124086069-3922255.post@n4.nabble.com> Hi, I have a raw H264 stream that I want to mux into a container format in order to get timing information in it (for seeking purposes). I tried the standard option "-vcodec copy" and I get an empty file. ffmpeg -i input.h264 -vcodec copy out.mp4 I tried variations like specifying the frame rate and the format with "-f h264" but I get the same. Muxing it together with an audio file outputs a container containing the audio file only. The output for the command above is this: ffmpeg version N-33818-gd049257, Copyright (c) 2000-2011 the FFmpeg developers built on Oct 19 2011 23:01:30 with gcc 4.6.1 configuration: --disable-static --enable-shared --enable-gpl --enable-version3 --enable-runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --e nable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable -libgsm --enable-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libsc hroedinger --enable-libspeex --enable-libtheora --enable-libvo-aacenc --enable-l ibvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxa vs --enable-libxvid --enable-zlib libavutil 51. 22. 0 / 51. 22. 0 libavcodec 53. 22. 0 / 53. 22. 0 libavformat 53. 17. 0 / 53. 17. 0 libavdevice 53. 4. 0 / 53. 4. 0 libavfilter 2. 44. 1 / 2. 44. 1 libswscale 2. 1. 0 / 2. 1. 0 libpostproc 51. 2. 0 / 51. 2. 0 [h264 @ 01E4E8E0] Estimating duration from bitrate, this may be inaccurate Seems stream 0 codec frame rate differs from container frame rate: 50.00 (50/1) -> 25.00 (50/2) Input #0, h264, from 'input.h264': Duration: N/A, bitrate: N/A Stream #0:0: Video: h264 (High), yuv420p, 1280x960, 25 fps, 25 tbr, 1200k tb n, 50 tbc File 'out.mp4' already exists. Overwrite ? [y/N] y Output #0, mp4, to 'out.mp4': Metadata: encoder : Lavf53.17.0 Stream #0:0: Video: h264 (![0][0][0] / 0x0021), yuv420p, 1280x960, q=2-31, 2 5 tbn, 25 tbc Stream mapping: Stream #0.0 -> #0.0 (copy) Press [q] to stop, [?] for help frame= 0 fps= 0 q=-1.0 Lsize= 0kB time=00:00:00.00 bitrate= 0.0kbits /s video:0kB audio:0kB global headers:0kB muxing overhead 1.#INF00% I looks like it does absolutely no processing and just exists. Re-encoding the file works but I don't want that, I just want to use the already encoded data.\ I also tried an older tool, avc2avi.exe, which works fine but it writes AVI 1.0 files that are limited in size and I would need AVI 2.0 for large files. Thanks for any suggestions. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Muxing-raw-H264-to-container-format-MP4-MOV-tp3922255p3922255.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From ben at cardinalpeak.com Thu Oct 20 17:39:49 2011 From: ben at cardinalpeak.com (Ben Mesander) Date: Thu, 20 Oct 2011 09:39:49 -0600 Subject: [FFmpeg-user] Muxing raw H264 to container format (MP4, MOV) In-Reply-To: <1319124086069-3922255.post@n4.nabble.com> References: <1319124086069-3922255.post@n4.nabble.com> Message-ID: On Thu, Oct 20, 2011 at 9:21 AM, oblivion wrote: > Hi, > > I have a raw H264 stream that I want to mux into a container format in > order > to get timing information in it (for seeking purposes). I tried the > standard > option "-vcodec copy" and I get an empty file. > > ffmpeg -i input.h264 -vcodec copy out.mp4 > > I tried variations like specifying the frame rate and the format with "-f > h264" but I get the same. This works for me: ffmpeg -f h264 -i angel.264 -vcodec copy angel.mp4 With an older ffmpeg build. See: http://www.cardinalpeak.com/blog/?p=488 Regards, Ben From vlad.ion at gmail.com Thu Oct 20 17:51:53 2011 From: vlad.ion at gmail.com (oblivion) Date: Thu, 20 Oct 2011 08:51:53 -0700 (PDT) Subject: [FFmpeg-user] Muxing raw H264 to container format (MP4, MOV) In-Reply-To: References: <1319124086069-3922255.post@n4.nabble.com> Message-ID: <1319125913860-3922333.post@n4.nabble.com> I am using the exact same options and I get an empty file. The h264 raw stream is completely ignored. Can there be something weird in the stream that causes it to be skipped? There are no errors in the output so there is no hint of what's causing this. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Muxing-raw-H264-to-container-format-MP4-MOV-tp3922255p3922333.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From dfnsonfsduifb at gmx.de Thu Oct 20 17:56:27 2011 From: dfnsonfsduifb at gmx.de (Johannes Bauer) Date: Thu, 20 Oct 2011 17:56:27 +0200 Subject: [FFmpeg-user] FFmpeg A/V sync In-Reply-To: References: Message-ID: <4EA044AB.8080103@gmx.de> Hi Carl, Am 20.10.2011 02:34, schrieb Carl Eugen Hoyos: > Hi! > > ffmpeg -i 00022.mts -qscale 2 out.avi > mplayer out.avi > > out.avi zeigt kein Problem, soweit ich sehen kann. > ? No, it really doesn't (not even on my machine). So therefore I assume that ffmpeg is not at fault and I will direct my request to the melt mailing list. Thank you very much for trying this out! Best regards, Joe From nicolas.george at normalesup.org Thu Oct 20 18:32:44 2011 From: nicolas.george at normalesup.org (Nicolas George) Date: Thu, 20 Oct 2011 18:32:44 +0200 Subject: [FFmpeg-user] GPL'd libfaad2 support when compiling without --enable-gpl ? In-Reply-To: <4E9FD560.104@gmx.at> References: <4E9EF63E.7050506@gmx.at> <4E9FD560.104@gmx.at> Message-ID: <20111020163244.GA3318@phare.normalesup.org> Le nonidi 29 vend?miaire, an CCXX, Ewald Peiszer a ?crit?: > 2) the output of ldd does not show any references to an external mp3 > decoder library so I assume that the same is true for mp3 decoding? Use ffmpeg to decode something in MP3: ffmpeg -i some.mp3 -f s16le - > /dev/null Stream mapping: Stream #0.0 -> #0.0 (mp3 -> pcm_s16le) The first name in the parentheses is the name of the decoder. If it does not start with "lib", then it is internal to ffmpeg. Regards, -- Nicolas George -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From radpopl at gmail.com Thu Oct 20 17:30:57 2011 From: radpopl at gmail.com (=?UTF-8?B?UmFkb3PFgmF3IFBvcMWCYXdza2k=?=) Date: Thu, 20 Oct 2011 17:30:57 +0200 Subject: [FFmpeg-user] Encoding MP3 VBR Message-ID: <4EA03EB1.30305@gmail.com> Hi, what is wrong with encoding audio files with libmp3lame? I tried encode (convert) some files to MP3 with VBR (-q 4), output mp3 file is okay, but players can't recognize length of file (in sec). Is this correctable? From batguano999 at hotmail.com Thu Oct 20 21:10:21 2011 From: batguano999 at hotmail.com (bat guano) Date: Thu, 20 Oct 2011 19:10:21 +0000 Subject: [FFmpeg-user] Encoding MP3 VBR In-Reply-To: <4EA03EB1.30305@gmail.com> References: <4EA03EB1.30305@gmail.com> Message-ID: > > what is wrong with encoding audio files with libmp3lame? > I tried encode (convert) some files to MP3 with VBR (-q 4), Maybe you have used the wrong command. Show some output. From dashing.meng at gmail.com Fri Oct 21 02:49:35 2011 From: dashing.meng at gmail.com (littlebat) Date: Fri, 21 Oct 2011 08:49:35 +0800 Subject: [FFmpeg-user] GPL'd libfaad2 support when compiling without --enable-gpl ? In-Reply-To: <4E9FD560.104@gmx.at> References: <4E9EF63E.7050506@gmx.at> <4E9FD560.104@gmx.at> Message-ID: <20111021084935.6e9bbdb3.dashing.meng@gmail.com> On Thu, 20 Oct 2011 10:01:36 +0200 Ewald Peiszer wrote: > > "2". Current versions of ffmpeg *decode* AAC internally. Try > > "ldd > $(which ffmpeg)" > > Thanks Phil! > > Two more things: > > 1) Are there notable/known quality differences between the internal > AAC decoder and libfaad2 library in terms of system ressources, audio > quality and stability/reliability? > > 2) the output of ldd does not show any references to an external mp3 > decoder library so I assume that the same is true for mp3 decoding? > > linux-vdso.so.1 => (0x00007ffff83fe000) > libavformat.so.1d => /usr/lib/libavformat.so.1d > (0x00007f58efdb9000) > libavcodec.so.1d => /usr/lib/libavcodec.so.1d > (0x00007f58ef77e000) libavutil.so.1d => /usr/lib/libavutil.so.1d > (0x00007f58ef575000) libm.so.6 => /lib/libm.so.6 (0x00007f58ef2f4000) > libpthread.so.0 => /lib/libpthread.so.0 (0x00007f58ef0d8000) > libc.so.6 => /lib/libc.so.6 (0x00007f58eed76000) > libz.so.1 => /usr/lib/libz.so.1 (0x00007f58eeb5f000) > libogg.so.0 => /usr/lib/libogg.so.0 (0x00007f58ee95a000) > libdc1394_control.so.13 => /usr/lib/libdc1394_control.so.13 > (0x00007f58ee74a000) > libdl.so.2 => /lib/libdl.so.2 (0x00007f58ee546000) > libgsm.so.1 => /usr/lib/libgsm.so.1 (0x00007f58ee339000) > libtheora.so.0 => /usr/lib/libtheora.so.0 > (0x00007f58ee0f5000) libvorbis.so.0 => /usr/lib/libvorbis.so.0 > (0x00007f58edec9000) libvorbisenc.so.2 => /usr/lib/libvorbisenc.so.2 > (0x00007f58edaef000) > /lib64/ld-linux-x86-64.so.2 (0x00007f58f0040000) > libraw1394.so.8 => /usr/lib/libraw1394.so.8 > (0x00007f58ed8e9000) > "./configure --list-decoders" will list all available decoders, include internal and external. You will see only "aac" decoder exist even if you install "libfaac*" and "libfaac*-dev" or some things similar. "./configure --list-encoders" will list all available encoders. "ffmpeg -codecs" will list all available codecs(include decode and encode) supported by your ffmpeg binary. From dashing.meng at gmail.com Fri Oct 21 03:06:49 2011 From: dashing.meng at gmail.com (littlebat) Date: Fri, 21 Oct 2011 09:06:49 +0800 Subject: [FFmpeg-user] GPL'd libfaad2 support when compiling without --enable-gpl ?(correct) In-Reply-To: <4E9FD560.104@gmx.at> References: <4E9EF63E.7050506@gmx.at> <4E9FD560.104@gmx.at> Message-ID: <20111021090649.cfb7d8ba.dashing.meng@gmail.com> On Thu, 20 Oct 2011 10:01:36 +0200 Ewald Peiszer wrote: > > "2". Current versions of ffmpeg *decode* AAC internally. Try > > "ldd > $(which ffmpeg)" > > Thanks Phil! > > Two more things: > > 1) Are there notable/known quality differences between the internal > AAC decoder and libfaad2 library in terms of system ressources, audio > quality and stability/reliability? > > 2) the output of ldd does not show any references to an external mp3 > decoder library so I assume that the same is true for mp3 decoding? > > linux-vdso.so.1 => (0x00007ffff83fe000) > libavformat.so.1d => /usr/lib/libavformat.so.1d > (0x00007f58efdb9000) > libavcodec.so.1d => /usr/lib/libavcodec.so.1d > (0x00007f58ef77e000) libavutil.so.1d => /usr/lib/libavutil.so.1d > (0x00007f58ef575000) libm.so.6 => /lib/libm.so.6 (0x00007f58ef2f4000) > libpthread.so.0 => /lib/libpthread.so.0 (0x00007f58ef0d8000) > libc.so.6 => /lib/libc.so.6 (0x00007f58eed76000) > libz.so.1 => /usr/lib/libz.so.1 (0x00007f58eeb5f000) > libogg.so.0 => /usr/lib/libogg.so.0 (0x00007f58ee95a000) > libdc1394_control.so.13 => /usr/lib/libdc1394_control.so.13 > (0x00007f58ee74a000) > libdl.so.2 => /lib/libdl.so.2 (0x00007f58ee546000) > libgsm.so.1 => /usr/lib/libgsm.so.1 (0x00007f58ee339000) > libtheora.so.0 => /usr/lib/libtheora.so.0 > (0x00007f58ee0f5000) libvorbis.so.0 => /usr/lib/libvorbis.so.0 > (0x00007f58edec9000) libvorbisenc.so.2 => /usr/lib/libvorbisenc.so.2 > (0x00007f58edaef000) > /lib64/ld-linux-x86-64.so.2 (0x00007f58f0040000) > libraw1394.so.8 => /usr/lib/libraw1394.so.8 > (0x00007f58ed8e9000) > "./configure --list-decoders" will list all available decoders, include internal and external. You will see only "aac" decoder exist even if you install "libfaad*" and "libfaad*-dev" or some things similar. "./configure --list-encoders" will list all available encoders. "ffmpeg -codecs" will list all available codecs(include decode and encode) supported by your ffmpeg binary. From frederiksunne at gmail.com Fri Oct 21 12:05:52 2011 From: frederiksunne at gmail.com (Frederik Dam Sunne) Date: Fri, 21 Oct 2011 12:05:52 +0200 Subject: [FFmpeg-user] Creating DVCPRO100 files with ffmbc Message-ID: Hi, I was very excited when I found out, that support for transcoding to DVCPRO100/DVCPROHD is added to ffmbc. But does anyone know how I do that? And further, does anyone know whether this ffmbc specific feature will be added to FFmpeg? Regards, Frederik From mark at mdsh.com Fri Oct 21 13:21:48 2011 From: mark at mdsh.com (Mark Himsley) Date: Fri, 21 Oct 2011 12:21:48 +0100 Subject: [FFmpeg-user] Creating DVCPRO100 files with ffmbc In-Reply-To: References: Message-ID: <4EA155CC.3000805@mdsh.com> On 21/10/11 11:05, Frederik Dam Sunne wrote: > Hi, > > I was very excited when I found out, that support for transcoding to > DVCPRO100/DVCPROHD is added to ffmbc. This is not really the correct email list for discussing ffmbc... but > But does anyone know how I do that? Basically: ffmbc -i -vf scale=1440:1080:interl=1 -vcodec dvvideo -pix_fmt yuv422p -aspect 16:9 -tff Obviously, this is just an example and many other parameters will be required for a professional transcode. > And further, does anyone know whether this ffmbc specific feature will be > added to FFmpeg? -- Mark From frederiksunne at gmail.com Fri Oct 21 14:00:10 2011 From: frederiksunne at gmail.com (Frederik Dam Sunne) Date: Fri, 21 Oct 2011 14:00:10 +0200 Subject: [FFmpeg-user] Creating DVCPRO100 files with ffmbc In-Reply-To: <4EA155CC.3000805@mdsh.com> References: <4EA155CC.3000805@mdsh.com> Message-ID: > > This is not really the correct email list for discussing ffmbc... but > Sorry about that, but I really didn't know where to turn to - and thank you it works! Regards, Frederik From dev at rarevision.com Fri Oct 21 17:01:10 2011 From: dev at rarevision.com (Thomas Worth) Date: Fri, 21 Oct 2011 08:01:10 -0700 Subject: [FFmpeg-user] Woah, can I not change frame rate with 1:1 mapping? In-Reply-To: <20111020104213.GA20218@phare.normalesup.org> References: <20111020104213.GA20218@phare.normalesup.org> Message-ID: On Thu, Oct 20, 2011 at 3:42 AM, Nicolas George wrote: > Le nonidi 29 vend?miaire, an CCXX, Thomas Worth a ?crit?: >> What I want to do is take an input file and remap each frame 1:1 to a >> different rate. > > I believe you can do that with the setpts filter. That works, but why not allow the use the -r option ahead of -i like with image sequences? That seems more intuitive. Otherwise, I have do do some math to figure out what the PTS values should be. From rhkramer at gmail.com Fri Oct 21 22:38:44 2011 From: rhkramer at gmail.com (Randy Kramer) Date: Fri, 21 Oct 2011 16:38:44 -0400 Subject: [FFmpeg-user] Solved! (was Re: Problem: some videos freeze, other very similar videos do not--difference might be just in resolution (pixels)--how to convert?) In-Reply-To: References: <201110141353.19987.rhkramer@gmail.com> Message-ID: <201110211638.44670.rhkramer@gmail.com> I got the problem solved. It turns out it was related to the 1000 fps for the container. ("Seems stream 0 codec frame rate differs from container frame rate: 1000.00...") With various hints, some from these lists, I managed to get an ffmpeg command that converted the videos (well, I've only tested this on one so far): ffmpeg -i video1.flv -vcodec libx264 -acodec copy -r 29.92 video1_h264.flv With this conversion, the video starts playing promptly, I no longer see the reference to 1000 fps, and I haven't had any freezes (even while my machine is loaded enough that the original file does freeze). The file does increase in size by about 25%. I don't think the video deteriorates much if at all, but I've been staring at it too long. I need to take a look at it with fresh eyes, maybe tomorrow. (Other conversions that I tried, like to .avi format resulted in files about the same size, but noticeable deterioration in the video (and preserved the 1000 fps, which seemed not to cause a problem (as a .avi) for mplayer.) Thanks for the help! Randy Kramer From nicolas.george at normalesup.org Sat Oct 22 11:43:47 2011 From: nicolas.george at normalesup.org (Nicolas George) Date: Sat, 22 Oct 2011 11:43:47 +0200 Subject: [FFmpeg-user] Woah, can I not change frame rate with 1:1 mapping? In-Reply-To: References: <20111020104213.GA20218@phare.normalesup.org> Message-ID: <20111022094347.GB11459@phare.normalesup.org> Le decadi 30 vend?miaire, an CCXX, Thomas Worth a ?crit?: > That works, but why not allow the use the -r option ahead of -i like > with image sequences? That seems more intuitive. Otherwise, I have do > do some math to figure out what the PTS values should be. Frame rate is not something that really makes sense. Some formats do not have such thing as frame rate, they only have timestamps for the packets. Sure, some formats could take the -r option into account and currently do not, but I do not think it would be a good thing. Just think to the -r option that way: the input format does not specify timestamps nor frame rate, I must specify it myself, or I will use the arbitrary default built in the library. Regards, -- Nicolas George -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From dev at rarevision.com Sat Oct 22 16:13:57 2011 From: dev at rarevision.com (Thomas Worth) Date: Sat, 22 Oct 2011 07:13:57 -0700 Subject: [FFmpeg-user] Woah, can I not change frame rate with 1:1 mapping? In-Reply-To: <20111022094347.GB11459@phare.normalesup.org> References: <20111020104213.GA20218@phare.normalesup.org> <20111022094347.GB11459@phare.normalesup.org> Message-ID: On Sat, Oct 22, 2011 at 2:43 AM, Nicolas George wrote: > Le decadi 30 vend?miaire, an CCXX, Thomas Worth a ?crit?: >> That works, but why not allow the use the -r option ahead of -i like >> with image sequences? That seems more intuitive. Otherwise, I have do >> do some math to figure out what the PTS values should be. > > Frame rate is not something that really makes sense. Some formats do not > have such thing as frame rate, they only have timestamps for the packets. > Sure, some formats could take the -r option into account and currently do > not, but I do not think it would be a good thing. I understand this. In fact, there is no such thing as frame rate with image sequences but -r still works with them. Is there any downside to making -r specify frame rate (for containers that support it) between packet boundaries? In other words, we know each packet will contain a frame (like each PNG file contains a frame) so why can't this work the exact same way it does with image sequences? IMHO, if -r for input is not even implemented (instead giving an error), it should at least be enabled for containers that support frame rates like MOV or AVI. It's just so convenient. > Just think to the -r option that way: the input format does not specify > timestamps nor frame rate, I must specify it myself, or I will use the > arbitrary default built in the library. Yeah but we could just as easily override the input container's frame rate (or packet boundary) with -r if this was supported. The PTS filter is a bit hacky and subject to rounding errors, especially for fractional frame rates like 59.94, 29.97 and 23.976. All I'm saying is it would be nice to just say -r 23.976 so the muxer thinks the input frame rate is 23.976. If frame rates aren't supported with the container, then the value could be ignored. It seems like a no-brainer, but if I am overlooking something then please explain. From rjwse at aol.com Sat Oct 22 20:07:04 2011 From: rjwse at aol.com (pop) Date: Sat, 22 Oct 2011 13:07:04 -0500 Subject: [FFmpeg-user] ffmpeg ubuntu screencast-with-sound gui Message-ID: <4EA30648.1020308@aol.com> I would like to contribute in some manner as a tester for such a gui, should anybody be developing it. I am particularly interested in pause/resume From jay.kert at yahoo.com Sat Oct 22 20:51:22 2011 From: jay.kert at yahoo.com (Jay Kert) Date: Sat, 22 Oct 2011 11:51:22 -0700 (PDT) Subject: [FFmpeg-user] Streaming video as input to ffmpeg Message-ID: <1319309482.78734.YahooMailNeo@web122416.mail.ne1.yahoo.com> Hi guys, I am newbie with ffmpeg. I have would like to capture a live real time stream (like TV) and provide it as input to ffmpeg. I see that ffmpeg accepts files as input, also i tried give it a file which was constantly being written to (streaming to a file using vlc), but it doesnt work(it quits after a while). Please do let me know how i can do this. I tried search the web a lot for this(incl ffmpeg faq ), but couldnt find it. thanks a lot, jay From eolinwen at gmail.com Sat Oct 22 21:29:20 2011 From: eolinwen at gmail.com (eolinwen at gmail.com) Date: Sat, 22 Oct 2011 21:29:20 +0200 Subject: [FFmpeg-user] ffmpeg ubuntu screencast-with-sound gui In-Reply-To: <4EA30648.1020308@aol.com> References: <4EA30648.1020308@aol.com> Message-ID: Hi, A great application using only FFmpeg exists already. She is developed by Hizoka (a French famous user) and you can see it here : http://forum.ubuntu-fr.org/viewtopic.php?id=440555 The web page of the project is not yet on Launchpad but she will be soon. Hizoka have done currently some modifications for including the support of the format WebM. You can record your screencast now in three formats i.e x264, flv and WebM. A PPA is existing for Ubuntu users here : https://launchpad.net/~hizo/+archive/logiciels. Regards. 2011/10/22 pop > I would like to contribute in some manner as a tester for such a gui, > should anybody be developing it. I am particularly interested in > pause/resume > ______________________________**_________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/**listinfo/ffmpeg-user > -- Olivier Cenwen un elfe sur la banquise/ an elve on the ice Mon blog perso sur le multim?dia, Ubuntu, Linux et OpenShot : http://linuxevolution.wordpress.com/ Le forum d'Openshot o? vous me trouverez : http://openshotusers.com/ http://openshotusers.com/forum/index.php Nothing is lost until the last second. The family motto : When we want, we can. From rmarduk at gmail.com Fri Oct 21 11:15:13 2011 From: rmarduk at gmail.com (red red) Date: Fri, 21 Oct 2011 11:15:13 +0200 Subject: [FFmpeg-user] Ffmpeg webm problem Message-ID: Good morning i have a problem that i would like to have answer on. Please confirm if there is a possibility: - to conver from webm format to flv or any other format - to create a image (thumbnail) from webm format I couldn't find any anser on the web that there is this possibility. Converting to webm format is possible but from it only creates errors. This error occurs when trying to create a jpeg from webm movie: Unknown format is not supported as input pixel format. Please take seriously this email ant I thank i advance for any help. From h.reindl at thelounge.net Sat Oct 22 21:54:52 2011 From: h.reindl at thelounge.net (Reindl Harald) Date: Sat, 22 Oct 2011 21:54:52 +0200 Subject: [FFmpeg-user] Ffmpeg webm problem In-Reply-To: References: Message-ID: <4EA31F8C.9080408@thelounge.net> i guess there are much more informations needes * OS + version * ffmpeg-version * version of libvpx * configure-flags of your ffmpeg why? because on all of my machnes with self-compiled ffmpeg/libvpx snaphsots of webm-files and convert rom all formats to webm and from webm to all formats works like a charme libvpx-0.9.7.1-2.fc15.20111022.rh.x86_64 ffmpeg-libs-0.7.6-3.20111007git32000.fc15.20111022.rh.x86_64 ffmpeg-0.7.6-3.20111007git32000.fc15.20111022.rh.x86_64 [harry at srv-rhsoft:~]$ ffmpeg ffmpeg version 0.7.6-thelounge.net, Copyright (c) 2000-2011 the FFmpeg developers built on Oct 22 2011 13:37:20 with gcc 4.6.1 20110908 (Red Hat 4.6.1-9) configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --extra-cflags='-O6 -march=core2 -mtune=core2 -mmmx -msse2 -msse3 -msse4.1 -fopenmp -mfpmath=sse -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -pipe -D_FORTIFY_SOURCE=2 -fexceptions' --extra-version=thelounge.net --enable-nonfree --enable-gpl --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libdc1394 --enable-libdirac --enable-libfaac --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-libvpx --enable-librtmp --enable-avfilter --enable-postproc --enable-swscale --enable-bzlib --enable-zlib --enable-libfreetype --enable-pthreads --enable-fastdiv --enable-pic --enable-libopencv --enable-shared --disable-vdpau --disable-vaapi --disable-hwaccels --disable-static --disable-debug --shlibdir=/usr/lib64 --cpu=core2 --enable-runtime-cpudetect Am 21.10.2011 11:15, schrieb red red: > Good morning i have a problem that i would like to have answer on. > > Please confirm if there is a possibility: > > to conver from webm format to flv or any other format > - > > to create a image (thumbnail) from webm format > > > I couldn't find any anser on the web that there is this possibility. > Converting to webm format is > > possible but from it only creates errors. > > > This error occurs when trying to create a jpeg from webm movie: > > Unknown format is not supported as input pixel format. > > > Please take seriously this email ant I thank i advance for any help -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 262 bytes Desc: OpenPGP digital signature URL: From hardik.sharma22 at yahoo.com Sat Oct 22 23:27:28 2011 From: hardik.sharma22 at yahoo.com (Hardik Sharma) Date: Sat, 22 Oct 2011 14:27:28 -0700 (PDT) Subject: [FFmpeg-user] Decoding of rtp packets Message-ID: <1319318848.12333.YahooMailNeo@web46208.mail.sp1.yahoo.com> Hi? My problem is I encoded raw yuv video into h264 and then used the rtp mode to send it to my own machine. Now I want to decode those packets back to yuv format. I don't know how to collect all those packets coming to my one port of computer and how to decode them. Please let me know regarding this problem. Thanks. ? ? ? From h.reindl at thelounge.net Sun Oct 23 00:00:33 2011 From: h.reindl at thelounge.net (Reindl Harald) Date: Sun, 23 Oct 2011 00:00:33 +0200 Subject: [FFmpeg-user] git old-abi 0.7.5 instead 0.7.6? Message-ID: <4EA33D01.5030104@thelounge.net> oldabi is currentyl 0.7.6 why do git-snapshot bring 0.7.5 instead a git-number? [builduser at buildserver64:/rpmbuild/SOURCES]$ bash ffmpeg-snapshot.sh /tmp/tmp.V00vqRUl1f Cloning into ffmpeg... remote: Counting objects: 179803, done. remote: Compressing objects: 100% (41058/41058), done. remote: Total 179803 (delta 140645), reused 177118 (delta 138483) Receiving objects: 100% (179803/179803), 47.12 MiB | 1.11 MiB/s, done. Resolving deltas: 100% (140645/140645), done. /tmp/tmp.V00vqRUl1f/ffmpeg-20111022/libswscale /tmp/tmp.V00vqRUl1f/ffmpeg-20111022 /tmp/tmp.V00vqRUl1f/ffmpeg-20111022 #define FFMPEG_VERSION "0.7.5" _____________ [builduser at buildserver64:/rpmbuild/SOURCES]$ cat ffmpeg-snapshot.sh #!/bin/bash set -e tmp=$(mktemp -d) trap cleanup EXIT cleanup() { set +e [ -z "$tmp" -o ! -d "$tmp" ] || rm -rf "$tmp" } unset CDPATH pwd=$(pwd) date=$(date +%Y%m%d) echo "$tmp" cd "$tmp" git clone -b oldabi git://git.videolan.org/ffmpeg.git mv ffmpeg ffmpeg-$date cd ffmpeg-$date pushd libswscale popd ./version.sh . version.h find . -type d -name .git -print0 | xargs -0r rm -rf sed -i -e '/^\.PHONY: version\.h$/d' Makefile cat version.h cd .. tar jcf "$pwd"/ffmpeg-$date.tar.bz2 ffmpeg-$date cd - >/dev/null -- Mit besten Gr??en, Reindl Harald the lounge interactive design GmbH A-1060 Vienna, Hofm?hlgasse 17 CTO / software-development / cms-solutions p: +43 (1) 595 3999 33, m: +43 (676) 40 221 40 icq: 154546673, http://www.thelounge.net/ http://www.thelounge.net/signature.asc.what.htm -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 262 bytes Desc: OpenPGP digital signature URL: From luj125 at gmail.com Sun Oct 23 00:13:54 2011 From: luj125 at gmail.com (James Lu) Date: Sat, 22 Oct 2011 15:13:54 -0700 Subject: [FFmpeg-user] Ffmpeg webm problem In-Reply-To: <4EA31F8C.9080408@thelounge.net> References: <4EA31F8C.9080408@thelounge.net> Message-ID: On Sat, Oct 22, 2011 at 12:54 PM, Reindl Harald wrote: > i guess there are much more informations needes > > * OS + version > * ffmpeg-version > * version of libvpx > * configure-flags of your ffmpeg > > why? > > because on all of my machnes with self-compiled ffmpeg/libvpx > snaphsots of webm-files and convert rom all formats to webm > and from webm to all formats works like a charme > > libvpx-0.9.7.1-2.fc15.20111022.rh.x86_64 > ffmpeg-libs-0.7.6-3.20111007git32000.fc15.20111022.rh.x86_64 > ffmpeg-0.7.6-3.20111007git32000.fc15.20111022.rh.x86_64 > > > [harry at srv-rhsoft:~]$ ffmpeg > ffmpeg version 0.7.6-thelounge.net, Copyright (c) 2000-2011 the FFmpeg > developers > built on Oct 22 2011 13:37:20 with gcc 4.6.1 20110908 (Red Hat 4.6.1-9) > configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg > --incdir=/usr/include/ffmpeg > --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 > --extra-cflags='-O6 -march=core2 -mtune=core2 -mmmx > -msse2 -msse3 -msse4.1 -fopenmp -mfpmath=sse > -fno-delete-null-pointer-checks -fstack-protector > --param=ssp-buffer-size=4 -pipe -D_FORTIFY_SOURCE=2 -fexceptions' > --extra-version=thelounge.net --enable-nonfree > --enable-gpl --enable-version3 --enable-libopencore-amrnb > --enable-libopencore-amrwb --enable-libdc1394 > --enable-libdirac --enable-libfaac --enable-libgsm --enable-libmp3lame > --enable-libopenjpeg > --enable-libschroedinger --enable-libspeex --enable-libtheora > --enable-libvorbis --enable-libx264 --enable-libxvid > --enable-libvpx --enable-librtmp --enable-avfilter --enable-postproc > --enable-swscale --enable-bzlib --enable-zlib > --enable-libfreetype --enable-pthreads --enable-fastdiv --enable-pic > --enable-libopencv --enable-shared > --disable-vdpau --disable-vaapi --disable-hwaccels --disable-static > --disable-debug --shlibdir=/usr/lib64 > --cpu=core2 --enable-runtime-cpudetect > > Am 21.10.2011 11:15, schrieb red red: > > Good morning i have a problem that i would like to have answer on. > > > > Please confirm if there is a possibility: > > > > to conver from webm format to flv or any other format > > - > > > > to create a image (thumbnail) from webm format > > > > > > I couldn't find any anser on the web that there is this possibility. > > Converting to webm format is > > > > possible but from it only creates errors. > > > > > > This error occurs when trying to create a jpeg from webm movie: > > > > Unknown format is not supported as input pixel format. > > > > > > Please take seriously this email ant I thank i advance for any help > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > So, you should provide a command line that you used to get this error. I suspect that if you use -vf to specify a pixel format then it would remove the error? Hope this helps, James From rickcorteza at gmail.com Sun Oct 23 05:00:50 2011 From: rickcorteza at gmail.com (Rick C.) Date: Sun, 23 Oct 2011 11:00:50 +0800 Subject: [FFmpeg-user] uncompressed avi Message-ID: <5E049B02-6DA9-412B-98EA-ECF3D897A240@gmail.com> Hello, What command line would I use to create an uncompressed avi because I can't figure it out? Thank you for the help, rc From nicolas.george at normalesup.org Sun Oct 23 10:17:12 2011 From: nicolas.george at normalesup.org (Nicolas George) Date: Sun, 23 Oct 2011 10:17:12 +0200 Subject: [FFmpeg-user] Woah, can I not change frame rate with 1:1 mapping? In-Reply-To: References: <20111020104213.GA20218@phare.normalesup.org> <20111022094347.GB11459@phare.normalesup.org> Message-ID: <20111023081712.GA12649@phare.normalesup.org> Le primidi 1er brumaire, an CCXX, Thomas Worth a ?crit?: > I understand this. In fact, there is no such thing as frame rate with > image sequences but -r still works with them. Let me rephrase it: There is no such thing as frame rate or timestamps with images sequences, *therefore* -r *has to* work with them. > IMHO, if -r for input is not even implemented (instead giving an > error), it should at least be enabled for containers that support > frame rates like MOV or AVI. It's just so convenient. Patch welcome. > Yeah but we could just as easily override the input container's frame > rate (or packet boundary) with -r if this was supported. The PTS > filter is a bit hacky and subject to rounding errors, especially for > fractional frame rates like 59.94, 29.97 and 23.976. I am quite sure that the filter does the correct rounding and therefore does not risk introducing errors. Of course, you have to use the correct number: 30000/1001 and not 29.97. Regards, -- Nicolas George -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From dev at rarevision.com Sun Oct 23 15:47:40 2011 From: dev at rarevision.com (Thomas Worth) Date: Sun, 23 Oct 2011 06:47:40 -0700 Subject: [FFmpeg-user] Woah, can I not change frame rate with 1:1 mapping? In-Reply-To: <20111023081712.GA12649@phare.normalesup.org> References: <20111020104213.GA20218@phare.normalesup.org> <20111022094347.GB11459@phare.normalesup.org> <20111023081712.GA12649@phare.normalesup.org> Message-ID: On Sun, Oct 23, 2011 at 1:17 AM, Nicolas George wrote: > Le primidi 1er brumaire, an CCXX, Thomas Worth a ?crit?: >> IMHO, if -r for input is not even implemented (instead giving an >> error), it should at least be enabled for containers that support >> frame rates like MOV or AVI. It's just so convenient. > > Patch welcome. Heh. I knew you were gonna say that. :-) > I am quite sure that the filter does the correct rounding and therefore does > not risk introducing errors. Of course, you have to use the correct number: > 30000/1001 and not 29.97. Thanks. I'll try it and see if I can break it. I can deal with modifying PTS for now in my scripts, but it would be nice to just say -r 24 if typing on the fly. From lorenzo.travaglio at fastwebnet.it Sun Oct 23 16:47:38 2011 From: lorenzo.travaglio at fastwebnet.it (Lorenzo Travaglio) Date: Sun, 23 Oct 2011 16:47:38 +0200 Subject: [FFmpeg-user] From mpeg2 to mpeg4 Message-ID: <4EA4290A.40004@fastwebnet.it> Hi all. I'm a newbie of ffmpeg My DTv receiver can record on USB key in mpeg2video format. Since the size of the record is about 1Gb/hour I want to reduce it to the size used by avi movies but I don't be able to perform this transformation. Here is the output of ffmpeg -i for the file obtained by the recorder: FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1.2, Copyright (c) 2000-2009 Fabrice Bellard, et al. configuration: --extra-version=4:0.5.1-1ubuntu1.2 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping --disable-vhook --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared --disable-static libavutil 49.15. 0 / 49.15. 0 libavcodec 52.20. 1 / 52.20. 1 libavformat 52.31. 0 / 52.31. 0 libavdevice 52. 1. 0 / 52. 1. 0 libavfilter 0. 4. 0 / 0. 4. 0 libswscale 0. 7. 1 / 0. 7. 1 libpostproc 51. 2. 0 / 51. 2. 0 built on Sep 16 2011 17:04:18, gcc: 4.4.3 Seems stream 0 codec frame rate differs from container frame rate: 50.00 (50/1) -> 25.00 (25/1) Input #0, mpeg, from 'prova.mpg': Duration: 00:09:03.69, start: 0.180600, bitrate: 5183 kb/s Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720x576 [PAR 64:45 DAR 16:9], 4624 kb/s, 25 tbr, 90k tbn, 50 tbc Stream #0.1[0x1c0]: Audio: mp2, 48000 Hz, stereo, s16, 192 kb/s while this is an output from an avi file: FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1.2, Copyright (c) 2000-2009 Fabrice Bellard, et al. configuration: --extra-version=4:0.5.1-1ubuntu1.2 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping --disable-vhook --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared --disable-static libavutil 49.15. 0 / 49.15. 0 libavcodec 52.20. 1 / 52.20. 1 libavformat 52.31. 0 / 52.31. 0 libavdevice 52. 1. 0 / 52. 1. 0 libavfilter 0. 4. 0 / 0. 4. 0 libswscale 0. 7. 1 / 0. 7. 1 libpostproc 51. 2. 0 / 51. 2. 0 built on Sep 16 2011 17:04:18, gcc: 4.4.3 Input #0, avi, from '.aMuleAdunanzA/Incoming/Cars - Motori ruggenti.avi': Duration: 01:55:19.00, start: 0.000000, bitrate: 845 kb/s Stream #0.0: Video: mpeg4, yuv420p, 576x238 [PAR 1:1 DAR 288:119], 23.98 tbr, 23.98 tbn, 23.98 tbc Stream #0.1: Audio: mp3, 44100 Hz, stereo, s16, 112 kb/s May someone help me? Many thanks in advance Lorenzo From jeisom at gmail.com Sun Oct 23 17:34:43 2011 From: jeisom at gmail.com (Jonathan Isom) Date: Sun, 23 Oct 2011 10:34:43 -0500 Subject: [FFmpeg-user] From mpeg2 to mpeg4 In-Reply-To: <4EA4290A.40004@fastwebnet.it> References: <4EA4290A.40004@fastwebnet.it> Message-ID: On Sun, Oct 23, 2011 at 9:47 AM, Lorenzo Travaglio wrote: > Hi all. > > I'm a newbie of ffmpeg > > My DTv receiver can record on USB key in mpeg2video format. Since the size > of the record is about 1Gb/hour I want to reduce it to the size used by avi > movies but I don't be able to perform this transformation. Hi The first thing just about anybody on this list will tell you is that you are using a very old(2009) version. You should try to install a recent version. FFmpeg is under constant development so many options have changed and codecs improved. It would also be beneficial to know the command line you tried. Also are you wanting just mpeg4 or mpeg4 AVC(aka h.264)? Later Jonathan > Here is the output of ffmpeg -i for the file obtained by the recorder: > FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1.2, Copyright (c) 2000-2009 > Fabrice Bellard, et al. > ?configuration: --extra-version=4:0.5.1-1ubuntu1.2 --prefix=/usr > --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib > --enable-libgsm --enable-libschroedinger --enable-libspeex > --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib > --disable-stripping --disable-vhook --enable-runtime-cpudetect --enable-gpl > --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 > --enable-shared --disable-static > ?libavutil ? ? 49.15. 0 / 49.15. 0 > ?libavcodec ? ?52.20. 1 / 52.20. 1 > ?libavformat ? 52.31. 0 / 52.31. 0 > ?libavdevice ? 52. 1. 0 / 52. 1. 0 > ?libavfilter ? ?0. 4. 0 / ?0. 4. 0 > ?libswscale ? ? 0. 7. 1 / ?0. 7. 1 > ?libpostproc ? 51. 2. 0 / 51. 2. 0 > ?built on Sep 16 2011 17:04:18, gcc: 4.4.3 > > Seems stream 0 codec frame rate differs from container frame rate: 50.00 > (50/1) -> 25.00 (25/1) > Input #0, mpeg, from 'prova.mpg': > ?Duration: 00:09:03.69, start: 0.180600, bitrate: 5183 kb/s > ? ?Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720x576 [PAR 64:45 DAR > 16:9], 4624 kb/s, 25 tbr, 90k tbn, 50 tbc > ? ?Stream #0.1[0x1c0]: Audio: mp2, 48000 Hz, stereo, s16, 192 kb/s > > while this is an output from an avi file: > FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1.2, Copyright (c) 2000-2009 > Fabrice Bellard, et al. > ?configuration: --extra-version=4:0.5.1-1ubuntu1.2 --prefix=/usr > --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib > --enable-libgsm --enable-libschroedinger --enable-libspeex > --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib > --disable-stripping --disable-vhook --enable-runtime-cpudetect --enable-gpl > --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 > --enable-shared --disable-static > ?libavutil ? ? 49.15. 0 / 49.15. 0 > ?libavcodec ? ?52.20. 1 / 52.20. 1 > ?libavformat ? 52.31. 0 / 52.31. 0 > ?libavdevice ? 52. 1. 0 / 52. 1. 0 > ?libavfilter ? ?0. 4. 0 / ?0. 4. 0 > ?libswscale ? ? 0. 7. 1 / ?0. 7. 1 > ?libpostproc ? 51. 2. 0 / 51. 2. 0 > ?built on Sep 16 2011 17:04:18, gcc: 4.4.3 > Input #0, avi, from '.aMuleAdunanzA/Incoming/Cars - Motori ruggenti.avi': > ?Duration: 01:55:19.00, start: 0.000000, bitrate: 845 kb/s > ? ?Stream #0.0: Video: mpeg4, yuv420p, 576x238 [PAR 1:1 DAR 288:119], 23.98 > tbr, 23.98 tbn, 23.98 tbc > ? ?Stream #0.1: Audio: mp3, 44100 Hz, stereo, s16, 112 kb/s > > May someone help me? > Many thanks in advance > Lorenzo > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From markaren1 at xtra.co.nz Sun Oct 23 19:19:36 2011 From: markaren1 at xtra.co.nz (markaren1) Date: Sun, 23 Oct 2011 10:19:36 -0700 (PDT) Subject: [FFmpeg-user] Conversion between multiple GIFs and MPEG-2 elementary stream Message-ID: <1319390376493-3930779.post@n4.nabble.com> Hi All, I have a series of 60 sequentially numbered GIF images (tc_00.gif to tc_59.gif) that have been created 720x576 pixels and I wish to encode them into a PAL compatible, 60 second, MPEG-2 elementary stream for later muxing into a 3.686Mb/s DVB Transport Stream. ffmpeg appears to have all of the required bells and whistles to allow this process, however I am having a difficult time making my way through the documentation. Available x86 machines have Ubuntu Studio 11.04, and XP. Current command line is "ffmpeg -i tc_%02d.gif -r 1 -y -an -vcodec mpeg2video -b 1000kb -r 25 -s 720x576 TC_ZL3JVX.mpg" which reports: "unable to find a suitable output format for TC_ZL3JVX.mpg: Any help appreciated, Thanks, Mark -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Conversion-between-multiple-GIFs-and-MPEG-2-elementary-stream-tp3930779p3930779.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From lidongxing12345 at 163.com Sun Oct 23 02:57:56 2011 From: lidongxing12345 at 163.com (=?GBK?B?wO62q9DH?=) Date: Sun, 23 Oct 2011 08:57:56 +0800 (CST) Subject: [FFmpeg-user] Hi,ffmpeg Message-ID: <3513b5.40f.1332e48b5bc.Coremail.lidongxing12345@163.com> I'm sorry to trouble you,but I have met a problem when I were using ffmpeg.when I input "./configure --enable -gpl --enable -libx264",it displays that "libx264 not found".Thank's for your help. -------------- next part -------------- A non-text attachment was scrubbed... Name: config.log Type: text/x-log Size: 101017 bytes Desc: not available URL: From h.reindl at thelounge.net Sun Oct 23 20:07:53 2011 From: h.reindl at thelounge.net (Reindl Harald) Date: Sun, 23 Oct 2011 20:07:53 +0200 Subject: [FFmpeg-user] Hi,ffmpeg In-Reply-To: <3513b5.40f.1332e48b5bc.Coremail.lidongxing12345@163.com> References: <3513b5.40f.1332e48b5bc.Coremail.lidongxing12345@163.com> Message-ID: <4EA457F9.4070807@thelounge.net> Am 23.10.2011 02:57, schrieb ???: > I'm sorry to trouble you,but I have met a problem when I were using ffmpeg. > when I input "./configure --enable -gpl --enable -libx264",it displays that "libx264 not found" what about telling us what distribution / version you are using? install x264-devel or build x264 or better use prebuilt packages of your distribution -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 262 bytes Desc: OpenPGP digital signature URL: From jay.kert at yahoo.com Sun Oct 23 20:26:39 2011 From: jay.kert at yahoo.com (Jay Kert) Date: Sun, 23 Oct 2011 11:26:39 -0700 (PDT) Subject: [FFmpeg-user] Hi,ffmpeg In-Reply-To: <3513b5.40f.1332e48b5bc.Coremail.lidongxing12345@163.com> References: <3513b5.40f.1332e48b5bc.Coremail.lidongxing12345@163.com> Message-ID: <1319394399.46697.YahooMailNeo@web122415.mail.ne1.yahoo.com> install the x264 package , thats need to enable x264 ... example command for apt-get : sudo apt-get install libx264 ________________________________ From: ??? To: ffmpeg-user at mplayerhq.hu Sent: Sunday, October 23, 2011 6:27 AM Subject: [FFmpeg-user] Hi,ffmpeg I'm sorry to trouble you,but I have met a problem when I were using ffmpeg.when I input "./configure --enable -gpl --enable -libx264",it displays that "libx264 not found".Thank's for your help. _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From jay.kert at yahoo.com Sun Oct 23 20:26:39 2011 From: jay.kert at yahoo.com (Jay Kert) Date: Sun, 23 Oct 2011 11:26:39 -0700 (PDT) Subject: [FFmpeg-user] Hi,ffmpeg In-Reply-To: <3513b5.40f.1332e48b5bc.Coremail.lidongxing12345@163.com> References: <3513b5.40f.1332e48b5bc.Coremail.lidongxing12345@163.com> Message-ID: <1319394399.46697.YahooMailNeo@web122415.mail.ne1.yahoo.com> install the x264 package , thats need to enable x264 ... example command for apt-get : sudo apt-get install libx264 ________________________________ From: ??? To: ffmpeg-user at mplayerhq.hu Sent: Sunday, October 23, 2011 6:27 AM Subject: [FFmpeg-user] Hi,ffmpeg I'm sorry to trouble you,but I have met a problem when I were using ffmpeg.when I input "./configure --enable -gpl --enable -libx264",it displays that "libx264 not found".Thank's for your help. _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From lorenzo.travaglio at fastwebnet.it Sun Oct 23 20:41:53 2011 From: lorenzo.travaglio at fastwebnet.it (Lorenzo Travaglio) Date: Sun, 23 Oct 2011 20:41:53 +0200 Subject: [FFmpeg-user] From mpeg2 to mpeg4 In-Reply-To: References: <4EA4290A.40004@fastwebnet.it> Message-ID: <4EA45FF1.5020603@fastwebnet.it> On Sun, 23/10/2011 17:34, Jonathan Isom wrote: > Hi > The first thing just about anybody on this list will tell you is > that you are using a > very old(2009) version. You should try to install a recent version. > FFmpeg is under > constant development so many options have changed and codecs improved. > It would > also be beneficial to know the command line you tried. Also are you > wanting just > mpeg4 or mpeg4 AVC(aka h.264)? Thank you Jonathan for your answer. This package is declared as "up-to-date" by apt-get. However I will try to download the source and to recompile even because some switches like '-a' to change the aspect ratio do not work. I tried many command line like "ffmpeg -i prova.mpg -vcodec mpeg4 prova4.mpg" but the results are very poor. In this particular case I obtained a reduced but not visible file. In other cases I obtained reduced versions but video was very poor, as with "ffmpeg -i prova.mpg -s 720*368 prova3.mpg" or "ffmpeg -i prova.mpg -r 50 prova2.mpg". The file "prova.mpg" is the result of a cut made on the record of one tv program to remove commercials and other not interesting parts. The cut has been made by mpgtx. Before reply to your question I admit to ignore the difference between the two formats you ask. I would try with this small video and to check if the tv decoder is able to read the format. Not all formats are read by my DTV decoder. Here I enclose the output of the -vcodec mpeg4 command line. I don't know if the errors reported are important or not. Thank you Lorenzo ---- FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1.2, Copyright (c) 2000-2009 Fabrice Bellard, et al. configuration: --extra-version=4:0.5.1-1ubuntu1.2 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping --disable-vhook --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared --disable-static libavutil 49.15. 0 / 49.15. 0 libavcodec 52.20. 1 / 52.20. 1 libavformat 52.31. 0 / 52.31. 0 libavdevice 52. 1. 0 / 52. 1. 0 libavfilter 0. 4. 0 / 0. 4. 0 libswscale 0. 7. 1 / 0. 7. 1 libpostproc 51. 2. 0 / 51. 2. 0 built on Sep 16 2011 17:04:18, gcc: 4.4.3 Seems stream 0 codec frame rate differs from container frame rate: 50.00 (50/1) -> 25.00 (25/1) Input #0, mpeg, from 'prova.mpg': Duration: 00:09:03.69, start: 0.180600, bitrate: 5183 kb/s Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720x576 [PAR 64:45 DAR 16:9], 4624 kb/s, 25 tbr, 90k tbn, 50 tbc Stream #0.1[0x1c0]: Audio: mp2, 48000 Hz, stereo, s16, 192 kb/s Output #0, mpeg, to 'prova4.mpg': Stream #0.0: Video: mpeg4, yuv420p, 720x576 [PAR 64:45 DAR 16:9], q=2-31, 200 kb/s, 90k tbn, 25 tbc Stream #0.1: Audio: mp2, 48000 Hz, stereo, s16, 64 kb/s Stream mapping: Stream #0.0 -> #0.0 Stream #0.1 -> #0.1 Press [q] to stop encoding [mpeg2video @ 0x8ec3b90]00 motion_type at 16 1e=69.05 bitrate= 470.5kbits/s [mpeg2video @ 0x8ec3b90]00 motion_type at 8 2 [mpeg2video @ 0x8ec3b90]ac-tex damaged at 2 3 [mpeg2video @ 0x8ec3b90]00 motion_type at 5 4 [mpeg2video @ 0x8ec3b90]ac-tex damaged at 5 5 [mpeg2video @ 0x8ec3b90]invalid mb type in B Frame at 10 6 [mpeg2video @ 0x8ec3b90]00 motion_type at 1 7 [mpeg2video @ 0x8ec3b90]00 motion_type at 2 8 [mpeg2video @ 0x8ec3b90]invalid cbp at 26 9 [mpeg2video @ 0x8ec3b90]00 motion_type at 10 10 [mpeg2video @ 0x8ec3b90]00 motion_type at 34 11 [mpeg2video @ 0x8ec3b90]00 motion_type at 1 12 [mpeg2video @ 0x8ec3b90]00 motion_type at 2 13 [mpeg2video @ 0x8ec3b90]00 motion_type at 1 14 [mpeg2video @ 0x8ec3b90]00 motion_type at 11 15 [mpeg2video @ 0x8ec3b90]invalid mb type in B Frame at 1 16 [mpeg2video @ 0x8ec3b90]mb incr damaged [mpeg2video @ 0x8ec3b90]00 motion_type at 7 18 [mpeg2video @ 0x8ec3b90]00 motion_type at 43 19 [mpeg2video @ 0x8ec3b90]00 motion_type at 14 20 [mpeg2video @ 0x8ec3b90]00 motion_type at 6 21 [mpeg2video @ 0x8ec3b90]00 motion_type at 11 22 [mpeg2video @ 0x8ec3b90]00 motion_type at 1 23 [mpeg2video @ 0x8ec3b90]00 motion_type at 3 24 [mpeg2video @ 0x8ec3b90]00 motion_type at 3 26 [mpeg2video @ 0x8ec3b90]00 motion_type at 1 27 [mpeg2video @ 0x8ec3b90]00 motion_type at 3 28 [mpeg2video @ 0x8ec3b90]00 motion_type at 13 29 [mpeg2video @ 0x8ec3b90]00 motion_type at 1 30 [mpeg2video @ 0x8ec3b90]00 motion_type at 4 31 [mpeg2video @ 0x8ec3b90]00 motion_type at 8 32 [mpeg2video @ 0x8ec3b90]00 motion_type at 4 34 [mpeg2video @ 0x8ec3b90]00 motion_type at 1 35 [mpeg2video @ 0x8ec3b90]Warning MVs not available [mpeg2video @ 0x8ec3b90]concealing 1575 DC, 1575 AC, 1575 MV errors frame=13590 fps=116 q=31.0 Lsize= 31120kB time=543.36 bitrate= 469.2kbits/s video:26616kB audio:4245kB global headers:0kB muxing overhead 0.838791% ---- From jeisom at gmail.com Sun Oct 23 21:00:04 2011 From: jeisom at gmail.com (Jonathan Isom) Date: Sun, 23 Oct 2011 14:00:04 -0500 Subject: [FFmpeg-user] From mpeg2 to mpeg4 In-Reply-To: <4EA45FF1.5020603@fastwebnet.it> References: <4EA4290A.40004@fastwebnet.it> <4EA45FF1.5020603@fastwebnet.it> Message-ID: On Sun, Oct 23, 2011 at 1:41 PM, Lorenzo Travaglio wrote: > On Sun, 23/10/2011 17:34, Jonathan Isom wrote: >> Hi >> ? ?The first thing just about anybody on this list will tell you is >> that you are using ?a >> very old(2009) version. You should try to install a recent version. >> FFmpeg is under >> constant development so many options have changed and codecs improved. >> ? It would >> also be beneficial to know the command line you tried. Also are you >> wanting just >> mpeg4 or mpeg4 AVC(aka h.264)? > > Thank you Jonathan for your answer. > This package is declared as "up-to-date" by apt-get. However I will try to > download the source and to recompile even because some switches like '-a' to > change the aspect ratio do not work. > > I tried many command line like "ffmpeg -i prova.mpg -vcodec mpeg4 > prova4.mpg" but the results are very poor. In this particular case I > obtained a reduced but not visible file. In other cases I obtained reduced > versions but video was very poor, as with "ffmpeg -i prova.mpg -s 720*368 > prova3.mpg" or "ffmpeg -i prova.mpg -r 50 prova2.mpg". You may wish to add a bitrate for the video(-b) and audio(-ab). -r is for framerate. you may get better results with 25 than 50 though that cuts it in half. You'll have to test for your needs. ffmpeg -i prova.mpg -vcodec mpeg4 -b 800000 -ac 2 -acodec mp3 -ab 128000 -r 50 -s 720x368 prova2.mpg > The file "prova.mpg" is the result of a cut made on the record of one tv > program to remove commercials and other not interesting parts. The cut has > been made by mpgtx. > > Before reply to your question I admit to ignore the difference between the > two formats you ask. I would try with this small video and to check if the > tv decoder is able to read the format. Not all formats are read by my DTV > decoder. Seeing as you are using a DTV decoder you probably want standard mpeg4. HTH Jonathan > Here I enclose the output of the -vcodec mpeg4 command line. I don't know if > the errors reported are important or not. > > Thank you > Lorenzo > > ---- > FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1.2, Copyright (c) 2000-2009 > Fabrice Bellard, et al. > ?configuration: --extra-version=4:0.5.1-1ubuntu1.2 --prefix=/usr > --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib > --enable-libgsm --enable-libschroedinger --enable-libspeex > --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib > --disable-stripping --disable-vhook --enable-runtime-cpudetect --enable-gpl > --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 > --enable-shared --disable-static > ?libavutil ? ? 49.15. 0 / 49.15. 0 > ?libavcodec ? ?52.20. 1 / 52.20. 1 > ?libavformat ? 52.31. 0 / 52.31. 0 > ?libavdevice ? 52. 1. 0 / 52. 1. 0 > ?libavfilter ? ?0. 4. 0 / ?0. 4. 0 > ?libswscale ? ? 0. 7. 1 / ?0. 7. 1 > ?libpostproc ? 51. 2. 0 / 51. 2. 0 > ?built on Sep 16 2011 17:04:18, gcc: 4.4.3 > > Seems stream 0 codec frame rate differs from container frame rate: 50.00 > (50/1) -> 25.00 (25/1) > Input #0, mpeg, from 'prova.mpg': > ?Duration: 00:09:03.69, start: 0.180600, bitrate: 5183 kb/s > ? ?Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720x576 [PAR 64:45 DAR > 16:9], 4624 kb/s, 25 tbr, 90k tbn, 50 tbc > ? ?Stream #0.1[0x1c0]: Audio: mp2, 48000 Hz, stereo, s16, 192 kb/s > Output #0, mpeg, to 'prova4.mpg': > ? ?Stream #0.0: Video: mpeg4, yuv420p, 720x576 [PAR 64:45 DAR 16:9], q=2-31, > 200 kb/s, 90k tbn, 25 tbc > ? ?Stream #0.1: Audio: mp2, 48000 Hz, stereo, s16, 64 kb/s > Stream mapping: > ?Stream #0.0 -> #0.0 > ?Stream #0.1 -> #0.1 > Press [q] to stop encoding > [mpeg2video @ 0x8ec3b90]00 motion_type at 16 1e=69.05 bitrate= 470.5kbits/s > [mpeg2video @ 0x8ec3b90]00 motion_type at 8 2 > [mpeg2video @ 0x8ec3b90]ac-tex damaged at 2 3 > [mpeg2video @ 0x8ec3b90]00 motion_type at 5 4 > [mpeg2video @ 0x8ec3b90]ac-tex damaged at 5 5 > [mpeg2video @ 0x8ec3b90]invalid mb type in B Frame at 10 6 > [mpeg2video @ 0x8ec3b90]00 motion_type at 1 7 > [mpeg2video @ 0x8ec3b90]00 motion_type at 2 8 > [mpeg2video @ 0x8ec3b90]invalid cbp at 26 9 > [mpeg2video @ 0x8ec3b90]00 motion_type at 10 10 > [mpeg2video @ 0x8ec3b90]00 motion_type at 34 11 > [mpeg2video @ 0x8ec3b90]00 motion_type at 1 12 > [mpeg2video @ 0x8ec3b90]00 motion_type at 2 13 > [mpeg2video @ 0x8ec3b90]00 motion_type at 1 14 > [mpeg2video @ 0x8ec3b90]00 motion_type at 11 15 > [mpeg2video @ 0x8ec3b90]invalid mb type in B Frame at 1 16 > [mpeg2video @ 0x8ec3b90]mb incr damaged > [mpeg2video @ 0x8ec3b90]00 motion_type at 7 18 > [mpeg2video @ 0x8ec3b90]00 motion_type at 43 19 > [mpeg2video @ 0x8ec3b90]00 motion_type at 14 20 > [mpeg2video @ 0x8ec3b90]00 motion_type at 6 21 > [mpeg2video @ 0x8ec3b90]00 motion_type at 11 22 > [mpeg2video @ 0x8ec3b90]00 motion_type at 1 23 > [mpeg2video @ 0x8ec3b90]00 motion_type at 3 24 > [mpeg2video @ 0x8ec3b90]00 motion_type at 3 26 > [mpeg2video @ 0x8ec3b90]00 motion_type at 1 27 > [mpeg2video @ 0x8ec3b90]00 motion_type at 3 28 > [mpeg2video @ 0x8ec3b90]00 motion_type at 13 29 > [mpeg2video @ 0x8ec3b90]00 motion_type at 1 30 > [mpeg2video @ 0x8ec3b90]00 motion_type at 4 31 > [mpeg2video @ 0x8ec3b90]00 motion_type at 8 32 > [mpeg2video @ 0x8ec3b90]00 motion_type at 4 34 > [mpeg2video @ 0x8ec3b90]00 motion_type at 1 35 > [mpeg2video @ 0x8ec3b90]Warning MVs not available > [mpeg2video @ 0x8ec3b90]concealing 1575 DC, 1575 AC, 1575 MV errors > frame=13590 fps=116 q=31.0 Lsize= ? 31120kB time=543.36 bitrate= > 469.2kbits/s > video:26616kB audio:4245kB global headers:0kB muxing overhead 0.838791% > ---- > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From lorenzo.travaglio at fastwebnet.it Mon Oct 24 00:38:50 2011 From: lorenzo.travaglio at fastwebnet.it (Lorenzo Travaglio) Date: Mon, 24 Oct 2011 00:38:50 +0200 Subject: [FFmpeg-user] From mpeg2 to mpeg4 In-Reply-To: References: <4EA4290A.40004@fastwebnet.it> <4EA45FF1.5020603@fastwebnet.it> Message-ID: <4EA4977A.30007@fastwebnet.it> Il 23/10/2011 21:00, Jonathan Isom ha scritto: > ffmpeg -i prova.mpg -vcodec mpeg4 -b 800000 -ac 2 -acodec mp3 -ab > 128000 -r 50 -s 720x368 prova2.mpg I compiled latest version of ffmpeg following the instruction in http://ubuntuforums.org/showpost.php?p=9868359&postcount=1289 It seems work but with the cl you gave the result is the following: ffmpeg -i prova.mpg -vcodec mpeg4 -b 800000 -ac 2 -acodec mp3 -ab 128000 -r 50 -s 720x368 prova2.mpg ffmpeg version N-33990-g42d44ec, Copyright (c) 2000-2011 the FFmpeg developers built on Oct 24 2011 00:22:56 with gcc 4.4.3 configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-x11grab libavutil 51. 22. 0 / 51. 22. 0 libavcodec 53. 23. 0 / 53. 23. 0 libavformat 53. 17. 0 / 53. 17. 0 libavdevice 53. 4. 0 / 53. 4. 0 libavfilter 2. 44. 1 / 2. 44. 1 libswscale 2. 1. 0 / 2. 1. 0 libpostproc 51. 2. 0 / 51. 2. 0 [mp2 @ 0x94c98c0] Header missing [mpeg @ 0x94b8a80] max_analyze_duration 5000000 reached at 5016000 Input #0, mpeg, from 'prova.mpg': Duration: 00:09:03.73, start: 0.132600, bitrate: 5183 kb/s Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x576 [SAR 64:45 DAR 16:9], 4624 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:1[0x1c0]: Audio: mp2, 48000 Hz, stereo, s16, 192 kb/s Please use -b:a or -b:v, -b is ambiguous Unknown encoder 'mp3' I did remove -acodec mp3 -ab 128000 just to see the result of the rest of the process. I obtained a file with a good audio but no video :-( Good night Lorenzo From lou at lrcd.com Mon Oct 24 04:55:56 2011 From: lou at lrcd.com (Lou) Date: Sun, 23 Oct 2011 18:55:56 -0800 Subject: [FFmpeg-user] From mpeg2 to mpeg4 In-Reply-To: <4EA4977A.30007@fastwebnet.it> References: <4EA4290A.40004@fastwebnet.it> <4EA45FF1.5020603@fastwebnet.it> <4EA4977A.30007@fastwebnet.it> Message-ID: <20111023185556.374e564b@lrcd.com> On Mon, 24 Oct 2011 00:38:50 +0200 Lorenzo Travaglio wrote: > Il 23/10/2011 21:00, Jonathan Isom ha scritto: > > ffmpeg -i prova.mpg -vcodec mpeg4 -b 800000 -ac 2 -acodec mp3 -ab > > 128000 -r 50 -s 720x368 prova2.mpg Why are you changing the frame rate? > I compiled latest version of ffmpeg following the instruction in > http://ubuntuforums.org/showpost.php?p=9868359&postcount=1289 > > It seems work but with the cl you gave the result is the following: > ffmpeg -i prova.mpg -vcodec mpeg4 -b 800000 -ac 2 -acodec mp3 -ab > 128000 -r 50 -s 720x368 prova2.mpg > ffmpeg version N-33990-g42d44ec, Copyright (c) 2000-2011 the FFmpeg > developers > built on Oct 24 2011 00:22:56 with gcc 4.4.3 > configuration: --enable-gpl --enable-version3 --enable-nonfree > --enable-postproc --enable-libfaac --enable-libopencore-amrnb > --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis > --enable-libx264 --enable-x11grab > libavutil 51. 22. 0 / 51. 22. 0 > libavcodec 53. 23. 0 / 53. 23. 0 > libavformat 53. 17. 0 / 53. 17. 0 > libavdevice 53. 4. 0 / 53. 4. 0 > libavfilter 2. 44. 1 / 2. 44. 1 > libswscale 2. 1. 0 / 2. 1. 0 > libpostproc 51. 2. 0 / 51. 2. 0 > [mp2 @ 0x94c98c0] Header missing > [mpeg @ 0x94b8a80] max_analyze_duration 5000000 reached at 5016000 > Input #0, mpeg, from 'prova.mpg': > Duration: 00:09:03.73, start: 0.132600, bitrate: 5183 kb/s > Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x576 > [SAR 64:45 DAR 16:9], 4624 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc > Stream #0:1[0x1c0]: Audio: mp2, 48000 Hz, stereo, s16, 192 kb/s > Please use -b:a or -b:v, -b is ambiguous This message is telling you to change -b to -b:v and -ab to -b:a due to some recent syntax changes. > Unknown encoder 'mp3' The MP3 encoder is "libmp3lame". The decoder is called "mp3". You can see a list of encoders and decoders with: ffmpeg -codecs. Unfortunately, you skipped the "Install LAME (optional)" section in the compilation guide, and therefore you do not have libmp3lame support. > I did remove -acodec mp3 -ab 128000 just to see the result of the > rest of the process. I obtained a file with a good audio but no > video :-( > > Good night > Lorenzo From tim.nicholson at bbc.co.uk Mon Oct 24 08:51:28 2011 From: tim.nicholson at bbc.co.uk (Tim Nicholson) Date: Mon, 24 Oct 2011 07:51:28 +0100 Subject: [FFmpeg-user] uncompressed avi In-Reply-To: <5E049B02-6DA9-412B-98EA-ECF3D897A240@gmail.com> References: <5E049B02-6DA9-412B-98EA-ECF3D897A240@gmail.com> Message-ID: <4EA50AF0.4050003@bbc.co.uk> On 23/10/11 04:00, Rick C. wrote: > Hello, > > What command line would I use to create an uncompressed avi because I can't figure it out? Thank you for the help Well one option is:- ffmpeg -i "$in_file" -vcodec rawvideo -pix_fmt uyvy422 -vtag 2vuy -acodec $audio-codec "$out_file" -- Tim http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. From adamklobukowski at gmail.com Mon Oct 24 12:08:33 2011 From: adamklobukowski at gmail.com (Adam Klobukowski) Date: Mon, 24 Oct 2011 12:08:33 +0200 Subject: [FFmpeg-user] mp4 vs. h264 Message-ID: Hello Please excuse me for tif possibly lame question: What is the difference between ffmpeg mp4 video codec and h264? What do I gain/loose when using mp4 vc or h264? -- Semper Fidelis Adam Klobukowski adamklobukowski at gmail.com From mark at mdsh.com Mon Oct 24 13:18:08 2011 From: mark at mdsh.com (Mark Himsley) Date: Mon, 24 Oct 2011 12:18:08 +0100 Subject: [FFmpeg-user] mp4 vs. h264 In-Reply-To: References: Message-ID: <4EA54970.1010409@mdsh.com> On 24/10/11 11:08, Adam Klobukowski wrote: > Hello > > Please excuse me for tif possibly lame question: > > What is the difference between ffmpeg mp4 video codec and h264? What > do I gain/loose when using mp4 vc or h264? "mp4" video codec is MPEG4 part 2. H.264 is MPEG4 part 10. See http://en.wikipedia.org/wiki/MPEG-4 for general information on MPEG4 See http://en.wikipedia.org/wiki/MPEG-4_Part_2 for mp4 video codec See http://en.wikipedia.org/wiki/H.264/MPEG-4_AVC for h.264 H.264 is very likely going to give you better perceived quality for the same bit rate, or same perceived quality for lower bit rate (which ever way you want to look at it) compared to mp4. -- Mark From ashish at oliveindesign.com Mon Oct 24 14:26:53 2011 From: ashish at oliveindesign.com (Ashish Deodhar) Date: Mon, 24 Oct 2011 17:56:53 +0530 Subject: [FFmpeg-user] setting intervals when converting like mp4box Message-ID: hello , This is ashish. I am converting all files to mp4 with ffmpeg command. problem is when playing the video with jwplayer it downloads the full video then plays it. So i need to insert intervals like mp4box command do. Please guide me with the same. -- -- Thanks & Regards Ashish Web Developer Olive Design and Communication Pvt. Ltd. www.oliveindesign.com ashish at oliveindesign.com Ph.: +91 20 32315390 Cell: +91 9766595172 Skype : ashish_deodhar From antoine.villeret at gmail.com Mon Oct 24 14:25:51 2011 From: antoine.villeret at gmail.com (Antoine Villeret) Date: Mon, 24 Oct 2011 14:25:51 +0200 Subject: [FFmpeg-user] Streaming video as input to ffmpeg In-Reply-To: <1319309482.78734.YahooMailNeo@web122416.mail.ne1.yahoo.com> References: <1319309482.78734.YahooMailNeo@web122416.mail.ne1.yahoo.com> Message-ID: hi, you should consider using gstreamer and pipeline, it works with ffmpeg and have a huge plugin library that allows you to grab lots of streams best a. 2011/10/22 Jay Kert > Hi guys, > I am newbie with ffmpeg. I have would like to capture a live real time > stream (like TV) and provide it as input to ffmpeg. I see that ffmpeg > accepts files as input, also i tried give it a file which was constantly > being written to (streaming to a file using vlc), but it doesnt work(it > quits after a while). Please do let me know how i can do this. I tried > search the web a lot for this(incl ffmpeg faq ), but couldnt find it. > > thanks a lot, > jay > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From me at renecalles.de Mon Oct 24 14:58:12 2011 From: me at renecalles.de (me at renecalles.de) Date: Mon, 24 Oct 2011 14:58:12 +0200 Subject: [FFmpeg-user] Error in scaling expression Message-ID: <15e1f273112188520b6b42c9b08cee35@renecalles.de> Hi all, as i'm trying to create a filter-chain for resizing using ffmpeg i ran into the following issue: ffmpeg -i aspect_test.e25.ts -vf "scale='320:(ih*ow)/(iw*sar)',pad='320:240:0:30',setdar=4:3" -y -f ipod trial.m4v ffmpeg version 0.7.6, Copyright (c) 2000-2011 the FFmpeg developers built on Oct 4 2011 15:25:01 with gcc 4.2.1 (Apple Inc. build 5666) (dot 3) configuration: --prefix=/opt/local --enable-gpl --enable-postproc --enable-swscale --enable-avfilter --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libdirac --enable-libschroedinger --enable-libopenjpeg --enable-libxvid --enable-libx264 --enable-libvpx --enable-libspeex --mandir=/opt/local/share/man --enable-shared --enable-pthreads --cc=/usr/bin/gcc-4.2 --arch=x86_64 --enable-yasm libavutil 50. 43. 0 / 50. 43. 0 libavcodec 52.122. 0 / 52.122. 0 libavformat 52.110. 0 / 52.110. 0 libavdevice 52. 5. 0 / 52. 5. 0 libavfilter 1. 80. 0 / 1. 80. 0 libswscale 0. 14. 1 / 0. 14. 1 libpostproc 51. 2. 0 / 51. 2. 0 [mpegts @ 0x102051000] max_analyze_duration 5000000 reached at 5000000 Input #0, mpegts, from 'aspect_test.e25.ts': Duration: 00:02:46.96, start: 0.595556, bitrate: 2815 kb/s Program 2 Stream #0.0[0x21]: Video: h264 (Main), yuv420p, 720x576 [PAR 64:45 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0.1[0x24](ger): Audio: ac3, 48000 Hz, 5.1, s16, 448 kb/s [buffer @ 0x10192e9c0] w:720 h:576 pixfmt:yuv420p tb:1/1000000 sar:64/45 sws_param: [setdar @ 0x10192f560] a:4/3 [scale @ 0x10192eee0] [Eval @ 0x7fff5fbfe4a0] Undefined constant or missing '(' in 'sar)' Error when evaluating the expression '(ih*ow)/(iw*sar)' Is the sar variable missing or deprecated or something? Or am i'm doing something completely wrong? Thanks a lot for your help. Ren? From mark at mdsh.com Mon Oct 24 16:19:17 2011 From: mark at mdsh.com (Mark Himsley) Date: Mon, 24 Oct 2011 15:19:17 +0100 Subject: [FFmpeg-user] Error in scaling expression In-Reply-To: <15e1f273112188520b6b42c9b08cee35@renecalles.de> References: <15e1f273112188520b6b42c9b08cee35@renecalles.de> Message-ID: <4EA573E5.8060704@mdsh.com> On 24/10/11 13:58, me at renecalles.de wrote: > -vf "scale='320:(ih*ow)/(iw*sar)',pad='320:240:0:30',setdar=4:3" Far too many single quotes in there, you don't need any. Try something like this: -vf "scale=320:(ih*ow)/(iw*sar),pad=320:240:0:30,setdar=4:3" Tested with a 16:9 DV .mov as a source: ffmpeg -i ~/Videos/576i25/Clock10tone.mov -vf "scale=320:(ih*ow)/(iw*sar),pad=320:240:0:30,setdar=4:3" -y -f ipod trial.m4v -- Mark From stefasab at gmail.com Mon Oct 24 16:22:19 2011 From: stefasab at gmail.com (Stefano Sabatini) Date: Mon, 24 Oct 2011 16:22:19 +0200 Subject: [FFmpeg-user] Error in scaling expression In-Reply-To: <15e1f273112188520b6b42c9b08cee35@renecalles.de> References: <15e1f273112188520b6b42c9b08cee35@renecalles.de> Message-ID: <20111024142219.GA13548@arborea> On date Monday 2011-10-24 14:58:12 +0200, me at renecalles.de encoded: > Hi all, > > as i'm trying to create a filter-chain for resizing using ffmpeg i > ran into the following issue: > > ffmpeg -i aspect_test.e25.ts -vf > "scale='320:(ih*ow)/(iw*sar)',pad='320:240:0:30',setdar=4:3" -y -f > ipod trial.m4v > > ffmpeg version 0.7.6, Copyright (c) 2000-2011 the FFmpeg developers > built on Oct 4 2011 15:25:01 with gcc 4.2.1 (Apple Inc. build 5666) > (dot 3) > configuration: --prefix=/opt/local --enable-gpl --enable-postproc > --enable-swscale --enable-avfilter --enable-libmp3lame > --enable-libvorbis --enable-libtheora --enable-libdirac > --enable-libschroedinger --enable-libopenjpeg --enable-libxvid > --enable-libx264 --enable-libvpx --enable-libspeex > --mandir=/opt/local/share/man --enable-shared --enable-pthreads > --cc=/usr/bin/gcc-4.2 --arch=x86_64 --enable-yasm > libavutil 50. 43. 0 / 50. 43. 0 > libavcodec 52.122. 0 / 52.122. 0 > libavformat 52.110. 0 / 52.110. 0 > libavdevice 52. 5. 0 / 52. 5. 0 > libavfilter 1. 80. 0 / 1. 80. 0 > libswscale 0. 14. 1 / 0. 14. 1 > libpostproc 51. 2. 0 / 51. 2. 0 > [mpegts @ 0x102051000] max_analyze_duration 5000000 reached at 5000000 > Input #0, mpegts, from 'aspect_test.e25.ts': > Duration: 00:02:46.96, start: 0.595556, bitrate: 2815 kb/s > Program 2 > Stream #0.0[0x21]: Video: h264 (Main), yuv420p, 720x576 [PAR 64:45 > DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc > Stream #0.1[0x24](ger): Audio: ac3, 48000 Hz, 5.1, s16, 448 kb/s > [buffer @ 0x10192e9c0] w:720 h:576 pixfmt:yuv420p tb:1/1000000 > sar:64/45 sws_param: > [setdar @ 0x10192f560] a:4/3 > [scale @ 0x10192eee0] [Eval @ 0x7fff5fbfe4a0] Undefined constant or > missing '(' in 'sar)' > Error when evaluating the expression '(ih*ow)/(iw*sar)' > > > Is the sar variable missing or deprecated or something? Or am i'm > doing something completely wrong? You need libavfilter >= 2.24.2, check commit 01151a26c03c5df85509150d393e039f574d005f. From tim.nicholson at bbc.co.uk Mon Oct 24 16:36:39 2011 From: tim.nicholson at bbc.co.uk (Tim Nicholson) Date: Mon, 24 Oct 2011 15:36:39 +0100 Subject: [FFmpeg-user] ffmpeg windows build In-Reply-To: <4E9D2C6F.8090106@bbc.co.uk> References: <20111005182636.525DC10E196@avserver.banki.hu> <4E92BA2E.8070908@bbc.co.uk> <4E93227F.6030003@bbc.co.uk> <4E9C38B5.5050700@bbc.co.uk> <4E9CE2B6.5060007@gmail.com> <4E9D2C6F.8090106@bbc.co.uk> Message-ID: <4EA577F7.7090000@bbc.co.uk> On 18/10/11 08:36, Tim Nicholson wrote: > On 18/10/11 03:21, Kyle wrote: >> On 10/17/2011 10:16 AM, Tim Nicholson wrote: >>> Well I am making good progress with this, but have stuck on an odd >>> problem with librtmp. >>> >>> It compiles fine, both with and without OpenSSL support. >>> >>> However when trying to --enable-librtmp ffmpeg ./configure fails >>> because it cannot find -ldl. OK so this was because PKG_CONFIG_PATH was not set correctly and the ffmpeg stage was referring to the system .pc files where ldl was a requirement. However now I am getting a "undefined reference to '__imp_timeGetTime'" error, which curiously I also get with SDL. Kyle I believe you had this way back so can you recall the fix? -- Tim http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. From ipodobin at gmail.com Mon Oct 24 16:46:16 2011 From: ipodobin at gmail.com (=?UTF-8?Q?Igor_Podobi=C5=84ski?=) Date: Mon, 24 Oct 2011 16:46:16 +0200 Subject: [FFmpeg-user] ffmpeg windows build In-Reply-To: <4EA577F7.7090000@bbc.co.uk> References: <20111005182636.525DC10E196@avserver.banki.hu> <4E92BA2E.8070908@bbc.co.uk> <4E93227F.6030003@bbc.co.uk> <4E9C38B5.5050700@bbc.co.uk> <4E9CE2B6.5060007@gmail.com> <4E9D2C6F.8090106@bbc.co.uk> <4EA577F7.7090000@bbc.co.uk> Message-ID: Hello, This is output of ffprobe: ----------------------------------------------------------------------------------------------------------- Input #0, mxf, from 'd:\Media\PFR\test.mxf': Duration: 00:00:19.56, start: 0.000000, bitrate: 62570 kb/s Stream #0:0: Video: mpeg2video (4:2:2), yuv422p, 720x608 [SAR 608:405 DAR 16:9], 50000 kb/s, 25 fps, 25 tbr, 25 tbn, 50 tbc Stream #0:1: Audio: pcm_s16le, 48000 Hz, 8 channels, s16, 6144 kb/s ------------------------------------------------------------------------------------------------------------ I am trying to demux this mxf file into: - 1 video file (m2v) - 8 mono audio files (wav) or 4 stereo files Is it even possible with ffmpeg? Thanks, Igor -- Igor Podobi?ski mob: +48 501031552 mail: ipodobin at gmail.com From tim.nicholson at bbc.co.uk Mon Oct 24 16:49:49 2011 From: tim.nicholson at bbc.co.uk (Tim Nicholson) Date: Mon, 24 Oct 2011 15:49:49 +0100 Subject: [FFmpeg-user] ffmpeg windows build In-Reply-To: References: <20111005182636.525DC10E196@avserver.banki.hu> <4E92BA2E.8070908@bbc.co.uk> <4E93227F.6030003@bbc.co.uk> <4E9C38B5.5050700@bbc.co.uk> <4E9CE2B6.5060007@gmail.com> <4E9D2C6F.8090106@bbc.co.uk> <4EA577F7.7090000@bbc.co.uk> Message-ID: <4EA57B0D.3000504@bbc.co.uk> On 24/10/11 15:46, Igor Podobi?ski wrote: > Hello, > > This is output of ffprobe: > ----------------------------------------------------------------------------------------------------------- > Input #0, mxf, from 'd:\Media\PFR\test.mxf': > Duration: 00:00:19.56, start: 0.000000, bitrate: 62570 kb/s > Stream #0:0: Video: mpeg2video (4:2:2), yuv422p, 720x608 [SAR 608:405 > DAR 16:9], 50000 kb/s, 25 fps, 25 tbr, 25 tbn, 50 tbc > Stream #0:1: Audio: pcm_s16le, 48000 Hz, 8 channels, s16, 6144 kb/s > ------------------------------------------------------------------------------------------------------------ > I am trying to demux this mxf file into: > - 1 video file (m2v) > - 8 mono audio files (wav) or 4 stereo files > > Is it even possible with ffmpeg? > > Thanks, > Igor > > -- > Igor Podobi?ski > mob: +48 501031552 > mail: ipodobin at gmail.com > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user Please don't hijack threads. -- Tim http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. From tim.nicholson at bbc.co.uk Mon Oct 24 16:50:55 2011 From: tim.nicholson at bbc.co.uk (Tim Nicholson) Date: Mon, 24 Oct 2011 15:50:55 +0100 Subject: [FFmpeg-user] ffmpeg windows build In-Reply-To: <4EA577F7.7090000@bbc.co.uk> References: <20111005182636.525DC10E196@avserver.banki.hu> <4E92BA2E.8070908@bbc.co.uk> <4E93227F.6030003@bbc.co.uk> <4E9C38B5.5050700@bbc.co.uk> <4E9CE2B6.5060007@gmail.com> <4E9D2C6F.8090106@bbc.co.uk> <4EA577F7.7090000@bbc.co.uk> Message-ID: <4EA57B4F.9060405@bbc.co.uk> On 24/10/11 15:36, Tim Nicholson wrote: > On 18/10/11 08:36, Tim Nicholson wrote: >> On 18/10/11 03:21, Kyle wrote: >>> On 10/17/2011 10:16 AM, Tim Nicholson wrote: >>>> Well I am making good progress with this, but have stuck on an odd >>>> problem with librtmp. >>>> >>>> It compiles fine, both with and without OpenSSL support. >>>> >>>> However when trying to --enable-librtmp ffmpeg ./configure fails >>>> because it cannot find -ldl. > > OK so this was because PKG_CONFIG_PATH was not set correctly and the > ffmpeg stage was referring to the system .pc files where ldl was a > requirement. > > However now I am getting a "undefined reference to '__imp_timeGetTime'" > error, which curiously I also get with SDL. > > Kyle I believe you had this way back so can you recall the fix? > OK to answer my own question --extra-libs=-lwinmm and now I get rtmp and SDL :) -- Tim http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. From ipodobin at gmail.com Mon Oct 24 17:01:09 2011 From: ipodobin at gmail.com (=?UTF-8?Q?Igor_Podobi=C5=84ski?=) Date: Mon, 24 Oct 2011 17:01:09 +0200 Subject: [FFmpeg-user] 8 channels audio to 8 x 1 channel audio Message-ID: Hello, This is output of ffprobe: ------------------------------ ----------------------------------------------------------------------------- Input #0, mxf, from 'd:\Media\PFR\test.mxf': Duration: 00:00:19.56, start: 0.000000, bitrate: 62570 kb/s Stream #0:0: Video: mpeg2video (4:2:2), yuv422p, 720x608 [SAR 608:405 DAR 16:9], 50000 kb/s, 25 fps, 25 tbr, 25 tbn, 50 tbc Stream #0:1: Audio: pcm_s16le, 48000 Hz, 8 channels, s16, 6144 kb/s ------------------------------------------------------------------------------------------------------------ I am trying to demux this mxf file into: - 1 video file (m2v) - 8 mono audio files (wav) or 4 stereo files Is it even possible with ffmpeg? Thanks, Igor -- Igor Podobi?ski mob: +48 501031552 mail: ipodobin at gmail.com From mark at mdsh.com Mon Oct 24 17:23:08 2011 From: mark at mdsh.com (Mark Himsley) Date: Mon, 24 Oct 2011 16:23:08 +0100 Subject: [FFmpeg-user] 8 channels audio to 8 x 1 channel audio In-Reply-To: References: Message-ID: <4EA582DC.9040902@mdsh.com> Hi Igor, On 24/10/11 16:01, Igor Podobi?ski wrote: > Hello, > This is output of ffprobe:-----------------------------------------------------------------------------------------------------------Input #0, mxf, from 'd:\Media\PFR\test.mxf': Duration: 00:00:19.56, start: 0.000000, bitrate: 62570 kb/s Stream #0:0: Video: mpeg2video (4:2:2), yuv422p, 720x608 [SAR 608:405DAR 16:9], 50000 kb/s, 25 fps, 25 tbr, 25 tbn, 50 tbc Stream #0:1: Audio: pcm_s16le, 48000 Hz, 8 channels, s16, 6144 kb/s------------------------------------------------------------------------------------------------------------I am trying to demux this mxf file into:- 1 video file (m2v)- 8 mono audio files (wav) or 4 stereo files > Is it even possible with ffmpeg? > Thanks,Igor I believe that is currently only possible with ffmbc and it's -map_audio_channel command, but patches are appearing on the ffmpeg's development email list that suggest it'll be possible in ffmpeg soon. Hope that helps. -- Marl From me at renecalles.de Mon Oct 24 17:33:05 2011 From: me at renecalles.de (me at renecalles.de) Date: Mon, 24 Oct 2011 17:33:05 +0200 Subject: [FFmpeg-user] Error in scaling expression In-Reply-To: <20111024142219.GA13548@arborea> References: <15e1f273112188520b6b42c9b08cee35@renecalles.de> <20111024142219.GA13548@arborea> Message-ID: <04d7245225c5a40b585e49df4c1b45db@renecalles.de> Thanks a lot, i just found out it works on my Debian system with fresh compiled sources. Sorry for bothering. On Mon, 24 Oct 2011 16:22:19 +0200, Stefano Sabatini wrote: > On date Monday 2011-10-24 14:58:12 +0200, me at renecalles.de encoded: >> Hi all, >> >> as i'm trying to create a filter-chain for resizing using ffmpeg i >> ran into the following issue: >> >> ffmpeg -i aspect_test.e25.ts -vf >> "scale='320:(ih*ow)/(iw*sar)',pad='320:240:0:30',setdar=4:3" -y -f >> ipod trial.m4v >> >> ffmpeg version 0.7.6, Copyright (c) 2000-2011 the FFmpeg developers >> built on Oct 4 2011 15:25:01 with gcc 4.2.1 (Apple Inc. build 5666) >> (dot 3) >> configuration: --prefix=/opt/local --enable-gpl --enable-postproc >> --enable-swscale --enable-avfilter --enable-libmp3lame >> --enable-libvorbis --enable-libtheora --enable-libdirac >> --enable-libschroedinger --enable-libopenjpeg --enable-libxvid >> --enable-libx264 --enable-libvpx --enable-libspeex >> --mandir=/opt/local/share/man --enable-shared --enable-pthreads >> --cc=/usr/bin/gcc-4.2 --arch=x86_64 --enable-yasm >> libavutil 50. 43. 0 / 50. 43. 0 >> libavcodec 52.122. 0 / 52.122. 0 >> libavformat 52.110. 0 / 52.110. 0 >> libavdevice 52. 5. 0 / 52. 5. 0 >> libavfilter 1. 80. 0 / 1. 80. 0 >> libswscale 0. 14. 1 / 0. 14. 1 >> libpostproc 51. 2. 0 / 51. 2. 0 >> [mpegts @ 0x102051000] max_analyze_duration 5000000 reached at >> 5000000 >> Input #0, mpegts, from 'aspect_test.e25.ts': >> Duration: 00:02:46.96, start: 0.595556, bitrate: 2815 kb/s >> Program 2 >> Stream #0.0[0x21]: Video: h264 (Main), yuv420p, 720x576 [PAR 64:45 >> DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc >> Stream #0.1[0x24](ger): Audio: ac3, 48000 Hz, 5.1, s16, 448 kb/s >> [buffer @ 0x10192e9c0] w:720 h:576 pixfmt:yuv420p tb:1/1000000 >> sar:64/45 sws_param: >> [setdar @ 0x10192f560] a:4/3 >> [scale @ 0x10192eee0] [Eval @ 0x7fff5fbfe4a0] Undefined constant or >> missing '(' in 'sar)' >> Error when evaluating the expression '(ih*ow)/(iw*sar)' >> >> >> Is the sar variable missing or deprecated or something? Or am i'm >> doing something completely wrong? > > You need libavfilter >= 2.24.2, check commit > 01151a26c03c5df85509150d393e039f574d005f. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From me at renecalles.de Mon Oct 24 17:40:13 2011 From: me at renecalles.de (me at renecalles.de) Date: Mon, 24 Oct 2011 17:40:13 +0200 Subject: [FFmpeg-user] 8 channels audio to 8 x 1 channel audio In-Reply-To: <4EA582DC.9040902@mdsh.com> References: <4EA582DC.9040902@mdsh.com> Message-ID: <83ffd3b5d50b50a34226d19bd9774867@renecalles.de> On Mon, 24 Oct 2011 16:23:08 +0100, Mark Himsley wrote: > Hi Igor, > > On 24/10/11 16:01, Igor Podobi?ski wrote: >> Hello, >> This is output of >> ffprobe:-----------------------------------------------------------------------------------------------------------Input >> #0, mxf, from 'd:\Media\PFR\test.mxf': Duration: 00:00:19.56, start: >> 0.000000, bitrate: 62570 kb/s Stream #0:0: Video: mpeg2video >> (4:2:2), yuv422p, 720x608 [SAR 608:405DAR 16:9], 50000 kb/s, 25 fps, >> 25 tbr, 25 tbn, 50 tbc Stream #0:1: Audio: pcm_s16le, 48000 Hz, 8 >> channels, s16, 6144 >> kb/s------------------------------------------------------------------------------------------------------------I >> am trying to demux this mxf file into:- 1 video file (m2v)- 8 mono >> audio files (wav) or 4 stereo files >> Is it even possible with ffmpeg? >> Thanks,Igor > > I believe that is currently only possible with ffmbc and it's > -map_audio_channel command, but patches are appearing on the ffmpeg's > development email list that suggest it'll be possible in ffmpeg soon. > > Hope that helps. Hi Igor, as i had to deal with it last time i had to use a different tool for that. You could try to demux the audio as is and then use i.e. sox (linux) or BeSweet for splitting/re-arranging the audio channels. Hope this helps. Ren? From lou at lrcd.com Mon Oct 24 19:33:04 2011 From: lou at lrcd.com (Lou) Date: Mon, 24 Oct 2011 09:33:04 -0800 Subject: [FFmpeg-user] setting intervals when converting like mp4box In-Reply-To: References: Message-ID: <20111024093304.53f90f64@lrcd.com> On Mon, 24 Oct 2011 17:56:53 +0530 Ashish Deodhar wrote: > hello , > > This is ashish. > I am converting all files to mp4 with ffmpeg command. > problem is when playing the video with jwplayer it downloads the full > video then plays it. > So i need to insert intervals like mp4box command do. > Please guide me with the same. qt-faststart will do what you need and comes with FFmpeg, but you may have to compile it first: make tools/qt-faststart Then install it if desired: install -Dm755 tools/qt-faststart /usr/local/bin/qt-faststart Usage: qt-faststart input.mp4 output.mp4 From hardik.sharma22 at yahoo.com Mon Oct 24 21:42:53 2011 From: hardik.sharma22 at yahoo.com (Hardik Sharma) Date: Mon, 24 Oct 2011 12:42:53 -0700 (PDT) Subject: [FFmpeg-user] Access unit boundaries for h264 stream Message-ID: <1319485373.10398.YahooMailNeo@web46202.mail.sp1.yahoo.com> Hi everyone, I am stating my problem and comments from Michael as follows- >I want to report this bug which I reproduced more then 10 times. Putting the error file with in the link. Please look at it. In the sequence I dropped 122nd?slice (p slice) and decoded this to yuv format. It dropped the whole P frame. I also observed this bug with other slices too. I know that earlier michael commented on this bug that it is not?reproducible but it did?many times for me. I am also trying to analyze it from the code and request that if someone can also look into this to help me. I will really appreciate it. Thanks. >>http://www.datafilehost.com/download-8e2551d5.html >>Thanks hardik, i can reproduce it with this file. >>The problem is that the first slice of a access unit is droped and our >>parser (libavcodec/h264_parser.c) detects AU boundaries based on >>the first slice in absence of other indications like SEI/AUD/PPS/... >>a patch fixing this is welcome! The H.264 spec lists how correct AU >>boundary detection should be done, it involves parsing and comparing >>stuff. >> -- Michael This is not happening with any particular frame or slice but it is happening for each and every slice header. Also I have another doubt that I am not dropping any SEI, SPS or PPS slice then why is it happening as parser looks for access unit boundaries in slice headers in the absence of SEI/PPS/SPS slices. Does anyone faced any such situation or if u have any patch or help related to this, please let me know. I appreciate any help. Thanks. Regards, Hardik From lorenzo.travaglio at fastwebnet.it Mon Oct 24 21:45:55 2011 From: lorenzo.travaglio at fastwebnet.it (Lorenzo Travaglio) Date: Mon, 24 Oct 2011 21:45:55 +0200 Subject: [FFmpeg-user] From mpeg2 to mpeg4 In-Reply-To: <20111023185556.374e564b@lrcd.com> References: <4EA4290A.40004@fastwebnet.it> <4EA45FF1.5020603@fastwebnet.it> <4EA4977A.30007@fastwebnet.it> <20111023185556.374e564b@lrcd.com> Message-ID: <4EA5C073.2040804@fastwebnet.it> On 24/10/2011 04:55, Lou wrote: >> Unknown encoder 'mp3' > > The MP3 encoder is "libmp3lame". The decoder is called "mp3". You can > see a list of encoders and decoders with: ffmpeg -codecs. Unfortunately, > you skipped the "Install LAME (optional)" section in the compilation > guide, and therefore you do not have libmp3lame support. I am sure to have entirely followed the guide, however I tried again. The result of checkinstall was: Done. The new package has been installed and saved to /home/lorenzo/lame-3.99/lame-ffmpeg_3.99-1_i386.deb You can remove it from your system anytime using: dpkg -r lame-ffmpeg and the result for ffmpeg -formats for mp3 says: DE mp3 MPEG audio layer 3 while the result for -codecs as you suggest is D A for MP3 (E is missing) Where did I go wrong? (as Sinead O'Connor said) Thank you Lorenzo From lou at lrcd.com Mon Oct 24 22:21:06 2011 From: lou at lrcd.com (Lou) Date: Mon, 24 Oct 2011 12:21:06 -0800 Subject: [FFmpeg-user] From mpeg2 to mpeg4 In-Reply-To: <4EA5C073.2040804@fastwebnet.it> References: <4EA4290A.40004@fastwebnet.it> <4EA45FF1.5020603@fastwebnet.it> <4EA4977A.30007@fastwebnet.it> <20111023185556.374e564b@lrcd.com> <4EA5C073.2040804@fastwebnet.it> Message-ID: <20111024122106.3cdab135@lrcd.com> On Mon, 24 Oct 2011 21:45:55 +0200 Lorenzo Travaglio wrote: > On 24/10/2011 04:55, Lou wrote: > >> Unknown encoder 'mp3' > > > > The MP3 encoder is "libmp3lame". The decoder is called "mp3". You > > can see a list of encoders and decoders with: ffmpeg -codecs. > > Unfortunately, you skipped the "Install LAME (optional)" section > > in the compilation guide, and therefore you do not have libmp3lame > > support. > > I am sure to have entirely followed the guide, however I tried again. > The result of checkinstall was: > > Done. The new package has been installed and saved to > > /home/lorenzo/lame-3.99/lame-ffmpeg_3.99-1_i386.deb > > You can remove it from your system anytime using: > > dpkg -r lame-ffmpeg You may have installed the lame package, but your ffmpeg configuration did not include --enable-libmp3lame. The guide says, "If you follow this step, add --enable-libmp3lame to the ./configure line in step 7." > and the result for ffmpeg -formats for mp3 says: > DE mp3 MPEG audio layer 3 > > while the result for -codecs as you suggest is D A for MP3 (E is > missing) > > Where did I go wrong? (as Sinead O'Connor said) > > Thank you > Lorenzo The MP3 encoder is named libmp3lame. So when you view the output of -codecs look for libmp3lame. From matt at bombbomb.com Tue Oct 25 00:38:52 2011 From: matt at bombbomb.com (Matthew Ahern) Date: Mon, 24 Oct 2011 16:38:52 -0600 Subject: [FFmpeg-user] Video encoding parameters for bitmapped videos Message-ID: <0cf601cc929d$b55ddcd0$20199670$@bombbomb.com> I have a video made up of black and white images which together form an animation of sorts with voice over. I need to output these to MP4, OGV and WebM. If I can at least get the MP4 to look good I'll kill the fatted calf. What are the best practices for encoding video (Source QT, PCM) that is made up of these types of images to get the a clean and clear video without radical pixilation to 800 kbps? This has to be able to play on the iPhone so 800kbps video is max. Matt Ahern Customer Happiness Manager Description: bombbomb_logoB Matt at BombBomb.com @bombbombsquad 719-203-9728 BombBomb Customer Care Site . 888-492-2695 . support at bombbomb.com BombBomb Knowledge Base . BombBomb FAQ . BombBomb Quick Start Guide -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 4443 bytes Desc: not available URL: From rickcorteza at gmail.com Tue Oct 25 08:36:37 2011 From: rickcorteza at gmail.com (Rick C.) Date: Tue, 25 Oct 2011 14:36:37 +0800 Subject: [FFmpeg-user] uncompressed avi In-Reply-To: <4EA50AF0.4050003@bbc.co.uk> References: <5E049B02-6DA9-412B-98EA-ECF3D897A240@gmail.com> <4EA50AF0.4050003@bbc.co.uk> Message-ID: <32BDF021-1543-4D2F-B625-93904C460BC0@gmail.com> On Oct 24, 2011, at 2:51 PM, Tim Nicholson wrote: > On 23/10/11 04:00, Rick C. wrote: >> Hello, >> >> What command line would I use to create an uncompressed avi because I can't figure it out? Thank you for the help > > > Well one option is:- > > ffmpeg -i "$in_file" -vcodec rawvideo -pix_fmt uyvy422 -vtag 2vuy -acodec $audio-codec "$out_file" > > > -- > Tim > Thanks this gets me started. I'll let you know if I have anymore questions! From c.guo at nbsystems.tv Tue Oct 25 09:17:35 2011 From: c.guo at nbsystems.tv (Chao Guo) Date: Tue, 25 Oct 2011 15:17:35 +0800 Subject: [FFmpeg-user] Need some help for DNXHD decode Message-ID: <4ea66222.0922cc0a.78de.ffffc738@mx.google.com> Hi everyone Who can tell me what's the difference between ff_simple_idct_put_mmx and ff_simple_idct_put ? I compared the results they output. It's really different. The former was nestled in X86/simple_idct_mmx.c but it's written in assembly language, I cannot read. If who can send me a translated version in cpp or c, I will appreciate very much. Or just tell me what's the different with the algorithm? Cheers Edward From me at renecalles.de Tue Oct 25 11:04:51 2011 From: me at renecalles.de (me at renecalles.de) Date: Tue, 25 Oct 2011 11:04:51 +0200 Subject: [FFmpeg-user] Split video frame accurate respecting GOP's Message-ID: Hi there, i would like to split video streams frame accurate for separate encoding on different machines. For that in my theory i need to split those files frame accurate respecting the GOP's. Now my question is, is there any way to do it with ffmpeg or do i have do stick with libav? Any hint is appreciated. Thanks a lot. Ren? From deepika at cinemacraft.tv Tue Oct 25 11:58:27 2011 From: deepika at cinemacraft.tv (Deepika) Date: Tue, 25 Oct 2011 17:58:27 +0800 Subject: [FFmpeg-user] Split video frame accurate respecting GOP's In-Reply-To: References: Message-ID: <4EA68843.6020208@cinemacraft.tv> Hi rene, Please take a look at -ss and -t options to split the file. If you have fixed gops at regular intervals this should solve your problem. Regards, Deepika On 10/25/2011 05:04 PM, me at renecalles.de wrote: > Hi there, > > i would like to split video streams frame accurate for separate > encoding on different machines. > > For that in my theory i need to split those files frame accurate > respecting the GOP's. > > Now my question is, is there any way to do it with ffmpeg or do i have > do stick with libav? > > Any hint is appreciated. > > Thanks a lot. > > Ren? > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From ipodobin at gmail.com Tue Oct 25 12:47:24 2011 From: ipodobin at gmail.com (=?UTF-8?Q?Igor_Podobi=C5=84ski?=) Date: Tue, 25 Oct 2011 12:47:24 +0200 Subject: [FFmpeg-user] 8 channels audio to 8 x 1 channel audio In-Reply-To: <83ffd3b5d50b50a34226d19bd9774867@renecalles.de> References: <4EA582DC.9040902@mdsh.com> <83ffd3b5d50b50a34226d19bd9774867@renecalles.de> Message-ID: 2011/10/24 > On Mon, 24 Oct 2011 16:23:08 +0100, Mark Himsley wrote: > >> Hi Igor, >> >> On 24/10/11 16:01, Igor Podobi?ski wrote: >> >>> Hello, >>> This is output of ffprobe:----------------------** >>> ------------------------------**------------------------------**-------------------------Input >>> #0, mxf, from 'd:\Media\PFR\test.mxf': Duration: 00:00:19.56, start: >>> 0.000000, bitrate: 62570 kb/s Stream #0:0: Video: mpeg2video (4:2:2), >>> yuv422p, 720x608 [SAR 608:405DAR 16:9], 50000 kb/s, 25 fps, 25 tbr, 25 tbn, >>> 50 tbc Stream #0:1: Audio: pcm_s16le, 48000 Hz, 8 channels, s16, 6144 >>> kb/s--------------------------**------------------------------** >>> ------------------------------**----------------------I am trying to >>> demux this mxf file into:- 1 video file (m2v)- 8 mono audio files (wav) or 4 >>> stereo files >>> Is it even possible with ffmpeg? >>> Thanks,Igor >>> >> >> I believe that is currently only possible with ffmbc and it's >> -map_audio_channel command, but patches are appearing on the ffmpeg's >> development email list that suggest it'll be possible in ffmpeg soon. >> >> Hope that helps. >> > > Hi Igor, > > as i had to deal with it last time i had to use a different tool for that. > > You could try to demux the audio as is and then use i.e. sox (linux) or > BeSweet for splitting/re-arranging the audio channels. > > Hope this helps. > > Ren? > > > Hi Ren?, Mark, Thanks for answers. ffmbc is exactly what I needed. I will look also on BeSweet. Thanks, Igor From belcampo at zonnet.nl Tue Oct 25 12:49:55 2011 From: belcampo at zonnet.nl (belcampo) Date: Tue, 25 Oct 2011 12:49:55 +0200 Subject: [FFmpeg-user] Split video frame accurate respecting GOP's In-Reply-To: <4EA68843.6020208@cinemacraft.tv> References: <4EA68843.6020208@cinemacraft.tv> Message-ID: <4EA69453.8070404@zonnet.nl> On 10/25/2011 11:58 AM, Deepika wrote: > Hi rene, > > Please take a look at -ss and -t options to split the file. If you > have fixed gops at regular intervals this should solve your problem. > > Regards, > Deepika > On 10/25/2011 05:04 PM, me at renecalles.de wrote: >> Hi there, >> >> i would like to split video streams frame accurate for separate >> encoding on different machines. >> >> For that in my theory i need to split those files frame accurate >> respecting the GOP's. >> >> Now my question is, is there any way to do it with ffmpeg or do i >> have do stick with libav? >> >> Any hint is appreciated. Search for [issue2114] GOP-based multithreading(h264 encoding performance boost of 78%) I asked for this in june 2010. If your source is as mentioned above "you have fixed gops at regular intervals" as with DVB-S mpeg2 files which have GOPs of 12-frames it's easy. If it's h264, the HD-channels it's more tedious. There is a solution, if you use tsMuxeR/tsMuxerGUI you can split the source in parts, where tsMuxeR takes care of splitting at GOP-boundaries, each part starts with an I-frame. mkvtoolnix has the same ability. >> >> Thanks a lot. >> >> Ren? >> _______________________________________________ >> ffmpeg-user mailing list >> ffmpeg-user at ffmpeg.org >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From me at renecalles.de Tue Oct 25 15:48:52 2011 From: me at renecalles.de (me at renecalles.de) Date: Tue, 25 Oct 2011 15:48:52 +0200 Subject: [FFmpeg-user] Split video frame accurate respecting GOP's In-Reply-To: <4EA69453.8070404@zonnet.nl> References: <4EA68843.6020208@cinemacraft.tv> <4EA69453.8070404@zonnet.nl> Message-ID: <7d51998d2b934a05eaef830fd28b6991@renecalles.de> Hi Deepika, belcampo, thank you both for your input. I'm thinking in some kind of more general solution. The idea is to parse the video, looking for I-Frames in a defined interval and split directly before the I-Frame appears. This could also solve the fixed / non-fixed GOP situation. The -ss and -t solution makes me feel a bit uncomfortable as it not really "under control". Regards, Ren? On Tue, 25 Oct 2011 12:49:55 +0200, belcampo wrote: > On 10/25/2011 11:58 AM, Deepika wrote: >> Hi rene, >> >> Please take a look at -ss and -t options to split the file. If you >> have fixed gops at regular intervals this should solve your problem. >> >> Regards, >> Deepika >> On 10/25/2011 05:04 PM, me at renecalles.de wrote: >>> Hi there, >>> >>> i would like to split video streams frame accurate for separate >>> encoding on different machines. >>> >>> For that in my theory i need to split those files frame accurate >>> respecting the GOP's. >>> >>> Now my question is, is there any way to do it with ffmpeg or do i >>> have do stick with libav? >>> >>> Any hint is appreciated. > Search for [issue2114] GOP-based multithreading(h264 encoding > performance boost of 78%) > I asked for this in june 2010. If your source is as mentioned above > "you have fixed gops at regular intervals" as with DVB-S mpeg2 files > which have GOPs of 12-frames it's easy. If it's h264, the HD-channels > it's more tedious. There is a solution, if you use tsMuxeR/tsMuxerGUI > you can split the source in parts, where tsMuxeR takes care of > splitting at GOP-boundaries, each part starts with an I-frame. > mkvtoolnix has the same ability. >>> >>> Thanks a lot. >>> >>> Ren? >>> _______________________________________________ >>> ffmpeg-user mailing list >>> ffmpeg-user at ffmpeg.org >>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >> >> _______________________________________________ >> ffmpeg-user mailing list >> ffmpeg-user at ffmpeg.org >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From belcampo at zonnet.nl Tue Oct 25 16:33:39 2011 From: belcampo at zonnet.nl (belcampo) Date: Tue, 25 Oct 2011 16:33:39 +0200 Subject: [FFmpeg-user] Split video frame accurate respecting GOP's In-Reply-To: <7d51998d2b934a05eaef830fd28b6991@renecalles.de> References: <4EA68843.6020208@cinemacraft.tv> <4EA69453.8070404@zonnet.nl> <7d51998d2b934a05eaef830fd28b6991@renecalles.de> Message-ID: <4EA6C8C3.5020304@zonnet.nl> On 10/25/2011 03:48 PM, me at renecalles.de wrote: > Hi Deepika, belcampo, > > thank you both for your input. > > I'm thinking in some kind of more general solution. > The idea is to parse the video, looking for I-Frames in a defined > interval and split directly before the I-Frame appears. > This could also solve the fixed / non-fixed GOP situation. Search: http://www.google.nl/url?sa=t&rct=j&q=extract%20list%20of%20keyframes%20belcampo&source=web&cd=1&ved=0CBwQFjAA&url=http%3A%2F%2Fffmpeg-users.933282.n4.nabble.com%2FCreating-a-list-of-I-frames-td2299316.html&ei=bcimTojxDc30-gasnN2vCQ&usg=AFQjCNGE63wbQ4bx7TfpJT4fIH_aglfN5w&cad=rja > > The -ss and -t solution makes me feel a bit uncomfortable as it not > really "under control". > > Regards, > Ren? > > > > On Tue, 25 Oct 2011 12:49:55 +0200, belcampo wrote: >> On 10/25/2011 11:58 AM, Deepika wrote: >>> Hi rene, >>> >>> Please take a look at -ss and -t options to split the file. If you >>> have fixed gops at regular intervals this should solve your problem. >>> >>> Regards, >>> Deepika >>> On 10/25/2011 05:04 PM, me at renecalles.de wrote: >>>> Hi there, >>>> >>>> i would like to split video streams frame accurate for separate >>>> encoding on different machines. >>>> >>>> For that in my theory i need to split those files frame accurate >>>> respecting the GOP's. >>>> >>>> Now my question is, is there any way to do it with ffmpeg or do i >>>> have do stick with libav? >>>> >>>> Any hint is appreciated. >> Search for [issue2114] GOP-based multithreading(h264 encoding >> performance boost of 78%) >> I asked for this in june 2010. If your source is as mentioned above >> "you have fixed gops at regular intervals" as with DVB-S mpeg2 files >> which have GOPs of 12-frames it's easy. If it's h264, the HD-channels >> it's more tedious. There is a solution, if you use tsMuxeR/tsMuxerGUI >> you can split the source in parts, where tsMuxeR takes care of >> splitting at GOP-boundaries, each part starts with an I-frame. >> mkvtoolnix has the same ability. >>>> >>>> Thanks a lot. >>>> >>>> Ren? >>>> _______________________________________________ >>>> ffmpeg-user mailing list >>>> ffmpeg-user at ffmpeg.org >>>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >>> >>> _______________________________________________ >>> ffmpeg-user mailing list >>> ffmpeg-user at ffmpeg.org >>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >> >> _______________________________________________ >> ffmpeg-user mailing list >> ffmpeg-user at ffmpeg.org >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From me at renecalles.de Tue Oct 25 16:59:15 2011 From: me at renecalles.de (me at renecalles.de) Date: Tue, 25 Oct 2011 16:59:15 +0200 Subject: [FFmpeg-user] Split video frame accurate respecting GOP's In-Reply-To: <4EA6C8C3.5020304@zonnet.nl> References: <4EA68843.6020208@cinemacraft.tv> <4EA69453.8070404@zonnet.nl> <7d51998d2b934a05eaef830fd28b6991@renecalles.de> <4EA6C8C3.5020304@zonnet.nl> Message-ID: Thanks, i know that from ffprobe but thought it's maybe also implemented in ffmpeg. The critical part is to pass frame numbers to ffmpeg, as i understand frame accurate seeking is not possible in ffmpeg. Or is there any workaround for that? Another solution could be an option in ffmpeg to split the video every n minutes, but without a script using the -ss and -t options. Best, Ren? On Tue, 25 Oct 2011 16:33:39 +0200, belcampo wrote: > On 10/25/2011 03:48 PM, me at renecalles.de wrote: >> Hi Deepika, belcampo, >> >> thank you both for your input. >> >> I'm thinking in some kind of more general solution. >> The idea is to parse the video, looking for I-Frames in a defined >> interval and split directly before the I-Frame appears. >> This could also solve the fixed / non-fixed GOP situation. > Search: > > http://www.google.nl/url?sa=t&rct=j&q=extract%20list%20of%20keyframes%20belcampo&source=web&cd=1&ved=0CBwQFjAA&url=http%3A%2F%2Fffmpeg-users.933282.n4.nabble.com%2FCreating-a-list-of-I-frames-td2299316.html&ei=bcimTojxDc30-gasnN2vCQ&usg=AFQjCNGE63wbQ4bx7TfpJT4fIH_aglfN5w&cad=rja >> >> The -ss and -t solution makes me feel a bit uncomfortable as it not >> really "under control". >> >> Regards, >> Ren? >> >> >> >> On Tue, 25 Oct 2011 12:49:55 +0200, belcampo wrote: >>> On 10/25/2011 11:58 AM, Deepika wrote: >>>> Hi rene, >>>> >>>> Please take a look at -ss and -t options to split the file. If you >>>> have fixed gops at regular intervals this should solve your problem. >>>> >>>> Regards, >>>> Deepika >>>> On 10/25/2011 05:04 PM, me at renecalles.de wrote: >>>>> Hi there, >>>>> >>>>> i would like to split video streams frame accurate for separate >>>>> encoding on different machines. >>>>> >>>>> For that in my theory i need to split those files frame accurate >>>>> respecting the GOP's. >>>>> >>>>> Now my question is, is there any way to do it with ffmpeg or do i >>>>> have do stick with libav? >>>>> >>>>> Any hint is appreciated. >>> Search for [issue2114] GOP-based multithreading(h264 encoding >>> performance boost of 78%) >>> I asked for this in june 2010. If your source is as mentioned above >>> "you have fixed gops at regular intervals" as with DVB-S mpeg2 >>> files >>> which have GOPs of 12-frames it's easy. If it's h264, the >>> HD-channels >>> it's more tedious. There is a solution, if you use >>> tsMuxeR/tsMuxerGUI >>> you can split the source in parts, where tsMuxeR takes care of >>> splitting at GOP-boundaries, each part starts with an I-frame. >>> mkvtoolnix has the same ability. >>>>> >>>>> Thanks a lot. >>>>> >>>>> Ren? >>>>> _______________________________________________ >>>>> ffmpeg-user mailing list >>>>> ffmpeg-user at ffmpeg.org >>>>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >>>> >>>> _______________________________________________ >>>> ffmpeg-user mailing list >>>> ffmpeg-user at ffmpeg.org >>>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >>> >>> _______________________________________________ >>> ffmpeg-user mailing list >>> ffmpeg-user at ffmpeg.org >>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >> >> _______________________________________________ >> ffmpeg-user mailing list >> ffmpeg-user at ffmpeg.org >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From mark at mdsh.com Tue Oct 25 17:35:47 2011 From: mark at mdsh.com (Mark Himsley) Date: Tue, 25 Oct 2011 16:35:47 +0100 Subject: [FFmpeg-user] [patch] testsrc seconds display is out-by-one frame Message-ID: <4EA6D753.6030109@mdsh.com> Without this patch each displayed second is incremented 1 frame early, second 0 is only 24 frames long where as every other second is 25 frames long. -- Mark -------------- next part -------------- A non-text attachment was scrubbed... Name: ffmpeg-vsrc_testsrc-002.diff Type: text/x-patch Size: 599 bytes Desc: not available URL: From mark at mdsh.com Tue Oct 25 17:40:52 2011 From: mark at mdsh.com (Mark Himsley) Date: Tue, 25 Oct 2011 16:40:52 +0100 Subject: [FFmpeg-user] [patch] testsrc seconds display is out-by-one frame In-Reply-To: <4EA6D753.6030109@mdsh.com> References: <4EA6D753.6030109@mdsh.com> Message-ID: <4EA6D884.4050208@mdsh.com> On 25/10/11 16:35, Mark Himsley wrote: > Without this patch each displayed second is incremented 1 frame early, > second 0 is only 24 frames long where as every other second is 25 frames > long. Bum. Wrong email address. Ignore, I'll send it to -devel. -- Mark From pb at das-werkstatt.com Tue Oct 25 18:42:43 2011 From: pb at das-werkstatt.com (Peter B.) Date: Tue, 25 Oct 2011 18:42:43 +0200 Subject: [FFmpeg-user] Split video frame accurate respecting GOP's In-Reply-To: References: <4EA68843.6020208@cinemacraft.tv> <4EA69453.8070404@zonnet.nl> <7d51998d2b934a05eaef830fd28b6991@renecalles.de> <4EA6C8C3.5020304@zonnet.nl> Message-ID: <4EA6E703.7060409@das-werkstatt.com> me at renecalles.de wrote: > The critical part is to pass frame numbers to ffmpeg, as i understand > frame accurate seeking is not possible in ffmpeg. I also require frame-accurate seeking/cutting in ffmpeg [1], but if I understood correctly, it has something to do with the fact that some containers are impossible to seek by frame. Using ffprobe as for pre-parsing and then passing those numbers to ffmpeg is currently not possible, and additionally, in our case, it would add tremendous processing times, as we're dealing with several GB of FFv1/PCM encoded lossless videos. The GOP-aware cutting of lossy codecs would be great, but how should/could the splitting of lossy audio be handled? Regards, Pb == References: [1] http://ffmpeg-users.933282.n4.nabble.com/Lossless-frame-and-sample-exact-splitting-merging-of-AVIs-td2019543.html From belcampo at zonnet.nl Tue Oct 25 19:22:04 2011 From: belcampo at zonnet.nl (belcampo) Date: Tue, 25 Oct 2011 19:22:04 +0200 Subject: [FFmpeg-user] Split video frame accurate respecting GOP's In-Reply-To: References: <4EA68843.6020208@cinemacraft.tv> <4EA69453.8070404@zonnet.nl> <7d51998d2b934a05eaef830fd28b6991@renecalles.de> <4EA6C8C3.5020304@zonnet.nl> Message-ID: <4EA6F03C.7060206@zonnet.nl> On 10/25/2011 04:59 PM, me at renecalles.de wrote: > Thanks, > > i know that from ffprobe but thought it's maybe also implemented in > ffmpeg. > > The critical part is to pass frame numbers to ffmpeg, as i understand > frame accurate seeking is not possible in ffmpeg. If you read all the posts about that link, you would discover that someone, don't remember his name, was so kind to write a small script which outputs the key-frame numbers. If your source is 25fps, every frame takes .04 seconds. So if you know that frame# 10021 is a key-frame then you can calculate 10021*.04 which wil become th value after ffmpeg -ss > > Or is there any workaround for that? Another solution could be an > option in ffmpeg to split the video every n minutes, but without a > script using the -ss and -t options. AFAIK ffmpeg is not able to do that. As mentioned earlier tsMuxeR and mkvtoolnix have that ability. Another option, although time/space intensive is to convert the source to an all-keyframes file first, then you can do it frame-accurate. > > Best, > Ren? > > > > On Tue, 25 Oct 2011 16:33:39 +0200, belcampo wrote: >> On 10/25/2011 03:48 PM, me at renecalles.de wrote: >>> Hi Deepika, belcampo, >>> >>> thank you both for your input. >>> >>> I'm thinking in some kind of more general solution. >>> The idea is to parse the video, looking for I-Frames in a defined >>> interval and split directly before the I-Frame appears. >>> This could also solve the fixed / non-fixed GOP situation. >> Search: >> >> http://www.google.nl/url?sa=t&rct=j&q=extract%20list%20of%20keyframes%20belcampo&source=web&cd=1&ved=0CBwQFjAA&url=http%3A%2F%2Fffmpeg-users.933282.n4.nabble.com%2FCreating-a-list-of-I-frames-td2299316.html&ei=bcimTojxDc30-gasnN2vCQ&usg=AFQjCNGE63wbQ4bx7TfpJT4fIH_aglfN5w&cad=rja >> >>> >>> The -ss and -t solution makes me feel a bit uncomfortable as it not >>> really "under control". >>> >>> Regards, >>> Ren? >>> >>> >>> >>> On Tue, 25 Oct 2011 12:49:55 +0200, belcampo wrote: >>>> On 10/25/2011 11:58 AM, Deepika wrote: >>>>> Hi rene, >>>>> >>>>> Please take a look at -ss and -t options to split the file. If you >>>>> have fixed gops at regular intervals this should solve your problem. >>>>> >>>>> Regards, >>>>> Deepika >>>>> On 10/25/2011 05:04 PM, me at renecalles.de wrote: >>>>>> Hi there, >>>>>> >>>>>> i would like to split video streams frame accurate for separate >>>>>> encoding on different machines. >>>>>> >>>>>> For that in my theory i need to split those files frame accurate >>>>>> respecting the GOP's. >>>>>> >>>>>> Now my question is, is there any way to do it with ffmpeg or do i >>>>>> have do stick with libav? >>>>>> >>>>>> Any hint is appreciated. >>>> Search for [issue2114] GOP-based multithreading(h264 encoding >>>> performance boost of 78%) >>>> I asked for this in june 2010. If your source is as mentioned above >>>> "you have fixed gops at regular intervals" as with DVB-S mpeg2 files >>>> which have GOPs of 12-frames it's easy. If it's h264, the HD-channels >>>> it's more tedious. There is a solution, if you use tsMuxeR/tsMuxerGUI >>>> you can split the source in parts, where tsMuxeR takes care of >>>> splitting at GOP-boundaries, each part starts with an I-frame. >>>> mkvtoolnix has the same ability. >>>>>> >>>>>> Thanks a lot. >>>>>> >>>>>> Ren? >>>>>> _______________________________________________ >>>>>> ffmpeg-user mailing list >>>>>> ffmpeg-user at ffmpeg.org >>>>>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >>>>> >>>>> _______________________________________________ >>>>> ffmpeg-user mailing list >>>>> ffmpeg-user at ffmpeg.org >>>>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >>>> >>>> _______________________________________________ >>>> ffmpeg-user mailing list >>>> ffmpeg-user at ffmpeg.org >>>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >>> >>> _______________________________________________ >>> ffmpeg-user mailing list >>> ffmpeg-user at ffmpeg.org >>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >> >> _______________________________________________ >> ffmpeg-user mailing list >> ffmpeg-user at ffmpeg.org >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From rogerdpack2 at gmail.com Tue Oct 25 21:47:06 2011 From: rogerdpack2 at gmail.com (Roger Pack) Date: Tue, 25 Oct 2011 13:47:06 -0600 Subject: [FFmpeg-user] Split video frame accurate respecting GOP's In-Reply-To: <4EA6E703.7060409@das-werkstatt.com> References: <4EA68843.6020208@cinemacraft.tv> <4EA69453.8070404@zonnet.nl> <7d51998d2b934a05eaef830fd28b6991@renecalles.de> <4EA6C8C3.5020304@zonnet.nl> <4EA6E703.7060409@das-werkstatt.com> Message-ID: > The -ss and -t solution makes me feel a bit uncomfortable as it not really > "under control". If you pass them a timestamp that coincides with a GOP i-frame marker, then you're "under control" :) > Using ffprobe as for pre-parsing and then passing those numbers to > ffmpeg is currently not possible, and additionally, in our case, it > would add tremendous processing times, as we're dealing with several GB > of FFv1/PCM encoded lossless videos. I don't think ffmpeg does "on the fly smart cutting" like this. Mencoder does, if you re-encode the entire video. A few others do, but they're pretty sparse. I made a list once. https://docs.google.com/spreadsheet/ccc?key=0AjWmZ0umsuZHdHNzZVhuMTkxTHdYbUdCQzF3cE51Snc I could come up with a wrapper to ffprobe that might make it possible to cut more precisely, if desired. If not then somebody will have to hack the ffmpeg core to make it precise cutting aware. -roger- From lorenzo.travaglio at fastwebnet.it Tue Oct 25 21:58:57 2011 From: lorenzo.travaglio at fastwebnet.it (Lorenzo Travaglio) Date: Tue, 25 Oct 2011 21:58:57 +0200 Subject: [FFmpeg-user] From mpeg2 to mpeg4 In-Reply-To: <20111024122106.3cdab135@lrcd.com> References: <4EA4290A.40004@fastwebnet.it> <4EA45FF1.5020603@fastwebnet.it> <4EA4977A.30007@fastwebnet.it> <20111023185556.374e564b@lrcd.com> <4EA5C073.2040804@fastwebnet.it> <20111024122106.3cdab135@lrcd.com> Message-ID: <4EA71501.5000604@fastwebnet.it> On 24/10/2011 22:21, Lou wrote: > On Mon, 24 Oct 2011 21:45:55 +0200 > Lorenzo Travaglio wrote: > >> On 24/10/2011 04:55, Lou wrote: >> >> Unknown encoder 'mp3' Lou, I have launched again the whole compilation process but the answer is still "Unknown encoder mp3". i'm so sorry but I don't know whrere I fail. Lorenzo From lou at lrcd.com Tue Oct 25 22:05:35 2011 From: lou at lrcd.com (Lou) Date: Tue, 25 Oct 2011 12:05:35 -0800 Subject: [FFmpeg-user] From mpeg2 to mpeg4 In-Reply-To: <4EA71501.5000604@fastwebnet.it> References: <4EA4290A.40004@fastwebnet.it> <4EA45FF1.5020603@fastwebnet.it> <4EA4977A.30007@fastwebnet.it> <20111023185556.374e564b@lrcd.com> <4EA5C073.2040804@fastwebnet.it> <20111024122106.3cdab135@lrcd.com> <4EA71501.5000604@fastwebnet.it> Message-ID: <20111025120535.65820833@lrcd.com> On Tue, 25 Oct 2011 21:58:57 +0200 Lorenzo Travaglio wrote: > On 24/10/2011 22:21, Lou wrote: > > On Mon, 24 Oct 2011 21:45:55 +0200 > > Lorenzo Travaglio wrote: > > > >> On 24/10/2011 04:55, Lou wrote: > >> >> Unknown encoder 'mp3' > Lou, I have launched again the whole compilation process but the > answer is still "Unknown encoder mp3". > > i'm so sorry but I don't know whrere I fail. > > Lorenzo The encoder is named "libmp3lame". So instead of "-acodec mp3" use "-acodec libmp3lame". From michael.rampe at gmail.com Tue Oct 25 23:55:47 2011 From: michael.rampe at gmail.com (FFmichael) Date: Tue, 25 Oct 2011 14:55:47 -0700 (PDT) Subject: [FFmpeg-user] From mpeg2 to mpeg4 In-Reply-To: References: <4EA4290A.40004@fastwebnet.it> <4EA45FF1.5020603@fastwebnet.it> Message-ID: <1319579747708-3938428.post@n4.nabble.com> Jonathan Isom wrote: > > On Sun, Oct 23, 2011 at 1:41 PM, Lorenzo Travaglio > <lorenzo.travaglio@> wrote: >> On Sun, 23/10/2011 17:34, Jonathan Isom wrote: >>> Hi >>> ? ?The first thing just about anybody on this list will tell you is >>> that you are using ?a >>> very old(2009) version. You should try to install a recent version. >>> FFmpeg is under >>> constant development so many options have changed and codecs improved. >>> ? It would >>> also be beneficial to know the command line you tried. Also are you >>> wanting just >>> mpeg4 or mpeg4 AVC(aka h.264)? >> >> Thank you Jonathan for your answer. >> This package is declared as "up-to-date" by apt-get. However I will try >> to >> download the source and to recompile even because some switches like '-a' >> to >> change the aspect ratio do not work. >> >> I tried many command line like "ffmpeg -i prova.mpg -vcodec mpeg4 >> prova4.mpg" but the results are very poor. In this particular case I >> obtained a reduced but not visible file. In other cases I obtained >> reduced >> versions but video was very poor, as with "ffmpeg -i prova.mpg -s 720*368 >> prova3.mpg" or "ffmpeg -i prova.mpg -r 50 prova2.mpg". > > You may wish to add a bitrate for the video(-b) and audio(-ab). -r is > for framerate. you may get better results > with 25 than 50 though that cuts it in half. You'll have to test for > your needs. > > ffmpeg -i prova.mpg -vcodec mpeg4 -b 800000 -ac 2 -acodec mp3 -ab > 128000 -r 50 -s 720x368 prova2.mpg > > also.... mpeg4 video is not supported in a .mpg container. http://en.wikipedia.org/wiki/Comparison_of_container_formats use .mp4 for your output instead. Michael -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/From-mpeg2-to-mpeg4-tp3930435p3938428.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From asai at globalchangemusic.org Wed Oct 26 00:29:44 2011 From: asai at globalchangemusic.org (Asai) Date: Tue, 25 Oct 2011 15:29:44 -0700 Subject: [FFmpeg-user] Apple icod Message-ID: <4EA73858.60705@globalchangemusic.org> Greetings, Have compiled latest FFMPEG in order to be able to decode Apple ProRes. However, when I try to convert to H264 from what I thought was ProRes, I get a 'Invalid pixel format string '-1'' message, and ffmpeg tells me that the video type is 'icod,' which is Apple's Intermediate Codec. I though they were the same thing? Is this not the case? If not, can ffmpeg decode icod? -- --asai From pmanno at kinowerks.com Wed Oct 26 02:20:26 2011 From: pmanno at kinowerks.com (Paul G. Manno) Date: Tue, 25 Oct 2011 19:20:26 -0500 Subject: [FFmpeg-user] Apple icod In-Reply-To: <4EA73858.60705@globalchangemusic.org> References: <4EA73858.60705@globalchangemusic.org> Message-ID: <640F7F446117414EA41EF676AE146A9E78974DBF@mail2> See: http://www.ffmpeg.org/trac/ffmpeg/ticket/484 The ProRes decoder is GPLv2 only, so you have to configure with "--enable-gpl --enable-version2". ________________________________________ From: ffmpeg-user-bounces at ffmpeg.org [ffmpeg-user-bounces at ffmpeg.org] On Behalf Of Asai [asai at globalchangemusic.org] Sent: Tuesday, October 25, 2011 5:29 PM To: ffmpeg-user at ffmpeg.org Subject: [FFmpeg-user] Apple icod Greetings, Have compiled latest FFMPEG in order to be able to decode Apple ProRes. However, when I try to convert to H264 from what I thought was ProRes, I get a 'Invalid pixel format string '-1'' message, and ffmpeg tells me that the video type is 'icod,' which is Apple's Intermediate Codec. I though they were the same thing? Is this not the case? If not, can ffmpeg decode icod? -- --asai _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From amit.dor.shifer at gmail.com Wed Oct 26 04:52:42 2011 From: amit.dor.shifer at gmail.com (Amit Dor-Shifer) Date: Wed, 26 Oct 2011 13:52:42 +1100 Subject: [FFmpeg-user] Encoding raw alaw to PCM Message-ID: Hi. I've a file containing raw audio payload, alaw-coded (I.E. just the bytes of the packets captured, 8khz, 1 chan, 8b/sample). I've successfully used sox to play this file, using the following: play -r 8k -t raw -e a-law -b 8 myfile I want to achieve the same with ffmpeg, and more specifically, to re-encode and save the payload in a different encoding/format (preferably ogg, but PCM/wav would be nice for a start). Would appreciate someone's input, as I'm fumbling with the cmdline args. 10x From vlad.ion at gmail.com Wed Oct 26 12:01:54 2011 From: vlad.ion at gmail.com (oblivion) Date: Wed, 26 Oct 2011 03:01:54 -0700 (PDT) Subject: [FFmpeg-user] Muxing raw H264 to container format (MP4, MOV) In-Reply-To: <1319125913860-3922333.post@n4.nabble.com> References: <1319124086069-3922255.post@n4.nabble.com> <1319125913860-3922333.post@n4.nabble.com> Message-ID: <1319623314753-3940025.post@n4.nabble.com> So nobody can give me any hint about why ffmpeg is acting this way? The stream seems valid, avc2avi can read it and output a valid avi file. Also some simple code I wrote that links to ffmpeg libs can open the file and read packets from it so I really don't see what is going on. Is there something in the header of the h264 file that can cause this? @ben Could you tell me what build of ffmpeg you used? Although I doubt this can be the problem. Thanks. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Muxing-raw-H264-to-container-format-MP4-MOV-tp3922255p3940025.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From mark at mdsh.com Wed Oct 26 12:45:06 2011 From: mark at mdsh.com (Mark Himsley) Date: Wed, 26 Oct 2011 11:45:06 +0100 Subject: [FFmpeg-user] Muxing raw H264 to container format (MP4, MOV) In-Reply-To: <1319623314753-3940025.post@n4.nabble.com> References: <1319124086069-3922255.post@n4.nabble.com> <1319125913860-3922333.post@n4.nabble.com> <1319623314753-3940025.post@n4.nabble.com> Message-ID: <4EA7E4B2.6070304@mdsh.com> On 20/10/11 16:21, oblivion wrote: > ffmpeg -i input.h264 -vcodec copy out.mp4 On 26/10/11 11:01, oblivion wrote: > So nobody can give me any hint about why ffmpeg is acting this way? Please share your input file. -- Mark From dev at rarevision.com Wed Oct 26 14:27:41 2011 From: dev at rarevision.com (Thomas Worth) Date: Wed, 26 Oct 2011 05:27:41 -0700 Subject: [FFmpeg-user] Apple icod In-Reply-To: <640F7F446117414EA41EF676AE146A9E78974DBF@mail2> References: <4EA73858.60705@globalchangemusic.org> <640F7F446117414EA41EF676AE146A9E78974DBF@mail2> Message-ID: On Tue, Oct 25, 2011 at 5:20 PM, Paul G. Manno wrote: > See: http://www.ffmpeg.org/trac/ffmpeg/ticket/484 > > The ProRes decoder is GPLv2 only, so you have to configure with "--enable-gpl --enable-version2". You mean the GPL version of the ProRes decoder. There's an LGPL version as well: prores_gpl prores_lgpl The output from each is nearly identical. You can force decoding with one or the other by specifying the decoder before the input file: ffmpeg -vcodec prores_lgpl -i myclip.mov Forgive me, but I have to ask. Why are there two versions of the same decoder, each with a different license? Is one faster than the other? From phil_rhodes at rocketmail.com Wed Oct 26 15:51:03 2011 From: phil_rhodes at rocketmail.com (Phil Rhodes) Date: Wed, 26 Oct 2011 14:51:03 +0100 Subject: [FFmpeg-user] Apple icod In-Reply-To: References: <4EA73858.60705@globalchangemusic.org> <640F7F446117414EA41EF676AE146A9E78974DBF@mail2> Message-ID: > Forgive me, but I have to ask. Why are there two versions of the same > decoder, each with a different license? Is one faster than the other? Much as it's excellent news that ProRes support is here, at least in part, I would have to reiterate the same question. I'd hate to think that any duplication of effort was going on. Also, does this suggest that an encoder is on the horizon? P From asai at globalchangemusic.org Wed Oct 26 18:27:06 2011 From: asai at globalchangemusic.org (Asai) Date: Wed, 26 Oct 2011 09:27:06 -0700 Subject: [FFmpeg-user] Apple icod In-Reply-To: <640F7F446117414EA41EF676AE146A9E78974DBF@mail2> References: <4EA73858.60705@globalchangemusic.org> <640F7F446117414EA41EF676AE146A9E78974DBF@mail2> Message-ID: <4EA834DA.9000504@globalchangemusic.org> Thanks for the reply. Curiously enough, when I try to use version 2 I get this: ffmpeg]# ./configure --enable-gpl --enable-version2 --enable-libvpx --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --disable-ffplay --enable-shared --enable-postproc --enable-avfilter --enable-pthreads --extra-cflags=-fPIC Unknown option "--enable-version2". See ./configure --help for available options. Any insights? --asai On 10/25/2011 5:20 PM, Paul G. Manno wrote: > See: http://www.ffmpeg.org/trac/ffmpeg/ticket/484 > > The ProRes decoder is GPLv2 only, so you have to configure with "--enable-gpl --enable-version2". > > > ________________________________________ > From: ffmpeg-user-bounces at ffmpeg.org [ffmpeg-user-bounces at ffmpeg.org] On Behalf Of Asai [asai at globalchangemusic.org] > Sent: Tuesday, October 25, 2011 5:29 PM > To: ffmpeg-user at ffmpeg.org > Subject: [FFmpeg-user] Apple icod > > Greetings, > > Have compiled latest FFMPEG in order to be able to decode Apple ProRes. > However, when I try to convert to H264 from what I thought was ProRes, > I get a 'Invalid pixel format string '-1'' message, and ffmpeg tells me > that the video type is 'icod,' which is Apple's Intermediate Codec. I > though they were the same thing? Is this not the case? If not, can > ffmpeg decode icod? > > -- > --asai > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From cehoyos at ag.or.at Wed Oct 26 18:39:27 2011 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 26 Oct 2011 16:39:27 +0000 (UTC) Subject: [FFmpeg-user] Apple icod References: <4EA73858.60705@globalchangemusic.org> Message-ID: Asai globalchangemusic.org> writes: > Have compiled latest FFMPEG in order to be able to decode Apple ProRes. > However, when I try to convert to H264 from what I thought was ProRes, > I get a 'Invalid pixel format string '-1'' message, and ffmpeg tells me > that the video type is 'icod,' which is Apple's Intermediate Codec. I > though they were the same thing? No: http://wiki.multimedia.cx/index.php?title=Icod http://wiki.multimedia.cx/index.php?title=Apple_ProRes Apple Intermediate is not supported by FFmpeg. There are two ProRes decoder, both are LGPL. The default one (former GPL decoder) is faster than the fork's decoder. Concerning the duplicated efforts: This was of course one of the "goals" of the fork, if somebody claims the opposite, please don't trust him! Carl Eugen From dev at rarevision.com Wed Oct 26 19:02:45 2011 From: dev at rarevision.com (Thomas Worth) Date: Wed, 26 Oct 2011 10:02:45 -0700 Subject: [FFmpeg-user] Apple icod In-Reply-To: References: <4EA73858.60705@globalchangemusic.org> Message-ID: On Wed, Oct 26, 2011 at 9:39 AM, Carl Eugen Hoyos wrote: > Asai globalchangemusic.org> writes: > >> Have compiled latest FFMPEG in order to be able to decode Apple ProRes. >> However, ?when I try to convert to H264 from what I thought was ProRes, >> I get a 'Invalid pixel format string '-1'' message, and ffmpeg tells me >> that the video type is 'icod,' which is Apple's Intermediate Codec. ?I >> though they were the same thing? > > No: > http://wiki.multimedia.cx/index.php?title=Icod > http://wiki.multimedia.cx/index.php?title=Apple_ProRes > > Apple Intermediate is not supported by FFmpeg. > > There are two ProRes decoder, both are LGPL. The default one (former GPL > decoder) is faster than the fork's decoder. > > Concerning the duplicated efforts: This was of course one of the "goals" of > the fork, if somebody claims the opposite, please don't trust him! Then would your recommendation be to use the "prores" decoder rather than "prores_lgpl?" If it's faster, and the output the same, then there doesn't seem to be any need to use "prores_lgpl" as long as they're both LGPL. From nicolas.george at normalesup.org Wed Oct 26 19:05:52 2011 From: nicolas.george at normalesup.org (Nicolas George) Date: Wed, 26 Oct 2011 19:05:52 +0200 Subject: [FFmpeg-user] Apple icod In-Reply-To: References: <4EA73858.60705@globalchangemusic.org> Message-ID: <20111026170552.GA10787@phare.normalesup.org> Le quintidi 5 brumaire, an CCXX, Carl Eugen Hoyos a ?crit?: > There are two ProRes decoder, both are LGPL. The default one (former GPL > decoder) is faster than the fork's decoder. It should be documented somewhere. I do not know what prores is, nor do I have any sample, so I will not propose myself to do it. Are there advantages to using the other decoder? If so, they should be documented too. > Concerning the duplicated efforts: This was of course one of the "goals" of > the fork, if somebody claims the opposite, please don't trust him! That is obviously false, and you will only irritate people who would like to work despite the already bad atmosphere by stating such things. Regards, -- Nicolas George -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From palmavero at gmail.com Wed Oct 26 15:39:08 2011 From: palmavero at gmail.com (vero) Date: Wed, 26 Oct 2011 06:39:08 -0700 (PDT) Subject: [FFmpeg-user] DCT coefficients dequantification Message-ID: <1319636348866-3940639.post@n4.nabble.com> Hi everyone, I'm trying to recover DCT coefficients while decoding h264 using FFMPEG libavcodec. It seems that in ff_h264_mb_decode_cabac, DCT coefficients are re-ordered (zig zag ordering). However i can't find where dequantification is made in order to find the right DCT elements. Can anybody help? Thanks in advance, Vero -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/DCT-coefficients-dequantification-tp3940639p3940639.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From cehoyos at ag.or.at Wed Oct 26 23:33:17 2011 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 26 Oct 2011 21:33:17 +0000 (UTC) Subject: [FFmpeg-user] Encoding raw alaw to PCM References: Message-ID: Amit Dor-Shifer gmail.com> writes: > Hi. I've a file containing raw audio payload, alaw-coded (I.E. just the > bytes of the packets captured, 8khz, 1 chan, 8b/sample). I've successfully > used sox to play this file, using the following: > play -r 8k -t raw -e a-law -b 8 myfile ffmpeg -ar 8k -f alaw -i file out.ogg Carl Eugen From amit.dor.shifer at gmail.com Thu Oct 27 00:25:18 2011 From: amit.dor.shifer at gmail.com (Amit Dor-Shifer) Date: Thu, 27 Oct 2011 09:25:18 +1100 Subject: [FFmpeg-user] Encoding raw alaw to PCM In-Reply-To: References: Message-ID: On Thu, Oct 27, 2011 at 8:33 AM, Carl Eugen Hoyos wrote: > Amit Dor-Shifer gmail.com> writes: > > > Hi. I've a file containing raw audio payload, alaw-coded (I.E. just the > > bytes of the packets captured, 8khz, 1 chan, 8b/sample). I've > successfully > > used sox to play this file, using the following: > > play -r 8k -t raw -e a-law -b 8 myfile > > ffmpeg -ar 8k -f alaw -i file out.ogg > > Carl Eugen > > 10x! Can I achieve the same for raw g729, of same characteristics? From stefanscottalexx at gmail.com Thu Oct 27 02:19:35 2011 From: stefanscottalexx at gmail.com (Stefan Scott Alexander) Date: Wed, 26 Oct 2011 21:19:35 -0300 Subject: [FFmpeg-user] how to detect changes between frames - for a very simple AVI video where most of the frames are exactly identical (just a sporadically updating computer screen capture) Message-ID: Hi - I have a very simple video which is a screen capture of speech-synthesis software running - It just displays some text, which is motionless. The only "action" is where the current word being spoken gets highlighted. So the first sequence of frames are all exactly identical (the first word in the text is highlighted). Then suddenly the second word in the text is highlighted during the second sequence of frames, etc. I want to generate an array of timestamps for all the frames in this video which differ from the preceding frame. I've already inspected this video frame-by-frame in VirtualDub. There are no fancy "fades" or other special effect going on with the highlighting of the words: eg frames 1-552 are exactly identical (the highlight is on the first word) Then frames 553-662 are all exactly identical (the highlight is on the second word), etc. I want to use ffmpeg to automatically detect the moments when each word gets highlighted, and output an array of timestamps. So if the text being spoken has 100 words being highlighted, then I should output an array of 100 timestamps. (The highlighting is already synched with the audio by the speech-synthesis software itself. So I can actually ignore the audio. The timestamps are guaranteed to automatically line up with the audio, since the highlights are already in synch with the audio.) This is much easier than typical "motion detection" or "scene change detection" in video applications. In most other videos, there's lots of stuff moving around so you have to set the scene change detection "threshold" or "sensitivity". eg it could be 30%, which means that whenever 30% or more of the pixels changed between frames, you're gonna regard that as a scene change. But for this sort of video, which is really just a subsequence of identical frames, then another subsquence of identical frames, it should be easy to detect those few moments where the video actually changes from one frame to the next. If a frame differs from the preceding frame by even just one pixel - well, then that's a "scene change" in this case, and I want to append the current timestamp to the timestamp array which will then get outputted at the end. I saw a similar question here: http://ffmpeg-users.933282.n4.nabble.com/Scene-detection-td941845.html It looks like ffmpeg doesn't officially do motion detection or scene change detection, but I'm encouraged by seeing that ffmpeg has a command-line interface. ffmpeg does lots of stuff, so I basically am hoping someone can point me to the commands which allow frame-by-frame comparisons, plus outputting timestamps. Even if ffmpeg can just parse my AVI video into a raw array of frame data - I have some other programs which could then process that array of frame data and detect the changes and compute the timestamps. Thanks for any pointers! From stefanscottalexx at gmail.com Thu Oct 27 02:58:20 2011 From: stefanscottalexx at gmail.com (Stefan Scott Alexander) Date: Wed, 26 Oct 2011 21:58:20 -0300 Subject: [FFmpeg-user] How do I use showinfo? Message-ID: Hi - I want to get a list of all the frames in my video, along with each frame's timestamp and checksum. I'm just analyzing the video - I don't want to edit it at all. (I'm trying to figure out which frames are different from the preceding one, even by one pixel, and I figure checksum could do that. I assume if two frames are identical, then their checksums will also be identical.) I can't even figure out the syntax for the showinfo command! I tried: ffmpeg showinfo -i myvid.avi and it says: [NULL @ 0246D200] Unable to find a suitable output format for 'showinfo' showinfo: Invalid argument (I'm using Windows - ffmpeg-git-e403a97-win32-static.) Thanks! PS - Here's the full output: C:\apps\ffmpeg\ffmpeg-git-e403a97-win32-static\bin>ffmpeg -i vid002.avi showinfo ffmpeg version N-34031-ge403a97, Copyright (c) 2000-2011 the FFmpeg developers built on Oct 25 2011 15:06:47 with gcc 4.6.1 configuration: --enable-gpl --enable-version3 --enable-runtime-cpudetect --enable-avisynth --enable-bzlib --enable-fre i0r --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --enable-libmp3lame --ena ble-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvo-aacenc --e nable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib libavutil 51. 22. 0 / 51. 22. 0 libavcodec 53. 23. 0 / 53. 23. 0 libavformat 53. 17. 0 / 53. 17. 0 libavdevice 53. 4. 0 / 53. 4. 0 libavfilter 2. 45. 0 / 2. 45. 0 libswscale 2. 1. 0 / 2. 1. 0 libpostproc 51. 2. 0 / 51. 2. 0 [avi @ 00038DE0] parser not found for codec pcm_s16le, packets or times may be invalid. [avi @ 00038DE0] parser not found for codec msvideo1, packets or times may be invalid. Input #0, avi, from 'vid002.avi': Duration: 00:00:37.50, start: 0.000000, bitrate: 1655 kb/s Stream #0:0: Video: msvideo1 (CRAM / 0x4D415243), rgb555le, 468x244, 200 fps, 200 tbr, 200 tbn, 200 tbc Metadata: title : ~temp.avi Video #1 Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, 2 channels, s16, 1411 kb/s Metadata: title : Microsoft Waveform: ~temp001.wav [NULL @ 0246D200] Unable to find a suitable output format for 'showinfo' showinfo: Invalid argument C:\apps\ffmpeg\ffmpeg-git-e403a97-win32-static\bin> From rickcorteza at gmail.com Thu Oct 27 03:28:31 2011 From: rickcorteza at gmail.com (Rick C.) Date: Thu, 27 Oct 2011 09:28:31 +0800 Subject: [FFmpeg-user] uncompressed avi In-Reply-To: <4EA50AF0.4050003@bbc.co.uk> References: <5E049B02-6DA9-412B-98EA-ECF3D897A240@gmail.com> <4EA50AF0.4050003@bbc.co.uk> Message-ID: On Oct 24, 2011, at 2:51 PM, Tim Nicholson wrote: > On 23/10/11 04:00, Rick C. wrote: >> Hello, >> >> What command line would I use to create an uncompressed avi because I can't figure it out? Thank you for the help > > > Well one option is:- > > ffmpeg -i "$in_file" -vcodec rawvideo -pix_fmt uyvy422 -vtag 2vuy -acodec $audio-codec "$out_file" > > > -- > Tim > If you don't mind I have uploaded a sample video of what I'm trying to achieve: http://www.datafilehost.com/download-f93b8a5c.html These are the settings I can't figure out? From stefanscottalexx at gmail.com Thu Oct 27 06:48:01 2011 From: stefanscottalexx at gmail.com (Stefan Scott Alexander) Date: Thu, 27 Oct 2011 01:48:01 -0300 Subject: [FFmpeg-user] here's a youtube to show what i mean Message-ID: I uploaded the AVI that I'm trying to process - it's here on YouTube: http://www.youtube.com/watch?v=lC6uA5xf6D4 I don't want to output another video - I just want to output a list of all the frames which are different from the preceding frame (the list could be either timestamps, or frame numbers). This is a very simple video - just text. It's a video screen capture of a computer running speech synthesis software. Notice how the highlight on each word in the text is perfectly synchronized with the speech. The word currently being spoken = the word currently being highlighted. So I whenever the highlight "jumps" to the next word, that's the frame number (or timestamp) I want to output to a text file. Can ffmpeg do this? I was thinking I could use showinfo and checksum... If two frames are different, they should have a different checksum. So maybe I could use showinfo and output all the frames, and all the checksums. Then use another program to process this text file, to find which frames had a different checksum from the preceding frame. I know this is also called "scene change detection" in video applications. This case should be really simple, because there's almost nothing moving in the video - only the highlight moves. From cehoyos at ag.or.at Thu Oct 27 08:19:55 2011 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 27 Oct 2011 06:19:55 +0000 (UTC) Subject: [FFmpeg-user] Encoding raw alaw to PCM References: Message-ID: Amit Dor-Shifer gmail.com> writes: > Can I achieve the same for raw g729, of same characteristics? Please provide a sample. Carl Eugen From amit.dor.shifer at gmail.com Thu Oct 27 08:28:48 2011 From: amit.dor.shifer at gmail.com (Amit Dor-Shifer) Date: Thu, 27 Oct 2011 17:28:48 +1100 Subject: [FFmpeg-user] Encoding raw alaw to PCM In-Reply-To: References: Message-ID: On Thu, Oct 27, 2011 at 5:19 PM, Carl Eugen Hoyos wrote: > Amit Dor-Shifer gmail.com> writes: > > > Can I achieve the same for raw g729, of same characteristics? > > Please provide a sample. > > Carl Eugen > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > -------------- next part -------------- A non-text attachment was scrubbed... Name: test-123.sample Type: application/octet-stream Size: 2340 bytes Desc: not available URL: From vlad.ion at gmail.com Thu Oct 27 10:10:02 2011 From: vlad.ion at gmail.com (oblivion) Date: Thu, 27 Oct 2011 01:10:02 -0700 (PDT) Subject: [FFmpeg-user] Muxing raw H264 to container format (MP4, MOV) In-Reply-To: <4EA7E4B2.6070304@mdsh.com> References: <1319124086069-3922255.post@n4.nabble.com> <1319125913860-3922333.post@n4.nabble.com> <1319623314753-3940025.post@n4.nabble.com> <4EA7E4B2.6070304@mdsh.com> Message-ID: <1319703002850-3943546.post@n4.nabble.com> Hi, Here's a file: http://dl.dropbox.com/u/47131631/in.h264 It comes from a hardware device that does the h264 compression. I've created a smaller file as a sample to post here. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Muxing-raw-H264-to-container-format-MP4-MOV-tp3922255p3943546.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From pb at das-werkstatt.com Thu Oct 27 10:12:17 2011 From: pb at das-werkstatt.com (Peter B.) Date: Thu, 27 Oct 2011 10:12:17 +0200 Subject: [FFmpeg-user] How do I use showinfo? In-Reply-To: References: Message-ID: <4EA91261.5060800@das-werkstatt.com> Stefan Scott Alexander wrote: > I assume if two frames are identical, then their checksums will also be > identical.) > Be careful: This only works for synthetically duplicated frames! For example, if you would have a recording of an empty wall with nothing moving at all, you'd still have noise on the video (even if recorded digitally), which would lead to completely different checksums. Pb From pb at das-werkstatt.com Thu Oct 27 10:18:09 2011 From: pb at das-werkstatt.com (Peter B.) Date: Thu, 27 Oct 2011 10:18:09 +0200 Subject: [FFmpeg-user] how to detect changes between frames - for a very simple AVI video where most of the frames are exactly identical (just a sporadically updating computer screen capture) In-Reply-To: References: Message-ID: <4EA913C1.5000700@das-werkstatt.com> Stefan Scott Alexander wrote: > ffmpeg does lots of stuff, so I basically am hoping someone can point me to > the commands which allow frame-by-frame comparisons, > plus outputting timestamps. > I'm not sure if ffmpeg can do this. Maybe you want to take a look at "shotdetect" [1]. It's designed to not only detect scene cuts, but also outputs the frame at that position as an image, and generates an XML file with additional data, such as frame offset, etc. ;) In case you'd like to use it, I suggest applying the a patch I've created [2], which fixes some minor issues and adds a few nice features. Pb == References: [1] http://shotdetect.nonutc.fr/ [2] http://download.das-werkstatt.com/pb/contribs/patches/shotdetect-1.0.86_to_1.0.86dva1.patch From belcampo at zonnet.nl Thu Oct 27 10:27:23 2011 From: belcampo at zonnet.nl (belcampo) Date: Thu, 27 Oct 2011 10:27:23 +0200 Subject: [FFmpeg-user] how to detect changes between frames - for a very simple AVI video where most of the frames are exactly identical (just a sporadically updating computer screen capture) In-Reply-To: References: Message-ID: <4EA915EB.8070101@zonnet.nl> On 10/27/2011 02:19 AM, Stefan Scott Alexander wrote: > Hi - > > I have a very simple video which is a screen capture of speech-synthesis > software running - > It just displays some text, which is motionless. The only "action" is where > the current word being spoken gets highlighted. > > So the first sequence of frames are all exactly identical (the first word in > the text is highlighted). > Then suddenly the second word in the text is highlighted during the second > sequence of frames, etc. > > I want to generate an array of timestamps for all the frames in this video > which differ from the preceding frame. > > I've already inspected this video frame-by-frame in VirtualDub. > There are no fancy "fades" or other special effect going on with the > highlighting of the words: > eg frames 1-552 are exactly identical (the highlight is on the first word) > Then frames 553-662 are all exactly identical (the highlight is on the > second word), etc. > > I want to use ffmpeg to automatically detect the moments when each word gets > highlighted, > and output an array of timestamps. So if the text being spoken has 100 words > being highlighted, > then I should output an array of 100 timestamps. > > (The highlighting is already synched with the audio by the speech-synthesis > software itself. > So I can actually ignore the audio. > The timestamps are guaranteed to automatically line up with the audio, > since the highlights are already in synch with the audio.) > > This is much easier than typical "motion detection" or "scene change > detection" in video applications. > In most other videos, there's lots of stuff moving around > so you have to set the scene change detection "threshold" or "sensitivity". > eg it could be 30%, which means that whenever 30% or more of the pixels > changed between frames, > you're gonna regard that as a scene change. > > But for this sort of video, which is really just a subsequence of identical > frames, then another subsquence of identical frames, > it should be easy to detect those few moments where the video actually > changes from one frame to the next. > If a frame differs from the preceding frame by even just one pixel - well, > then that's a "scene change" in this case, > and I want to append the current timestamp to the timestamp array which will > then get outputted at the end. > > > I saw a similar question here: > > http://ffmpeg-users.933282.n4.nabble.com/Scene-detection-td941845.html > > It looks like ffmpeg doesn't officially do motion detection or scene change > detection, > but I'm encouraged by seeing that ffmpeg has a command-line interface. > > ffmpeg does lots of stuff, so I basically am hoping someone can point me to > the commands which allow frame-by-frame comparisons, > plus outputting timestamps. Maybe following this thread and following the suggestions and a mentioned script you'll find something that will give you the right direction. http://ffmpeg-users.933282.n4.nabble.com/Creating-a-list-of-I-frames-td2299316.html > > Even if ffmpeg can just parse my AVI video into a raw array of frame data - > I have some other programs which could then process that array of frame > data > and detect the changes and compute the timestamps. > > Thanks for any pointers! > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From pb at das-werkstatt.com Thu Oct 27 10:35:15 2011 From: pb at das-werkstatt.com (Peter B.) Date: Thu, 27 Oct 2011 10:35:15 +0200 Subject: [FFmpeg-user] how to detect changes between frames - for a very simple AVI video where most of the frames are exactly identical (just a sporadically updating computer screen capture) In-Reply-To: <4EA915EB.8070101@zonnet.nl> References: <4EA915EB.8070101@zonnet.nl> Message-ID: <4EA917C3.2030001@das-werkstatt.com> belcampo wrote: > On 10/27/2011 02:19 AM, Stefan Scott Alexander wrote: >> ffmpeg does lots of stuff, so I basically am hoping someone can point >> me to >> the commands which allow frame-by-frame comparisons, >> plus outputting timestamps. > Maybe following this thread and following the suggestions and a > mentioned script you'll find something that will give you the right > direction. > http://ffmpeg-users.933282.n4.nabble.com/Creating-a-list-of-I-frames-td2299316.html > But wouldn't detecting I-frames only be helpful for his cause, if the I-frames are threshold-positioned, which would have to be configured during encoding? ...or am I overlooking something? Pb From pb at das-werkstatt.com Thu Oct 27 10:45:31 2011 From: pb at das-werkstatt.com (Peter B.) Date: Thu, 27 Oct 2011 10:45:31 +0200 Subject: [FFmpeg-user] Scene detection In-Reply-To: <1315554934172-3801047.post@n4.nabble.com> References: <354784.24180.qm@web110607.mail.gq1.yahoo.com> <1312726584077-3724931.post@n4.nabble.com> <39659E17-5BE5-4C7C-8E1E-0E79DB34CCE5@avpreserve.com> <20110808161254.88776wg7sdrgb946@webmail.tuwien.ac.at> <1315554934172-3801047.post@n4.nabble.com> Message-ID: <4EA91A2B.8000708@das-werkstatt.com> lovelove wrote: > Thank you Peter. I tested shotdetect today and it really has some nice > concepts. The http://shotdetect.nonutc.fr/ graphs are really cool. Problem > is, almost all input videos failed. They were either outright refused or > failed to produce any meaningful output. For example, just try any video > from youtube, they all fail. I got only a single video to work. > Sorry, sorry, sorry for my late reply! I was on vacation and didn't overlooked your feedback. :( Here's the patch for improving the current version of shotdetect (1.0.86) [1] If you've been using the official shotdetect binary, I presume the problems with the videos are, because it's compiled against a very old version of ffmpeg (pre v.0.5). My patch updates the code base to compile against the current version of ffmpeg, which should fix the issues you're having with not being able to open videos. Additionally, I've added time-markers in the graphs, so they're more useful to read :) The patched version has now been in production use on Debian Lenny and Squeeze systems at the Austrian Mediathek [2] for over a year now. Regards, Pb == References: [1] http://download.das-werkstatt.com/pb/contribs/patches/shotdetect-1.0.86_to_1.0.86dva1.patch [2] http://dva-profession.mediathek.at/ From belcampo at zonnet.nl Thu Oct 27 10:58:12 2011 From: belcampo at zonnet.nl (belcampo) Date: Thu, 27 Oct 2011 10:58:12 +0200 Subject: [FFmpeg-user] how to detect changes between frames - for a very simple AVI video where most of the frames are exactly identical (just a sporadically updating computer screen capture) In-Reply-To: <4EA917C3.2030001@das-werkstatt.com> References: <4EA915EB.8070101@zonnet.nl> <4EA917C3.2030001@das-werkstatt.com> Message-ID: <4EA91D24.9080804@zonnet.nl> On 10/27/2011 10:35 AM, Peter B. wrote: > belcampo wrote: >> On 10/27/2011 02:19 AM, Stefan Scott Alexander wrote: >>> ffmpeg does lots of stuff, so I basically am hoping someone can point >>> me to >>> the commands which allow frame-by-frame comparisons, >>> plus outputting timestamps. >> Maybe following this thread and following the suggestions and a >> mentioned script you'll find something that will give you the right >> direction. >> http://ffmpeg-users.933282.n4.nabble.com/Creating-a-list-of-I-frames-td2299316.html >> > But wouldn't detecting I-frames only be helpful for his cause, if the > I-frames are threshold-positioned, which would have to be configured > during encoding? It depends, as always, if the source is encoded with h264 and 'long-GOP' then I-frames would be at the threshold-position, but if a fixed short gop is defined that won't help much in finding those places/frame# > > ...or am I overlooking something? > > > Pb > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From ramandumcs at gmail.com Thu Oct 27 12:44:44 2011 From: ramandumcs at gmail.com (raman gupta) Date: Thu, 27 Oct 2011 16:14:44 +0530 Subject: [FFmpeg-user] FFmpeg crashes on using -i option Message-ID: Hi Everyone FFmpeg is crashed on the following file: http://www.datafilehost.com/download-ef7f5247.html I am using the following command line ffmpeg.exe -i Any help on this would be appreciated Thx, Raman Gupta From pnorthug at gmail.com Thu Oct 27 14:01:38 2011 From: pnorthug at gmail.com (Paul Northug) Date: Thu, 27 Oct 2011 14:01:38 +0200 Subject: [FFmpeg-user] how is sws gauss filter implemented? Message-ID: Hello, We have been using ffmpeg in our research to filter movies and it has been a huge help. I was wondering if someone can explain the details of the sws gauss option. If I am downscaling a movie from say 64x64 per frame to 32x32 using gauss, what happens? Is each frame convolved with a 2d-gaussian filter and then subsampled? We mostly output each frame to a png after applying the filter. Any details on the number of taps used to design the filter or anything else would be appreciated. I couldn't find much documentation and was challenging for me to understand the source, for example, in libswscale/utils.c. Paul From cehoyos at ag.or.at Thu Oct 27 16:08:49 2011 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 27 Oct 2011 14:08:49 +0000 (UTC) Subject: [FFmpeg-user] FFmpeg crashes on using -i option References: Message-ID: raman gupta gmail.com> writes: > FFmpeg is crashed on the following file: > > http://www.datafilehost.com/download-ef7f5247.html Since I cannot reproduce a crash (and no invalid memory access), you will have to provide a backtrace etc. as explained on http://ffmpeg.org/bugreports.html Carl Eugen ffmpeg -i tmp_1_f.mp4 ffmpeg version N-34112-g3e7db0a, Copyright (c) 2000-2011 the FFmpeg developers built on Oct 27 2011 16:01:25 with gcc 4.5.3 configuration: --cc='/usr/local/gcc-4.5.3/bin/gcc -m32' libavutil 51. 22. 0 / 51. 22. 0 libavcodec 53. 23. 0 / 53. 23. 0 libavformat 53. 17. 0 / 53. 17. 0 libavdevice 53. 4. 0 / 53. 4. 0 libavfilter 2. 45. 0 / 2. 45. 0 libswscale 2. 1. 0 / 2. 1. 0 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x8d82a80] multiple edit list entries, a/v desync might occur, patch welcome Last message repeated 2 times Seems stream 0 codec frame rate differs from container frame rate: 60.00 (60/1) -> 0.08 (1/12) Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'tmp_1_f.mp4': Metadata: major_brand : f4v minor_version : 0 compatible_brands: isommp42m4v creation_time : 2017-02-15 05:07:30 Duration: 00:00:54.56, start: 0.000000, bitrate: 198 kb/s Stream #0:0(eng): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p, 320x182 [SAR 1:1 DAR 160:91], 140 kb/s, 27.98 fps, 0.08 tbr, 1k tbn, 60 tbc Metadata: creation_time : 2017-02-15 05:07:30 Stream #0:1(eng): Audio: nellymoser (nmos / 0x736F6D6E), 22050 Hz, mono, s16, 44 kb/s Metadata: creation_time : 2017-02-15 05:07:30 Stream #0:2(eng): Data: none (amf0 / 0x30666D61) Metadata: creation_time : 2017-02-15 05:07:30 At least one output file must be specified From cehoyos at ag.or.at Thu Oct 27 16:15:13 2011 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 27 Oct 2011 14:15:13 +0000 (UTC) Subject: [FFmpeg-user] Encoding raw alaw to PCM References: Message-ID: Amit Dor-Shifer gmail.com> writes: > Attachment (test-123.sample): application/octet-stream, 2340 bytes Is there a software that can decode this sample? Carl Eugen From Joshua.Tidsbury at bellmedia.ca Thu Oct 27 18:08:38 2011 From: Joshua.Tidsbury at bellmedia.ca (Joshua Tidsbury) Date: Thu, 27 Oct 2011 16:08:38 +0000 Subject: [FFmpeg-user] 0.8.5 and x264 Message-ID: Hi folks, I went to upgrade one of our transcoders to the 0.8.5 release, and subsequently am receiving an error on some transcodes: [libx264 @ 0xd6ddb0] Error: nal buffer is too small In doing some research, it appears this is tied to a source code change in the libx264 interface to x264: http://permalink.gmane.org/gmane.comp.video.ffmpeg.devel/135402 Am I the only one experiencing this particular failure as a result of this upgrade? I have rolled the transcoder back to 0.8.2 and all is well again. The log from the attempted transcode is below. If there is a different mailing list I should be submitting this bug to, please let me know. Many thanks, Josh ----- LOG ----- ffmpeg -i original_252161.mov -threads 0 -acodec libfaac -aq 150 -ab 96k -ar 44100 -vcodec libx264 -pix_fmt yuv420p -level 30 -b 900k -vf "scale=640:360" -flags +loop -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 -flags2 +mixed_refs -subq 5 -trellis 1 -refs 5 -profile baseline -bf 0 -coder 0 -me_range 16 -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -rc_eq 'blurCplx^(1-qComp)' -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 test.mp4 ffmpeg version 0.8.5, Copyright (c) 2000-2011 the FFmpeg developers built on Oct 26 2011 15:56:05 with gcc 4.4.4 20100726 (Red Hat 4.4.4-13) configuration: --prefix=/usr/local --enable-pic --enable-shared --disable-mmx --enable-libmp3lame --enable-gpl --enable-zlib --enable-libvpx --enable-libtheora --enable-libvorbis --enable-libfaac --enable-nonfree --enable-libx264 --enable-pthreads libavutil 51. 9. 1 / 51. 9. 1 libavcodec 53. 7. 0 / 53. 7. 0 libavformat 53. 4. 0 / 53. 4. 0 libavdevice 53. 1. 1 / 53. 1. 1 libavfilter 2. 23. 0 / 2. 23. 0 libswscale 2. 0. 0 / 2. 0. 0 libpostproc 51. 2. 0 / 51. 2. 0 Seems stream 0 codec frame rate differs from container frame rate: 30000.00 (30000/1) -> 29.97 (30000/1001) Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'original_252161.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt creation_time : 2011-10-27 14:30:11 Duration: 00:00:01.76, start: 0.000000, bitrate: 62358 kb/s Stream #0.0(eng): Video: mjpeg, yuvj422p, 1032x581 [PAR 72:72 DAR 1032:581], 62323 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 30k tbc Metadata: creation_time : 2011-10-27 14:30:11 Stream #0.1(eng): Data: tmcd / 0x64636D74, 0 kb/s Metadata: creation_time : 2011-10-27 14:30:20 [buffer @ 0xd7ee90] w:1032 h:581 pixfmt:yuvj422p tb:1/1000000 sar:1032/1032 sws_param: [scale @ 0xd733f0] w:1032 h:581 fmt:yuvj422p -> w:640 h:360 fmt:yuv420p flags:0x4 [libx264 @ 0xd6ddb0] using SAR=1161/1162 [libx264 @ 0xd6ddb0] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 [libx264 @ 0xd6ddb0] profile Constrained Baseline, level 3.0 [libx264 @ 0xd6ddb0] 264 - core 116 - H.264/MPEG-4 AVC codec - Copyleft 2003-2011 - http://www.videolan.org/x264.html - options: cabac=0 ref=5 deblock=1:0:0 analyse=0x1:0x111 me=dia subme=5 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=24 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=900 ratetol=1.0 qcomp=0.60 qpmin=10 qpmax=51 qpstep=4 ip_ratio=1.41 aq=1:1.00 Output #0, mp4, to 'test.mp4': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt creation_time : 2011-10-27 14:30:11 encoder : Lavf53.4.0 Stream #0.0(eng): Video: libx264, yuv420p, 640x360 [PAR 1161:1162 DAR 1032:581], q=10-51, 900 kb/s, 30k tbn, 29.97 tbc Metadata: creation_time : 2011-10-27 14:30:11 Stream mapping: Stream #0.0 -> #0.0 Press [q] to stop, [?] for help [libx264 @ 0xd6ddb0] Error: nal buffer is too small Video encoding failed From weller at andreas-weller.de Thu Oct 27 18:21:40 2011 From: weller at andreas-weller.de (Andreas Weller) Date: Thu, 27 Oct 2011 18:21:40 +0200 Subject: [FFmpeg-user] Convert to 24p Message-ID: Hi. I'm trying to convert a DVD Video source into 24 fps. But the resulting video judders a lot. I use this command line: ffmpeg -r 24 -i source.m2ts -vcodec mpeg2video -pix_fmt yuv420p -s 1920x1080 -aspect "16:9" -b 40000k -intra -r 24 -an video-out.m2v How to do a better 24 fps pulldown with ffmpeg? Thank you! Regards, Andreas From hema.angamuthu at gmail.com Thu Oct 27 13:58:46 2011 From: hema.angamuthu at gmail.com (Hema A) Date: Thu, 27 Oct 2011 17:28:46 +0530 Subject: [FFmpeg-user] Streaming YUV file in PIX_FMT_RGBA format to VLC player In-Reply-To: References: Message-ID: Hi, I am trying to stream a YUV file whose pix format is PIX_FMT_RGBA, to a VLC player. I use H264 codec for encoding using FFMPEG. Earlier i had used YUV file with PIX_FMT_YUV420P format and i could successfully stream the YUV video with the same source implementation. Can anybody let me know if the below code needs any additional change for encoding a YUV file in RGBA format and does VLC player support playing such files? I have specified the following in the code; //Allocate codec context codec = avcodec_find_encoder(CODEC_ID_H264); c = mpegtsstream->codec; //c->profile= FF_PROFILE_H264_BASELINE; c->coder_type=FF_CODER_TYPE_VLC; c->bit_rate = 400000; c->width = 480 c->height = 800 c->time_base= (AVRational){1,10}; //frames per second c->gop_size = 250; /* emit one intra frame every 250 frames */ c->max_b_frames=0; c->pix_fmt = PIX_FMT_RGBA; c->me_range = 16; c->max_qdiff = 4; c->qmin = 10; c->qmax = 35; c->qcompress = 0.3; avcodec_open(c, codec); Created AVFrame, filled the raw data from the YUV file into AVPicture... frame = avcodec_alloc_frame(); numBytes = avpicture_get_size(PIX_FMT_RGBA, c->width, c->height); buffer = (uint8_t *)av_malloc(numBytes*sizeof(uint8_t)); . .. ... for(;;) { sizein = fread(buffer, 1, numBytes, f); ... ... avpicture_fill((AVPicture*)frame, buffer, PIX_FMT_RGBA, c->width, c->height); frame->interlaced_frame = 1; //if wanted and in video parameters defined frame->top_field_first = 1; fd->framebuf_size = avcodec_encode_video(c, fd->frame_buffer, numBytes, frame); The encoded buffer will be encapsulted with Mpeg-ts and RTP protocol, and streamed to the VLC player. I have used av_interleaved_write_frame() for writing the frames into Mpeg-ts and RTP context. Thanks in advance, Hema From dev at rarevision.com Thu Oct 27 18:43:04 2011 From: dev at rarevision.com (Thomas Worth) Date: Thu, 27 Oct 2011 09:43:04 -0700 Subject: [FFmpeg-user] Convert to 24p In-Reply-To: References: Message-ID: On Thu, Oct 27, 2011 at 9:21 AM, Andreas Weller wrote: > Hi. > I'm trying to convert a DVD Video source into 24 fps. > But the resulting video judders a lot. > > I use this command line: > ffmpeg -r 24 -i source.m2ts -vcodec mpeg2video -pix_fmt yuv420p -s > 1920x1080 -aspect "16:9" -b 40000k -intra -r 24 -an video-out.m2v > > How to do a better 24 fps pulldown with ffmpeg? > Thank you! I just commented about the -r option. I don't think FFmpeg is actually interpreting your input as 24 fps. Instead, it is interpreting it at its native frame rate, and then dropping frames to achieve the playback rate specified by the second -r option. This will result in choppy, jittery playback. In fact, I know of almost no scenario where jittery playback would be acceptable, yet dropping/padding frames from an input video to reach the target output rate (in this case 24) will cause exactly that. A better option would be to map the frames 1:1 and time-stretch the audio to match instead. A change in audio speed over 1-2 frames per second is much less perceptible than a change in frame rate (and its jittery result). From rogerdpack2 at gmail.com Thu Oct 27 19:02:50 2011 From: rogerdpack2 at gmail.com (Roger Pack) Date: Thu, 27 Oct 2011 11:02:50 -0600 Subject: [FFmpeg-user] Scene detection In-Reply-To: <4EA91A2B.8000708@das-werkstatt.com> References: <354784.24180.qm@web110607.mail.gq1.yahoo.com> <1312726584077-3724931.post@n4.nabble.com> <39659E17-5BE5-4C7C-8E1E-0E79DB34CCE5@avpreserve.com> <20110808161254.88776wg7sdrgb946@webmail.tuwien.ac.at> <1315554934172-3801047.post@n4.nabble.com> <4EA91A2B.8000708@das-werkstatt.com> Message-ID: > Here's the patch for improving the current version of shotdetect > (1.0.86) [1] Have you submitted them upstream I presume? :) > Additionally, I've added time-markers in the graphs, so they're more > useful to read :) Also I assume libx264 uses something like this to decide on its i-frame's (without having to do 2-pass)... ? From antoine.villeret at gmail.com Thu Oct 27 19:05:05 2011 From: antoine.villeret at gmail.com (Antoine Villeret) Date: Thu, 27 Oct 2011 19:05:05 +0200 Subject: [FFmpeg-user] split n-channel wave file into n mono wave file In-Reply-To: References: <4E9DC39D.8030408@googlemail.com> Message-ID: Sorry for the late answer... 2011/10/19 Dave Bevan > >can't open input file `input.wav': WAVE: RIFF header not found > >Concerning FFmbc, it says "input.wav: Error number -1 occurred" > > > Looks like your WAV files are headerless? hum... i don't think so because FFmpeg can read it correctly > Could you post perhaps 100MB > from one if your files, somewhere? > unfortunately I don't have thoses files anymore, the sample i kept is only 247M but there is no problem either to read the header nor to split the file into mono the problem might come from the size limitation of Wave file... > dd if=input.wav bs=100M count=1 of=input_head_100meg.wav > > Will copy the 1st 100MB of raw data from your wav, as-is. Post the file > on the internet somewhere, let us know, and we'll try and figure out how > to carve up your file. Ffmpeg and ffmbc both let you hint the input > stream, so "ffmbc -format xxx -i in.file" for example. > > I presume ffmpeg got it right - that your file is PCM, 24bit, 48k ? > yes > > > > > On 10/18/2011 07:44 PM, Dave Bevan wrote: > > > >> I would like to know if it's possible to split a n-channel wave file > >>> > >> .... > >> > >> You could try http://sox.sourceforge.net, or > >> http://code.google.com/p/ffmbc and it's -map_audio_channel option. > >> > >> --D. > >> > >> > > Here you can find an example how the -map function works... > > > > > http://ffmbc.wordpress.com/**2011/01/15/monotracks-to-**stereo-ii/ //ffmbc.wordpress.com/2011/01/15/monotracks-to-stereo-ii/> > > > > hope it helps... > > > > > > J > > ______________________________**_________________ > > ffmpeg-user mailing list > > ffmpeg-user at ffmpeg.org > > > http://ffmpeg.org/mailman/**listinfo/ffmpeg-user an/listinfo/ffmpeg-user > > > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > http://www.bbc.co.uk/ > This e-mail (and any attachments) is confidential and may contain personal > views which are not the views of the BBC unless specifically stated. > If you have received it in error, please delete it from your system. > Do not use, copy or disclose the information in any way nor act in reliance > on it and notify the sender immediately. > Please note that the BBC monitors e-mails sent or received. > Further communication will signify your consent to this. > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From pb at das-werkstatt.com Thu Oct 27 19:46:34 2011 From: pb at das-werkstatt.com (Peter B.) Date: Thu, 27 Oct 2011 19:46:34 +0200 Subject: [FFmpeg-user] Scene detection In-Reply-To: References: <354784.24180.qm@web110607.mail.gq1.yahoo.com> <1312726584077-3724931.post@n4.nabble.com> <39659E17-5BE5-4C7C-8E1E-0E79DB34CCE5@avpreserve.com> <20110808161254.88776wg7sdrgb946@webmail.tuwien.ac.at> <1315554934172-3801047.post@n4.nabble.com> <4EA91A2B.8000708@das-werkstatt.com> Message-ID: <4EA998FA.5030507@das-werkstatt.com> Roger Pack wrote: >> Here's the patch for improving the current version of shotdetect >> (1.0.86) [1] >> > > Have you submitted them upstream I presume? :) > Yes, I did :) I'm directly collaborating with the original author, Johan Mathe. I'm always committing my changes back upstream, but the new version hasn't been released yet - therefore the patch. Pb From bbutscheidt at yahoo.de Thu Oct 27 20:15:20 2011 From: bbutscheidt at yahoo.de (Bernd Butscheidt) Date: Thu, 27 Oct 2011 19:15:20 +0100 (BST) Subject: [FFmpeg-user] Convert to 24p In-Reply-To: References: Message-ID: <1319739320.85591.YahooMailNeo@web27101.mail.ukl.yahoo.com> >________________________________ >From: Thomas Worth >An: FFmpeg user questions and RTFMs >sent: 18:43 Donnerstag, 27.Oktober 2011 >subject: Re: [FFmpeg-user] Convert to 24p > >A better option would be to map the frames 1:1 and time-stretch the >audio to match instead. A change in audio speed over 1-2 frames per >second is much less perceptible than a change in frame rate (and its >jittery result). > I totally must agree. Mplayer/ Mencoder provides the option -speed for doing a job like this. Even better, the option -scaletempo let you decide whether the change of speed change the audio pitch or not. With this, you can do a real speed up (Film to Pal) or speed down (Pal to Film) e.g. without dropping frames but, of course, change the running time of your video. I'm not aware of ffmpeg being capable of doing such a thing by now. From stefasab at gmail.com Thu Oct 27 21:48:04 2011 From: stefasab at gmail.com (Stefano Sabatini) Date: Thu, 27 Oct 2011 21:48:04 +0200 Subject: [FFmpeg-user] How do I use showinfo? In-Reply-To: References: Message-ID: <20111027194804.GB1979@arborea> On date Wednesday 2011-10-26 21:58:20 -0300, Stefan Scott Alexander encoded: > Hi - > > I want to get a list of all the frames in my video, along with each frame's > timestamp and checksum. > > I'm just analyzing the video - I don't want to edit it at all. > (I'm trying to figure out which frames are different from the preceding one, > even by one pixel, > and I figure checksum could do that. > I assume if two frames are identical, then their checksums will also be > identical.) > > I can't even figure out the syntax for the showinfo command! > > I tried: > > ffmpeg showinfo -i myvid.avi ffmpeg -i myvid.avi -vf showinfo OUTPUT showinfo is a *filter* which shows the properties of each filtered frame to stdout. But as it was noted, using checksums is not a feasible approach for data compressed by a lossy encoder, as the same exact source frame may be decoded with small differences depending on the position in the sequence which will result in completely different checksums. -- ffmpeg-user random tip #2 The -y option will force the overwrite of the output, without to prompt you for your confirmation. Example: ffmpeg -i movie.avi -y movie.mp4 From amit.dor.shifer at gmail.com Fri Oct 28 01:09:32 2011 From: amit.dor.shifer at gmail.com (Amit Dor-Shifer) Date: Fri, 28 Oct 2011 10:09:32 +1100 Subject: [FFmpeg-user] Encoding raw alaw to PCM In-Reply-To: References: Message-ID: On Fri, Oct 28, 2011 at 1:15 AM, Carl Eugen Hoyos wrote: > Amit Dor-Shifer gmail.com> writes: > > > Attachment (test-123.sample): application/octet-stream, 2340 bytes > > Is there a software that can decode this sample? > > Carl Eugen > > > I managed to decode this sample w/asterisk's g729 astconv tool ( http://asterisk.hosting.lv/src/asterisk-g72x-1.0.tar.bz2): ./astconv codec_g729.so -d 10 /tmp/test-123.sample /tmp/test.slin After-which, sox was able to play it: play -r 8k -t raw -e signed-integer -b 16 /tmp/test.slin From deepika at cinemacraft.tv Fri Oct 28 10:17:47 2011 From: deepika at cinemacraft.tv (Deepika) Date: Fri, 28 Oct 2011 16:17:47 +0800 Subject: [FFmpeg-user] Issues splitting a 3gp file using -ss and -t options Message-ID: <4EAA652B.1000703@cinemacraft.tv> Hi, I am trying to split a 3gp file using the command below and I get the following errors. Any help in solving this issue is highly appreciated. ffmpeg -i a.3gp -vcodec copy -acodec copy -ss 00:01:00 -t 00:01:00 achunk.3gp ffmpeg version git-2011-10-28-8d4e449, Copyright (c) 2000-2011 the FFmpeg developers built on Oct 28 2011 15:45:27 with gcc 4.6.1 configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-postproc --enable-version3 --enable-x11grab libavutil 51. 22. 0 / 51. 22. 0 libavcodec 53. 23. 0 / 53. 23. 0 libavformat 53. 17. 0 / 53. 17. 0 libavdevice 53. 4. 0 / 53. 4. 0 libavfilter 2. 45. 1 / 2. 45. 1 libswscale 2. 1. 0 / 2. 1. 0 libpostproc 51. 2. 0 / 51. 2. 0 Seems stream 1 codec frame rate differs from container frame rate: 1073741824.00 (1073741824/1) -> 15.00 (15/1) Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'transcoder_appln/a.3gp': Metadata: major_brand : 3gp6 minor_version : 256 compatible_brands: 3gp6isomiso2 creation_time : 2011-10-27 06:51:59 copyright : copyright-eng : Duration: 00:02:21.80, start: 0.000000, bitrate: 477 kb/s Stream #0:0(eng): Audio: amr_nb (samr / 0x726D6173), 8000 Hz, 1 channels, flt, 12 kb/s Metadata: creation_time : 2011-10-27 06:51:59 handler_name : SoundHandler Stream #0:1(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 352x288 [SAR 128:117 DAR 1408:1053], 457 kb/s, SAR 35:32 DAR 385:288, 15 fps, 15 tbr, 1500 tbn, 1073741824 tbc Metadata: creation_time : 2011-10-27 06:51:59 handler_name : VideoHandler *[3gp @ 0x2fc67e0] track 1: codec frame size is not set* Output #0, 3gp, to 'achunk.3gp': Metadata: major_brand : 3gp6 minor_version : 256 compatible_brands: 3gp6isomiso2 creation_time : 2011-10-27 06:51:59 copyright : copyright-eng : encoder : Lavf53.17.0 Stream #0:0(eng): Video: h264 (avc1 / 0x31637661), yuv420p, 352x288 [SAR 35:32 DAR 385:288], q=2-31, 457 kb/s, 1500 tbn, 1500 tbc Metadata: creation_time : 2011-10-27 06:51:59 handler_name : VideoHandler Stream #0:1(eng): Audio: amr_nb (samr / 0x726D6173), 8000 Hz, 1 channels, 12 kb/s Metadata: creation_time : 2011-10-27 06:51:59 handler_name : SoundHandler Stream mapping: Stream #0.1 -> #0.0 (copy) Stream #0.0 -> #0.1 (copy) *Could not write header for output file #0 (incorrect codec parameters ?)* From danie.wessels at live.co.za Fri Oct 28 10:32:24 2011 From: danie.wessels at live.co.za (Danie Wessels) Date: Fri, 28 Oct 2011 10:32:24 +0200 Subject: [FFmpeg-user] Encoding raw alaw to PCM In-Reply-To: References: , , , , , , Message-ID: > Date: Fri, 28 Oct 2011 10:09:32 +1100 > From: amit.dor.shifer at gmail.com > To: ffmpeg-user at ffmpeg.org > Subject: Re: [FFmpeg-user] Encoding raw alaw to PCM > > On Fri, Oct 28, 2011 at 1:15 AM, Carl Eugen Hoyos wrote: > > > Amit Dor-Shifer gmail.com> writes: > > > > > Attachment (test-123.sample): application/octet-stream, 2340 bytes > > > > Is there a software that can decode this sample? > > > > Carl Eugen > > > > > > I managed to decode this sample w/asterisk's g729 astconv tool ( > http://asterisk.hosting.lv/src/asterisk-g72x-1.0.tar.bz2): > > ./astconv codec_g729.so -d 10 /tmp/test-123.sample /tmp/test.slin > > After-which, sox was able to play it: > > play -r 8k -t raw -e signed-integer -b 16 /tmp/test.slin > _______________________________________________ If you were on Windows, you should be able to do (with ffmpeg): ffmpeg.exe -c pcm_alaw -i test-123.sample test.mp3 I have been looking for this solution myself since day before yesterday! Enjoy Dankie Danie From cehoyos at ag.or.at Fri Oct 28 12:41:29 2011 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 28 Oct 2011 10:41:29 +0000 (UTC) Subject: [FFmpeg-user] Convert to 24p References: Message-ID: Andreas Weller andreas-weller.de> writes: > I'm trying to convert a DVD Video source into 24 fps. > But the resulting video judders a lot. What you need is MEncoder's pullup filter. Unfortunately, it does not yet work in FFmpeg, help on this issue is very welcome! Carl Eugen From danie.wessels at live.co.za Fri Oct 28 13:10:08 2011 From: danie.wessels at live.co.za (Danie Wessels) Date: Fri, 28 Oct 2011 13:10:08 +0200 Subject: [FFmpeg-user] Encoding raw alaw to PCM In-Reply-To: References: , , , , , , , , , , , , , Message-ID: > From: danie.wessels > Date: Fri, 28 Oct 2011 10:32:24 +0200 > Subject: Re: [FFmpeg-user] Encoding raw alaw to PCM : > > Date: Fri, 28 Oct 2011 10:09:32 +1100 : > > Subject: Re: [FFmpeg-user] Encoding raw alaw to PCM : > > > Amit Dor-Shifer gmail.com> writes: > > > > Attachment (test-123.sample): application/octet-stream, 2340 bytes > > > Is there a software that can decode this sample? > > > Carl Eugen : > If you were on Windows, you should be able to do (with ffmpeg): > ffmpeg.exe -c pcm_alaw -i test-123.sample test.mp3 : > Danie > _______________________________________________ > ffmpeg-user mailing list But I was wrong... That will only convert it to another wave file In my case, double the size, but still wav despite the extention. (But this is what you wanted, I believe) Then to get it to .mp3 I needed to do it as follows.: ffmpeg.exe -c pcm_alaw -i test123.sample test.wav ffmpeg.exe -i test.wav test123.mp3 So in your case the test.wav would be your answer. Danie From it at ispb.info Fri Oct 28 12:49:32 2011 From: it at ispb.info (=?UTF-8?B?0J7RgtC00LXQuyDQmNCi?=) Date: Fri, 28 Oct 2011 14:49:32 +0400 Subject: [FFmpeg-user] Help to find correct command line parameters Message-ID: <4EAA88BC.8060205@ispb.info> Hello! I have a problem with demuxing list of images to one AVI/MPG file for archiving, bacause of quality of output file. I used your documentation to compile a list of equal jpg files (file and my command line in attach). But quality of output video in result is very low. Show me please, what parameters I shood use, to produce maximum quality (720p or 704x576) video file (may contain black areas as result of resize jpg's), without of audio, with 6 images in second, while framerate is 25 or 30 fps. -- Best regards, Nikita Tratorov IT dep City Tourist Information Centre St.Petersburg, Russia +7 812 310 28 22 www.ispb.info -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: command-line.txt URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: img283.jpg Type: image/jpeg Size: 49858 bytes Desc: not available URL: From dev at rarevision.com Fri Oct 28 15:11:21 2011 From: dev at rarevision.com (Thomas Worth) Date: Fri, 28 Oct 2011 06:11:21 -0700 Subject: [FFmpeg-user] Convert to 24p In-Reply-To: <1319739320.85591.YahooMailNeo@web27101.mail.ukl.yahoo.com> References: <1319739320.85591.YahooMailNeo@web27101.mail.ukl.yahoo.com> Message-ID: On Thu, Oct 27, 2011 at 11:15 AM, Bernd Butscheidt wrote: >>________________________________ >>From: Thomas Worth >>An: FFmpeg user questions and RTFMs >>sent: 18:43 Donnerstag, 27.Oktober 2011 >>subject: Re: [FFmpeg-user] Convert to 24p >> >>A better option would be to map the frames 1:1 and time-stretch the >>audio to match instead. A change in audio speed over 1-2 frames per >>second is much less perceptible than a change in frame rate (and its >>jittery result). >> > > I totally must agree. > Mplayer/ Mencoder provides the option -speed for doing a job like this. > Even better, the option -scaletempo let you decide whether the change of speed change the audio pitch or not. With this, you can do a real speed up (Film to Pal) or speed down (Pal to Film) e.g. without dropping frames but, of course, change the running time of your video. I'll give you a practical example of this problem. I am working on a film that was given to me at 24.00 fps. This is the frame rate that DCI mandates for 2D projection. However, I need to make a Blu-ray disc of the movie for the client. The Blu-ray must play on an NTSC player, so the frame rate must be 23.976. I need to convert this without dropping any frames, and re-timing the sound to match. If I tried to do this by using the -r option at output, eventually I would lose frames because FFmpeg would try to make the durations of the input and output videos match. That is not what I want. What I want is to be able to "trick" FFmpeg into thinking that the input video is 23.976 already. That would be done by specifying -r _before_ -i, like with image sequences. This seems like such a no-brainer, I'm surprised it hasn't been done yet. If you want to drop frames to avoid audio sync problems, then don't put -r before -i and then specify -r at the end. FFmpeg will then work as it does now. To recap, using another example: Convert PAL to NTSC by dropping frames (same duration): ffmpeg -i pal_movie.mov -r 23.976 pal_converted_to_ntsc.mov Convert PAL to NTSC without dropping frames (different durations): ffmpeg -r 23.976 pal_movie.mov pal_converted_1.1_to_ntsc.mov You would then adjust the sound speed with sox since FFmpeg can't do this yet. The only way to achieve this right now is by using the PTS filter. It works, but this seems like a much more elegant solution. If I get some time I will look into doing this myself, but I'm sure someone who is more familiar with ffmpeg.c could do it a lot faster. > What you need is MEncoder's pullup filter. > Unfortunately, it does not yet work in FFmpeg, help on this issue is very > welcome! You wouldn't use this to convert 25 fps to 23.976 fps for DVD. All (good) standards conversions with progressive material are done 1:1, only the audio is re-timed. Frame counts between PAL and NTSC DVDs should always be the same. This is why the running times of European versions of American movies are always slightly shorter. From amit.dor.shifer at gmail.com Fri Oct 28 15:58:53 2011 From: amit.dor.shifer at gmail.com (Amit Dor-Shifer) Date: Sat, 29 Oct 2011 00:58:53 +1100 Subject: [FFmpeg-user] Fwd: decoding raw g.729 [was: Encoding raw alaw to PCM] Message-ID: ---------- Forwarded message ---------- From: Danie Wessels Date: Fri, Oct 28, 2011 at 10:10 PM Subject: Re: [FFmpeg-user] Encoding raw alaw to PCM To: ffmpeg-user at ffmpeg.org > > Subject: Re: [FFmpeg-user] Encoding raw alaw to PCM : > > > Amit Dor-Shifer gmail.com> writes: > > > > Attachment (test-123.sample): application/octet-stream, 2340 bytes > > > Is there a software that can decode this sample? > > > Carl Eugen : > If you were on Windows, you should be able to do (with ffmpeg): > ffmpeg.exe -c pcm_alaw -i test-123.sample test.mp3 : > Danie > _______________________________________________ > ffmpeg-user mailing list But I was wrong... That will only convert it to another wave file In my case, double the size, but still wav despite the extention. (But this is what you wanted, I believe) Then to get it to .mp3 I needed to do it as follows.: ffmpeg.exe -c pcm_alaw -i test123.sample test.wav ffmpeg.exe -i test.wav test123.mp3 So in your case the test.wav would be your answer. Danie It might be that I've been misleading with the former subject, Danie. The a/m sample is g729 raw audio packets. Attempting the cmdline you've offered yields: test-123.sample: Invalid data found when processing input Both on windows (ffmpeg-git-e403a97-win64-shared) and linux. Where you actually successful in executing this cmdline? From rogerdpack2 at gmail.com Fri Oct 28 16:54:10 2011 From: rogerdpack2 at gmail.com (Roger Pack) Date: Fri, 28 Oct 2011 08:54:10 -0600 Subject: [FFmpeg-user] Help to find correct command line parameters In-Reply-To: <4EAA88BC.8060205@ispb.info> References: <4EAA88BC.8060205@ispb.info> Message-ID: > I used your documentation to compile a list of equal jpg files (file and my > command line in attach). But quality of output video in result is very low. > Show me please, what parameters I shood use, to produce maximum quality > (720p or 704x576) video file (may contain black areas as result of resize > jpg's), without of audio, with 6 images in second, while framerate is 25 or > 30 fps. what output video codec are you using? From tim.nicholson at bbc.co.uk Fri Oct 28 16:56:35 2011 From: tim.nicholson at bbc.co.uk (Tim Nicholson) Date: Fri, 28 Oct 2011 15:56:35 +0100 Subject: [FFmpeg-user] uncompressed avi In-Reply-To: References: <5E049B02-6DA9-412B-98EA-ECF3D897A240@gmail.com> <4EA50AF0.4050003@bbc.co.uk> Message-ID: <4EAAC2A3.6050905@bbc.co.uk> On 27/10/11 02:28, Rick C. wrote: > > On Oct 24, 2011, at 2:51 PM, Tim Nicholson wrote: > >> On 23/10/11 04:00, Rick C. wrote: >>> Hello, >>> >>> What command line would I use to create an uncompressed avi because I can't figure it out? Thank you for the help >> >> >> Well one option is:- >> >> ffmpeg -i "$in_file" -vcodec rawvideo -pix_fmt uyvy422 -vtag 2vuy -acodec $audio-codec "$out_file" >> >> >> -- >> Tim >> > > > If you don't mind I have uploaded a sample video of what I'm trying to achieve: > > http://www.datafilehost.com/download-f93b8a5c.html > > These are the settings I can't figure out? Well try replacing -pix_fmt and -vtag fields with bgra (ffmpeg -pix_formats shows you the options) -- Tim http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. From rogerdpack2 at gmail.com Fri Oct 28 17:06:37 2011 From: rogerdpack2 at gmail.com (Roger Pack) Date: Fri, 28 Oct 2011 09:06:37 -0600 Subject: [FFmpeg-user] feature request/suggestion: make the server and ffplay into sink filters :) Message-ID: Hello. Now that ffmpeg has high quality filter ability with libavfilter, I was thinking... it would be great if at some point you could basically do the equivalent of the following: Split an input stream, send it to a "file" output as well as to a "server" output, or optionally also to a "view" output (ffplay). Kind of combining all of the various output options into sinks. Or maybe this is already in the works? This would allow me to not have to revert to VLC if, for instance, a users wants to view a stream as it is encoded (which some do). Thanks! -roger From cehoyos at ag.or.at Fri Oct 28 18:43:42 2011 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 28 Oct 2011 16:43:42 +0000 (UTC) Subject: [FFmpeg-user] Help to find correct command line parameters References: <4EAA88BC.8060205@ispb.info> Message-ID: ????? ?? ispb.info> writes: > Show me please, what parameters I shood use, to produce maximum quality > ffmpeg -r 6 -f image2 -i img%d.jpg out.avi To get maximum quality, use ffmpeg -r 6 -f image2 -i img%d.jpg -qscale 1 out.avi Carl Eugen From cehoyos at ag.or.at Fri Oct 28 18:52:38 2011 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 28 Oct 2011 16:52:38 +0000 (UTC) Subject: [FFmpeg-user] Convert to 24p References: <1319739320.85591.YahooMailNeo@web27101.mail.ukl.yahoo.com> Message-ID: Thomas Worth rarevision.com> writes: > > What you need is MEncoder's pullup filter. > > Unfortunately, it does not yet work in FFmpeg, help on this issue is very > > welcome! > > You wouldn't use this to convert 25 fps to 23.976 fps for DVD. All > (good) standards conversions with progressive material are done 1:1, > only the audio is re-timed. Frame counts between PAL and NTSC DVDs > should always be the same. This is why the running times of European > versions of American movies are always slightly shorter. The problem you describe - playing 24000/1001 material at 25fps and similar - exists of course. The more common (and significantly older and more often reported) problem with framerates is playback of telecined material on a computer. This shows terrible artefacts and needs the pullup filter to be solved. (I suspect "Frame counts between PAL and NTSC DVDs should always be the same" is wrong or misleading, but I live in PAL country so the problem does not really affect me.) Carl Eugen From dev at rarevision.com Fri Oct 28 19:25:17 2011 From: dev at rarevision.com (Thomas Worth) Date: Fri, 28 Oct 2011 10:25:17 -0700 Subject: [FFmpeg-user] Convert to 24p In-Reply-To: References: <1319739320.85591.YahooMailNeo@web27101.mail.ukl.yahoo.com> Message-ID: On Fri, Oct 28, 2011 at 9:52 AM, Carl Eugen Hoyos wrote: > Thomas Worth rarevision.com> writes: > >> > What you need is MEncoder's pullup filter. >> > Unfortunately, it does not yet work in FFmpeg, help on this issue is very >> > welcome! >> >> You wouldn't use this to convert 25 fps to 23.976 fps for DVD. All >> (good) standards conversions with progressive material are done 1:1, >> only the audio is re-timed. Frame counts between PAL and NTSC DVDs >> should always be the same. This is why the running times of European >> versions of American movies are always slightly shorter. > > The problem you describe - playing 24000/1001 material at 25fps and similar - > exists of course. > > The more common (and significantly older and more often reported) problem with > framerates is playback of telecined material on a computer. This shows terrible > artefacts and needs the pullup filter to be solved. Yes, but DVDs are typically encoded progressive. Very rarely now would anyone ever encounter telecined material unless they were recording it from a 29.97 broadcast source like satellite or cable. Of course, if someone captures from an analog source after the DVD player has inserted 3:2, then it's a problem. And sometimes (rarely) a DVD will be encoded 29.97 with 3:2. I have run into this problem transferring some old NTSC VHS movies, which are of course encoded with 3:2 but almost never with DVDs. > (I suspect "Frame counts between PAL and NTSC DVDs should always be the same" is > wrong or misleading, but I live in PAL country so the problem does not really > affect me.) It's not wrong. We've done it. Since good DVDs hold non-interlaced/non-telecined material, the best way is to map frames 1:1 between NTSC and PAL for DVD is to time-stretch the audio and leave the picture alone. Since you don't actually change the picture, only the playback rate, the frame count stays the same. You're in a PAL country, but you're watching many American movies originally shot at 24.00 fps. The way they play on a PAL system without jittery frames is by speeding up the picture 4% and adjusting audio to match. Another reason to fix the -r option. ;-) From scoobydobedooo at hotmail.com Fri Oct 28 19:44:33 2011 From: scoobydobedooo at hotmail.com (ben ...) Date: Fri, 28 Oct 2011 17:44:33 +0000 Subject: [FFmpeg-user] install help Message-ID: hey there i have a linux webserver with root access and im looking to install this softwear on my webserver as its free :) only problem is im new to all this and have been tryin to insstall this softwear but i cant get it to work. could you please email me back with some install commands or some help on how to install this :) many thanx ben From cehoyos at ag.or.at Fri Oct 28 20:01:06 2011 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 28 Oct 2011 18:01:06 +0000 (UTC) Subject: [FFmpeg-user] Convert to 24p References: <1319739320.85591.YahooMailNeo@web27101.mail.ukl.yahoo.com> Message-ID: Thomas Worth rarevision.com> writes: > Since good DVDs hold non-interlaced/non-telecined material I was only speaking about telecined material (scan mplayer-users for uncountable reports about them and the various filters that were made over time to fix it). Carl Eugen From dev at rarevision.com Fri Oct 28 20:06:44 2011 From: dev at rarevision.com (Thomas Worth) Date: Fri, 28 Oct 2011 11:06:44 -0700 Subject: [FFmpeg-user] Convert to 24p In-Reply-To: References: <1319739320.85591.YahooMailNeo@web27101.mail.ukl.yahoo.com> Message-ID: On Fri, Oct 28, 2011 at 11:01 AM, Carl Eugen Hoyos wrote: > Thomas Worth rarevision.com> writes: > >> Since good DVDs hold non-interlaced/non-telecined material > > I was only speaking about telecined material (scan mplayer-users for uncountable > reports about them and the various filters that were made over time to fix it). Yeah it's a big problem especially when we get stuff like old stock footage from Digibeta that needs to go into a 24 fps project. It's even more of a problem when the 3:2 cadence breaks... the horror! I believe some cameras still shoot 24 fps, but wrapped in a 60i stream. In those cases, we have no choice but to reverse telecine as you mentioned. I'm not sure if a simple reverse 3:2 filter is in FFmpeg, but it would be nice at least for "clean" 3:2'd material. Of course, you guys in PAL countries never have to deal with this. I'm jealous. From phil_rhodes at rocketmail.com Fri Oct 28 20:13:06 2011 From: phil_rhodes at rocketmail.com (Phil Rhodes) Date: Fri, 28 Oct 2011 19:13:06 +0100 Subject: [FFmpeg-user] Convert to 24p In-Reply-To: References: <1319739320.85591.YahooMailNeo@web27101.mail.ukl.yahoo.com> Message-ID: > (I suspect "Frame counts between PAL and NTSC DVDs should always be the > same" is wrong or misleading) For material originated at 24p (or thereabouts) it's exactly right. You may be confused by the fact that the material will possibly be -displayed- at some rate other than 24, but PAL and NTSC DVDs should contain exactly the same frames. P From rogerdpack2 at gmail.com Fri Oct 28 20:34:41 2011 From: rogerdpack2 at gmail.com (Roger Pack) Date: Fri, 28 Oct 2011 12:34:41 -0600 Subject: [FFmpeg-user] Scene detection In-Reply-To: References: <354784.24180.qm@web110607.mail.gq1.yahoo.com> <1312726584077-3724931.post@n4.nabble.com> <39659E17-5BE5-4C7C-8E1E-0E79DB34CCE5@avpreserve.com> <20110808161254.88776wg7sdrgb946@webmail.tuwien.ac.at> <1315554934172-3801047.post@n4.nabble.com> <4EA91A2B.8000708@das-werkstatt.com> Message-ID: > Also I assume libx264 uses something like this to decide on its > i-frame's (without having to do 2-pass)... ? It apperas that libx264 does some scene cut detection internally, to look for i-frames, viz vlc's man page: --sout-x264-scenecut= Extra I-frames aggressivity Scene-cut detection. Controls how aggressively to insert extra I-frames. With small values of scenecut, the codec often has to force an I-frame when it would exceed keyint. Good values of scenecut may find a better location for the I-frame. Large values use more I-frames than necessary, thus wasting bits. -1 disables scene-cut detection, so I-frames are inserted only every other keyint frames, which probably leads to ugly encoding artifacts. Range 1 to 100. I wonder why 2 pass is so much better then... From lou at lrcd.com Fri Oct 28 20:35:02 2011 From: lou at lrcd.com (Lou) Date: Fri, 28 Oct 2011 10:35:02 -0800 Subject: [FFmpeg-user] install help In-Reply-To: References: Message-ID: <20111028103502.1d18f469@lrcd.com> On Fri, 28 Oct 2011 17:44:33 +0000 "ben ..." wrote: > > hey there i have a linux webserver with root access and im looking to > install this softwear on my webserver as its free :) > > only problem is im new to all this and have been tryin to insstall > this softwear but i cant get it to work. > > could you please email me back with some install commands or some > help on how to install this :) > > many thanx > > ben Your distribution may supply ffmpeg. Using the package management system to install ffmpeg from the distro repository would be the easiest method. However, it will probably install a fairly old ffmpeg and may not be configured in a sane or useful way. If you need to compile ffmpeg and are using Ubuntu or its relatives see: HOWTO: Install and use the latest FFmpeg and x264 http://ubuntuforums.org/showthread.php?t=786095 From scoobydobedooo at hotmail.com Fri Oct 28 20:39:16 2011 From: scoobydobedooo at hotmail.com (ben ...) Date: Fri, 28 Oct 2011 18:39:16 +0000 Subject: [FFmpeg-user] install help In-Reply-To: <20111028103502.1d18f469@lrcd.com> References: , <20111028103502.1d18f469@lrcd.com> Message-ID: im sorry i dont know wat Ubuntu is lol im on a centos linux server :( hope this helps i know very litte when it comes to things like this :) thanx for your reply tho :) > Date: Fri, 28 Oct 2011 10:35:02 -0800 > From: lou at lrcd.com > To: ffmpeg-user at ffmpeg.org > Subject: Re: [FFmpeg-user] install help > > On Fri, 28 Oct 2011 17:44:33 +0000 > "ben ..." wrote: > > > > > hey there i have a linux webserver with root access and im looking to > > install this softwear on my webserver as its free :) > > > > only problem is im new to all this and have been tryin to insstall > > this softwear but i cant get it to work. > > > > could you please email me back with some install commands or some > > help on how to install this :) > > > > many thanx > > > > ben > > Your distribution may supply ffmpeg. Using the package management > system to install ffmpeg from the distro repository would be the > easiest method. However, it will probably install a fairly old ffmpeg > and may not be configured in a sane or useful way. If you need to > compile ffmpeg and are using Ubuntu or its relatives see: > > HOWTO: Install and use the latest FFmpeg and x264 > http://ubuntuforums.org/showthread.php?t=786095 > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From Joshua.Tidsbury at bellmedia.ca Fri Oct 28 20:51:49 2011 From: Joshua.Tidsbury at bellmedia.ca (Joshua Tidsbury) Date: Fri, 28 Oct 2011 18:51:49 +0000 Subject: [FFmpeg-user] install help In-Reply-To: References: , <20111028103502.1d18f469@lrcd.com> Message-ID: <12C033E9-804C-46E0-AF90-70927520B7BE@bellmedia.ca> > im sorry i dont know wat Ubuntu is lol im on a centos linux server :( hope this helps i know very litte when it comes to things like this :) thanx for your reply tho :) Start by using: yum install ffmpeg And see if that gets you what you need. I think it's around version 0.6.1 that it installs. At least that's the case on Centos 6. Josh From scoobydobedooo at hotmail.com Fri Oct 28 20:53:57 2011 From: scoobydobedooo at hotmail.com (ben ...) Date: Fri, 28 Oct 2011 18:53:57 +0000 Subject: [FFmpeg-user] install help In-Reply-To: <12C033E9-804C-46E0-AF90-70927520B7BE@bellmedia.ca> References: , , <20111028103502.1d18f469@lrcd.com>, , <12C033E9-804C-46E0-AF90-70927520B7BE@bellmedia.ca> Message-ID: hey there and thank you for ur reply so i juast type in yum install ffmpeg and away it goes im guessing :) > From: Joshua.Tidsbury at bellmedia.ca > To: ffmpeg-user at ffmpeg.org > Date: Fri, 28 Oct 2011 18:51:49 +0000 > Subject: Re: [FFmpeg-user] install help > > > > im sorry i dont know wat Ubuntu is lol im on a centos linux server :( hope this helps i know very litte when it comes to things like this :) thanx for your reply tho :) > > Start by using: > > yum install ffmpeg > > And see if that gets you what you need. I think it's around version 0.6.1 that it installs. At least that's the case on Centos 6. > > Josh > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From benjamin.frazier at gmail.com Fri Oct 28 20:55:55 2011 From: benjamin.frazier at gmail.com (Benjamin Frazier) Date: Fri, 28 Oct 2011 14:55:55 -0400 Subject: [FFmpeg-user] Streaming video as input to ffmpeg In-Reply-To: <1319309482.78734.YahooMailNeo@web122416.mail.ne1.yahoo.com> References: <1319309482.78734.YahooMailNeo@web122416.mail.ne1.yahoo.com> Message-ID: If you use ubuntu or any linux distribution, you can use the following code to use VLC to transcode all items in a folder (such as .avi) into another format: #!/bin/bash vlc=/usr/bin/vlc for A in *.avi; do \ vlc --sout-all "$A" :"sout=#transcode{vcodec=h264,vb=750,fps=30,scale=0,width=800,height=600,acodec=mp4a,ab=128,channels=2,samplerate=44100}:file{dst='/home/user/Desktop/Transcoded/${A%%.*}.mp4'" \ vlc://quit -I dummy ;\ done ;\ I wrote it, thought it might be helpful. On Sat, Oct 22, 2011 at 2:51 PM, Jay Kert wrote: > Hi guys, > I am newbie with ffmpeg. I have would like to capture a live real time > stream (like TV) and provide it as input to ffmpeg. I see that ffmpeg > accepts files as input, also i tried give it a file which was constantly > being written to (streaming to a file using vlc), but it doesnt work(it > quits after a while). Please do let me know how i can do this. I tried > search the web a lot for this(incl ffmpeg faq ), but couldnt find it. > > thanks a lot, > jay > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > -- Benjamin Frazier 511 Robert and Mary Ave. Grayson, KY 41143 Phone #: 606-776-8758 From Joshua.Tidsbury at bellmedia.ca Fri Oct 28 20:56:52 2011 From: Joshua.Tidsbury at bellmedia.ca (Joshua Tidsbury) Date: Fri, 28 Oct 2011 18:56:52 +0000 Subject: [FFmpeg-user] install help In-Reply-To: References: , , <20111028103502.1d18f469@lrcd.com>, , <12C033E9-804C-46E0-AF90-70927520B7BE@bellmedia.ca> Message-ID: > hey there and thank you for ur reply so i juast type in > yum install ffmpeg and away it goes im guessing :) Essentially - I'd strongly encourage you to familiarize yourself with the documentation on Centos/Red Hat to build an understanding of how the package management systems work and how you might approach the maintenance of your system. This is beyond the scope of the mailing list. Josh From scoobydobedooo at hotmail.com Fri Oct 28 21:06:45 2011 From: scoobydobedooo at hotmail.com (ben ...) Date: Fri, 28 Oct 2011 19:06:45 +0000 Subject: [FFmpeg-user] install help In-Reply-To: References: , , , <20111028103502.1d18f469@lrcd.com>, , , , <12C033E9-804C-46E0-AF90-70927520B7BE@bellmedia.ca>, , Message-ID: okies wicked thanx for ur help :0 > From: Joshua.Tidsbury at bellmedia.ca > To: ffmpeg-user at ffmpeg.org > Date: Fri, 28 Oct 2011 18:56:52 +0000 > Subject: Re: [FFmpeg-user] install help > > > > hey there and thank you for ur reply so i juast type in > > yum install ffmpeg and away it goes im guessing :) > > Essentially - I'd strongly encourage you to familiarize yourself with the documentation on Centos/Red Hat to build an understanding of how the package management systems work and how you might approach the maintenance of your system. This is beyond the scope of the mailing list. > > Josh > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From pb at das-werkstatt.com Fri Oct 28 22:00:15 2011 From: pb at das-werkstatt.com (Peter B.) Date: Fri, 28 Oct 2011 22:00:15 +0200 Subject: [FFmpeg-user] Scene detection In-Reply-To: References: <354784.24180.qm@web110607.mail.gq1.yahoo.com> <1312726584077-3724931.post@n4.nabble.com> <39659E17-5BE5-4C7C-8E1E-0E79DB34CCE5@avpreserve.com> <20110808161254.88776wg7sdrgb946@webmail.tuwien.ac.at> <1315554934172-3801047.post@n4.nabble.com> <4EA91A2B.8000708@das-werkstatt.com> Message-ID: <4EAB09CF.5040705@das-werkstatt.com> Roger Pack wrote: > It apperas that libx264 does some scene cut detection internally, to > look for i-frames, > > I wonder why 2 pass is so much better then... > I think because 2-pass is not only about when to put i-frames, but rather how to distribute the available encoding bandwidth among the video in an optimized way. Example: 2 scenes in a video: 1) several minutes of almost no motion: low bandwidth requirement 2) a short scene with lots of motion: high bandwidth requirement With 2-pass encoding, the codec is able to decide to save some bits in the low-motion sequences in order to use them later on in high-motion scenes. At least this is how I understood its purpose... Pb From cessen at cessen.com Fri Oct 28 22:10:47 2011 From: cessen at cessen.com (Nathan Vegdahl) Date: Fri, 28 Oct 2011 13:10:47 -0700 Subject: [FFmpeg-user] Encoding h264 with 4:4:4 chroma Message-ID: I am attempting to encode video using ffmpeg's libx264 support, and I wish to do it with 4:4:4 chroma sampling. Unfortunately, I cannot for the life of me seem to find any setting or option that will let me do this. Using pix_fmt, which is what I would have assumed I am supposed to use, gives me this message: "Incompatible pixel format 'yuv444p' for codec 'libx264', auto-selecting format 'yuv420p'" ...for anything other than yuv420p. There does not appear to be any direct access to x264's '--output-csp' option. I can do this 444 encoding just fine using x264 directly, but I want to encode directly in ffmpeg because I am using ffmpeg to do screen-captures. So am I missing something, or is this currently unsupported in ffmpeg? Here is my ffmpeg info: ffmpeg version 0.7.2-4:0.7.2-1ubuntu1, Copyright (c) 2000-2011 the Libav developers built on Oct 2 2011 15:13:26 with gcc 4.6.1 configuration: --extra-version='4:0.7.2-1ubuntu1' --arch=amd64 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared --disable-static WARNING: library configuration mismatch avutil configuration: --extra-version='4:0.7.2.1ubuntu1' --arch=amd64 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-vaapi --enable-libopenjpeg --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdirac --enable-libmp3lame --enable-librtmp --enable-libx264 --enable-libxvid --enable-libvo-aacenc --enable-version3 --enable-libvo-amrwbenc --enable-version3 --enable-libdc1394 --enable-shared --disable-static avcodec configuration: --extra-version='4:0.7.2.1ubuntu1' --arch=amd64 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-vaapi --enable-libopenjpeg --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdirac --enable-libmp3lame --enable-librtmp --enable-libx264 --enable-libxvid --enable-libvo-aacenc --enable-version3 --enable-libvo-amrwbenc --enable-version3 --enable-libdc1394 --enable-shared --disable-static avformat configuration: --extra-version='4:0.7.2.1ubuntu1' --arch=amd64 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-vaapi --enable-libopenjpeg --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdirac --enable-libmp3lame --enable-librtmp --enable-libx264 --enable-libxvid --enable-libvo-aacenc --enable-version3 --enable-libvo-amrwbenc --enable-version3 --enable-libdc1394 --enable-shared --disable-static libavutil 51. 7. 0 / 51. 7. 0 libavcodec 53. 5. 0 / 53. 5. 0 libavformat 53. 2. 0 / 53. 2. 0 libavdevice 53. 0. 0 / 53. 0. 0 libavfilter 2. 4. 0 / 2. 4. 0 libswscale 2. 0. 0 / 2. 0. 0 libpostproc 52. 0. 0 / 52. 0. 0 Thanks! --Nathan From rogerdpack2 at gmail.com Fri Oct 28 22:34:42 2011 From: rogerdpack2 at gmail.com (Roger Pack) Date: Fri, 28 Oct 2011 14:34:42 -0600 Subject: [FFmpeg-user] is it possible to use .so/.dll's anymore? Message-ID: Hello all. I've read online that 'vhooks' are deprecated. These seemed to allow one to build an ffmpeg dll and use it. Is there a replacement? Or if you build a new filter, do you have to recompile all of ffmpeg around it, to use it? (Basically, is there a plugins system, like VLC has, for filters). Thanks! -roger- From asai at globalchangemusic.org Sat Oct 29 00:47:46 2011 From: asai at globalchangemusic.org (Asai) Date: Fri, 28 Oct 2011 15:47:46 -0700 Subject: [FFmpeg-user] h264 3 Pass Message-ID: <4EAB3112.8060501@globalchangemusic.org> Greetings, I was trying to do a 3 pass encode, following the instructions I found as follows: *-pass <1,2,3>* (FFmpeg) Used with --bitrate. Pass 1 writes the stats file, pass 2 reads it, and 3 both reads and writes it. If you want to use three pass, this means you will have to use --pass 1 for the first pass, --pass 3 for the second, and --pass 2 or 3 for the third. However I got this message from FFMPEG, "The value for pass was 3 which is not within 1.00000 - 2.00000" Any insights on how to do 3 pass with ffmpeg and x264? -- --asai From aleste7 at gmail.com Sat Oct 29 01:19:52 2011 From: aleste7 at gmail.com (Aleste) Date: Fri, 28 Oct 2011 16:19:52 -0700 Subject: [FFmpeg-user] Mingw builds of ffmpeg DLLs - how are exports chosen? Message-ID: <012f01cc95c8$19dec750$4d9c55f0$@gmail.com> Hello. I've been building ffmpeg on Windows using mingw, and I have a question. I'm trying to understand the mechanism that causes gcc to generate exports in the various DLLs generated when I run make. I was looking for __declspec(dllexport) markups, but I saw none of those. I then looked for a .def file, and didn't see one in the source code either. While a def file is generated during the build for each DLL, but by that time the export list has already been determined. I.e. the gcc -shared -Wl,--output-def,libavformat/avformat-53.def command appears to generate the def file for e.g. libavforma, as well as the DLL, obviously. Now, what I was hoping to find out is where the authority is for which symbols get exported on Windows and which not. I thought I understood how this worked in mingw, and evidently I don't. :-) Thanks! From rickcorteza at gmail.com Sat Oct 29 03:53:13 2011 From: rickcorteza at gmail.com (Rick C.) Date: Sat, 29 Oct 2011 09:53:13 +0800 Subject: [FFmpeg-user] uncompressed avi In-Reply-To: <4EAAC2A3.6050905@bbc.co.uk> References: <5E049B02-6DA9-412B-98EA-ECF3D897A240@gmail.com> <4EA50AF0.4050003@bbc.co.uk> <4EAAC2A3.6050905@bbc.co.uk> Message-ID: <3FC8C835-40FE-48EE-8C17-897F9D292CB9@gmail.com> On Oct 28, 2011, at 10:56 PM, Tim Nicholson wrote: > On 27/10/11 02:28, Rick C. wrote: >> >> On Oct 24, 2011, at 2:51 PM, Tim Nicholson wrote: >> >>> On 23/10/11 04:00, Rick C. wrote: >>>> Hello, >>>> >>>> What command line would I use to create an uncompressed avi because I can't figure it out? Thank you for the help >>> >>> >>> Well one option is:- >>> >>> ffmpeg -i "$in_file" -vcodec rawvideo -pix_fmt uyvy422 -vtag 2vuy -acodec $audio-codec "$out_file" >>> >>> >>> -- >>> Tim >>> >> >> >> If you don't mind I have uploaded a sample video of what I'm trying to achieve: >> >> http://www.datafilehost.com/download-f93b8a5c.html >> >> These are the settings I can't figure out? > > Well try replacing -pix_fmt and -vtag fields with bgra (ffmpeg -pix_formats shows you the options) > I will try that thanks! From cehoyos at ag.or.at Sat Oct 29 08:51:04 2011 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 29 Oct 2011 06:51:04 +0000 (UTC) Subject: [FFmpeg-user] is it possible to use .so/.dll's anymore? References: Message-ID: Roger Pack gmail.com> writes: > I've read online that 'vhooks' are deprecated. vhooks is not deprecated, it was removed from FFmpeg 2,5 years ago. > These seemed to allow one to build an ffmpeg dll and use it. > Is there a replacement? Yes, there is libavfilter now. (Afaik, you have to recompile to get new filters.) Carl Eugen From cehoyos at ag.or.at Sat Oct 29 08:54:02 2011 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 29 Oct 2011 06:54:02 +0000 (UTC) Subject: [FFmpeg-user] Convert to 24p References: <1319739320.85591.YahooMailNeo@web27101.mail.ukl.yahoo.com> Message-ID: Thomas Worth rarevision.com> writes: > > I was only speaking about telecined material (scan mplayer-users for > > uncountable reports about them and the various filters that were made over > > time to fix it). > > Yeah it's a big problem especially when we get stuff like old stock > footage from Digibeta that needs to go into a 24 fps project. It's > even more of a problem when the 3:2 cadence breaks... the horror! Afaik, MEncoder's pullup filter handles cadence breaks fine. The filter is available in FFmpeg's sources, but some work is necessary to make it working, help is welcome! Carl Eugen From dimka87 at gmail.com Sat Oct 29 10:54:28 2011 From: dimka87 at gmail.com (=?KOI8-R?B?5M3J1NLJyiDnz8zP18nOz9c=?=) Date: Sat, 29 Oct 2011 12:54:28 +0400 Subject: [FFmpeg-user] ffmpeg - how to compile and how to use for iOS Message-ID: I need to convert my wav files to flac on the iPhone. So I need to compile ffmpeg just for that - so I have 2 questions 1 - what flags do I need to pass to configure script to have only converting functionality in resulting library. 2 - what library and what headers are to use while doing such things. Thank you for the answer! Sincerely yours, Dmitriy Golovinov From tom_a_sparks at yahoo.com.au Sat Oct 29 14:20:47 2011 From: tom_a_sparks at yahoo.com.au (Tom Sparks) Date: Sat, 29 Oct 2011 05:20:47 -0700 (PDT) Subject: [FFmpeg-user] watchable video tester program Message-ID: <1319890847.17196.YahooMailNeo@web36406.mail.mud.yahoo.com> I am looking for a program that can scan though a videoand check to see if it is watchable? Are there macroblock errors? Is there dead/missing sound? Are there Frame errors? it needs to be able to work on non-original (re-compressed) video (mpg2/H.264 to Xvid) ? -- tom_a_sparks "It's a nerdy thing I like to do" Please use ISO approved file formats excluding Office Open XML - http://www.gnu.org/philosophy/no-word-attachments.html Ubuntu wiki page https://wiki.ubuntu.com/tomsparks 3 x (x)Ubuntu 10.04, Amiga A1200 WB 3.1, UAE AF 2006 Premium Edition, AF 2012 Plus Edition, Sam440 AOS 4.1.2, Roland DXY-1300 pen plotter, Cutok DC330 cutter/pen plotter Wanted: RiscOS system, GEOS system (C64/C128), Atari ST, Apple Macintosh (6502/68k/PPC only) From rogerdpack2 at gmail.com Sat Oct 29 16:37:30 2011 From: rogerdpack2 at gmail.com (Roger Pack) Date: Sat, 29 Oct 2011 08:37:30 -0600 Subject: [FFmpeg-user] is it possible to use .so/.dll's anymore? In-Reply-To: References: Message-ID: >> Is there a replacement? > > Yes, there is libavfilter now. > (Afaik, you have to recompile to get new filters.) I guess consider this a feature request to add support for .so/.dll's again at some point. Thanks! -roger- From phil_rhodes at rocketmail.com Sat Oct 29 18:06:16 2011 From: phil_rhodes at rocketmail.com (Phil Rhodes) Date: Sat, 29 Oct 2011 17:06:16 +0100 Subject: [FFmpeg-user] Convert to 24p In-Reply-To: References: <1319739320.85591.YahooMailNeo@web27101.mail.ukl.yahoo.com> Message-ID: > Afaik, MEncoder's pullup filter handles cadence breaks fine. > The filter is available in FFmpeg's sources, but some work is necessary > to make it working, help is welcome! I would love to. The problem here is that while the work involved in building a 3:2 pulldown filter may be something we could do, the work involved in learning the entire ffmpeg API is probably not. If there was an MSDN style documentation effort for it I might think about it, but as it is, the code is more or less undocumented and run by a development team that I'd call "prickly" if I was trying very hard to be nice about it. So it's difficult. P From cehoyos at ag.or.at Sat Oct 29 23:51:37 2011 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 29 Oct 2011 21:51:37 +0000 (UTC) Subject: [FFmpeg-user] Encoding raw alaw to PCM References: Message-ID: Amit Dor-Shifer gmail.com> writes: > Attachment (test-123.sample): application/octet-stream, 2340 bytes Thanks to Vladimir Voroshilov, the sample can be decoded now with ffmpeg -f g729 -i test-123.sample out.wav (The -f g729 may be omitted if the file extension is .g729) Thank you for the report and the sample, Carl Eugen From cehoyos at ag.or.at Sat Oct 29 23:54:40 2011 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 29 Oct 2011 21:54:40 +0000 (UTC) Subject: [FFmpeg-user] Encoding h264 with 4:4:4 chroma References: Message-ID: Nathan Vegdahl cessen.com> writes: > ffmpeg version 0.7.2-4:0.7.2-1ubuntu1, Copyright (c) 2000-2011 the > Libav developers This is a very broken version of FFmpeg, please test latest git head. Carl Eugen From stefasab at gmail.com Sun Oct 30 01:36:23 2011 From: stefasab at gmail.com (Stefano Sabatini) Date: Sun, 30 Oct 2011 01:36:23 +0200 Subject: [FFmpeg-user] feature request/suggestion: make the server and ffplay into sink filters :) In-Reply-To: References: Message-ID: <20111029233623.GC13258@arborea> On date Friday 2011-10-28 09:06:37 -0600, Roger Pack encoded: > Hello. > > Now that ffmpeg has high quality filter ability with libavfilter, I > was thinking... > it would be great if at some point you could basically do the > equivalent of the following: > > Split an input stream, send it to a "file" output as well as to a > "server" output, or optionally also to a "view" output (ffplay). > Kind of combining all of the various output options into sinks. > > Or maybe this is already in the works? > This would allow me to not have to revert to VLC if, for instance, a > users wants to view a stream as it is encoded (which some do). Yes, this should be achievable through a movie sink, I wrote a snapshot sink some time ago which could be use a basis for this. And we have already an SDL output format, although it's quite limited and I wanted to implement other ones (based on libe/GTK/QT) but never found the magic combination of time/motivation for actually working on it. You may want to add a feature request on trac, describing a detailed use case scenario if you feel like so. From stefasab at gmail.com Sun Oct 30 01:47:34 2011 From: stefasab at gmail.com (Stefano Sabatini) Date: Sun, 30 Oct 2011 01:47:34 +0200 Subject: [FFmpeg-user] Convert to 24p In-Reply-To: References: <1319739320.85591.YahooMailNeo@web27101.mail.ukl.yahoo.com> Message-ID: <20111029234734.GD13258@arborea> On date Saturday 2011-10-29 17:06:16 +0100, Phil Rhodes encoded: > >Afaik, MEncoder's pullup filter handles cadence breaks fine. > >The filter is available in FFmpeg's sources, but some work is > >necessary to make it working, help is welcome! > > I would love to. > > The problem here is that while the work involved in building a 3:2 > pulldown filter may be something we could do, the work involved in > learning the entire ffmpeg API is probably not. If there was an MSDN > style documentation effort for it I might think about it, but as it > is, the code is more or less undocumented and run by a development > team that I'd call "prickly" if I was trying very hard to be nice > about it. > > So it's difficult. Pickly or not I'll let others to judge, but having a bug report on trac would be already a start for fixing the problem. From arunkumar at omeonsolutions.com Sun Oct 30 06:44:51 2011 From: arunkumar at omeonsolutions.com (Arunkumar) Date: Sun, 30 Oct 2011 11:14:51 +0530 Subject: [FFmpeg-user] Compilation error Message-ID: <000001cc96c7$13481090$39d831b0$@com> Hi, We downloaded the latest ffmpeg via git clone git://git.videolan.org/ffmpeg.git ffmpeg and tried to compile it for Android using the instructions in abitno.me/compile-ffmpeg-android-ndkCached - Similar . We have earlier compiled an earlier version of ffmpeg using these instructions. But compiling the new ffmpeg version gives the following error : Codec_names.h: No such file or directory. Please let us know how to fix this problem. Thank you, B.Arunkumar From nicolas.george at normalesup.org Sun Oct 30 09:21:16 2011 From: nicolas.george at normalesup.org (Nicolas George) Date: Sun, 30 Oct 2011 09:21:16 +0100 Subject: [FFmpeg-user] Compilation error In-Reply-To: <000001cc96c7$13481090$39d831b0$@com> References: <000001cc96c7$13481090$39d831b0$@com> Message-ID: <20111030082116.GA22351@phare.normalesup.org> Le nonidi 9 brumaire, an CCXX, Arunkumar a ?crit?: > We have earlier compiled an earlier version of ffmpeg using these > instructions. But compiling the new ffmpeg version gives the following error > : > > Codec_names.h: No such file or directory. > > Please let us know how to fix this problem. You need to: 1. Copy the complete and exact command line and output. This line is not sufficient by itself, and it has been altered. 2. Make sure you ran make distclean before building a new version. Regards, -- Nicolas George -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From dimka87 at gmail.com Sun Oct 30 13:14:26 2011 From: dimka87 at gmail.com (=?KOI8-R?B?5M3J1NLJyiDnz8zP18nOz9c=?=) Date: Sun, 30 Oct 2011 15:14:26 +0300 Subject: [FFmpeg-user] FFMpeg symbols are not defined Message-ID: After compilation the head revision of FFMPEG, my linker tells me that some symbols are undefined. conf string ./configure --cc=/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/llvm-gcc-4.2 --as='gas-preprocessor.pl /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/llvm-gcc-4.2' --sysroot=/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk --extra-ldflags=-L/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk/usr/lib/system --target-os=darwin --arch=i386 --cpu=i386 --extra-cflags='-arch i386' --extra-ldflags='-arch i386' --prefix=compiled/i386 --enable-cross-compile --disable-armv5te --disable-ffmpeg --disable-ffplay --disable-ffserver --disable-ffprobe --disable-doc errors Undefined symbols for architecture i386: "_uncompress", referenced from: _decode_frame in libavcodec.a(cscd.o) _decode_frame in libavcodec.a(dxa.o) _svq3_decode_init in libavcodec.a(svq3.o) "_deflateInit_", referenced from: _flashsv_decode_frame in libavcodec.a(flashsv.o) _encode_block in libavcodec.a(flashsv2enc.o) _encode_init in libavcodec.a(lclenc.o) _encode_init in libavcodec.a(zmbvenc.o) "_deflateBound", referenced from: _flashsv_decode_frame in libavcodec.a(flashsv.o) "_deflateEnd", referenced from: _flashsv_decode_frame in libavcodec.a(flashsv.o) _encode_block in libavcodec.a(flashsv2enc.o) _flashsv_encode_end in libavcodec.a(flashsvenc.o) _encode_frame in libavcodec.a(pngenc.o) _encode_end in libavcodec.a(lclenc.o) _encode_end in libavcodec.a(zmbvenc.o) "_inflateReset", referenced from: _flashsv_decode_frame in libavcodec.a(flashsv.o) _zlib_decomp in libavcodec.a(lcldec.o) _decode_frame in libavcodec.a(tscc.o) _decode_frame in libavcodec.a(zmbv.o) "_inflate", referenced from: _flashsv_decode_frame in libavcodec.a(flashsv.o) _zlib_decomp in libavcodec.a(lcldec.o) _decode_frame in libavcodec.a(pngdec.o) _decode_frame in libavcodec.a(tiff.o) _decode_frame in libavcodec.a(tscc.o) _decode_frame in libavcodec.a(zmbv.o) "_deflate", referenced from: _flashsv_decode_frame in libavcodec.a(flashsv.o) _encode_block in libavcodec.a(flashsv2enc.o) _encode_frame in libavcodec.a(pngenc.o) _encode_frame in libavcodec.a(lclenc.o) _encode_frame in libavcodec.a(zmbvenc.o) "_inflateSync", referenced from: _flashsv_decode_frame in libavcodec.a(flashsv.o) "_inflateEnd", referenced from: _flashsv_decode_end in libavcodec.a(flashsv.o) _flashsv2_decode_end in libavcodec.a(flashsv.o) _decode_end in libavcodec.a(lcldec.o) _decode_frame in libavcodec.a(pngdec.o) _decode_frame in libavcodec.a(tiff.o) _decode_end in libavcodec.a(tscc.o) _decode_end in libavcodec.a(zmbv.o) ... "_inflateInit_", referenced from: _flashsv_decode_init in libavcodec.a(flashsv.o) _flashsv2_decode_init in libavcodec.a(flashsv.o) _decode_init in libavcodec.a(lcldec.o) _decode_frame in libavcodec.a(pngdec.o) _decode_frame in libavcodec.a(tiff.o) _decode_init in libavcodec.a(tscc.o) _decode_init in libavcodec.a(zmbv.o) ... "_compress2", referenced from: _encode_block in libavcodec.a(flashsv2enc.o) _flashsv_encode_frame in libavcodec.a(flashsvenc.o) "_deflateReset", referenced from: _encode_frame in libavcodec.a(lclenc.o) _encode_frame in libavcodec.a(zmbvenc.o) "_crc32", referenced from: _png_write_chunk in libavcodec.a(pngenc.o) "_deflateInit2_", referenced from: _encode_frame in libavcodec.a(pngenc.o) "_compress", referenced from: _encode_strip in libavcodec.a(tiffenc.o) (maybe you meant: _ff_mp3_header_compress_bsf) ld: symbol(s) not found for architecture i386 collect2: ld returned 1 exit status As for me i cannot find uncompress function either ^( Please, help me if you can! Sincerely yours, Dmitriy Golovinov From amit.dor.shifer at gmail.com Sun Oct 30 13:35:23 2011 From: amit.dor.shifer at gmail.com (Amit Dor-Shifer) Date: Sun, 30 Oct 2011 23:35:23 +1100 Subject: [FFmpeg-user] Encoding raw alaw to PCM In-Reply-To: References: Message-ID: Brilliant! Works like a charm. Thanks ;) On Sun, Oct 30, 2011 at 8:51 AM, Carl Eugen Hoyos wrote: > Amit Dor-Shifer gmail.com> writes: > > > Attachment (test-123.sample): application/octet-stream, 2340 bytes > > Thanks to Vladimir Voroshilov, the sample can be decoded now with > ffmpeg -f g729 -i test-123.sample out.wav > (The -f g729 may be omitted if the file extension is .g729) > > Thank you for the report and the sample, Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From phil_rhodes at rocketmail.com Sun Oct 30 14:11:18 2011 From: phil_rhodes at rocketmail.com (Phil Rhodes) Date: Sun, 30 Oct 2011 13:11:18 -0000 Subject: [FFmpeg-user] feature request/suggestion: make the server and ffplay into sink filters :) In-Reply-To: <20111029233623.GC13258@arborea> References: <20111029233623.GC13258@arborea> Message-ID: >> Split an input stream, send it to a "file" output as well as to a >> "server" output, or optionally also to a "view" output (ffplay). >> Kind of combining all of the various output options into sinks. Doesn't that already exist in Directshow? P From phil_rhodes at rocketmail.com Sun Oct 30 14:25:44 2011 From: phil_rhodes at rocketmail.com (Phil Rhodes) Date: Sun, 30 Oct 2011 13:25:44 -0000 Subject: [FFmpeg-user] Encoding h264 with 4:4:4 chroma In-Reply-To: References: Message-ID: > This is a very broken version of FFmpeg, please test latest git head. It would be helpful if this project pointed people towards binaries. I have little idea what a "git" is and where to find its "head". I suspect that even if I did it would get me a lot of .c files which, to be useful, would require me to create an entire new computer system, construct the appropriate build environment, and cross-compile FFmpeg for windows. Whether I would need to take three years out to go and get a bachelors' in computer science is up for debate, but the point remains. Most of the people who use FFmpeg will not test "latest git head" becuase they have no realistic way of doing so. P From arunkumar at omeonsolutions.com Sun Oct 30 14:27:50 2011 From: arunkumar at omeonsolutions.com (Arunkumar) Date: Sun, 30 Oct 2011 18:57:50 +0530 Subject: [FFmpeg-user] Compilation error In-Reply-To: <20111030082116.GA22351@phare.normalesup.org> References: <000001cc96c7$13481090$39d831b0$@com> <20111030082116.GA22351@phare.normalesup.org> Message-ID: <000601cc9707$ba3013e0$2e903ba0$@com> Hi, I have attached the entire log file after the commands $NDK/ndk-build clean and $NDK/ndk-build. Please let us know what is the problem. Thank you, B.Arunkumar -----Original Message----- From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user-bounces at ffmpeg.org] On Behalf Of Nicolas George Sent: Sunday, October 30, 2011 1:51 PM To: FFmpeg user questions and RTFMs Cc: 'Mohamed Rafi.A' Subject: Re: [FFmpeg-user] Compilation error Le nonidi 9 brumaire, an CCXX, Arunkumar a ?crit?: > We have earlier compiled an earlier version of ffmpeg using > these instructions. But compiling the new ffmpeg version gives the > following error > : > > Codec_names.h: No such file or directory. > > Please let us know how to fix this problem. You need to: 1. Copy the complete and exact command line and output. This line is not sufficient by itself, and it has been altered. 2. Make sure you ran make distclean before building a new version. Regards, -- Nicolas George -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: errorlog.txt URL: From cehoyos at ag.or.at Sun Oct 30 16:41:06 2011 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 30 Oct 2011 15:41:06 +0000 (UTC) Subject: [FFmpeg-user] h264 3 Pass References: <4EAB3112.8060501@globalchangemusic.org> Message-ID: Asai globalchangemusic.org> writes: > However I got this message from FFMPEG, "The value for pass was 3 which > is not within 1.00000 - 2.00000" This should be fixed in current git head, please test. Carl Eugen From cehoyos at ag.or.at Sun Oct 30 16:49:32 2011 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 30 Oct 2011 15:49:32 +0000 (UTC) Subject: [FFmpeg-user] Encoding h264 with 4:4:4 chroma References: Message-ID: Phil Rhodes rocketmail.com> writes: > > This is a very broken version of FFmpeg, please test latest git head. > > It would be helpful if this project pointed people towards binaries. The OP uses a Linux distribution. Binaries may make sense for Windows (I am not so sure), but they are definitely not useful on a Linux distribution (where ./configure && make work fine) > I have little idea what a "git" is and where to find its "head". That is why a snapshot is offered on http://ffmpeg.org/download.html (it contains current git head). Carl Eugen PS: Compiling natively on mingw for Windows if far easier imo than cross-compiling. From cehoyos at ag.or.at Sun Oct 30 16:45:51 2011 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 30 Oct 2011 15:45:51 +0000 (UTC) Subject: [FFmpeg-user] Compilation error References: <000001cc96c7$13481090$39d831b0$@com> Message-ID: Arunkumar omeonsolutions.com> writes: > We downloaded the latest ffmpeg via git clone > git://git.videolan.org/ffmpeg.git ffmpeg and tried to compile it for Android > using the instructions in abitno.me If I understand the link you offered correctly, you are trying to use a specialized script to compile FFmpeg. This mailing list only supports compilation using the configure script (that is part of the source) and "make". (Or in other words: If you do not use the Makefile that comes with FFmpeg, you are on your own.) If compilation with the native configure script (and make) fails, bug reports (and fixes) are very welcome! Carl Eugen From nicolas.george at normalesup.org Sun Oct 30 19:53:03 2011 From: nicolas.george at normalesup.org (Nicolas George) Date: Sun, 30 Oct 2011 19:53:03 +0100 Subject: [FFmpeg-user] Compilation error In-Reply-To: <000601cc9707$ba3013e0$2e903ba0$@com> References: <000001cc96c7$13481090$39d831b0$@com> <20111030082116.GA22351@phare.normalesup.org> <000601cc9707$ba3013e0$2e903ba0$@com> Message-ID: <20111030185303.GA23913@phare.normalesup.org> Le nonidi 9 brumaire, an CCXX, Arunkumar a ?crit?: > I have attached the entire log file after the commands $NDK/ndk-build clean > and $NDK/ndk-build. Please let us know what is the problem. I do not know what these commands do, they are not part of the normal ffmpeg build system. Either they are broken or you did not clean completely your build tree as I told you to. > -----Original Message----- > From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user-bounces at ffmpeg.org] Please do not top-post on these mailing lists; look-it up on the web if you do not know what it means. Regards, -- Nicolas George -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From huoyee at yeah.net Sun Oct 30 09:43:29 2011 From: huoyee at yeah.net (=?GBK?B?u/TeyA==?=) Date: Sun, 30 Oct 2011 16:43:29 +0800 (CST) Subject: [FFmpeg-user] ffmpeg and x264 cross compile problem Message-ID: Dear friend, I want to include x264 into ffmpeg and I have compiled x264 successfully, but when I use the command of ./configure --enable-libx264 to compile ffmpeg, it generated the following error: ERROR: libx264 not found The config.err file is also attached. How to solve it,please? I'm looking forward to your reply. Thank you! Sincerely, Emma ????????????????????????????! -------------- next part -------------- A non-text attachment was scrubbed... Name: config.err Type: application/octet-stream Size: 52555 bytes Desc: not available URL: From stefasab at gmail.com Sun Oct 30 23:29:19 2011 From: stefasab at gmail.com (Stefano Sabatini) Date: Sun, 30 Oct 2011 23:29:19 +0100 Subject: [FFmpeg-user] ffmpeg and x264 cross compile problem In-Reply-To: References: Message-ID: <20111030222919.GH2039@arborea> On date Sunday 2011-10-30 16:43:29 +0800, ?? encoded: > > Dear friend, > > I want to include x264 into ffmpeg and I have compiled x264 successfully, but when I use the command of > ./configure --enable-libx264 to compile ffmpeg, it generated the following error: > ERROR: libx264 not found > The config.err file is also attached. How to solve it,please? I'm > looking forward to your reply. Thank you! Since you have a config.err (rather than config.log) I guess you have a pretty old ffmpeg version. Check out the latest versions of both ffmpeg and libx264, install libx264 and recompile ffmpeg. -- ffmpeg-user random tip #2 The -y option will force the overwrite of the output, without to prompt you for your confirmation. Example: ffmpeg -i movie.avi -y movie.mp4 From kurtn at 126.com Mon Oct 31 02:34:03 2011 From: kurtn at 126.com (Ethan Wang) Date: Mon, 31 Oct 2011 09:34:03 +0800 (CST) Subject: [FFmpeg-user] ffmpeg and x264 cross compile problem In-Reply-To: References: Message-ID: <275bcf33.2374.133579ca5b1.Coremail.kurtn@126.com> ?????????????????x264. EW At 2011-10-30 16:43:29,"??" wrote: > > Dear friend, > >I want to include x264 into ffmpeg and I have compiled x264 successfully, but when I use the command of >./configure --enable-libx264 to compile ffmpeg, it generated the following error: >ERROR: libx264 not found >The config.err file is also attached. How to solve it,please? I'm looking forward to your reply. Thank you! > >Sincerely, >Emma > > > > >????????????????????????????! From hardik.sharma22 at yahoo.com Mon Oct 31 04:21:00 2011 From: hardik.sharma22 at yahoo.com (Hardik Sharma) Date: Sun, 30 Oct 2011 20:21:00 -0700 (PDT) Subject: [FFmpeg-user] how to make frame repeat? Message-ID: <1320031260.60090.YahooMailNeo@web46206.mail.sp1.yahoo.com> Hi, How can I make the previous frame repeat if my current frame is getting dropped due to error? Please give your suggestion if possible. Thanks. ?? From tim.nicholson at bbc.co.uk Mon Oct 31 09:09:05 2011 From: tim.nicholson at bbc.co.uk (Tim Nicholson) Date: Mon, 31 Oct 2011 08:09:05 +0000 Subject: [FFmpeg-user] Encoding h264 with 4:4:4 chroma In-Reply-To: References: Message-ID: <4EAE57A1.50902@bbc.co.uk> On 30/10/11 15:49, Carl Eugen Hoyos wrote: > Phil Rhodes rocketmail.com> writes: > >>> This is a very broken version of FFmpeg, please test latest git head. >> >> It would be helpful if this project pointed people towards binaries. > > The OP uses a Linux distribution. Binaries may make sense for Windows (I am not > so sure), but they are definitely not useful on a Linux distribution (where > ./configure&& make work fine) > I would agree with you if simply compiling a vanilla build. However if you want to add in third party library support things can start to get a little trickier, for example the distro's devel packages may contain incompatible versions of the required library requiring building from scratch. >> I have little idea what a "git" is and where to find its "head". > > That is why a snapshot is offered on http://ffmpeg.org/download.html (it > contains current git head). > > Carl Eugen > > PS: Compiling natively on mingw for Windows if far easier imo than > cross-compiling. Interesting that you should say that as I have heard others say quite the reverse... I have found the biggest issue to be the third party libraries and the inconsistent build requirements and need to 'tweak' Makefile's and the like to accommodate complier version issues etc. (Not all libraries have as refined a configure system as ffmpeg's) -- Tim http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. From nicolas.george at normalesup.org Mon Oct 31 09:21:40 2011 From: nicolas.george at normalesup.org (Nicolas George) Date: Mon, 31 Oct 2011 09:21:40 +0100 Subject: [FFmpeg-user] how to make frame repeat? In-Reply-To: <1320031260.60090.YahooMailNeo@web46206.mail.sp1.yahoo.com> References: <1320031260.60090.YahooMailNeo@web46206.mail.sp1.yahoo.com> Message-ID: <20111031082140.GA1216@phare.normalesup.org> Le nonidi 9 brumaire, an CCXX, Hardik Sharma a ?crit?: > How can I make the previous frame repeat if my current frame is getting > dropped due to error? Please give your suggestion if possible. Why do you want to do that? If frame n+1 is dropped due to errors, frame n+2 will still have a PTS at its proper time, and so frame n will stay longer without any need to duplicate it. Regards, -- Nicolas George -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From rogerdpack2 at gmail.com Mon Oct 31 14:39:05 2011 From: rogerdpack2 at gmail.com (Roger Pack) Date: Mon, 31 Oct 2011 07:39:05 -0600 Subject: [FFmpeg-user] feature request/suggestion: make the server and ffplay into sink filters :) In-Reply-To: References: <20111029233623.GC13258@arborea> Message-ID: >>> Split an input stream, send it to a "file" output as well as to a >>> "server" output, or optionally also to a "view" output (ffplay). >>> Kind of combining all of the various output options into sinks. > > Doesn't that already exist in Directshow? Probably, but I was hoping for a more cross platform (and ffmpeg specific) option :) > You may want to add a feature request on trac, describing a detailed > use case scenario if you feel like so. Ok. http://ffmpeg.org/trac/ffmpeg/ticket/602 -r From asai at globalchangemusic.org Mon Oct 31 16:39:26 2011 From: asai at globalchangemusic.org (Asai) Date: Mon, 31 Oct 2011 08:39:26 -0700 Subject: [FFmpeg-user] h264 3 Pass In-Reply-To: References: <4EAB3112.8060501@globalchangemusic.org> Message-ID: <4EAEC12E.2050004@globalchangemusic.org> Works. Thanks. --asai On 10/30/2011 8:41 AM, Carl Eugen Hoyos wrote: > Asai globalchangemusic.org> writes: > >> However I got this message from FFMPEG, "The value for pass was 3 which >> is not within 1.00000 - 2.00000" > This should be fixed in current git head, please test. > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From alex.zhen.ma at gmail.com Mon Oct 31 19:51:33 2011 From: alex.zhen.ma at gmail.com (Zhen Ma) Date: Mon, 31 Oct 2011 14:51:33 -0400 Subject: [FFmpeg-user] what's the latest of GPU encoding Message-ID: Hey guys, I am just wondering that someone have been working on implementation of GPU encoding ? How is it going? Best wish! Zhen From hardik.sharma22 at yahoo.com Mon Oct 31 20:05:01 2011 From: hardik.sharma22 at yahoo.com (Hardik Sharma) Date: Mon, 31 Oct 2011 12:05:01 -0700 (PDT) Subject: [FFmpeg-user] how to make frame repeat? In-Reply-To: <1320031260.60090.YahooMailNeo@web46206.mail.sp1.yahoo.com> References: <1320031260.60090.YahooMailNeo@web46206.mail.sp1.yahoo.com> Message-ID: <1320087901.90174.YahooMailNeo@web46209.mail.sp1.yahoo.com> Because I am dropping it?intentionally. Sometimes when I am dropping slices to introduce errors, one slice shows one frame (mostly B frame) and drops that frame. Leaving no scope for concealment. So instead of getting lesser number of frames I want to repeat previous frame on the spot of lost frame. Any idea where I can look into? ? ??? ________________________________ From: Hardik Sharma To: ffmpeg Sent: Sunday, 30 October 2011 8:21 PM Subject: [FFmpeg-user] how to make frame repeat? Hi, How can I make the previous frame repeat if my current frame is getting dropped due to error? Please give your suggestion if possible. Thanks. ?? _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From hardik.sharma22 at yahoo.com Mon Oct 31 20:07:35 2011 From: hardik.sharma22 at yahoo.com (Hardik Sharma) Date: Mon, 31 Oct 2011 12:07:35 -0700 (PDT) Subject: [FFmpeg-user] how to make frame repeat? In-Reply-To: <1320087901.90174.YahooMailNeo@web46209.mail.sp1.yahoo.com> References: <1320031260.60090.YahooMailNeo@web46206.mail.sp1.yahoo.com> <1320087901.90174.YahooMailNeo@web46209.mail.sp1.yahoo.com> Message-ID: <1320088055.11760.YahooMailNeo@web46203.mail.sp1.yahoo.com> Also I want exact number of frames to complete my experiment where I am comparing some values frame by frame from different codecs. So if there is less number of frame, it will go out of synch and gonna fail my experiment.? Regards ? ? ________________________________ From: Hardik Sharma To: FFmpeg user questions and RTFMs Sent: Monday, 31 October 2011 12:05 PM Subject: Re: [FFmpeg-user] how to make frame repeat? Because I am dropping it?intentionally. Sometimes when I am dropping slices to introduce errors, one slice shows one frame (mostly B frame) and drops that frame. Leaving no scope for concealment. So instead of getting lesser number of frames I want to repeat previous frame on the spot of lost frame. Any idea where I can look into? ? ??? ________________________________ From: Hardik Sharma To: ffmpeg Sent: Sunday, 30 October 2011 8:21 PM Subject: [FFmpeg-user] how to make frame repeat? Hi, How can I make the previous frame repeat if my current frame is getting dropped due to error? Please give your suggestion if possible. Thanks. ?? _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From shubha at apparatusmedialab.com Mon Oct 31 10:21:01 2011 From: shubha at apparatusmedialab.com (shubha) Date: Mon, 31 Oct 2011 14:51:01 +0530 Subject: [FFmpeg-user] Licensing Message-ID: <003201cc97ae$6cecbe60$46c63b20$@com> Hi, This is regarding the licensing for FFmpeg for my specific use. I am working on a web-portal project for a fertilizer industry. The web-portal showcases user-uploaded video and audio files. There are no costs or charges to upload or view these files. We plan to use FFmpeg to convert the different types of videos uploaded by users to a single common format. I've read through the licensing information but it's still not clear so I thought it's best to check with you guys. Does the current software license allow for my use as stated above? Thanks, Shubha From dimka87 at gmail.com Mon Oct 31 21:04:09 2011 From: dimka87 at gmail.com (=?KOI8-R?B?5M3J1NLJyiDnz8zP18nOz9c=?=) Date: Mon, 31 Oct 2011 23:04:09 +0300 Subject: [FFmpeg-user] Ffmpeg cuts the last 0.05 seconds while conversion Message-ID: Subj. See logs: Dmitrijs-Mac-Pro:bin zvoice$ ./ffmpeg -i sound.alac -acodec flac -ac 2 -ar 44100 record.flac ffmpeg version N-34207-g9b04f51, Copyright (c) 2000-2011 the FFmpeg developers built on Oct 31 2011 23:27:51 with llvm_gcc 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00) configuration: --cc=/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc --as='gas-preprocessor.pl/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc' --sysroot=/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk --extra-ldflags=-L/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk/usr/lib/system --target-os=darwin --arch=i386 --cpu=i386 --extra-cflags='-arch i386' --extra-ldflags='-arch i386' --prefix=compiled/i386 --enable-cross-compile --disable-armv5te --disable-ffplay --disable-ffserver --disable-ffprobe --disable-doc libavutil 51. 22. 0 / 51. 22. 0 libavcodec 53. 25. 0 / 53. 25. 0 libavformat 53. 17. 0 / 53. 17. 0 libavdevice 53. 4. 0 / 53. 4. 0 libavfilter 2. 45. 1 / 2. 45. 1 libswscale 2. 1. 0 / 2. 1. 0 Input #0, caf, from 'sound.alac': Duration: *00:00:02.50,* start: 0.000000, bitrate: -2147483 kb/s Stream #0:0: Audio: alac (alac / 0x63616C61), 44100 Hz, 2 channels, s16, 623 kb/s File 'record.flac' already exists. Overwrite ? [y/N] y Output #0, flac, to 'record.flac': Metadata: encoder : Lavf53.17.0 Stream #0:0: Audio: flac, 44100 Hz, 2 channels, s16, 128 kb/s Stream mapping: Stream #0.0 -> #0.0 (alac -> flac) Press [q] to stop, [?] for help size=17179869184kB time=00:00:02.50 bitrate=56120885905.7kbits/s video:0kB audio:190kB global headers:0kB muxing overhead 9023901313.389006% Dmitrijs-Mac-Pro:bin zvoice$ ffmpeg -i sound.alac -bash: ffmpeg: command not found Dmitrijs-Mac-Pro:bin zvoice$ ./ffmpeg -i sound.alac ffmpeg version N-34207-g9b04f51, Copyright (c) 2000-2011 the FFmpeg developers built on Oct 31 2011 23:27:51 with llvm_gcc 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00) configuration: --cc=/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc --as='gas-preprocessor.pl/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc' --sysroot=/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk --extra-ldflags=-L/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk/usr/lib/system --target-os=darwin --arch=i386 --cpu=i386 --extra-cflags='-arch i386' --extra-ldflags='-arch i386' --prefix=compiled/i386 --enable-cross-compile --disable-armv5te --disable-ffplay --disable-ffserver --disable-ffprobe --disable-doc libavutil 51. 22. 0 / 51. 22. 0 libavcodec 53. 25. 0 / 53. 25. 0 libavformat 53. 17. 0 / 53. 17. 0 libavdevice 53. 4. 0 / 53. 4. 0 libavfilter 2. 45. 1 / 2. 45. 1 libswscale 2. 1. 0 / 2. 1. 0 Input #0, caf, from 'sound.alac': Duration: 00:00:02.50, start: 0.000000, bitrate: -2147483 kb/s Stream #0:0: Audio: alac (alac / 0x63616C61), 44100 Hz, 2 channels, s16, 623 kb/s At least one output file must be specified Dmitrijs-Mac-Pro:bin zvoice$ ./ffmpeg -i record.flac ffmpeg version N-34207-g9b04f51, Copyright (c) 2000-2011 the FFmpeg developers built on Oct 31 2011 23:27:51 with llvm_gcc 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00) configuration: --cc=/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc --as='gas-preprocessor.pl/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc' --sysroot=/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk --extra-ldflags=-L/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk/usr/lib/system --target-os=darwin --arch=i386 --cpu=i386 --extra-cflags='-arch i386' --extra-ldflags='-arch i386' --prefix=compiled/i386 --enable-cross-compile --disable-armv5te --disable-ffplay --disable-ffserver --disable-ffprobe --disable-doc libavutil 51. 22. 0 / 51. 22. 0 libavcodec 53. 25. 0 / 53. 25. 0 libavformat 53. 17. 0 / 53. 17. 0 libavdevice 53. 4. 0 / 53. 4. 0 libavfilter 2. 45. 1 / 2. 45. 1 libswscale 2. 1. 0 / 2. 1. 0 Input #0, flac, from 'record.flac': Metadata: ENCODER : Lavf53.17.0 Duration: *00:00:02.45,* bitrate: -2147483 kb/s Stream #0:0: Audio: flac, 44100 Hz, stereo, s16 At least one output file must be specified What is wrong with my settings? Why it is reducing transcoded file? From rogerdpack2 at gmail.com Mon Oct 31 22:09:35 2011 From: rogerdpack2 at gmail.com (Roger Pack) Date: Mon, 31 Oct 2011 15:09:35 -0600 Subject: [FFmpeg-user] Licensing In-Reply-To: <003201cc97ae$6cecbe60$46c63b20$@com> References: <003201cc97ae$6cecbe60$46c63b20$@com> Message-ID: > Does the current software license allow for my use as stated above? AFAIK as long as you don't distribute a "product" (you're providing a service) then you can use GPL software without having to disclose all your source code. HTH. -r From rogerdpack2 at gmail.com Mon Oct 31 22:10:35 2011 From: rogerdpack2 at gmail.com (Roger Pack) Date: Mon, 31 Oct 2011 15:10:35 -0600 Subject: [FFmpeg-user] FFMpeg symbols are not defined In-Reply-To: References: Message-ID: > Undefined symbols for architecture i386: > ?"_uncompress", referenced from: > ? ? ?_decode_frame in libavcodec.a(cscd.o) > ? ? ?_decode_frame in libavcodec.a(dxa.o) > ? ? ?_svq3_decode_init in libavcodec.a(svq3.o) If I were you I'd search your lib folders to see which lib "should" define these methods, to see if you can add it to your linker. GL! -r From cessen at cessen.com Mon Oct 31 22:31:56 2011 From: cessen at cessen.com (Nathan Vegdahl) Date: Mon, 31 Oct 2011 14:31:56 -0700 Subject: [FFmpeg-user] Encoding h264 with 4:4:4 chroma In-Reply-To: References: Message-ID: > This is a very broken version of FFmpeg, please test latest git head. I've now tested with ffmpeg 0.8.4 from this repo: https://launchpad.net/~jon-severinsson/+archive/ffmpeg And using pix_fmt (e.g. "-pix_fmt yuv444p") still does not work to make libx264 encode with 4:4:4 chroma sampling. I will gladly test with git head next, but can I first get explicit confirmation that this is even supposed to work yet? And, if it is, what command line parameter is supposed to trigger 4:4:4 chroma encoding for libx264? Am I doing it right with pix_fmt? If it's not implemented yet, that's fine, and I'll just wait until it is. But I'd rather not go on a wild goose chase trying to get this to work if it isn't implemented yet. Thanks! --Nathan On Sat, Oct 29, 2011 at 2:54 PM, Carl Eugen Hoyos wrote: > Nathan Vegdahl cessen.com> writes: > >> ffmpeg version 0.7.2-4:0.7.2-1ubuntu1, Copyright (c) 2000-2011 the >> Libav developers > > This is a very broken version of FFmpeg, please test latest git head. > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From cehoyos at ag.or.at Mon Oct 31 23:23:02 2011 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 31 Oct 2011 22:23:02 +0000 (UTC) Subject: [FFmpeg-user] Encoding h264 with 4:4:4 chroma References: Message-ID: Nathan Vegdahl cessen.com> writes: > I will gladly test with git head next, but can I first get explicit > confirmation that this is even supposed to work yet? It is supposed to work (and I suspect no -pix_fmt will be needed if your input material is 4:4:4). Carl Eugen From cehoyos at ag.or.at Mon Oct 31 23:30:02 2011 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 31 Oct 2011 22:30:02 +0000 (UTC) Subject: [FFmpeg-user] Ffmpeg cuts the last 0.05 seconds while conversion References: Message-ID: ??????? ????????? gmail.com> writes: > What is wrong with my settings? Why it is reducing transcoded file? Could you provide a .alac sample to reproduce? Carl Eugen