After transcoding with ffmpeg I get this error on the page.

    Something went wrong with your video transcoding. Please check your recent log entries for further debugging.
    Notice: Undefined index: filefield_paths in filefield_paths_filefield_paths_process_file() (Zeile 45 von /var/www/clients/client3/web6/web/sites/all/modules/filefield_paths/modules/filefield_paths.inc).
    Warning: parse_url(public:///hfls003_300_002.avi) [function.parse-url]: Unable to parse URL in _filefield_paths_replace_path() (Zeile 290 von /var/www/clients/client3/web6/web/sites/all/modules/filefield_paths/filefield_paths.module).
    Notice: Undefined index: host in _filefield_paths_replace_path() (Zeile 292 von /var/www/clients/client3/web6/web/sites/all/modules/filefield_paths/filefield_paths.module).
    Something went wrong with your video transcoding. Please check your recent log entries for further debugging.
    Something went wrong with your video transcoding. Please check your recent log entries for further debugging.
    Notice: Undefined index: filefield_paths in filefield_paths_filefield_paths_process_file() (Zeile 45 von /var/www/clients/client3/web6/web/sites/all/modules/filefield_paths/modules/filefield_paths.inc).
    Something went wrong with your video transcoding. Please check your recent log entries for further debugging.

After uploading and converting on node save this error occurs. I took a look at the d_file_managed table and I saw that after transcoding the path is set from public://videos/original/hfls003_300_002.avi to public:///hfls003_300_002.avi. This is not the only problem. The next problem is that the file that was transcoded gets this name hfls003_300_001_mp4-ffmpeg_1330210225.mp4 instead of hfls003_300_002.avi. So this can't really work. I try to get it run now for some weeks without any success.

I use as a preset for ffmpeg this code.

    'Mp4-ffmpeg' => array(
      'name' => 'Mp4-ffmpeg',
      'description' => 'Mp4 with h246 support for iPhone, iPad and HTML5 videos',
      'settings' => array(
        'device_profile' => '0',
        'video_extension' => 'mp4',
        'video_codec' => 'libx264',
        'video_preset' => 'libx264-lossless_ultrafast',
        'video_quality' => '3',
        'video_speed' => '3',
        'wxh' => '320x240',
        'video_aspectmode' => 'preserve',
        'video_upscale' => 0,
        'audio_codec' => 'libmp3lame',
        'audio_quality' => '2',
        'deinterlace' => 'detect',
        'max_frame_rate' => '',
        'frame_rate' => '',
        'video_bitrate' => '',
        'bitrate_cap' => '',
        'buffer_size' => '',
        'one_pass' => 0,
        'skip_video' => 0,
        'audio_bitrate' => '',
        'audio_channels' => '2',
        'audio_sample_rate' => '48000',
        'skip_audio' => 0,
        'autolevels' => 0,
        'deblock' => 0,
        'denoise' => '0',
        'segmented_type' => '0',
        'segmented_seconds' => '',
        'clip_start' => '',
        'clip_length' => '',
        'cli_code' => '!ffmpeg -i !videofile -y -acodec libmp3lame -ab 96k -vcodec libx264 -vpre libx264-lossless_ultrafast -crf 10 -threads 0 -ar 44100 -s !widthx!height -r 20 !convertfile',
      ),
    ),

The cli_code works as expected in the comandline and also from video but the file path are completely wrong and the created name also. I took a short look into the TranscoderAbstractionFactoryFfmpeg but I have no clue how to debug this problem.

I also recognize that somehow the nid field of the video_queu is not created. Even with devel reinstall module the field is not populated. I created per hand to get it work. I don't know if this is a drupal bug or a video problem.

I will make a complete clean reinstall of the drupal installation to see if this error still occurs. I just see that here is some work necessary to get a video platform.

Comments

Jorrit’s picture

It looks like you have installed the filefield paths module. Could you try without this module enabled?

broncomania’s picture

Status: Active » Closed (fixed)

That's correct. I made a complete new install without enabling this module. Sorry for annoying you with this request. In the new install this module is not enabled and it works.

broncomania’s picture

Status: Closed (fixed) » Closed (works as designed)
Jorrit’s picture

You didn't annoy me at all, it's good to know that the video module is not (yet) compatible with the Filefield paths module. Hopefully I have time to look into that in the future.