Opened 8 years ago

Closed 8 years ago

#4994 closed defect (invalid)

Wrong video format (distorted) after converting

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

Description

Summary of the bug: Videos are converting to mp4 files. There are 4 presets with different video resolutions.
Generally it's working.
But some videos get's distorted in few resolutions.
For example: http://gravity-magazine.de/de/videos/dirt-jumpstreet-produzierte-videos-crashes-kurze-clips/3763
Watching this movie in 240p, 480p is still okay.
But when you switch to 720p or 1080p it's totally distorted.

I think, it only happens when the source video has a smaller resolution then the preset.

Video codec: H.264 / AVC / MPEG-4AVC / MPEG-4 part 10 (encoders: libx264 libx264rgb)
Aspect mode: Preserve aspect ratio (default)
Upscale: checked

How to reproduce:

% ffmpeg -i input ... output
ffmpeg version 2015-04-08-a0854c0
built on ...

Patches should be submitted to the ffmpeg-devel mailing list and not this bug tracker.

Change History (4)

comment:1 by Carl Eugen Hoyos, 8 years ago

Keywords: distorted wrong format converted format removed

Please provide the command line that allows to reproduce the issue together with the complete, uncut console output to make this a valid ticket.

comment:2 by marsz82, 8 years ago

Hello, sorry,

I have few log messages. This helps?

1)
_ Video into foreach: p1080 :: array ( 'pid' => '4', 'name' => 'p1080', 'description' => , 'settings' => array ( 'video_extension' => 'mp4', 'video_codec' => 'h264', 'video_preset' => , 'video_quality' => '3', 'video_speed' => '3', 'wxh' => '1080x720', 'video_aspectmode' => 'preserve', 'video_upscale' => 1, 'audio_codec' => 'aac', 'audio_quality' => '3', 'deinterlace' => 'on', 'max_frame_rate' => , 'frame_rate' => , 'keyframe_interval' => , 'video_bitrate' => , 'bitrate_cap' => , 'buffer_size' => , 'one_pass' => 1, 'skip_video' => 0, 'pixel_format' => , 'h264_profile' => , 'audio_bitrate' => , 'audio_channels' => '2', 'audio_sample_rate' => , 'skip_audio' => 0, 'video_watermark_enabled' => 0, 'video_watermark_fid' => 0, 'video_watermark_x' => '5', 'video_watermark_y' => '5', 'video_watermark_width' => , 'video_watermark_height' => , 'video_watermark_origin' => 'content', 'autolevels' => 0, 'deblock' => 0, 'denoise' => , 'clip_start' => , 'clip_length' => , ), 'module' => NULL, 'overridden' => NULL, )stdClass::set_state(array( 'vid' => '374', 'fid' => '7071', 'entity_type' => 'node', 'entity_id' => '4263', 'status' => '1', 'dimensions' => '640x360', 'duration' => NULL, 'started' => 1446916172, 'completed' => '0', 'statusupdated' => 1446916172, 'data' => array ( 'field_name' => 'field_video', 'langcode' => 'und', 'delta' => 0, ), 'uid' => '1', 'filename' => 'img_4323.mp4', 'uri' => 'storage-api://videos/original/img_4323.mp4', 'filemime' => 'video/mp4; charset=binary', 'filesize' => '1608135', 'timestamp' => '1446916092', 'type' => 'video', 'origname' => 'img_4323.mp4', 'filealias' => NULL, 'video_status' => 5, ))

