[FFmpeg-user] ffmpeg convert a blue-ray file is so slowly
lym
xdh4025 at 163.com
Fri Jun 13 05:05:35 CEST 2014
Hi
I'm using ffmpeg convert video. but a blue-ray film is very slowly. I doubt the question is the file has multiple channels.
my ffprobe cmd result is :
{
"streams": [
{
"index": 0,
"codec_name": "h264",
"codec_long_name": "H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10",
"profile": "High",
"codec_type": "video",
"codec_time_base": "1/48",
"codec_tag_string": "[0][0][0][0]",
"codec_tag": "0x0000",
"width": 1280,
"height": 692,
"has_b_frames": 2,
"sample_aspect_ratio": "1:1",
"display_aspect_ratio": "320:173",
"pix_fmt": "yuv420p",
"level": 40,
"r_frame_rate": "24/1",
"avg_frame_rate": "24/1",
"time_base": "1/1000",
"start_pts": 0,
"start_time": "0.000000",
"disposition": {
"default": 1,
"dub": 0,
"original": 0,
"comment": 0,
"lyrics": 0,
"karaoke": 0,
"forced": 0,
"hearing_impaired": 0,
"visual_impaired": 0,
"clean_effects": 0,
"attached_pic": 0
}
},
{
"index": 1,
"codec_name": "dca",
"codec_long_name": "DCA (DTS Coherent Acoustics)",
"profile": "DTS",
"codec_type": "audio",
"codec_time_base": "1/48000",
"codec_tag_string": "[0][0][0][0]",
"codec_tag": "0x0000",
"sample_fmt": "fltp",
"sample_rate": "48000",
"channels": 6,
"channel_layout": "5.1(side)",
"bits_per_sample": 0,
"r_frame_rate": "0/0",
"avg_frame_rate": "0/0",
"time_base": "1/1000",
"start_pts": 0,
"start_time": "0.000000",
"bit_rate": "1536000",
"disposition": {
"default": 1,
"dub": 0,
"original": 0,
"comment": 0,
"lyrics": 0,
"karaoke": 0,
"forced": 0,
"hearing_impaired": 0,
"visual_impaired": 0,
"clean_effects": 0,
"attached_pic": 0
},
"tags": {
"language": "kor"
}
},
{
"index": 2,
"codec_name": "subrip",
"codec_long_name": "SubRip subtitle",
"codec_type": "subtitle",
"codec_time_base": "1/1000",
"codec_tag_string": "[0][0][0][0]",
"codec_tag": "0x0000",
"r_frame_rate": "0/0",
"avg_frame_rate": "0/0",
"time_base": "1/1000",
"start_pts": 0,
"start_time": "0.000000",
"duration_ts": 8016000,
"duration": "8016.000000",
"disposition": {
"default": 1,
"dub": 0,
"original": 0,
"comment": 0,
"lyrics": 0,
"karaoke": 0,
"forced": 0,
"hearing_impaired": 0,
"visual_impaired": 0,
"clean_effects": 0,
"attached_pic": 0
},
"tags": {
"language": "eng"
}
},
{
"index": 3,
"codec_name": "pgssub",
"codec_long_name": "HDMV Presentation Graphic Stream subtitles",
"codec_type": "subtitle",
"codec_time_base": "1/1000",
"codec_tag_string": "[0][0][0][0]",
"codec_tag": "0x0000",
"r_frame_rate": "0/0",
"avg_frame_rate": "0/0",
"time_base": "1/1000",
"start_pts": 0,
"start_time": "0.000000",
"duration_ts": 8016000,
"duration": "8016.000000",
"disposition": {
"default": 0,
"dub": 0,
"original": 0,
"comment": 0,
"lyrics": 0,
"karaoke": 0,
"forced": 0,
"hearing_impaired": 0,
"visual_impaired": 0,
"clean_effects": 0,
"attached_pic": 0
},
"tags": {
"language": "kor"
}
},
{
"index": 4,
"codec_name": "pgssub",
"codec_long_name": "HDMV Presentation Graphic Stream subtitles",
"codec_type": "subtitle",
"codec_time_base": "1/1000",
"codec_tag_string": "[0][0][0][0]",
"codec_tag": "0x0000",
"r_frame_rate": "0/0",
"avg_frame_rate": "0/0",
"time_base": "1/1000",
"start_pts": 0,
"start_time": "0.000000",
"duration_ts": 8016000,
"duration": "8016.000000",
"disposition": {
"default": 0,
"dub": 0,
"original": 0,
"comment": 0,
"lyrics": 0,
"karaoke": 0,
"forced": 0,
"hearing_impaired": 0,
"visual_impaired": 0,
"clean_effects": 0,
"attached_pic": 0
},
"tags": {
"language": "eng"
}
}
],
"format": {
"filename": "/home/admin/tomcat/webapps/ROOT/ttt.mkv",
"nb_streams": 5,
"nb_programs": 0,
"format_name": "matroska,webm",
"format_long_name": "Matroska / WebM",
"start_time": "0.000000",
"duration": "8016.000000",
"size": "7057302783",
"bit_rate": "7043216",
"probe_score": 100,
"tags": {
"encoder": "libebml v1.2.3 + libmatroska v1.3.0",
"creation_time": "2012-01-08 12:50:54"
}
}
}
and my ffmpeg command is :
/home/admin/mts/jobagent/tools/ffmpeg -y -vsync 1 -async 1 -ss 7008 -t 12.0 -i "/home/admin/tomcat/webapps/ROOT/ttt.mkv" -map 0:0 -map 0:1 -codec:v libx264 -codec:a libfaac -b:v 200k -s 590*320 -f ssegment -segment_list_type m3u8 -segment_list "EAATEA-.m3u8" -segment_list_flags +live -segment_time 4 "fname=00000584_%08d.ts"
The command execute very slowly , who had handle the thing.
Thank you very much!
More information about the ffmpeg-user
mailing list