
Recherche avancée
Médias (91)
-
Les Miserables
9 décembre 2019, par
Mis à jour : Décembre 2019
Langue : français
Type : Textuel
-
VideoHandle
8 novembre 2019, par
Mis à jour : Novembre 2019
Langue : français
Type : Video
-
Somos millones 1
21 juillet 2014, par
Mis à jour : Juin 2015
Langue : français
Type : Video
-
Un test - mauritanie
3 avril 2014, par
Mis à jour : Avril 2014
Langue : français
Type : Textuel
-
Pourquoi Obama lit il mes mails ?
4 février 2014, par
Mis à jour : Février 2014
Langue : français
-
IMG 0222
6 octobre 2013, par
Mis à jour : Octobre 2013
Langue : français
Type : Image
Autres articles (92)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela. -
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...)
Sur d’autres sites (5723)
-
How to Use Web Analytics to Improve SEO
5 janvier 2022, par erin — Analytics Tips -
ISO-9660 Compromise, Part 2 : Finding Root
25 octobre 2021, par Multimedia Mike — GeneralA long time ago, I dashed off a quick blog post with a curious finding after studying the ISO-9660 spec : The format stores multi-byte numbers in a format I termed “omni-endian”– the committee developing the format apparently couldn’t come to an agreement on this basic point regarding big- vs. little-endian encoding (I’m envisioning something along the lines of “tastes great ! … less filling !” in the committee meetings).
I recently discovered another bit of compromise in the ISO-9660 spec : It seems that there are 2 different methods for processing the directory structure. That means it’s incumbent upon ISO-9660 creation software to fill in the data structures to support both methods, because some ISO-reading programs out there rely on one set of data structures while the rest prefer to read the other set.
Background
As a refresher, the “ISO” extension of an ISO file refers to the ISO-9660 specification. This is a type of read-only filesystem (i.e, the filesystem is created once and never updated after initial creation) for the purpose of storing on a read-only medium, often an optical disc (CD-ROM, DVD-ROM). The level of nostalgic interest I display for the ISO-9660 filesystem reminds me of my computer science curriculum professors from the mid-90s reminiscing about ye olden days of punchcard programming, but such is my lot. I’m probably also alone in my frustration of seeing rips of, e.g., GameCube or Xbox or 3DO games being tagged with the extension .ISO since those systems use different read-only filesystems.
I recently fell in with an odd bunch called the eXoDOS project and was trying to help fill in a few gaps. One request was a 1994 game called Power Drive for DOS.
My usual CD-ROM ripping method (for the data track) is a simple ‘dd’ command from a Linux command line to copy the string of raw sectors. However, it turned out to be unusually difficult to open the resulting ISO. A few of the the options I know of worked but most didn’t. What’s the difference ?
Methods that work :
- Mounting the file with the Linux iso9660 kernel module, i.e.,
mount -t iso9660 /dev/optical-drive /mnt
or
mount -t iso9660 -o loop /path/to/Power-Drive.iso /mnt
- Directory Opus
- Windows 10 can read the filesystem when reading the physical disc
- Windows 10 can burn the ISO image to a new CD (“right click” -> “Burn disc image”) ; this method does not modify any of the existing sectors but did append 149 additional empty sectors
Methods that don’t work :
- fuseiso
- Dosbox
- Winrar
- 7zip
- Daemon Tools
- Imgburn
- Internet Archive’s ISO lister (“View contents” on the ISO file)
Understanding The Difference
I think I might have a handle on why some tools are able to process this disc while most can’t. There appears to be 2 sets of data structures to describe the base of the filesystem : A root directory, and a path table. These both occur in the first substantive sector of the ISO-9660 filesystem, usually sector 16.
A compact disc can be abstractly visualized as a long string of sectors, each one 2,352 bytes long. (See my Grand Unified Theory of Compact Disc post for deeper discussion.) A CD-ROM data track will contain 2048 bytes of data. Thus, sector 16 appears at 0x8000 of an ISO filesystem. I like the clarity of this description of the ISO-9660 spec. It shows that the path table is defined at byte 140 (little-endian ; big comes later) and location of the root directory is at byte 158. Thus, these locations generally occur at 0x808c and 0x809e.
Primary Volume Descriptor
The path table is highlighted in green and the root directory record is highlighted in red. These absolute locations are specified in sectors. So the path table is located at sector 0x12 = offset 0x9000 in the image, while the root directory record is supposed to be at sector 0x62 = 0x31000. Checking into those sectors, it turns out that the path table is valid while the root directory record is invalid. Thus, any tool that relies on the path table will be successful in interpreting the disc, while tools that attempt to recursively traverse starting from root directory record are gonna have a bad time.
Since I was able to view the filesystem with a few different tools, I know what the root directory contains. Searching for those filenames reveals that the root directory was supposed to point to the next sector, number 0x63. So this was a bizarre off-by-1 error on the part of the ISO creation tool. Maybe. I manually corrected 0x62 -> 0x63 and that fixed the interaction with fuseiso, but not with other tools. So there may have been some other errors. Note that a quick spot-check of another, functional ISO revealed that this root directory sector is supposed to be exact, not 1-indexed.
Upon further inspection, I noticed that, while fuseiso appeared to work with that one patch, none of the files returned correct data, and none of the directories contained anything. That’s when I noticed that ALL of the sector locations described in the various directory and file records are off by 1 !
Further Investigation
I have occasionally run across ISO images on the Internet Archive that return the error about not being able to read the contents when trying to “View contents” (error text : “failed to obtain file list from xyz.iso”, as seen with this ISO). Too bad I didn’t make a record of them because I would be interested to see if they have the same corruption.
Eventually, I’ll probably be able to compile an archive of deviant ISO-9660 images. A few months ago, I was processing a large collection from IA and found a corrupted ISO which had a cycle, i.e., the subdirectory pointed to a parent directory, which caused various ISO tools to loop forever. Just one of those things that is “never supposed to happen”, so why write code to deal with it gracefully ?
See Also
The post ISO-9660 Compromise, Part 2 : Finding Root first appeared on Breaking Eggs And Making Omelettes.
- Mounting the file with the Linux iso9660 kernel module, i.e.,
-
FFMPEG- Could not write header for output file #0 (incorrect codec parameters ?) : Operation not permitted Error initializing output stream 0:2 —
30 septembre 2021, par DannyHello guys I am trying to create a web-dash manifest for VOD with ffmpeg, but I am getting this error
Could not write header for output file #0 (incorrect codec parameters ?): Operation not permitted Error initializing output stream 0:2 --
while using vp9 codec and doesn't understand the error and how to resolve it. Can someone help me out ? If I use vp8 instead of vp9 codec, I get the same error, but the ffmpeg log doesn't show any error.

