
Recherche avancée
Médias (1)
-
The pirate bay depuis la Belgique
1er avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
Autres articles (45)
-
Publier sur MédiaSpip
13 juin 2013Puis-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 -
List of compatible distributions
26 avril 2011, parThe table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...) -
Selection of projects using MediaSPIP
2 mai 2011, parThe examples below are representative elements of MediaSPIP specific uses for specific projects.
MediaSPIP farm @ Infini
The non profit organizationInfini develops hospitality activities, internet access point, training, realizing innovative projects in the field of information and communication technologies and Communication, and hosting of websites. It plays a unique and prominent role in the Brest (France) area, at the national level, among the half-dozen such association. Its members (...)
Sur d’autres sites (6190)
-
FFMPEG - How to add a default codec for wav using -filter_complex
18 octobre 2022, par object404Is it possible to set the audio codec via -filter_complex in FFMPEG ?


My Google-fu is weak and I haven't had good hits so far.


I'm working on a fork of a (possibly abandoned) project, and this is currently the -filter_complex argument :


[0:a]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,volume=1.0[audout0]



How do I set the audio codec here ?


I've tried :


[0:a]aformat=sample_fmts=fltp:sample_rates=44100:acodec=pcm_s16le:channel_layouts=stereo,volume=1.0[audout0]



by adding :
acodec=pcm_s16le


But this results in :
Option 'acodec' not found


I'm trying to accomplish is adding a default audio codec for a .wav output, because the system complains that there's no default audio codec chosen for a wav output, because I get this error message with my project when I try to output to .wav :


Automatic encoder selection failed for output stream #0:0. Default encoder for format wav (codec none) is probably disabled. Please choose an encoder manually.
Error selecting an encoder for stream 0:0



Thanks !


-
How does MPG determine its default audio track ?
1er octobre 2022, par codedreadI have some mpg files that I transcoded from DVDs I bought a long time ago (maybe 20 years ago). ffprobe :


Input #0, mpeg, from 'da-orig.mpg':
 Duration: 00:06:59.44, start: 0.044100, bitrate: 6354 kb/s
 Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, progressive), 720x480 [SAR 8:9 DAR 4:3], Closed Captions, 31 fps, 59.94 tbr, 90k tbn
 Side data:
 cpb: bitrate max/min/avg: 7500000/0/0 buffer size: 1835008 vbv_delay: N/A
 Stream #0:1[0x85]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
 Stream #0:2[0x83]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
 Stream #0:3[0x81]: Audio: ac3, 48000 Hz, mono, fltp, 192 kb/s
 Stream #0:4[0x80]: Audio: ac3, 48000 Hz, mono, fltp, 192 kb/s



This shows there are 4 audio streams. When I play this file in VLC / QuickTime it seems that Audio Track 4 is the default. I'd like to understand how this is chosen. Is it something within the mpg container format or are players choosing the stream that has the lowest id (0x80) ?


More background, when I try to turn this into a mp4 file with the following command :


ffmpeg -i da-orig.mpg -c copy -map 0 da-copy.mp4


I get roughly the same size file, but the default audio track is stream #0:1[0x85].


What I want is an equivalent mp4 file (so the same audio track chosen).


-
How do I convert that mp4 to the same format as this ts ?
5 septembre 2022, par Orlando BloomGeneral
Complete name : D:/aaa.mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom (isom/iso2/avc1/mp41)
File size : 2.73 MiB
Duration : 6 s 154 ms
Overall bit rate mode : Variable
Overall bit rate : 3 715 kb/s
Encoded date : UTC 2022-09-04 09:49:04
Tagged date : UTC 2022-09-04 09:49:05

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L3.1
Format settings : CABAC / 2 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference frames : 2 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 6 s 134 ms
Bit rate mode : Variable
Bit rate : 3 578 kb/s
Maximum bit rate : 4 320 kb/s
Width : 856 pixels
Height : 480 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 30.000 FPS
Standard : Component
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.290
Stream size : 2.62 MiB (96%)
Encoded date : UTC 2022-09-04 09:49:04
Tagged date : UTC 2022-09-04 09:49:05
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709
Codec configuration box : avcC

Audio
ID : 2
Format : AAC LC
Format/Info : Advanced Audio Codec Low Complexity
Codec ID : mp4a-40-2
Duration : 6 s 154 ms
Source duration : 6 s 200 ms
Bit rate mode : Variable
Bit rate : 137 kb/s
Maximum bit rate : 320 kb/s / 320 kb/s
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 44.1 kHz
Frame rate : 43.066 FPS (1024 SPF)
Compression mode : Lossy
Stream size : 104 KiB (4%)
Source stream size : 104 KiB (4%)
Default : Yes
Alternate group : 1
Encoded date : UTC 2022-09-04 09:49:04
Tagged date : UTC 2022-09-04 09:49:05
mdhd_Duration : 6153





General
ID : 1 (0x1)
Complete name : D:/bbb.ts
Format : MPEG-TS
File size : 3.13 MiB
Duration : 10 s 763 ms
Overall bit rate mode : Variable
Overall bit rate : 2 434 kb/s

Video
ID : 256 (0x100)
Menu ID : 1 (0x1)
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L3.2
Format settings : CABAC / 4 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference frames : 4 frames
Codec ID : 27
Duration : 10 s 780 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
Writing library : x264 core 142
Encoding settings : cabac=1 / ref=2 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=4 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=0 / threads=48 / lookahead_threads=4 / 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=1 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=20 / rc=crf / mbtree=1 / crf=23.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00

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 : 10 s 750 ms
Bit rate mode : Variable
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 44.1 kHz
Frame rate : 43.066 FPS (1024 SPF)
Compression mode : Lossy
Delay relative to video : -23 ms





I tried "ffmpeg -i aaa.mp4 -c:v libx264 -c:a aac bbb.ts"


But the two converted ts, "-c copy" into a new mp4 cannot be played in the iPhone default player


I think my use of "ffmpeg -i aaa.mp4 -c:v libx264 -c:a aac bbb.ts" is wrong,


The following is the filler text, do not look


It looks like your post is mostly code ; please add some more details.
It looks like your post is mostly code ; please add some more details.
It looks like your post is mostly code ; please add some more details.