Opened 7 years ago

Closed 7 years ago

#7168 closed defect (duplicate)

Making xdcam hd422 file (compatible to sony devices) from ffmpeg

Reported by: vimlesh1975 Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Sir
We are from Doordarshan Mumbai India.
We have many Xdcam HD1550, 1500, 1600, xds-pd 1000 and pdw-u2 devices.
We are using it very successfully for recording and playback.

Now we have large number of hd files which we want to transcode to xdcam hd 422 and put on XDcam hd1550 or any other sony device.

I am using ffmpeg for transcoding with following command.

c:\casparcg\mydata\ffmpeg\ffmpeg.exe -i c:/casparcg/_media/go1080p25.mp4 -c:a pcm_s24le -ar 48000 -ac 1 -map 0:0 -map 0:1 -map 0:1 -map 0:1 -map 0:1 -map 0:1 -map 0:1 -map 0:1 -map 0:1 -vf copy,il=l=d:c=d,colorspace=fast=1:all=bt709:format=yuv422p:ispace=bt709:itrc=bt709:iprimaries=bt709,il=l=i:c=i,fps=25,setfield=tff,setdar=dar=16/9,setsar=sar=1 -field_order tt -top 1 -flags +ildct+ilme -alternate_scan 1 -g 12 -timecode 01:00:00:00 -c:v mpeg2video -r 25 -pix_fmt yuv422p -aspect 16:9 -color_range 1 -color_primaries 1 -color_trc 1 -colorspace 1 -non_linear_quant 1 -dc 11 -intra_vlc 1 -qmin 1 -lmin "1*QP2LAMBDA" -qmax 28 -lmax "56*QP2LAMBDA" -b:v 50000000 -minrate 50000000 -maxrate 50000000 -minrate 50000000 -bufsize 17825792 -bf 2 -metadata creation_time=now -vtag xd5c -intra_matrix 8,17,17,19,17,19,21,21,21,21,21,21,23,22,23,24,24,24,24,24,24,24,25,25,25,26,26,26,29,29,29,26,26,26,25,25,27,27,28,29,29,29,31,32,32,31,31,30,30,33,33,34,34,34,38,38,37,37,43,43,44,50,50,58 -inter_matrix 16,17,17,18,18,18,19,19,19,19,20,20,20,20,20,21,21,21,21,21,21,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,24,24,24,25,24,24,24,25,26,26,26,26,25,27,27,27,27,27,28,28,28,28,30,30,30,31,31,33 -f mxf f:/casparcg/_media/d108.mxf

FFmpeg console output is bellow

ffmpeg version 3.4.1 Copyright (c) 2000-2017 the FFmpeg developers

built with gcc 7.2.0 (GCC)
configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-cuda --enable-cuvid --enable-d3d11va --enable-nvenc --enable-dxva2 --enable-avisynth --enable-libmfx
libavutil 55. 78.100 / 55. 78.100
libavcodec 57.107.100 / 57.107.100
libavformat 57. 83.100 / 57. 83.100
libavdevice 57. 10.100 / 57. 10.100
libavfilter 6.107.100 / 6.107.100
libswscale 4. 8.100 / 4. 8.100
libswresample 2. 9.100 / 2. 9.100
libpostproc 54. 7.100 / 54. 7.100

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'c:/casparcg/_media/go1080p25.mp4':

Metadata:

major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
creation_time : 1970-01-01T00:00:00.000000Z
encoder : Lavf53.3.0

Duration: 00:00:17.81, start: 0.000000, bitrate: 7499 kb/s

Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 7342 kb/s, 25 fps, 25 tbr, 25 tbn, 50 tbc (default)
Metadata:

creation_time : 1970-01-01T00:00:00.000000Z
handler_name : VideoHandler

Stream #0:1(eng): Audio: mp3 (mp4a / 0x6134706D), 48000 Hz, stereo, s16p, 256 kb/s (default)
Metadata:

creation_time : 1970-01-01T00:00:00.000000Z
handler_name : SoundHandler

Stream mapping:

Stream #0:0 -> #0:0 (h264 (native) -> mpeg2video (native))
Stream #0:1 -> #0:1 (mp3 (native) -> pcm_s24le (native))
Stream #0:1 -> #0:2 (mp3 (native) -> pcm_s24le (native))
Stream #0:1 -> #0:3 (mp3 (native) -> pcm_s24le (native))
Stream #0:1 -> #0:4 (mp3 (native) -> pcm_s24le (native))
Stream #0:1 -> #0:5 (mp3 (native) -> pcm_s24le (native))
Stream #0:1 -> #0:6 (mp3 (native) -> pcm_s24le (native))
Stream #0:1 -> #0:7 (mp3 (native) -> pcm_s24le (native))
Stream #0:1 -> #0:8 (mp3 (native) -> pcm_s24le (native))