subprocess.call([
 FFMPEG_PATH,
 "-f", "webm_dash_manifest", "-i", 480p_path,
 "-f", "webm_dash_manifest", "-i", 720p_path,
 "-f", "webm_dash_manifest", "-i", audio_path,
 "-c", "copy", "-map", "0", "-map", "1", "-map", "2",
 "-adaptation_sets", "id=0, streams=0,1, id=1, streams=2",
 "-f", "webm_dash_manifest", dash_path
 ])



Thanks in advance


UPDATE :
This is from the ffmpeg log.


ffmpeg version 2021-09-27-git-b786bc7433-full_build-www.gyan.dev 
Copyright (c) 2000-2021 the FFmpeg developers
 built with gcc 10.3.0 (Rev5, Built by MSYS2 project)
 configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libglslang --enable-vulkan --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint
 libavutil 57. 7.100 / 57. 7.100
 libavcodec 59. 9.101 / 59. 9.101
 libavformat 59. 5.100 / 59. 5.100
 libavdevice 59. 0.101 / 59. 0.101
 libavfilter 8. 9.100 / 8. 9.100
 libswscale 6. 1.100 / 6. 1.100
 libswresample 4. 0.100 / 4. 0.100
 libpostproc 56. 0.100 / 56. 0.100
Trailing option(s) found in the command: may be ignored.
[webm_dash_manifest @ 000002242a67e500] Could not find codec parameters for stream 0 (Video: vp9, none(tv, bt709, progressive), 854x480): unspecified pixel format
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
Input #0, webm_dash_manifest, from '480p.webm':
 Metadata:
 HANDLER : Created by Tester
 MAJOR_BRAND : isom
 MINOR_VERSION : 512
 COMPATIBLE_BRANDS: isomiso2avc1mp41
 HW : 1
 :
 BITRATE : 4000000
 :
 COMMENT : vid:v09044240000bq2bmhglths5sm54mgk0
 COPYRIGHT : 638e55167a0287a903e7b6895ed5d02e
 MAXRATE : 15000000
 :
 TE_IS_REENCODE : 1
 :
 ENCODER : Lavf59.2.101
 Duration: 00:00:20.17, bitrate: 907 kb/s
 Stream #0:0: Video: vp9, none(tv, bt709, progressive), 854x480, SAR 1:1 DAR 427:240, 30 fps, 30 tbr, 1k tbn (default)
 Metadata:
 HANDLER_NAME : VideoHandler
 VENDOR_ID : [0][0][0][0]
 ENCODER : Lavc59.1.100 libvpx-vp9
 DURATION : 00:00:20.166000000
 webm_dash_manifest_duration: 20166
 webm_dash_manifest_initialization_range: 1008
 webm_dash_manifest_file_name: 480p.webm
 webm_dash_manifest_track_number: 1
 webm_dash_manifest_cues_start: 2286344
 webm_dash_manifest_cues_end: 2286441
 webm_dash_manifest_bandwidth: 862822
 webm_dash_manifest_cluster_keyframe: 1
 webm_dash_manifest_cue_timestamps: 0,5000,10000,15000,20000
