[FFmpeg-user] Convert progressive MXF to interlaced

Alex doenerbudenchef at yahoo.de
Fri Aug 23 16:49:26 CEST 2013


Okay, I've tried a IMX 50 ecoding first, because this is basically documented
here (1080p mxf to 1080i with -f mxf produces buffer underruns):

http://www.itbroadcastanddigitalcinema.com/ffmpeg_howto.html

It seems to work, but I have a problem with mapping the stereo audio channel
to separate mono streams. When I use the "map_channel" option, ffmpeg also
says the "This syntax is deprecated"...

C:\>ffmpeg -i test.mp4 -vf
"yadif=1:0:0,scale=720:576,pad=720:608:0:32,tinterlace=interleave_top" -r 25
-aspect 16:9 -top 1 -pix_fmt yuv422p -vcodec mpeg2video -intra_vlc 1
-non_linear_quant 1 -q:v 1 -ps 1 -qmax 3 -rc_max_vbv_use 1 -flags
+ildct+low_delay -rc_min_v
bv_use 1 -minrate 50000k -maxrate 50000k -b:v 50000k -bufsize 2000000 -g 1
-top 1 -rc_init_occupancy 2000000 -rc_buf_aggressivity 0.25 -dc 10 -map 0:0
-map 0:1 -map_channel 0.1.0:0.1 -map_channel 0.1.1:0.2 -acodec pcm_s24le -ar
48000 -ac 2 output.mxf

ffmpeg version N-54207-ge59fb3f Copyright (c) 2000-2013 the FFmpeg
developers
  built on Jun 25 2013 21:55:00 with gcc 4.7.3 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r
--enable-gnutls --enable-iconv --enable-libass --enable-libbluray
--enable-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-libvo-aacenc
--enable-libvo-amrwbenc --enable-libvorbis --enable-lib
vpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
  libavutil      52. 37.101 / 52. 37.101
  libavcodec     55. 17.100 / 55. 17.100
  libavformat    55. 10.100 / 55. 10.100
  libavdevice    55.  2.100 / 55.  2.100
  libavfilter     3. 77.101 /  3. 77.101
  libswscale      2.  3.100 /  2.  3.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf55.10.100
  Duration: 00:00:26.20, start: 0.023220, bitrate: 10416 kb/s
    Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p,
1920x1080 [SAR 1:1 DAR 16:9], 10151 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo,
fltp, 260 kb/s
    Metadata:
      handler_name    : SoundHandler
File 'output.mxf' already exists. Overwrite ? [y/N] y
-map_channel is forwarded to lavfi similarly to -af pan=0x4:c0=c0.
[pan @ 00000000024aece0] This syntax is deprecated. Use '|' to separate the
list items.
[pan @ 00000000024aece0] Pure channel mapping detected: 0
Output #0, mxf, to 'output.mxf':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf55.10.100
    Stream #0:0(und): Video: mpeg2video, yuv422p, 720x608 [SAR 608:405 DAR
16:9], q=2-3, 50000 kb/s, 25 tbn, 25 tbc
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: pcm_s24le, 48000 Hz, stereo, s32, 2304 kb/s
    Metadata:
      handler_name    : SoundHandler
Stream mapping:
  Stream #0:0 -> #0:0 (h264 -> mpeg2video)
  Stream #0:1 -> #0:1 (aac -> pcm_s24le)
Press [q] to stop, [?] for help
frame=  212 fps= 36 q=1.0 Lsize=   54388kB time=00:00:08.67
bitrate=51366.1kbits/s dup=1 drop=0
video:51758kB audio:2442kB subtitle:0 global headers:0kB muxing overhead
0.345740%

Thanks,
Alex



--
View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Convert-progressive-MXF-to-interlaced-tp4660746p4660888.html
Sent from the FFmpeg-users mailing list archive at Nabble.com.


More information about the ffmpeg-user mailing list