[FFmpeg-user] Setting option video_size / progressive / interlaced

billyx billyx at gmx.at
Mon Sep 30 16:59:08 CEST 2013


Hello!

I have some (I think) raw videos I would like to convert to a version
playable by the usual viodea players (e.g. VLC). I have tried for some
houres with differen ffmpeg options but was not able te get the correct
result. I'm using the latest Windows version N-56749-g7057cc8 but also tried
with linux versions. It would be nice to get a suggestin how to solve this.

The command line I think should be correct is: 
ffmpeg.exe -f h264 -r 12 -s 704x576 -i
ch00000000000001-130930-095853-105853-01p101000000.264 -vcodec copy -acodec
copy test.mp4

But then I get the error message "Option video_size not found."

The information reported by MediaInfo is:
Format                                   : AVC
Format/Info                              : Advanced Video Codec
File size                                : 435 MiB
Video
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : Baseline at L2.1
Format settings, CABAC                   : No
Format settings, ReFrames                : 1 frame
Format settings, GOP                     : M=1, N=25
Width                                    : 704 pixels
Height                                   : 288 pixels
Display aspect ratio                     : 2.40:1
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive

Invoking ffmpeg without the -s option returns this:
ffmpeg version N-56749-g7057cc8 Copyright (c) 2000-2013 the FFmpeg
developers
  built on Sep 29 2013 18:07:44 with gcc 4.8.1 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r
--enable-gnu
tls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca
--enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmodplug
--ena
ble-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libopenjpeg --enable-libopus --enable-librtmp
--enable-libschroedinger -
-enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame
--enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc
--enable-li
bvorbis --enable-libvpx --enable-libwavpack --enable-libx264
--enable-libxavs --enable-libxvid --enable-zlib
  libavutil      52. 46.100 / 52. 46.100
  libavcodec     55. 33.101 / 55. 33.101
  libavformat    55. 18.104 / 55. 18.104
  libavdevice    55.  3.100 / 55.  3.100
  libavfilter     3. 88.100 /  3. 88.100
  libswscale      2.  5.100 /  2.  5.100
  libswresample   0. 17.103 /  0. 17.103
  libpostproc    52.  3.100 / 52.  3.100
[h264 @ 000000000276a680] pps_id out of range
[h264 @ 000000000276a680] slice type too large (32) at 0 0
[h264 @ 000000000276a680] decode_slice_header error
[h264 @ 000000000276a680] no frame!
[h264 @ 000000000276a680] non-existing PPS referenced
[h264 @ 000000000276a680] non-existing PPS 0 referenced
[h264 @ 000000000276a680] decode_slice_header error
[h264 @ 000000000276a680] no frame!
[h264 @ 000000000276a680] non-existing PPS referenced
[h264 @ 000000000276a680] non-existing PPS 0 referenced
[h264 @ 000000000276a680] decode_slice_header error
[h264 @ 000000000276a680] no frame!
[h264 @ 000000000276a680] non-existing PPS referenced
[h264 @ 000000000276a680] non-existing PPS 0 referenced
[h264 @ 000000000276a680] decode_slice_header error
[h264 @ 000000000276a680] no frame!
[h264 @ 000000000276a680] non-existing PPS referenced
[h264 @ 000000000276a680] non-existing PPS 0 referenced
[h264 @ 000000000276a680] decode_slice_header error
[h264 @ 000000000276a680] no frame!
[h264 @ 000000000276a680] non-existing PPS referenced
[h264 @ 000000000276a680] non-existing PPS 0 referenced
[h264 @ 000000000276a680] decode_slice_header error
[h264 @ 000000000276a680] no frame!
Input #0, h264, from
'ch00000000000001-130930-095853-105853-01p101000000.264':
  Duration: N/A, bitrate: N/A
    Stream #0:0: Video: h264 (Constrained Baseline), yuv420p, 704x288, 12
fps, 12 tbr, 1200k tbn, 24 tbc
File 'test.mp4' already exists. Overwrite ? [y/N] y
Output #0, mp4, to 'test.mp4':
  Metadata:
    encoder         : Lavf55.18.104
    Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 704x288,
q=2-31, 12 fps, 12288 tbn, 12 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
[NULL @ 000000000276a680] SEI type 193 truncated at 16
[NULL @ 000000000276a680] missing picture in access unit with size 220
[NULL @ 000000000276a680] sps_id out of range
[NULL @ 000000000276a680] SEI type 171 truncated at 16
[NULL @ 000000000276a680] sps_id out of rangeme=00:06:07.50 bitrate=
992.9kbits/s
[NULL @ 000000000276a680] missing picture in access unit with size 161
[NULL @ 000000000276a680] non-existing PPS referenced
[NULL @ 000000000276a680] Reducing left cropping to 0 chroma samples to
preserve alignment.
[NULL @ 000000000276a680] sps_id out of range
[NULL @ 000000000276a680] SEI type 14 truncated at 16
[NULL @ 000000000276a680] SEI type 224 truncated at 16
[NULL @ 000000000276a680] missing picture in access unit with size 11
[NULL @ 000000000276a680] FMO not supported
[NULL @ 000000000276a680] missing picture in access unit with size
156015.5kbits/s
[NULL @ 000000000276a680] SEI type 1 truncated at 72
[NULL @ 000000000276a680] missing picture in access unit with size 325
[NULL @ 000000000276a680] missing picture in access unit with size 73
[NULL @ 000000000276a680] FMO not supportedB time=00:27:54.66
bitrate=1014.1kbits/s
[NULL @ 000000000276a680] missing picture in access unit with size 11
[NULL @ 000000000276a680] sps_id out of range
[NULL @ 000000000276a680] non-existing PPS referenced
[NULL @ 000000000276a680] FMO not supported
[NULL @ 000000000276a680] reference overflow (pps)
[NULL @ 000000000276a680] SEI type 207 truncated at 166:48.33
bitrate=1006.4kbits/s
[NULL @ 000000000276a680] sps_id out of rangeime=00:47:39.91
bitrate=1014.7kbits/s
[NULL @ 000000000276a680] SEI type 92 truncated at 16
[NULL @ 000000000276a680] FMO not supported time=00:55:07.50
bitrate=1013.8kbits/s
[NULL @ 000000000276a680] non-existing PPS referenced
[NULL @ 000000000276a680] illegal aspect ratio
frame=43228 fps=10074 q=-1.0 Lsize=  445137kB time=01:00:02.83
bitrate=1012.1kbits/s
video:444866kB audio:0kB subtitle:0 global headers:0kB muxing overhead
0.060759%

But the outputed video is only the half height it should be.

I think the resolution should be 704x576 and perhaps interlaced instead of
progressive.

Has somebody a suggestion how to recode this correctly?






--
View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Setting-option-video-size-progressive-interlaced-tp4661522.html
Sent from the FFmpeg-users mailing list archive at Nabble.com.


More information about the ffmpeg-user mailing list