[webm_dash_manifest @ 000002242a69b840] Could not find codec parameters for stream 0 (Video: vp9, none(tv, bt709, progressive), 1280x720): unspecified pixel format
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
Input #1, webm_dash_manifest, from '720p.webm':
 Metadata:
 HANDLER : Created by Tester
 MAJOR_BRAND : isom
 MINOR_VERSION : 512
 COMPATIBLE_BRANDS: isomiso2avc1mp41
 HW : 1
 :
 BITRATE : 4000000
 :
 COMMENT : vid:v09044240000bq2bmhglths5sm54mgk0
 COPYRIGHT : 638e55167a0287a903e7b6895ed5d02e
 MAXRATE : 15000000
 :
 TE_IS_REENCODE : 1
 :
 ENCODER : Lavf59.2.101
 Duration: 00:00:20.17, bitrate: 1548 kb/s
 Stream #1:0: Video: vp9, none(tv, bt709, progressive), 1280x720, SAR 1:1 DAR 16:9, 30 fps, 30 tbr, 1k tbn (default)
 Metadata:
 HANDLER_NAME : VideoHandler
 VENDOR_ID : [0][0][0][0]
 ENCODER : Lavc59.1.100 libvpx-vp9
 DURATION : 00:00:20.166000000
 webm_dash_manifest_duration: 20166
 webm_dash_manifest_initialization_range: 1008
 webm_dash_manifest_file_name: 720p.webm
 webm_dash_manifest_track_number: 1
 webm_dash_manifest_cues_start: 3903085
 webm_dash_manifest_cues_end: 3903182
 webm_dash_manifest_bandwidth: 1473835
 webm_dash_manifest_cluster_keyframe: 1
 webm_dash_manifest_cue_timestamps: 0,5000,10000,15000,20000
Input #2, webm_dash_manifest, from 'audio.webm':
 Metadata:
 HANDLER : Created by Tester
 MAJOR_BRAND : isom
 MINOR_VERSION : 512
 COMPATIBLE_BRANDS: isomiso2avc1mp41
 HW : 1
 :
 BITRATE : 4000000
 :
 COMMENT : vid:v09044240000bq2bmhglths5sm54mgk0
 COPYRIGHT : 638e55167a0287a903e7b6895ed5d02e
 MAXRATE : 15000000
 :
 TE_IS_REENCODE : 1
 :
 ENCODER : Lavf59.2.101
 Duration: 00:00:20.16, bitrate: 118 kb/s
 Stream #2:0: Audio: vorbis, 44100 Hz, stereo, fltp (default)
 Metadata:
 HANDLER_NAME : SoundHandler
 VENDOR_ID : [0][0][0][0]
 ENCODER : Lavc59.1.100 libvorbis
 DURATION : 00:00:20.158000000
 webm_dash_manifest_duration: 20158
 webm_dash_manifest_initialization_range: 5244
 webm_dash_manifest_file_name: audio.webm
 webm_dash_manifest_track_number: 1
 webm_dash_manifest_cues_start: 298527
 webm_dash_manifest_cues_end: 298624
 webm_dash_manifest_bandwidth: 110530
 webm_dash_manifest_cluster_keyframe: 1
 webm_dash_manifest_cue_timestamps: 0,4994,9983,14978,19971
At least one output file must be specified



The command for converting videos and audio to specific resolutions run without issues.


FFMPEG command directly run in cli.


ffmpeg -f webm_dash_manifest -i 480p.webm -f webm_dash_manifest -i 720p.webm -f webm_dash_manifest -i audio.webm -c copy -map 0 -map 1 -map 2 -f webm_dash_manifest -adaptation_sets "id=0,streams=0,1 id=1,streams=2 my_manifest.mpd