Opened 12 years ago
Closed 12 years ago
#2015 closed enhancement (fixed)
VF Scale option should include -2 to create square pixels
Reported by: | ramitb | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | avfilter |
Version: | unspecified | Keywords: | scale |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
Summary of the bug: FFMPEG has not way to create square pixels output video. using -1 for the scale automatically scales but does not create square pixel video.
So instead of having to create a square pixel video with width 720 by doing this:
-vf scale=720:trunc(720/dar/2)*2
It would be great if FFMPEG can provide an option (like mencoder) to do something like:
-vf scale=720:-2
Change History (9)
comment:1 by , 12 years ago
Component: | undetermined → avfilter |
---|---|
Keywords: | scale added |
comment:2 by , 12 years ago
Replying to ramitbhalla:
Summary of the bug: FFMPEG has not way to create square pixels output video. using -1 for
setsar=1,scale=iw:iw
what's wrong with this?
the scale automatically scales but does not create square pixel video.
So instead of having to create a square pixel video with width 720 by doing this:
-vf scale=720:trunc(720/dar/2)*2
It would be great if FFMPEG can provide an option (like mencoder) to do something like:
-vf scale=720:-2
I tend to dislike this arbitrary and opaque syntax.
comment:3 by , 12 years ago
Nothing wrong @saste. I also gave a workaround, but that's the point it's a workaround.
It would be great if there is an more direct way to do it. Espcially since a lot of programs use FFMPEG programtically. (and this can be properly documented)
-1 = automatically calculate height (and it's doesn't take care of odd height pixels which is FRUSTRATING cause it breaks the conversion)
-2 = square pixels and never fails the conversions due to a odd height
comment:4 by , 12 years ago
Resolution: | → needs_more_info |
---|---|
Status: | new → closed |
Please reopen if you can provide command lines that allow to reproduce the different behaviour of MPlayer and FFmpeg.
comment:5 by , 12 years ago
I'm attaching the error below with the output.
In addition to the -2 option for which Mencoder creates square pixels there is another option -10 which creates pixels that allow it to be divisible by 16. This is VERY important for quicktime codecs.
I would request 2 options be created for the scale filter:
- -2 which creates square pixels
- -10 which creates pixels divisible by 16 (for quicktime)
You can change the -2 and -10 to someelse if you'd like, I was just suggested to keep it similar to MEncoder options, but thats your choice, the functionality is more important.
Here is the error output created because of non square pixels with the -1 option:
ffmpeg.2311.exe -y -threads 0 -i "..\NCIS HD Small.wtv" -vf scale=720:-1 -vcodec libxvid -acodec copy test-csi.ts ffmpeg version N-48065-g6375318 Copyright (c) 2000-2012 the FFmpeg developers built on Dec 21 2012 09:06:30 with gcc 4.7.2 (GCC) configuration: --enable-static --arch=x86 --target-os=mingw32 --cross-prefix=/home/rdp/dev/ffmpeg-windows-build-helper s/sandbox/mingw-w64-i686/bin/i686-w64-mingw32- --pkg-config=pkg-config --enable-gpl --enable-libx264 --enable-avisynth - -enable-libxvid --enable-libmp3lame --enable-version3 --enable-zlib --enable-librtmp --enable-libvorbis --enable-libtheo ra --enable-libspeex --enable-libopenjpeg --enable-gnutls --enable-libgsm --enable-libfreetype --enable-fontconfig --ena ble-libass --enable-libutvideo --enable-libopus --disable-w32threads --enable-frei0r --enable-filter=frei0r --enable-lib vo-aacenc --enable-bzlib --enable-libxavs --extra-cflags=-DPTW32_STATIC_LIB --enable-libopencore-amrnb --enable-libopenc ore-amrwb --enable-libvo-amrwbenc --enable-libschroedinger --enable-libbluray --enable-libvpx --enable-runtime-cpudetect libavutil 52. 12.100 / 52. 12.100 libavcodec 54. 81.100 / 54. 81.100 libavformat 54. 49.102 / 54. 49.102 libavdevice 54. 3.102 / 54. 3.102 libavfilter 3. 29.100 / 3. 29.100 libswscale 2. 1.103 / 2. 1.103 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [wtv @ 01edc9e0] reported file length (0x15b2b2fd0) exceeds number of available sectors (0xb0000000) [mpeg2video @ 01edf0e0] mpeg_decode_postinit() failure Last message repeated 10 times Input #0, wtv, from '..\NCIS HD Small.wtv': Metadata: WM/MediaClassPrimaryID: db9830bd-3ab3-4fab-8a371a995f7ff74 WM/MediaClassSecondaryID: ba7f258a-62f7-47a9-b21f4651c42a000 Title : NCIS: Los Angeles WM/SubTitle : Sacrifice WM/SubTitleDescription: The LAPD asks NCIS for help when a case exposes a link between a Mexican drug cartel and a t errorist. genre : Drama;General;Series;Action/Adventure WM/OriginalReleaseTime: 0 WM/MediaCredits : Chris O'Donnell/LL Cool J/Linda Hunt/Daniela Ruah/Eric Christian Olsen/Barrett Foa/Renée Felice S mith;John P. Kousakis;;America Olivo/Brant Cotton/Doug Rao/Danny Nucci/Gino Montesinos/Farshad Farahat/Carlos Arellano/C heryl Texiera/Brian Michael Jones/Jen service_provider: KPHODT service_name : KPHODT (KPHO-DT) WM/MediaNetworkAffiliation: CBS Affiliate WM/MediaOriginalChannel: 5 WM/MediaOriginalChannelSubNumber: 1 WM/MediaOriginalBroadcastDateTime: 2011-10-18T07:00:00Z WM/MediaOriginalRunTime: 38375940244 WM/MediaIsStereo: true WM/MediaIsRepeat: false WM/MediaIsLive : false WM/MediaIsTape : false WM/MediaIsDelay : false WM/MediaIsSubtitled: false WM/MediaIsMovie : false WM/MediaIsPremiere: false WM/MediaIsFinale: false WM/MediaIsSAP : false WM/MediaIsSport : false WM/ParentalRating: TV-14 WM/Provider : MediaCenterDefault WM/VideoClosedCaptioning: true WM/WMRVEncodeTime: 2011-10-19 03:00:02 WM/WMRVSeriesUID: !MCSeries!01158361 WM/WMRVServiceID: !MCService!28455624 WM/WMRVProgramID: !MCProgram!264522248 WM/WMRVRequestID: 0 WM/WMRVScheduleItemID: 0 WM/WMRVQuality : 3 WM/WMRVOriginalSoftPrePadding: 420 WM/WMRVOriginalSoftPostPadding: 180 WM/WMRVHardPrePadding: -300 WM/WMRVHardPostPadding: 0 WM/WMRVATSCContent: true WM/WMRVDTVContent: true WM/WMRVHDContent: true Duration : 36582312388 WM/WMRVEndTime : 2011-10-19 04:01:00 WM/WMRVBitrate : 12.738619 WM/WMRVKeepUntil: 0 WM/WMRVActualSoftPrePadding: 297 WM/WMRVActualSoftPostPadding: 0 WM/WMRVContentProtected: false WM/WMRVContentProtectedPercent: 0 WM/WMRVExpirationSpan: 9223372036854775807 WM/WMRVInBandRatingSystem: 255 WM/WMRVInBandRatingLevel: 255 WM/WMRVInBandRatingAttributes: 0 WM/WMRVWatched : false WM/MediaThumbWidth: 352 WM/MediaThumbHeight: 198 WM/MediaThumbStride: 1056 WM/MediaThumbRet: 0 WM/MediaThumbRatingSystem: 255 WM/MediaThumbRatingLevel: 255 WM/MediaThumbRatingAttributes: 0 WM/MediaThumbAspectRatioX: 16 WM/MediaThumbAspectRatioY: 9 WM/MediaThumbTimeStamp: 4634350287386204132 Duration: 00:31:59.53, start: 1.797444, bitrate: 874 kb/s Stream #0:0[0xe](eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s Stream #0:1[0xf](eng): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s Stream #0:2[0x10]: Video: mpeg2video (Main), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 10000k tbn , 59.94 tbc Stream #0:3[0x11]: Subtitle: eia_608 Stream #0:4[0x0]: Attachment: mjpeg Metadata: title : TV Thumbnail [libxvid @ 0365d020] Xvid: Could not create encoder reference Output #0, mpegts, to 'test-csi.ts': Metadata: WM/MediaClassPrimaryID: db9830bd-3ab3-4fab-8a371a995f7ff74 WM/MediaClassSecondaryID: ba7f258a-62f7-47a9-b21f4651c42a000 Title : NCIS: Los Angeles WM/SubTitle : Sacrifice WM/SubTitleDescription: The LAPD asks NCIS for help when a case exposes a link between a Mexican drug cartel and a t errorist. genre : Drama;General;Series;Action/Adventure WM/OriginalReleaseTime: 0 WM/MediaCredits : Chris O'Donnell/LL Cool J/Linda Hunt/Daniela Ruah/Eric Christian Olsen/Barrett Foa/Renée Felice S mith;John P. Kousakis;;America Olivo/Brant Cotton/Doug Rao/Danny Nucci/Gino Montesinos/Farshad Farahat/Carlos Arellano/C heryl Texiera/Brian Michael Jones/Jen service_provider: KPHODT service_name : KPHODT (KPHO-DT) WM/MediaNetworkAffiliation: CBS Affiliate WM/MediaOriginalChannel: 5 WM/MediaOriginalChannelSubNumber: 1 WM/MediaOriginalBroadcastDateTime: 2011-10-18T07:00:00Z WM/MediaOriginalRunTime: 38375940244 WM/MediaIsStereo: true WM/MediaIsRepeat: false WM/MediaIsLive : false WM/MediaIsTape : false WM/MediaIsDelay : false WM/MediaIsSubtitled: false WM/MediaIsMovie : false WM/MediaIsPremiere: false WM/MediaIsFinale: false WM/MediaIsSAP : false WM/MediaIsSport : false WM/ParentalRating: TV-14 WM/Provider : MediaCenterDefault WM/VideoClosedCaptioning: true WM/WMRVEncodeTime: 2011-10-19 03:00:02 WM/WMRVSeriesUID: !MCSeries!01158361 WM/WMRVServiceID: !MCService!28455624 WM/WMRVProgramID: !MCProgram!264522248 WM/WMRVRequestID: 0 WM/WMRVScheduleItemID: 0 WM/WMRVQuality : 3 WM/WMRVOriginalSoftPrePadding: 420 WM/WMRVOriginalSoftPostPadding: 180 WM/WMRVHardPrePadding: -300 WM/WMRVHardPostPadding: 0 WM/WMRVATSCContent: true WM/WMRVDTVContent: true WM/WMRVHDContent: true Duration : 36582312388 WM/WMRVEndTime : 2011-10-19 04:01:00 WM/WMRVBitrate : 12.738619 WM/WMRVKeepUntil: 0 WM/WMRVActualSoftPrePadding: 297 WM/WMRVActualSoftPostPadding: 0 WM/WMRVContentProtected: false WM/WMRVContentProtectedPercent: 0 WM/WMRVExpirationSpan: 9223372036854775807 WM/WMRVInBandRatingSystem: 255 WM/WMRVInBandRatingLevel: 255 WM/WMRVInBandRatingAttributes: 0 WM/WMRVWatched : false WM/MediaThumbWidth: 352 WM/MediaThumbHeight: 198 WM/MediaThumbStride: 1056 WM/MediaThumbRet: 0 WM/MediaThumbRatingSystem: 255 WM/MediaThumbRatingLevel: 255 WM/MediaThumbRatingAttributes: 0 WM/MediaThumbAspectRatioX: 16 WM/MediaThumbAspectRatioY: 9 WM/MediaThumbTimeStamp: 4634350287386204132 Stream #0:0: Video: mpeg4 (xvid / 0x64697678), yuv420p, 720x405 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 90k tbn, 29.97 tbc Stream #0:1(eng): Audio: ac3, 48000 Hz, 5.1(side), 384 kb/s Stream mapping: Stream #0:2 -> #0:0 (mpeg2video -> libxvid) Stream #0:0 -> #0:1 (copy) Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
Here is the output that works.
ffmpeg.2311.exe -y -threads 0 -i "..\NCIS HD Small.wtv" -vf scale=720:400 -vcodec libxvid -acodec copy test-csi.ts ffmpeg version N-48065-g6375318 Copyright (c) 2000-2012 the FFmpeg developers built on Dec 21 2012 09:06:30 with gcc 4.7.2 (GCC) configuration: --enable-static --arch=x86 --target-os=mingw32 --cross-prefix=/home/rdp/dev/ffmpeg-windows-build-helper s/sandbox/mingw-w64-i686/bin/i686-w64-mingw32- --pkg-config=pkg-config --enable-gpl --enable-libx264 --enable-avisynth - -enable-libxvid --enable-libmp3lame --enable-version3 --enable-zlib --enable-librtmp --enable-libvorbis --enable-libtheo ra --enable-libspeex --enable-libopenjpeg --enable-gnutls --enable-libgsm --enable-libfreetype --enable-fontconfig --ena ble-libass --enable-libutvideo --enable-libopus --disable-w32threads --enable-frei0r --enable-filter=frei0r --enable-lib vo-aacenc --enable-bzlib --enable-libxavs --extra-cflags=-DPTW32_STATIC_LIB --enable-libopencore-amrnb --enable-libopenc ore-amrwb --enable-libvo-amrwbenc --enable-libschroedinger --enable-libbluray --enable-libvpx --enable-runtime-cpudetect libavutil 52. 12.100 / 52. 12.100 libavcodec 54. 81.100 / 54. 81.100 libavformat 54. 49.102 / 54. 49.102 libavdevice 54. 3.102 / 54. 3.102 libavfilter 3. 29.100 / 3. 29.100 libswscale 2. 1.103 / 2. 1.103 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [wtv @ 01eac9e0] reported file length (0x15b2b2fd0) exceeds number of available sectors (0xb0000000) [mpeg2video @ 01eaf0e0] mpeg_decode_postinit() failure Last message repeated 10 times Input #0, wtv, from '..\NCIS HD Small.wtv': Metadata: WM/MediaClassPrimaryID: db9830bd-3ab3-4fab-8a371a995f7ff74 WM/MediaClassSecondaryID: ba7f258a-62f7-47a9-b21f4651c42a000 Title : NCIS: Los Angeles WM/SubTitle : Sacrifice WM/SubTitleDescription: The LAPD asks NCIS for help when a case exposes a link between a Mexican drug cartel and a t errorist. genre : Drama;General;Series;Action/Adventure WM/OriginalReleaseTime: 0 WM/MediaCredits : Chris O'Donnell/LL Cool J/Linda Hunt/Daniela Ruah/Eric Christian Olsen/Barrett Foa/Renée Felice S mith;John P. Kousakis;;America Olivo/Brant Cotton/Doug Rao/Danny Nucci/Gino Montesinos/Farshad Farahat/Carlos Arellano/C heryl Texiera/Brian Michael Jones/Jen service_provider: KPHODT service_name : KPHODT (KPHO-DT) WM/MediaNetworkAffiliation: CBS Affiliate WM/MediaOriginalChannel: 5 WM/MediaOriginalChannelSubNumber: 1 WM/MediaOriginalBroadcastDateTime: 2011-10-18T07:00:00Z WM/MediaOriginalRunTime: 38375940244 WM/MediaIsStereo: true WM/MediaIsRepeat: false WM/MediaIsLive : false WM/MediaIsTape : false WM/MediaIsDelay : false WM/MediaIsSubtitled: false WM/MediaIsMovie : false WM/MediaIsPremiere: false WM/MediaIsFinale: false WM/MediaIsSAP : false WM/MediaIsSport : false WM/ParentalRating: TV-14 WM/Provider : MediaCenterDefault WM/VideoClosedCaptioning: true WM/WMRVEncodeTime: 2011-10-19 03:00:02 WM/WMRVSeriesUID: !MCSeries!01158361 WM/WMRVServiceID: !MCService!28455624 WM/WMRVProgramID: !MCProgram!264522248 WM/WMRVRequestID: 0 WM/WMRVScheduleItemID: 0 WM/WMRVQuality : 3 WM/WMRVOriginalSoftPrePadding: 420 WM/WMRVOriginalSoftPostPadding: 180 WM/WMRVHardPrePadding: -300 WM/WMRVHardPostPadding: 0 WM/WMRVATSCContent: true WM/WMRVDTVContent: true WM/WMRVHDContent: true Duration : 36582312388 WM/WMRVEndTime : 2011-10-19 04:01:00 WM/WMRVBitrate : 12.738619 WM/WMRVKeepUntil: 0 WM/WMRVActualSoftPrePadding: 297 WM/WMRVActualSoftPostPadding: 0 WM/WMRVContentProtected: false WM/WMRVContentProtectedPercent: 0 WM/WMRVExpirationSpan: 9223372036854775807 WM/WMRVInBandRatingSystem: 255 WM/WMRVInBandRatingLevel: 255 WM/WMRVInBandRatingAttributes: 0 WM/WMRVWatched : false WM/MediaThumbWidth: 352 WM/MediaThumbHeight: 198 WM/MediaThumbStride: 1056 WM/MediaThumbRet: 0 WM/MediaThumbRatingSystem: 255 WM/MediaThumbRatingLevel: 255 WM/MediaThumbRatingAttributes: 0 WM/MediaThumbAspectRatioX: 16 WM/MediaThumbAspectRatioY: 9 WM/MediaThumbTimeStamp: 4634350287386204132 Duration: 00:31:59.53, start: 1.797444, bitrate: 874 kb/s Stream #0:0[0xe](eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s Stream #0:1[0xf](eng): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s Stream #0:2[0x10]: Video: mpeg2video (Main), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 10000k tbn , 59.94 tbc Stream #0:3[0x11]: Subtitle: eia_608 Stream #0:4[0x0]: Attachment: mjpeg Metadata: title : TV Thumbnail Output #0, mpegts, to 'test-csi.ts': Metadata: WM/MediaClassPrimaryID: db9830bd-3ab3-4fab-8a371a995f7ff74 WM/MediaClassSecondaryID: ba7f258a-62f7-47a9-b21f4651c42a000 Title : NCIS: Los Angeles WM/SubTitle : Sacrifice WM/SubTitleDescription: The LAPD asks NCIS for help when a case exposes a link between a Mexican drug cartel and a t errorist. genre : Drama;General;Series;Action/Adventure WM/OriginalReleaseTime: 0 WM/MediaCredits : Chris O'Donnell/LL Cool J/Linda Hunt/Daniela Ruah/Eric Christian Olsen/Barrett Foa/Renée Felice S mith;John P. Kousakis;;America Olivo/Brant Cotton/Doug Rao/Danny Nucci/Gino Montesinos/Farshad Farahat/Carlos Arellano/C heryl Texiera/Brian Michael Jones/Jen service_provider: KPHODT service_name : KPHODT (KPHO-DT) WM/MediaNetworkAffiliation: CBS Affiliate WM/MediaOriginalChannel: 5 WM/MediaOriginalChannelSubNumber: 1 WM/MediaOriginalBroadcastDateTime: 2011-10-18T07:00:00Z WM/MediaOriginalRunTime: 38375940244 WM/MediaIsStereo: true WM/MediaIsRepeat: false WM/MediaIsLive : false WM/MediaIsTape : false WM/MediaIsDelay : false WM/MediaIsSubtitled: false WM/MediaIsMovie : false WM/MediaIsPremiere: false WM/MediaIsFinale: false WM/MediaIsSAP : false WM/MediaIsSport : false WM/ParentalRating: TV-14 WM/Provider : MediaCenterDefault WM/VideoClosedCaptioning: true WM/WMRVEncodeTime: 2011-10-19 03:00:02 WM/WMRVSeriesUID: !MCSeries!01158361 WM/WMRVServiceID: !MCService!28455624 WM/WMRVProgramID: !MCProgram!264522248 WM/WMRVRequestID: 0 WM/WMRVScheduleItemID: 0 WM/WMRVQuality : 3 WM/WMRVOriginalSoftPrePadding: 420 WM/WMRVOriginalSoftPostPadding: 180 WM/WMRVHardPrePadding: -300 WM/WMRVHardPostPadding: 0 WM/WMRVATSCContent: true WM/WMRVDTVContent: true WM/WMRVHDContent: true Duration : 36582312388 WM/WMRVEndTime : 2011-10-19 04:01:00 WM/WMRVBitrate : 12.738619 WM/WMRVKeepUntil: 0 WM/WMRVActualSoftPrePadding: 297 WM/WMRVActualSoftPostPadding: 0 WM/WMRVContentProtected: false WM/WMRVContentProtectedPercent: 0 WM/WMRVExpirationSpan: 9223372036854775807 WM/WMRVInBandRatingSystem: 255 WM/WMRVInBandRatingLevel: 255 WM/WMRVInBandRatingAttributes: 0 WM/WMRVWatched : false WM/MediaThumbWidth: 352 WM/MediaThumbHeight: 198 WM/MediaThumbStride: 1056 WM/MediaThumbRet: 0 WM/MediaThumbRatingSystem: 255 WM/MediaThumbRatingLevel: 255 WM/MediaThumbRatingAttributes: 0 WM/MediaThumbAspectRatioX: 16 WM/MediaThumbAspectRatioY: 9 WM/MediaThumbTimeStamp: 4634350287386204132 encoder : Lavf54.49.102 Stream #0:0: Video: mpeg4 (xvid / 0x64697678), yuv420p, 720x400 [SAR 80:81 DAR 16:9], q=2-31, 200 kb/s, 90k tbn, 29. 97 tbc Stream #0:1(eng): Audio: ac3, 48000 Hz, 5.1(side), 384 kb/s Stream mapping: Stream #0:2 -> #0:0 (mpeg2video -> libxvid) Stream #0:0 -> #0:1 (copy) Press [q] to stop, [?] for help frame= 112 fps= 96 q=31.0 Lsize= 476kB time=00:00:03.73 bitrate=1044.0kbits/s dup=34 drop=0 video:273kB audio:144kB subtitle:0 global headers:0kB muxing overhead 14.429182%
comment:6 by , 12 years ago
Resolution: | needs_more_info |
---|---|
Status: | closed → reopened |
comment:7 by , 12 years ago
Here is the sample output from MEncoder:
mencoder "..\NCIS HD Small.wtv" -ovc x264 -oac copy -vf scale=720:-10 -o csi-test.ts MEncoder Sherpya-SVN-r33883-4.2.5 (C) 2000-2011 MPlayer Team 163 audio & 368 video codecs success: format: 0 data: 0x0 - 0xc800000 Invalid seek to negative position ffffffffffffffff! libavformat file format detected. [wtv @ 01d33ad0] reported file length (0x15b2b2fd0) exceeds number of available sectors (0xb0000000) [mpeg2video @ 01dc1ef0] mpeg_decode_postinit() failure [mpeg2video @ 01dc1ef0] mpeg_decode_postinit() failure [mpeg2video @ 01dc1ef0] mpeg_decode_postinit() failure [mpeg2video @ 01dc1ef0] mpeg_decode_postinit() failure [mpeg2video @ 01dc1ef0] mpeg_decode_postinit() failure [mpeg2video @ 01dc1ef0] mpeg_decode_postinit() failure [mpeg2video @ 01dc1ef0] mpeg_decode_postinit() failure [mpeg2video @ 01dc1ef0] mpeg_decode_postinit() failure [mpeg2video @ 01dc1ef0] mpeg_decode_postinit() failure [mpeg2video @ 01dc1ef0] mpeg_decode_postinit() failure [mpeg2video @ 01dc1ef0] mpeg_decode_postinit() failure [lavf] stream 0: audio (ac3), -aid 0, -alang eng [lavf] stream 1: audio (ac3), -aid 1, -alang eng [lavf] stream 2: video (mpeg2video), -vid 0 [lavf] stream 3: subtitle (dvb-teletext), -sid 0 VIDEO: [MPG2] 1920x1080 0bpp 29.970 fps 38810.4 kbps (4737.6 kbyte/s) [V] filefmt:35 fourcc:0x3247504D size:1920x1080 fps:29.970 ftime:=0.0334 Opening video filter: [expand osd=1] Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1 Opening video filter: [scale w=720 h=-10] ========================================================================== Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family Selected video codec: [ffmpeg2] vfm: ffmpeg (FFmpeg MPEG-2) ========================================================================== audiocodec: framecopy (format=2000 chans=6 rate=48000 bits=16 B/s=48000 sample-0) Pos: 0.0s 1f ( 2%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0] [mpeg2video @ 01168d90]mpeg_decode_postinit() failure Error while decoding frame! Pos: 0.0s 2f ( 2%) 0.00fps Trem: 0min 0mb A-V:-0.003 [0:0] [mpeg2video @ 01168d90]mpeg_decode_postinit() failure Error while decoding frame! 1 duplicate frame(s)! Muxer frame buffer cannot allocate memory! Pos: 0.0s 3f ( 2%) 0.00fps Trem: 0min 0mb A-V:-0.007 [0:0] [mpeg2video @ 01168d90]mpeg_decode_postinit() failure Error while decoding frame! 1 duplicate frame(s)! Muxer frame buffer cannot allocate memory! Pos: 0.0s 4f ( 2%) 0.00fps Trem: 0min 0mb A-V:-0.010 [0:0] [mpeg2video @ 01168d90]mpeg_decode_postinit() failure Error while decoding frame! 1 duplicate frame(s)! Muxer frame buffer cannot allocate memory! Pos: 0.0s 5f ( 2%) 0.00fps Trem: 0min 0mb A-V:-0.013 [0:0] [mpeg2video @ 01168d90]mpeg_decode_postinit() failure Error while decoding frame! 1 duplicate frame(s)! Muxer frame buffer cannot allocate memory! Pos: 0.0s 6f ( 2%) 0.00fps Trem: 0min 0mb A-V:-0.017 [0:0] [mpeg2video @ 01168d90]mpeg_decode_postinit() failure Error while decoding frame! 1 duplicate frame(s)! Muxer frame buffer cannot allocate memory! Pos: 0.0s 7f ( 2%) 0.00fps Trem: 0min 0mb A-V:-0.020 [0:0] [mpeg2video @ 01168d90]mpeg_decode_postinit() failure Error while decoding frame! 1 duplicate frame(s)! Muxer frame buffer cannot allocate memory! Pos: 0.0s 8f ( 2%) 0.00fps Trem: 0min 0mb A-V:-0.023 [0:0] [mpeg2video @ 01168d90]mpeg_decode_postinit() failure Error while decoding frame! 1 duplicate frame(s)! Muxer frame buffer cannot allocate memory! Pos: 0.0s 9f ( 2%) 0.00fps Trem: 0min 0mb A-V:-0.027 [0:0] [mpeg2video @ 01168d90]mpeg_decode_postinit() failure Error while decoding frame! 1 duplicate frame(s)! Muxer frame buffer cannot allocate memory! Pos: 0.0s 10f ( 2%) 0.00fps Trem: 0min 0mb A-V:-0.030 [0:0] [mpeg2video @ 01168d90]mpeg_decode_postinit() failure Error while decoding frame! 1 duplicate frame(s)! Muxer frame buffer cannot allocate memory! Pos: 0.0s 11f ( 2%) 0.00fps Trem: 0min 0mb A-V:-0.033 [0:0] [mpeg2video @ 01168d90]mpeg_decode_postinit() failure Error while decoding frame! 1 duplicate frame(s)! Muxer frame buffer cannot allocate memory! Pos: 0.0s 12f ( 2%) 0.00fps Trem: 0min 0mb A-V:-0.037 [0:0] Movie-Aspect is 1.78:1 - prescaling to correct movie aspect. [swscaler @ 0114f094]BICUBIC scaler, from yuv420p to yuv420p using MMX2 x264 [info]: using SAR=80/81 x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 x264 [info]: profile High, level 3.0 1 duplicate frame(s)! Muxer frame buffer cannot allocate memory! Pos: 0.0s 13f ( 2%) 0.00fps Trem: 0min 0mb A-V:-0.040 [0:0] 1 duplicate frame(s)! Muxer frame buffer cannot allocate memory! Pos: 0.0s 14f ( 2%) 0.00fps Trem: 0min 0mb A-V:-0.043 [0:0] 1 duplicate frame(s)! Muxer frame buffer cannot allocate memory! Pos: 0.0s 15f ( 2%) 0.00fps Trem: 0min 0mb A-V:-0.047 [0:0] 1 duplicate frame(s)! Muxer frame buffer cannot allocate memory! Pos: 0.2s 22f ( 2%) 0.00fps Trem: 0min 0mb A-V:-0.070 [0:0] 1 duplicate frame(s)! Muxer frame buffer cannot allocate memory! Pos: 0.6s 32f ( 2%) 0.00fps Trem: 0min 0mb A-V:-0.070 [0:380] 1 duplicate frame(s)! Muxer frame buffer cannot allocate memory! Pos: 0.9s 42f ( 2%) 0.00fps Trem: 0min 0mb A-V:-0.070 [0:381] 1 duplicate frame(s)! Muxer frame buffer cannot allocate memory! Pos: 1.2s 52f ( 2%) 0.00fps Trem: 0min 0mb A-V:-0.070 [0:381] 1 duplicate frame(s)! Muxer frame buffer cannot allocate memory! Pos: 1.5s 60f ( 2%) 0.00fps Trem: 0min 0mb A-V:-0.063 [0:381] Flushing video frames. Writing header... ODML: vprp aspect is 16:9. Setting audio delay to 0.064s. Writing header... ODML: vprp aspect is 16:9. Setting audio delay to 0.064s. Writing header... ODML: vprp aspect is 16:9. Setting audio delay to 0.064s. Writing header... ODML: vprp aspect is 16:9. Setting audio delay to 0.064s. Writing header... ODML: vprp aspect is 16:9. Setting audio delay to 0.064s. Writing header... ODML: vprp aspect is 16:9. Setting audio delay to 0.064s. Writing header... ODML: vprp aspect is 16:9. Setting audio delay to 0.064s. Writing header... ODML: vprp aspect is 16:9. Setting audio delay to 0.064s. Writing header... ODML: vprp aspect is 16:9. Setting audio delay to 0.064s. Writing header... ODML: vprp aspect is 16:9. Setting audio delay to 0.064s. Writing header... ODML: vprp aspect is 16:9. Setting audio delay to 0.064s. Writing header... ODML: vprp aspect is 16:9. Setting audio delay to 0.064s. Writing header... ODML: vprp aspect is 16:9. Setting audio delay to 0.064s. Writing header... ODML: vprp aspect is 16:9. Setting audio delay to 0.064s. Writing header... ODML: vprp aspect is 16:9. Setting audio delay to 0.064s. Writing header... ODML: vprp aspect is 16:9. Setting audio delay to 0.064s. Writing header... ODML: vprp aspect is 16:9. Setting audio delay to 0.064s. Writing header... ODML: vprp aspect is 16:9. Setting audio delay to 0.064s. Writing header... ODML: vprp aspect is 16:9. Setting audio delay to 0.064s. Writing header... ODML: vprp aspect is 16:9. Setting audio delay to 0.064s. Writing index... Writing header... ODML: vprp aspect is 16:9. Setting audio delay to 0.064s. Video stream: 1331.282 kbit/s (166410 B/s) size: 249865 bytes 1.502 secs 60 frames Audio stream: 381.935 kbit/s (47741 B/s) size: 94720 bytes 1.984 secs x264 [info]: frame I:1 Avg QP:24.22 size: 21486 x264 [info]: frame P:25 Avg QP:26.76 size: 8423 x264 [info]: frame B:19 Avg QP:29.12 size: 938 x264 [info]: consecutive B-frames: 28.9% 35.6% 26.7% 8.9% x264 [info]: mb I I16..4: 14.4% 57.2% 28.4% x264 [info]: mb P I16..4: 2.8% 14.9% 4.1% P16..4: 36.3% 14.1% 7.2% 0.0% 0.0% skip:20.7% x264 [info]: mb B I16..4: 0.0% 0.2% 0.0% B16..8: 30.1% 1.9% 0.7% direct: 1.7% skip:65.4% L0:27.9% L1:67.6% BI: 4.4% x264 [info]: 8x8 transform intra:67.0% inter:71.3% x264 [info]: coded y,uvDC,uvAC intra: 70.1% 84.2% 43.6% inter: 21.7% 23.5% 3.2% x264 [info]: i16 v,h,dc,p: 20% 41% 4% 35% x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 16% 21% 15% 7% 9% 7% 8% 9% 9% x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 21% 29% 13% 6% 7% 6% 6% 6% 5% x264 [info]: i8c dc,h,v,p: 50% 23% 17% 10% x264 [info]: Weighted P-Frames: Y:24.0% UV:24.0% x264 [info]: ref P L0: 61.2% 19.5% 15.2% 3.7% 0.5% x264 [info]: ref B L0: 89.4% 9.7% 0.9% x264 [info]: ref B L1: 96.2% 3.8% x264 [info]: kb/s:1331.28
Here is what the output file resolution is:
ffmpeg.2311 -i test-csi.ts ffmpeg version N-48065-g6375318 Copyright (c) 2000-2012 the FFmpeg developers built on Dec 21 2012 09:06:30 with gcc 4.7.2 (GCC) configuration: --enable-static --arch=x86 --target-os=mingw32 --cross-prefix=/home/rdp/dev/ffmpeg-windows-build-helper s/sandbox/mingw-w64-i686/bin/i686-w64-mingw32- --pkg-config=pkg-config --enable-gpl --enable-libx264 --enable-avisynth - -enable-libxvid --enable-libmp3lame --enable-version3 --enable-zlib --enable-librtmp --enable-libvorbis --enable-libtheo ra --enable-libspeex --enable-libopenjpeg --enable-gnutls --enable-libgsm --enable-libfreetype --enable-fontconfig --ena ble-libass --enable-libutvideo --enable-libopus --disable-w32threads --enable-frei0r --enable-filter=frei0r --enable-lib vo-aacenc --enable-bzlib --enable-libxavs --extra-cflags=-DPTW32_STATIC_LIB --enable-libopencore-amrnb --enable-libopenc ore-amrwb --enable-libvo-amrwbenc --enable-libschroedinger --enable-libbluray --enable-libvpx --enable-runtime-cpudetect libavutil 52. 12.100 / 52. 12.100 libavcodec 54. 81.100 / 54. 81.100 libavformat 54. 49.102 / 54. 49.102 libavdevice 54. 3.102 / 54. 3.102 libavfilter 3. 29.100 / 3. 29.100 libswscale 2. 1.103 / 2. 1.103 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 Input #0, mpegts, from 'test-csi.ts': Duration: 00:00:03.70, start: 1.400000, bitrate: 1053 kb/s Program 1 Metadata: service_name : KPHODT (KPHO-DT) service_provider: KPHODT Stream #0:0[0x100]: Video: mpeg4 (Simple Profile) ([16][0][0][0] / 0x0010), yuv420p, 720x400 [SAR 80:81 DAR 16:9], 2 9.97 fps, 29.97 tbr, 90k tbn, 29.97 tbc Stream #0:1[0x101](eng): Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, 5.1(side), fltp, 384 kb/s At least one output file must be specified
comment:8 by , 12 years ago
This all can be done with available filters. I do not see point in adding cryptic aliases.
comment:9 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
Note that scale filter now accepts expressions for w and h so all this mentioned above can be done.
Please provide a short MPlayer / MEncoder command line and a ffmpeg command line that show the different effects.