
Recherche avancée
Médias (1)
-
The Slip - Artworks
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
Autres articles (41)
-
La file d’attente de SPIPmotion
28 novembre 2010, parUne file d’attente stockée dans la base de donnée
Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...) -
Contribute to documentation
13 avril 2011Documentation is vital to the development of improved technical capabilities.
MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
To contribute, register to the project users’ mailing (...) -
Récupération d’informations sur le site maître à l’installation d’une instance
26 novembre 2010, parUtilité
Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...)
Sur d’autres sites (5326)
-
Covert a file from mp4 to a file that HTML can display
26 juin 2019, par Trying_To_UnderstandI have a mp4 file and I want to display it in HTML. The problem is that it won’t, not only in HTML but also in my player. In VLC I can watch the video but there is no sound. Maybe the file is corrupted ?
This is the output when I runffmpeg -i my_file.mp4
:[h264 @ 000001b4afc61880] decode_slice_header error
[h264 @ 000001b4afc61880] no frame!
[h264 @ 000001b4afc61880] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 000001b4afc61880] decode_slice_header error
[h264 @ 000001b4afc61880] no frame!
Input #0, mpeg, from '150_2.mp4':
Duration: 00:50:51.75, start: 13182.386222, bitrate: 983 kb/s
Stream #0:0[0x1e0]: Video: h264 (High), yuv420p(progressive), 1280x720, 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0:1[0x1c0]: Audio: pcm_alaw, 8000 Hz, mono, s16, 64 kb/s
At least one output file must be specified.Can I convert this with ffmpeg to a good quality of video and audio ?
-
Adding mp3 metadata with space in ffmpeg using bash [duplicate]
15 septembre 2019, par ctrlnotThis question already has an answer here :
I have this bash script on downloading youtube videos then convert it to mp3 using youtube-dl and ffmpeg.
#!/bin/bash
ytlink=""
outputFileName=""
title=""
artist=""
album=""
while getopts l:o:t:r:b: flag; do
case "${flag}" in
l) ytlink="${OPTARG}";;
o) outputFileName="${OPTARG}";;
t) title="${OPTARG}";;
r) artist="${OPTARG}";;
b) album="${OPTARG}";;
esac
done
youtube-dl "$ytlink" --add-metadata --extract-audio --audio-format mp3 --output "temp.%(ext)s"
tempFilename="temp.mp3"
outputFileName="$outputFileName.mp3"
args+=("-i" "$tempFilename" "-metadata" "title='$title'" "-metadata" "artist='$artist'" "-metadata" "album='$album'" "-metadata" "comment=Source:$ytlink")
ffmpeg -loglevel debug ${args[@]} -acodec copy "$outputFileName"
rm "$tempFilename"This script is fine if I have one word title/artist/album. However, if I have a space, ffmpeg interprets each word before space as another parameter. This is how I use this on command line :
./yttomp3.sh -l "https://www.youtube.com/watch?v=KwQnSHAilOQ" -o "Lee - Autumn Day" -t "Autumn Day" -r "Lee" -b "(Free) Lo-fi Type Beat - Autumn Day"
The debug output of ffmpeg :
Splitting the commandline.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'.
Reading option '-i' ... matched as input url with argument 'temp.mp3'.
Reading option '-metadata' ... matched as option 'metadata' (add metadata) with argument 'title='Autumn'.
Reading option 'Day'' ... matched as output url.
Reading option '-metadata' ... matched as option 'metadata' (add metadata) with argument 'artist='Lee''.
Reading option '-metadata' ... matched as option 'metadata' (add metadata) with argument 'album='(Free)'.
Reading option 'Lo-fi' ... matched as output url.
Reading option 'Type' ... matched as output url.
Reading option 'Beat' ... matched as output url.
Reading option '-' ... matched as output url.
Reading option 'Autumn' ... matched as output url.
Reading option 'Day'' ... matched as output url.
Reading option '-metadata' ... matched as option 'metadata' (add metadata) with argument 'comment=Source:https://www.youtube.com/watch?v=KwQnSHAilOQ'.
Reading option '-acodec' ... matched as option 'acodec' (force audio codec ('copy' to copy stream)) with argument 'copy'.
Reading option 'Lee - Autumn Day.mp3' ... matched as output url.
Finished splitting the commandline.I tried enclosing the arguments to quotes on the script but it’s still not working. How should I deal with this ? Thanks.
-
Is it safe to ignore the error "Invalid UTF-8 in decoded subtitles text ; maybe missing -sub_charenc option Error while decoding stream" ?
30 avril 2022, par Clogged-arteryI was encoding a video with subtitles and I got the error, "Invalid UTF-8 in decoded subtitles text ; maybe missing -sub_charenc option. Error while decoding stream" but the video encoded anyway. What are the consequences of ignoring this error ? A google search showed a result of one guy saying it skips that sub so the resulting video will have missing subs. Can someone confirm this ?


I know how to fix it but I have already converted 50+ videos with subtitles and I'm fairly certain that a few of them had this error. I just want someone to tell me that it's okay to ignore so I don't have to watch 200 hours of videos.


Solution for fixing subtitle errors :


Create a batch file and edit with the following :


for %%a in ("*.srt") do ffmpeg -v 9 -loglevel 99 -sub_charenc CP1252 -i "%%a" "newfiles\%%~na.srt"
pause