Recherche avancée

Médias (10)

Mot : - Tags -/wav

Sur d’autres sites (2422)

  • Convert a video with unknown channels layout

    28 octobre 2020, par Thibault

    Well, here's my problem. I want to convert a .mov to a .mp4. Quite simple.

    


    But, my input : 1 video stream, 1 audio stream with 10 unknown channels layout

    


    Look at the MediaInfo :

    


    enter image description here

    


    And what I want to get is a stereo .mp4 using a command like this :

    


    


    ffmpeg -i "input.mov" -vf fps=fps=23.976 -r 23.976 -vsync cfr -c:v libx264 -c:a aac -ac 2 "output.mp4"

    


    


    And it results :

    


    


    [aac @ 000002d305e453c0] Unsupported channel layout "0 channels"
Error initializing output stream 0:1 — Error while opening encoder for output stream #0:1 - maybe incorrect parameters such as bit_rate, rate, width or height
Conversion failed !

    


    


    I have tried such options like -filter_complex but can't fix this.

    


    Can you help ?

    


    EDIT

    


    I know now what are these channels layout. My goal is to get a stereo video but it would be easier for me to learn just how to "tag" them.

    


    Here's the audio info :

    


      

    1. Lt
    2. 


    3. Rt
    4. 


    5. Stereo M&E LT
    6. 


    7. Stereo M&E Rt
    8. 


    9. Left front
    10. 


    11. Right Front
    12. 


    13. Center
    14. 


    15. LFE
    16. 


    17. Ls
    18. 


    


    10.Rs

    


  • ffmpeg audio channel layout unknown to stereo/mono

    6 décembre 2020, par kathir

    I have one audio file, below I have attached the audio metadata,

    


    the audio layout is "unknown", how to set the audio layout "Stereo" or "mono" ?

    


    now I am using the FFmpeg tool in NodeJs,

    


    please suggest any other media customization tool also comfortable to the NodeJs

    


    { streams:
 [ { index: 0,
   codec_name: 'pcm_s16le',
   codec_long_name: 'PCM signed 16-bit little-endian',
   profile: 'unknown',
   codec_type: 'audio',
   codec_time_base: '1/24000',
   codec_tag_string: '[1][0][0][0]',
   codec_tag: '0x0001',
   sample_fmt: 's16',
   sample_rate: 24000,
   channels: 1,
   channel_layout: 'unknown',
   bits_per_sample: 16,
   id: 'N/A',
   r_frame_rate: '0/0',
   avg_frame_rate: '0/0',
   time_base: '1/24000',
   start_pts: 'N/A',
   start_time: 'N/A',
   duration_ts: 34546,
   duration: 1.439417,
   bit_rate: 384000,
   max_bit_rate: 'N/A',
   bits_per_raw_sample: 'N/A',
   nb_frames: 'N/A',
   nb_read_frames: 'N/A',
   nb_read_packets: 'N/A',
   disposition: [Object] } ],
format:
 { filename: './Audios/temp/1607064049732/1607064049732-2.wav',
   nb_streams: 1,
   nb_programs: 0,
   format_name: 'wav',
   format_long_name: 'WAV / WAVE (Waveform Audio)',
   start_time: 'N/A',
   duration: 1.439417,
   size: 69136,
   bit_rate: 384244,
   probe_score: 99 },
   chapters: [] }]


    


  • Concatenation not working in ffmpeg for unknown reason

    5 janvier 2021, par Jimmy Bungalo

    i'm trying to concatenate 2 videos in ffmpeg, using ffmpeg -y -f concat -safe 0 -i /path/to/mylist.txt -c:v libvpx-vp9 -c:a libopus output.webm, in which mylist.txt is

    


    file /path/to/file.mp4
file /path/to/file.mkv


    


    and the output is

    


    [concat @ 0x7b53638000] Line 1: unknown keyword 'file' /path/to/mylist.txt: Invalid data found when processing input


    


    i also tried using "concat:file.mp4|file.mkv" but it just replicated file.mp4
my question is, what is the problem here ? the method i used is verified on ffmpeg's website