2)
—— After execute TranscoderAbstractionFactoryFfmpeg::set_state(array( 'transcoder' => PHPVideoToolkit::set_state(array( 'version' => '0.1.9', '_messages' => array ( 'generic_temp_404' => 'The temporary directory does not exist.', 'generic_temp_writable' => 'The temporary directory is not write-able by the web server.', 'inputFileHasVideo_no_input' => 'Input file does not exist so no information can be retrieved.', 'inputFileHasAudio_no_input' => 'Input file does not exist so no information can be retrieved.', 'getFileInfo_no_input' => 'Input file does not exist so no information can be retrieved.', 'streamFLV_no_input' => 'Input file has not been set so the FLV cannot be streamed.', 'streamFLV_passed_eof' => 'You have tried to stream to a point in the file that does not exit.', 'setInputFile_file_existence' => 'Input file "#file" does not exist', 'extractAudio_valid_format' => 'Value "#format" set from $toolkit->extractAudio, is not a valid audio format. Valid values ffmpeg self::FORMAT_AAC, PHPVideoToolkit::FORMAT_AIFF, PHPVideoToolkit::FORMAT_MP2, PHPVideoToolkit::FORMAT_MP3, PHPVideoToolkit::FORMAT_MP4, PHPVideoToolkit::FORMAT_MPEG4, PHPVideoToolkit::FORMAT_M4A or PHPVideoToolkit::FORMAT_WAV. If you wish to specifically try to set another format you should use the advanced function $toolkit->addCommand. Set $command to "-f" and $argument to your required value.', 'extractFrame_video_frame_rate_404' => 'You have attempted to extract a thumbnail from a video while automagically guessing the framerate of the video, but the framerate could not be accessed. You can remove this error by manually setting the frame rate of the video.', 'extractFrame_video_info_404' => 'You have attempted to extract a thumbnail from a video and check to see if the thumbnail exists, however it was not possible to access the video information. Please check your temporary directory permissions for read/write access by the webserver.', 'extractFrame_video_frame_count' => 'You have attempted to extract a thumbnail from a video but the thumbnail you are trying to extract does not exist in the video.', 'extractFrames_video_begin_frame_count' => 'You have attempted to extract thumbnails from a video but the thumbnail you are trying to start the extraction from does not exist in the video.', 'extractFrames_video_end_frame_count' => 'You have attempted to extract thumbnails from a video but the thumbnail you are trying to end the extraction at does not exist in the video.', 'setFormat_valid_format' => 'Value "#format" set from $toolkit->setFormat, is not a valid format. Valid values are PHPVideoToolkit::FORMAT_3GP2, PHPVideoToolkit::FORMAT_3GP, PHPVideoToolkit::FORMAT_AAC, PHPVideoToolkit::FORMAT_AIFF, PHPVideoToolkit::FORMAT_AMR, PHPVideoToolkit::FORMAT_ASF, PHPVideoToolkit::FORMAT_AVI, PHPVideoToolkit::FORMAT_FLV, PHPVideoToolkit::FORMAT_GIF, PHPVideoToolkit::FORMAT_MJ2, PHPVideoToolkit::FORMAT_MP2, PHPVideoToolkit::FORMAT_MP3, PHPVideoToolkit::FORMAT_MP4, PHPVideoToolkit::FORMAT_MPEG4, PHPVideoToolkit::FORMAT_M4A, PHPVideoToolkit::FORMAT_MPEG, PHPVideoToolkit::FORMAT_MPEG1, PHPVideoToolkit::FORMAT_MPEG2, PHPVideoToolkit::FORMAT_MPEGVIDEO, PHPVideoToolkit::FORMAT_PSP, PHPVideoToolkit::FORMAT_RM, PHPVideoToolkit::FORMAT_SWF, PHPVideoToolkit::FORMAT_VOB, PHPVideoToolkit::FORMAT_WAV, PHPVideoToolkit::FORMAT_JPG. If you wish to specifically try to set another format you should use the advanced function $toolkit->addCommand. Set $command to "-f" and $argument to your required value.', 'setAudioChannels_valid_channels' => 'Value "#channels" set from $toolkit->setAudioChannels, is not a valid integer. Valid values are 1, or 2. If you wish to specifically try to set another channels value you should use the advanced function $toolkit->addCommand. Set $command to "-ac" and $argument to your required value.', 'setAudioSampleFrequency_valid_frequency' => 'Value "#frequency" set from $toolkit->setAudioSampleFrequency, is not a valid integer. Valid values are 11025, 22050, 44100. If you wish to specifically try to set another frequency you should use the advanced function $toolkit->addCommand. Set $command to "-ar" and $argument to your required value.', 'setAudioFormat_valid_format' => 'Value "#format" set from $toolkit->setAudioCodec, is not a valid format. Valid values are PHPVideoToolkit::FORMAT_AAC, PHPVideoToolkit::FORMAT_AIFF, PHPVideoToolkit::FORMAT_AMR, PHPVideoToolkit::FORMAT_ASF, PHPVideoToolkit::FORMAT_MP2, PHPVideoToolkit::FORMAT_MP3, PHPVideoToolkit::FORMAT_MP4, PHPVideoToolkit::FORMAT_MPEG2, PHPVideoToolkit::FORMAT_RM, PHPVideoToolkit::FORMAT_WAV. If you wish to specifically try to set another format you should use the advanced function $toolkit->addCommand. Set $command to "-acodec" and $argument to your required value.', 'setAudioFormat_cannnot_encode' => 'Value "#codec" set from $toolkit->setAudioCodec, can not be used to encode the output as the version of FFmpeg that you are using does not have the capability to encode audio with this codec.', 'setVideoFormat_valid_format' => 'Value "#format" set from $toolkit->setVideoCodec, is not a valid format. Valid values are PHPVideoToolkit::FORMAT_3GP2, PHPVideoToolkit::FORMAT_3GP, PHPVideoToolkit::FORMAT_AVI, PHPVideoToolkit::FORMAT_FLV, PHPVideoToolkit::FORMAT_GIF, PHPVideoToolkit::FORMAT_MJ2, PHPVideoToolkit::FORMAT_MP4, PHPVideoToolkit::FORMAT_MPEG4, PHPVideoToolkit::FORMAT_M4A, PHPVideoToolkit::FORMAT_MPEG, PHPVideoToolkit::FORMAT_MPEG1, PHPVideoToolkit::FORMAT_MPEG2, PHPVideoToolkit::FORMAT_MPEGVIDEO. If you wish to specifically try to set another format you should use the advanced function $toolkit->addCommand. Set $command to "-vcodec" and $argument to your required value.', 'setVideoFormat_cannnot_encode' => 'Value "#codec" set from $toolkit->setVideoCodec, can not be used to encode the output as the version of FFmpeg that you are using does not have the capability to encode video with this codec.', 'setAudioBitRate_valid_bitrate' => 'Value "#bitrate" set from $toolkit->setAudioBitRate, is not a valid integer. Valid values are 16, 32, 64, 128. If you wish to specifically try to set another bitrate you should use the advanced function $toolkit->addCommand. Set $command to "-ab" and $argument to your required value.', 'prepareImagesForConversionToVideo_one_img' => 'When compiling a movie from a series of images, you must include at least one image.', 'prepareImagesForConversionToVideo_img_404' => '"#img" does not exist.', 'prepareImagesForConversionToVideo_img_copy' => '"#img" can not be copied to "#tmpfile"', 'prepareImagesForConversionToVideo_img_type' => 'The images can not be prepared for conversion to video. Please make sure all images are of the same type, ie gif, png, jpeg and then try again.', 'setVideoOutputDimensions_valid_format' => 'Value "#format" set from $toolkit->setVideoOutputDimensions, is not a valid preset dimension. Valid values are PHPVideoToolkit::SIZE_SQCIF, PHPVideoToolkit::SIZE_SAS, PHPVideoToolkit::SIZE_QCIF, PHPVideoToolkit::SIZE_CIF, PHPVideoToolkit::SIZE_4CIF, PHPVideoToolkit::SIZE_QQVGA, PHPVideoToolkit::SIZE_QVGA, PHPVideoToolkit::SIZE_VGA, PHPVideoToolkit::SIZE_SVGA, PHPVideoToolkit::SIZE_XGA, PHPVideoToolkit::SIZE_UXGA, PHPVideoToolkit::SIZE_QXGA, PHPVideoToolkit::SIZE_SXGA, PHPVideoToolkit::SIZE_QSXGA, PHPVideoToolkit::SIZE_HSXGA, PHPVideoToolkit::SIZE_WVGA, PHPVideoToolkit::SIZE_WXGA, PHPVideoToolkit::SIZE_WSXGA, PHPVideoToolkit::SIZE_WUXGA, PHPVideoToolkit::SIZE_WOXGA, PHPVideoToolkit::SIZE_WQSXGA, PHPVideoToolkit::SIZE_WQUXGA, PHPVideoToolkit::SIZE_WHSXGA, PHPVideoToolkit::SIZE_WHUXGA, PHPVideoToolkit::SIZE_CGA, PHPVideoToolkit::SIZE_EGA, PHPVideoToolkit::SIZE_HD480, PHPVideoToolkit::SIZE_HD720, PHPVideoToolkit::SIZE_HD1080. You can also manually set the width and height.', 'setVideoOutputDimensions_sas_dim' => 'It was not possible to determine the input video dimensions so it was not possible to continue. If you wish to override this error please change the call to setVideoOutputDimensions and add a TRUE argument to the arguments list... setVideoOutputDimensions(PHPVideoToolkit::SIZE_SAS, TRUE);', 'setVideoOutputDimensions_valid_integer' => 'You tried to set the video output dimensions to an odd number. FFmpeg requires that the video output dimensions are of event value and divisible by 2. ie 2, 4, 6,... etc', 'setVideoAspectRatio_valid_ratio' => 'Value "#ratio" set from $toolkit->setVideoOutputDimensions, is not a valid preset dimension. Valid values are PHPVideoToolkit::RATIO_STANDARD, PHPVideoToolkit::RATIO_WIDE, PHPVideoToolkit::RATIO_CINEMATIC. If you wish to specifically try to set another video aspect ratio you should use the advanced function $toolkit->addCommand. Set $command to "-aspect" and $argument to your required value.', 'addWatermark_img_404' => 'Watermark file "#watermark" does not exist.', 'addWatermark_vhook_disabled' => 'Vhooking is not enabled in your FFmpeg binary. In order to allow video watermarking you must have FFmpeg compiled with --enable-vhook set. You can however watermark any extracted images using GD. To enable frame watermarking, call $toolkit->addGDWatermark($file) before you execute the extraction.', 'addVideo_file_404' => 'File "#file" does not exist.', 'setOutput_output_dir_404' => 'Output directory "#dir" does not exist!', 'setOutput_output_dir_writable' => 'Output directory "#dir" is not writable!', 'setOutput_%_missing' => 'The output of this command will be images yet you have not included the "%index" or "%timecode" in the $output_name.', 'setOutput_%d_depreciated' => 'The use of %d in the output file name is now depreciated. Please use %index. Number padding is still supported. You may also use %timecode instead to add a timecode to the filename.', 'execute_input_404' => 'Execute error. Input file missing.', 'execute_output_not_set' => 'Execute error. Output not set.', 'execute_temp_unwritable' => 'Execute error. The tmp directory supplied is not writable.', 'execute_overwrite_process' => 'Execute error. A file exists in the temp directory and is of the same name as this process file. It will conflict with this conversion. Conversion stopped.', 'execute_overwrite_fail' => 'Execute error. Output file exists. Process halted. If you wish to automatically overwrite files set the third argument in "PHPVideoToolkit::setOutput();" to "PHPVideoToolkit::OVERWRITE_EXISTING".', 'execute_ffmpeg_return_error' => 'Execute error. It was not possible to encode "#input" as FFmpeg returned an error. The error #stream of the input file. FFmpeg reports the error to be "#message".', 'execute_ffmpeg_return_error_multipass' => 'Execute error. It was not possible to encode "#input" as FFmpeg returned an error. Note, however the error was encountered on the second pass of the encoding process and the first pass appear to go fine. The error #stream of the input file. FFmpeg reports the error to be "#message".', 'execute_partial_error' => 'Execute error. Output for file "#input" encountered a partial error. Files were generated, however one or more of them were empty.', 'execute_image_error' => 'Execute error. Output for file "#input" was not found. No images were generated.', 'execute_output_404' => 'Execute error. Output for file "#input" was not found. Please check server write permissions and/or available codecs compiled with FFmpeg. You can check the encode decode availability by inspecting the output array from PHPVideoToolkit::getFFmpegInfo().', 'execute_output_empty' => 'Execute error. Output for file "#input" was found, but the file contained no data. Please check the available codecs compiled with FFmpeg can support this type of conversion. You can check the encode decode availability by inspecting the output array from PHPVideoToolkit::getFFmpegInfo().', 'execute_image_file_exists' => 'Execute error. There is a file name conflict. The file "#file" already exists in the filesystem. If you wish to automatically overwrite files set the third argument in "PHPVideoToolkit::setOutput();" to "PHPVideoToolkit::OVERWRITE_EXISTING".', 'execute_result_ok_but_unwritable' => 'Process Partially Completed. The process successfully completed however it was not possible to output to "#output". The output was left in the temp directory "#process" for a manual file movement.', 'execute_result_ok' => 'Process Completed. The process successfully completed. Output was generated to "#output".', 'ffmpeg_log_ffmpeg_output' => 'OUTPUT', 'ffmpeg_log_ffmpeg_result' => 'RESULT', 'ffmpeg_log_ffmpeg_command' => 'COMMAND', 'ffmpeg_log_ffmpeg_join_gunk' => 'FFMPEG JOIN OUTPUT', 'ffmpeg_log_ffmpeg_gunk' => 'FFMPEG OUTPUT', 'ffmpeg_log_separator' => '-------------------------------', ), 'on_error_die' => false, '_log_file' => NULL, 'image_output_timecode' => true, 'timecode_seperator_output' => '-', '_image_output_timecode_start' => '00:00:00.00', 'image_output_timecode_format' => '%hh-%mm-%ss-%fn', '_image_output_timecode_fps' => 1, '_commands' => array ( 0 => array ( '-vf' => '\'scale=1080:214\, '-strict experimental -vcodec' => '\'h264\, '-qscale' => '\'12\, '-acodec' => '\'aac\, '-ac' => '\'2\, '-i' => '\'/var/www/vhosts/h1.r217324.campusvps.de/static.gravity-magazine.de/storage/videos/original/img_4323.mp4\, ), ), '_processed' => array ( 0 => '/usr/local/bin/ffmpeg -i \'/var/www/vhosts/h1.r217324.campusvps.de/static.gravity-magazine.de/storage/videos/original/img_4323.mp4\' -vf \'scale=1080:214\' -strict experimental -vcodec \'h264\' -qscale \'12\' -acodec \'aac\' -ac \'2\' -y /var/www/vhosts/h1.r217324.campusvps.de/gravity-magazine.de/tmp/1446916182-563e3056c1769.mp4', 1 => '/usr/local/bin/ffmpeg -i \'/var/www/vhosts/h1.r217324.campusvps.de/static.gravity-magazine.de/storage/videos/original/img_4323.mp4\' -vf \'scale=720:320\' -strict experimental -vcodec \'h264\' -qscale \'12\' -acodec \'aac\' -ac \'2\' -y /var/www/vhosts/h1.r217324.campusvps.de/gravity-magazine.de/tmp/1446916177-563e305197389.mp4', 2 => '/usr/local/bin/ffmpeg -i \'/var/www/vhosts/h1.r217324.campusvps.de/static.gravity-magazine.de/storage/videos/original/img_4323.mp4\' -vf \'scale=480:270\' -strict experimental -vcodec \'h264\' -qscale \'6\' -acodec \'aac\' -ac \'2\' -y /var/www/vhosts/h1.r217324.campusvps.de/gravity-magazine.de/tmp/1446916174-563e304e2f882.mp4', 3 => '/usr/local/bin/ffmpeg -i \'/var/www/vhosts/h1.r217324.campusvps.de/static.gravity-magazine.de/storage/videos/original/img_4323.mp4\' -vf \'scale=240:136\' -strict experimental -vcodec \'h264\' -qscale \'12\' -acodec \'aac\' -ac \'2\' -y /var/www/vhosts/h1.r217324.campusvps.de/gravity-magazine.de/tmp/1446916172-563e304c6491d.mp4', ), '_files' => array ( 0 => array ( 0 => '/var/www/vhosts/h1.r217324.campusvps.de/gravity-magazine.de/tmp/drupal-video-iBburF.mp4', ), 1 => array ( 0 => '/var/www/vhosts/h1.r217324.campusvps.de/gravity-magazine.de/tmp/drupal-video-QYKz3l.mp4', ), 2 => array ( 0 => '/var/www/vhosts/h1.r217324.campusvps.de/gravity-magazine.de/tmp/drupal-video-F39kIE.mp4', ), 3 => array ( 0 => '/var/www/vhosts/h1.r217324.campusvps.de/gravity-magazine.de/tmp/drupal-video-EaxJcl.mp4', ), ), '_errors' => array ( ), '_input_file' => '/var/www/vhosts/h1.r217324.campusvps.de/static.gravity-magazine.de/storage/videos/original/img_4323.mp4', '_output_address' => '/var/www/vhosts/h1.r217324.campusvps.de/gravity-magazine.de/tmp/drupal-video-iBburF.mp4', '_process_address' => '/var/www/vhosts/h1.r217324.campusvps.de/gravity-magazine.de/tmp/1446916182-563e3056c1769.mp4', '_tmp_file_prefix' => 'tmp_', '_tmp_directory' => '/var/www/vhosts/h1.r217324.campusvps.de/gravity-magazine.de/tmp/', '_unlink_dirs' => array ( ), '_unlink_files' => array ( ), '_timer_start' => 1446916182.7981, '_timers' => array ( 0 => 5.0181438922882, 1 => 5.0784270763397, 2 => 3.3472609519958, 3 => 1.7189619541168, ), '_overwrite_mode' => 'existing', '_single_frame_extraction' => NULL, '_watermark_url' => NULL, '_watermark_options' => NULL, '_process_file_count' => 1, '_post_processes' => array ( ), '_command_output' => array ( 0 => array ( 'command' => '/usr/local/bin/ffmpeg -i \'/var/www/vhosts/h1.r217324.campusvps.de/static.gravity-magazine.de/storage/videos/original/img_4323.mp4\' -vf \'scale=1080:214\' -strict experimental -vcodec \'h264\' -qscale \'12\' -acodec \'aac\' -ac \'2\' -y /var/www/vhosts/h1.r217324.campusvps.de/gravity-magazine.de/tmp/1446916182-563e3056c1769.mp4', 'output' => 'ffmpeg version git-2015-04-08-a0854c0 Copyright (c) 2000-2015 the FFmpeg developers built with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-version3 libavutil 54. 22.101 / 54. 22.101 libavcodec 56. 34.100 / 56. 34.100 libavformat 56. 30.100 / 56. 30.100 libavdevice 56. 4.100 / 56. 4.100 libavfilter 5. 13.101 / 5. 13.101 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 3.100 / 53. 3.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from \'/var/www/vhosts/h1.r217324.campusvps.de/static.gravity-magazine.de/storage/videos/original/img_4323.mp4\': Metadata: major_brand : mp42 minor_version : 1 compatible_brands: mp41mp42isom creation_time : 2015-10-30 19:56:29 Duration: 00:00:16.77, start: 0.000000, bitrate: 767 kb/s Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 640x360, 711 kb/s, 29.94 fps, 30 tbr, 600 tbn, 1200 tbc (default) Metadata: creation_time : 2015-10-30 19:56:29 handler_name : Core Media Video Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 50 kb/s (default) Metadata: creation_time : 2015-10-30 19:56:29 handler_name : Core Media Audio Please use -q:a or -q:v, -qscale is ambiguous [libx264 @ 0x38714c0] -qscale is ignored, -crf is recommended. [libx264 @ 0x38714c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 [libx264 @ 0x38714c0] profile High, level 3.0 [libx264 @ 0x38714c0] 264 - core 146 r2 121396c - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=9 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 Output #0, mp4, to \'/var/www/vhosts/h1.r217324.campusvps.de/gravity-magazine.de/tmp/1446916182-563e3056c1769.mp4\': Metadata: major_brand : mp42 minor_version : 1 compatible_brands: mp41mp42isom encoder : Lavf56.30.100 Stream #0:0(und): Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 1080x214, q=-1--1, 30 fps, 15360 tbn, 30 tbc (default) Metadata: creation_time : 2015-10-30 19:56:29 handler_name : Core Media Video encoder : Lavc56.34.100 libx264 Stream #0:1(und): Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz, stereo, fltp, 128 kb/s (default) Metadata: creation_time : 2015-10-30 19:56:29 handler_name : Core Media Audio encoder : Lavc56.34.100 aac Stream mapping: Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264)) Stream #0:1 -> #0:1 (aac (native) -> aac (native)) Press [q] to stop, ? for help frame= 72 fps=0.0 q=29.0 size= 63kB time=00:00:03.52 bitrate= 145.2kbits/s frame= 125 fps=124 q=29.0 size= 188kB time=00:00:05.29 bitrate= 290.5kbits/s frame= 182 fps=120 q=29.0 size= 304kB time=00:00:07.19 bitrate= 345.4kbits/s dup=1 drop=0 frame= 238 fps=117 q=29.0 size= 425kB time=00:00:09.05 bitrate= 384.7kbits/s dup=1 drop=0 frame= 290 fps=115 q=29.0 size= 560kB time=00:00:10.79 bitrate= 425.1kbits/s dup=1 drop=0 frame= 327 fps=107 q=29.0 size= 706kB time=00:00:12.02 bitrate= 480.9kbits/s dup=1 drop=0 frame= 383 fps=108 q=29.0 size= 884kB time=00:00:13.88 bitrate= 521.8kbits/s dup=1 drop=0 frame= 437 fps=108 q=29.0 size= 1051kB time=00:00:15.69 bitrate= 548.6kbits/s dup=1 drop=0 frame= 500 fps=109 q=29.0 size= 1207kB time=00:00:16.76 bitrate= 589.7kbits/s dup=1 drop=0 frame= 503 fps=102 q=-1.0 Lsize= 1406kB time=00:00:16.81 bitrate= 685.1kbits/s dup=1 drop=0 video:1121kB audio:266kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.374258% [libx264 @ 0x38714c0] frame I:3 Avg QP:23.45 size: 17168 [libx264 @ 0x38714c0] frame P:178 Avg QP:24.45 size: 4580 [libx264 @ 0x38714c0] frame B:322 Avg QP:27.73 size: 872 [libx264 @ 0x38714c0] consecutive B-frames: 2.2% 24.7% 38.2% 35.0% [libx264 @ 0x38714c0] mb I I16..4: 6.7% 62.6% 30.7% [libx264 @ 0x38714c0] mb P I16..4: 1.7% 2.8% 0.6% P16..4: 58.1% 17.3% 8.4% 0.0% 0.0% skip:11.1% [libx264 @ 0x38714c0] mb B I16..4: 0.3% 0.3% 0.0% B16..8: 36.2% 2.3% 0.3% direct: 1.6% skip:59.0% L0:47.4% L1:48.1% BI: 4.5% [libx264 @ 0x38714c0] 8x8 transform intra:56.4% inter:78.7% [libx264 @ 0x38714c0] coded y,uvDC,uvAC intra: 47.8% 65.6% 19.5% inter: 16.7% 22.1% 0.5% [libx264 @ 0x38714c0] i16 v,h,dc,p: 4% 72% 6% 18% [libx264 @ 0x38714c0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 15% 50% 15% 2% 2% 2% 8% 1% 7% [libx264 @ 0x38714c0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 9% 59% 9% 2% 3% 2% 10% 1% 5% [libx264 @ 0x38714c0] i8c dc,h,v,p: 39% 54% 4% 3% [libx264 @ 0x38714c0] Weighted P-Frames: Y:56.7% UV:55.6% [libx264 @ 0x38714c0] ref P L0: 35.8% 15.0% 20.4% 17.2% 11.6% [libx264 @ 0x38714c0] ref B L0: 71.7% 14.3% 14.1% [libx264 @ 0x38714c0] ref B L1: 90.3% 9.7% [libx264 @ 0x38714c0] kb/s:547.51', ), ), '_ffmpeg_binary' => '/usr/local/bin/ffmpeg', '_input_file_id' => 'c84d4a94b663eca329c68839fbf6e303', )), 'realoutputdir' => 'storage-api://videos/converted/7071', 'realoutputname' => 'img_4323_p1080_1446916182.mp4', 'multipass' => false, 'outputextension' => 'mp4', 'settings' => array ( 'input' => array ( 'vid' => '374', 'fid' => '7071', 'entity_type' => 'node', 'entity_id' => '4263', 'status' => '1', 'dimensions' => '640x360', 'duration' => NULL, 'started' => 1446916172, 'completed' => '0', 'statusupdated' => 1446916172, 'data' => array ( 'field_name' => 'field_video', 'langcode' => 'und', 'delta' => 0, ), 'uid' => '1', 'filename' => 'img_4323.mp4', 'uri' => 'storage-api://videos/original/img_4323.mp4', 'filemime' => 'video/mp4; charset=binary', 'filesize' => '1608135', 'timestamp' => '1446916092', 'type' => 'video', 'origname' => 'img_4323.mp4', 'filealias' => NULL, 'video_status' => 5, ), 'base_url' => '/var/www/vhosts/h1.r217324.campusvps.de/gravity-magazine.de/tmp', 'filename' => 'drupal-video-iBburF.mp4', ), 'errors' => array ( ), ))

comment:3 by Carl Eugen Hoyos, 8 years ago

Please do whatever is needed to get the above readable: There needs to be a FFmpeg command line followed by the console output printed by the command with working line breaks. Please understand that I will close the ticket if you cannot provide readable input and output.

comment:4 by Carl Eugen Hoyos, 8 years ago

Resolution: invalid
Status: newclosed

You are using the filter expression -vf \'scale=1080:214\' for an input video of 640x360 without defined aspect ratio: The expected result is a distorted output file.

Note: See TracTickets for help on using tickets.