MediaArea / RAWcooked

Encodes RAW audio-visual data into the Matroska container (MKV), using the video codec FFV1 for the image and audio codec FLAC for the sound.
https://mediaarea.net/RAWcooked
BSD 2-Clause "Simplified" License
42 stars 11 forks source link

order tracks with video first #445

Open dericed opened 5 days ago

dericed commented 5 days ago

Perhaps this is simply a cosmetic issue, but it seems that the tracks in the rawcooked output are ordered alphabetically by their source, such as:

  Stream #0:0: Audio: flac ([172][241][0][0] / 0xF1AC), 44100 Hz, mono, s16, 128 kb/s (default)
      Metadata:
        encoder         : Lavc61.19.100 flac
  Stream #0:1: Audio: flac ([172][241][0][0] / 0xF1AC), 44100 Hz, mono, s16, 128 kb/s
      Metadata:
        encoder         : Lavc61.19.100 flac
  Stream #0:2: Video: ffv1 (FFV1 / 0x31564646), bgr0(pc, gbr/unknown/linear, progressive), 720x480 [SAR 1:1 DAR 3:2], q=2-31, 200 kb/s, 24 fps, 1k tbn
      Metadata:
        encoder         : Lavc61.19.100 ffv1
  Stream #0:3: Audio: flac ([172][241][0][0] / 0xF1AC), 44100 Hz, mono, s16, 128 kb/s
      Metadata:
        encoder         : Lavc61.19.100 flac
  Stream #0:4: Audio: flac ([172][241][0][0] / 0xF1AC), 44100 Hz, mono, s16, 128 kb/s
      Metadata:
        encoder         : Lavc61.19.100 flac
  Stream #0:5: Audio: flac ([172][241][0][0] / 0xF1AC), 44100 Hz, mono, s16, 128 kb/s
      Metadata:
        encoder         : Lavc61.19.100 flac
  Stream #0:6: Attachment: none
      Metadata:
        mimetype        : application/octet-stream
        filename        : RAWcooked reversibility data

I suggest storing the video track first and then the audio tracks. This can be done in the ffmpeg cmd by ordering the inputs. Possibly it could also be done with how the -map commands are ordered.

retokromer commented 4 days ago

Perhaps this is simply a cosmetic issue, but

It is, but

I suggest storing the video track first and then the audio tracks.

+1

stephenmcconnachie commented 4 days ago

+1 from me too for video first then audio