Press [q] to stop, ? for help
[Parsed_colorspace_2 @ 000002377bc32ce0] Input range not set, assuming tv/mpeg
Output #0, mxf, to 'f:/casparcg/_media/d108.mxf':

Metadata:

major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
creation_time : now
timecode : 01:00:00:00
encoder : Lavf57.83.100
Stream #0:0(eng): Video: mpeg2video (4:2:2) (xd5c / 0x63356478), yuv422p(tv, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], q=1-28, 50000 kb/s, 25 fps, 25 tbn, 25 tbc (default)
Metadata:

creation_time : 1970-01-01T00:00:00.000000Z
handler_name : VideoHandler
encoder : Lavc57.107.100 mpeg2video

Side data:

cpb: bitrate max/min/avg: 50000000/50000000/50000000 buffer size: 17825792 vbv_delay: -1

Stream #0:1(eng): Audio: pcm_s24le, 48000 Hz, mono, s32, 1152 kb/s (default)
Metadata:

creation_time : 1970-01-01T00:00:00.000000Z
handler_name : SoundHandler
encoder : Lavc57.107.100 pcm_s24le

Stream #0:2(eng): Audio: pcm_s24le, 48000 Hz, mono, s32, 1152 kb/s (default)
Metadata:

creation_time : 1970-01-01T00:00:00.000000Z
handler_name : SoundHandler
encoder : Lavc57.107.100 pcm_s24le

Stream #0:3(eng): Audio: pcm_s24le, 48000 Hz, mono, s32, 1152 kb/s (default)
Metadata:

creation_time : 1970-01-01T00:00:00.000000Z
handler_name : SoundHandler
encoder : Lavc57.107.100 pcm_s24le

Stream #0:4(eng): Audio: pcm_s24le, 48000 Hz, mono, s32, 1152 kb/s (default)
Metadata:

creation_time : 1970-01-01T00:00:00.000000Z
handler_name : SoundHandler
encoder : Lavc57.107.100 pcm_s24le

Stream #0:5(eng): Audio: pcm_s24le, 48000 Hz, mono, s32, 1152 kb/s (default)
Metadata:

creation_time : 1970-01-01T00:00:00.000000Z
handler_name : SoundHandler
encoder : Lavc57.107.100 pcm_s24le

Stream #0:6(eng): Audio: pcm_s24le, 48000 Hz, mono, s32, 1152 kb/s (default)
Metadata:

creation_time : 1970-01-01T00:00:00.000000Z
handler_name : SoundHandler
encoder : Lavc57.107.100 pcm_s24le

Stream #0:7(eng): Audio: pcm_s24le, 48000 Hz, mono, s32, 1152 kb/s (default)
Metadata:

creation_time : 1970-01-01T00:00:00.000000Z
handler_name : SoundHandler
encoder : Lavc57.107.100 pcm_s24le

Stream #0:8(eng): Audio: pcm_s24le, 48000 Hz, mono, s32, 1152 kb/s (default)
Metadata:

creation_time : 1970-01-01T00:00:00.000000Z
handler_name : SoundHandler
encoder : Lavc57.107.100 pcm_s24le

frame= 436 fps= 40 q=4.5 Lsize= 127615kB time=00:00:17.80 bitrate=58705.2kbits/s speed=1.65x
video:106370kB audio:20034kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.957997%

Now I am getting a file that has every property of a sample XDcam hd422 file but it is not being written on Disc. Error is following.

"An unexpected error is keeping you from copying the file. error 0x8007054F: An internal error occured."

My transcoded File is here.
https://goo.gl/yd2VBS

So My question is what is it which is necessary to make a file compatible to sony devices.

Change History (1)

comment:1 by Carl Eugen Hoyos, 7 years ago

Component: ffmpegundetermined
Keywords: xdcam hd422 removed
Resolution: duplicate
Status: newclosed
Type: enhancementdefect
Version: 3.4unspecified

Duplicate of ticket #5097. Please remember that only current FFmpeg git head is supported here.

Note: See TracTickets for help on using tickets.