Recherche avancée

Médias (91)

Autres articles (10)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Déploiements possibles

    31 janvier 2010, par

    Deux types de déploiements sont envisageable dépendant de deux aspects : La méthode d’installation envisagée (en standalone ou en ferme) ; Le nombre d’encodages journaliers et la fréquentation envisagés ;
    L’encodage de vidéos est un processus lourd consommant énormément de ressources système (CPU et RAM), il est nécessaire de prendre tout cela en considération. Ce système n’est donc possible que sur un ou plusieurs serveurs dédiés.
    Version mono serveur
    La version mono serveur consiste à n’utiliser qu’une (...)

  • Qualité du média après traitement

    21 juin 2013, par

    Le bon réglage du logiciel qui traite les média est important pour un équilibre entre les partis ( bande passante de l’hébergeur, qualité du média pour le rédacteur et le visiteur, accessibilité pour le visiteur ). Comment régler la qualité de son média ?
    Plus la qualité du média est importante, plus la bande passante sera utilisée. Le visiteur avec une connexion internet à petit débit devra attendre plus longtemps. Inversement plus, la qualité du média est pauvre et donc le média devient dégradé voire (...)

Sur d’autres sites (3024)

  • Re-appease the JSLINT gods, per the 04-15-2012 edition (mostly RETURN statements within if ... else blocks that are now considered bad)

    1er mai 2012, par Scott Schiller

    m script/soundmanager2-jsmin.js m script/soundmanager2-nodebug-jsmin.js m script/soundmanager2-nodebug.js m script/soundmanager2.js Re-appease the JSLINT gods, per the 04-15-2012 edition (mostly RETURN statements within if ... else blocks that are now considered (...)

  • FFmpeg iOS -> output file is invalid

    15 juillet 2016, par Vive

    I’m using following library to convert mkv to mp4 : https://github.com/SterlingOnLoop/FFmpegWrapper.

    - (void)convertUsingFFmpegWrapper {
       NSString *mp4Extension = @"mp4";
       NSString *mkvExtension = @"mkv";

       NSString *videoName = @"file1";
    //    NSString *videoName = @"file2";

       NSString *mkvVideoFilePath = [[NSBundle mainBundle] pathForResource:videoName ofType:mkvExtension];
       NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
       NSString *documentsDirectory = paths[0];
       NSString *mp4VideoFilePath = [NSString stringWithFormat:@"%@/%@.%@", documentsDirectory, videoName, mp4Extension];

       FFmpegWrapper *ffmpegWrapper = [[FFmpegWrapper alloc] init];
       NSDictionary *options = @{kFFmpegInputFormatKey: mkvExtension, kFFmpegOutputFormatKey: mp4Extension};
       [ffmpegWrapper convertInputPath:mkvVideoFilePath outputPath:mp4VideoFilePath options:options progressBlock:nil completionBlock:^(BOOL success, NSError *error) {
           if (success && !error) {
               // delete mp4 file
           } else if (error) {
               NSLog(@"Error during .MKV -> .MP4 conversion occured: %@", error.localizedDescription);
           } else {
               NSLog(@"Unknown error during .MKV -> .MP4 conversion occured.");
           }
       }];
    }

    Here are the values from LLDB about the automatically detected codec types :

    (lldb) po inputStream.codecName
    aac

    (lldb) po outputStream.codecName
    aac

    I should mention here, that originally the file is generated on Linux with following codecs : vaapiencode_h264 for video and faac for sound.

    The issue is that the file simply does not work. I get huge amount of logs in the console, where most important is :

    [aac @ 0x7f7f65019200] Format aac detected only with low score of 1, misdetection possible!

    Inside the library, the following function is used :

    int streamInfoValue = avformat_find_stream_info(inputFormatContext, NULL);

    And exactly this line does the whole mess with the logs. Obviously, without this line I receive an error with invalid argument.

    When that line is turned on, the .mp4 file is generated. It lasts > 5 minutes, while input file is 11 seconds long. It cannot be played using VLC on my mac (seems to be broken). I get following errors (I’m pasting few of them, full track can be found here, it’s too long to quote it here) :

    [aac @ 0x7ff07c00b000] More than one AAC RDB per ADTS frame is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
    [aac @ 0x7ff07c00b000] channel element 0.0 is not allocated
    [aac @ 0x7ff07c00b000] Sample rate index in program config element does not match the sample rate index configured by the container.
    [aac @ 0x7ff07c00b000] Inconsistent channel configuration.
    [aac @ 0x7ff07c00b000] get_buffer() failed
    [aac @ 0x7ff07c00b000] channel element 3.10 is not allocated
    [aac @ 0x7ff07c00b000] Reserved bit set.
    [aac @ 0x7ff07c00b000] invalid band type
    [aac @ 0x7ff07c00b000] Number of scalefactor bands in group (50) exceeds limit (41).
    [aac @ 0x7ff07c00b000] Reserved bit set.
    [aac @ 0x7ff07c00b000] Number of bands (7) exceeds limit (4).
    [aac @ 0x7ff07c00b000] Reserved bit set.
    [aac @ 0x7ff07c00b000] Dependent coupling is not supported together with LTP

    Any idea how to simply convert mkv to mp4 ? I don’t have any idea why the errors occurs. I’d claim that the file is not aac, but the linux uses this encoding, so it should be valid.

  • About "ffmpeg -c copy" two ts files, can not play the problem

    4 septembre 2022, par Orlando Bloom

    aaa.mp4

    


    General
Complete name                            : C:/aaa.mp4
Format                                   : MPEG-4
Format profile                           : Base Media
Codec ID                                 : isom (isom/iso2/avc1/mp41)
File size                                : 3.08 MiB
Duration                                 : 11 s 512 ms
Overall bit rate                         : 2 248 kb/s
Writing application                      : Lavf57.83.100
Comment                                  : GIFSHOW [899819595][iOS][11.4.1][iPhone9,2][5.8.5.606][Camera:f]#[720x1280][5327k][78k][C][1][tv=bec1_f80c][ags=0.455141][agm=0.747282][agsi=2000]

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L3.1
Format settings                          : CABAC / 4 Ref Frames
Format settings, CABAC                   : Yes
Format settings, Reference frames        : 4 frames
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 11 s 512 ms
Bit rate                                 : 2 161 kb/s
Width                                    : 720 pixels
Height                                   : 1 280 pixels
Display aspect ratio                     : 0.563
Frame rate mode                          : Constant
Frame rate                               : 29.970 (29970/1000) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.078
Stream size                              : 2.96 MiB (96%)
Writing library                          : x264 core 148
Codec configuration box                  : avcC

Audio
ID                                       : 2
Format                                   : AAC LC SBR
Format/Info                              : Advanced Audio Codec Low Complexity with Spectral Band Replication
Commercial name                          : HE-AAC
Format settings                          : Explicit
Codec ID                                 : mp4a-40-2
Duration                                 : 11 s 501 ms
Bit rate mode                            : Constant
Bit rate                                 : 78.8 kb/s
Channel(s)                               : 2 channels
Channel layout                           : L R
Sampling rate                            : 44.1 kHz
Frame rate                               : 21.533 FPS (2048 SPF)
Compression mode                         : Lossy
Stream size                              : 111 KiB (4%)
Default                                  : Yes
Alternate group                          : 1




    


    I want to merge this mp4 with another ts file, because my hardware configuration is very poor, so I choose "-c copy"

    


    General
ID                                       : 1 (0x1)
Complete name                            : C:/bbb.ts
Format                                   : MPEG-TS
File size                                : 3.41 MiB
Duration                                 : 15 s 315 ms
Overall bit rate mode                    : Variable
Overall bit rate                         : 1 861 kb/s

Video
ID                                       : 256 (0x100)
Menu ID                                  : 1 (0x1)
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L3.1
Format settings                          : CABAC / 4 Ref Frames
Format settings, CABAC                   : Yes
Format settings, Reference frames        : 4 frames
Codec ID                                 : 27
Duration                                 : 15 s 382 ms
Width                                    : 1 080 pixels
Height                                   : 606 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Variable
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive

Audio
ID                                       : 257 (0x101)
Menu ID                                  : 1 (0x1)
Format                                   : AAC LC
Format/Info                              : Advanced Audio Codec Low Complexity
Format version                           : Version 4
Muxing mode                              : ADTS
Codec ID                                 : 15-2
Duration                                 : 15 s 185 ms
Bit rate mode                            : Variable
Channel(s)                               : 1 channel
Channel layout                           : C
Sampling rate                            : 44.1 kHz
Frame rate                               : 43.066 FPS (1024 SPF)
Compression mode                         : Lossy
Delay relative to video                  : -46 ms





    


    I directly -c copy them, can't play the whole thing,

    


    Then I convert aaa.mp4 to ts
using "ffmpeg -i aaa.mp4 -bsf:v h264_mp4toannexb -codec copy -hls_list_size 0 aaa.ts" , this is what I googled.

    


    Finally tried aaa.ts and bbb.ts with "-c copy", still can't play.

    


    My machine configuration is acceptable, convert aaa.mp4 to the same encoding as bbb.ts

    


    If I transcode both together, I can't do it because bbb.ts is too big.