
Recherche avancée
Autres articles (68)
-
Mise à jour de la version 0.1 vers 0.2
24 juin 2013, parExplications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...) -
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)
Sur d’autres sites (4177)
-
ffmpeg - data is being "removed" while h264 is being processed by ffmpeg
21 mai 2024, par LakiI got a file which is created based on messages coming from streaming, all of the "messages" are ending with b'h264\x00'
I got a need to


- 

- load the data into ffmpeg
- perform some processing of the data
- re-attach the data to same "messages"








Data is loaded with ffmpeg and saved with ffmpeg - however - ffmpeg removes "part" of the data
I have simplified the process and currently I am only loading and saving the data, without any processing, but still - part of the data is being removed


I have used several commands - but always, part of my data is being removed


ffmpeg -i sthg3.h264 -c copy st3.h264
ffmpeg -err_detect ignore_err -i sthg3.h264 -c copy st3.h264
ffmpeg -fflags +genpts -i sthg3.h264 -c copy st3.h264 



I have created the script for calculating that


file_out = 'sthg3.h264'
def split_file(input_file,chunki):
 output_files = []
 with open(input_file, 'rb') as f:
 file_number = 0
 while True:
 chunk = f.read(504096) # Read a chunk of data
 if not chunk: # End of file
 break
 index = chunk.find(chunki) # Find the delimiter
 while index != -1:
 chunk = chunk[index+len(chunki):]
 file_number += 1
 index = chunk.find(chunki) # Find the next delimiter
 return file_number

chunki = b'h264\x00'
print(split_file(file_out,chunki))
chunki = b'\x00\x01\x00'
print(split_file(file_out,chunki))
 
chunki = b'h264\x00'
#chunki = b'\x00\x00\xdc\x9e'
print(split_file('st3.h264',chunki))
chunki = b'\x00\x01\x00'
print(split_file('st3.h264',chunki))



and here is the question, how to push data through ffmpeg to avoid removing data, or replace it with something that would not be removed ?


-
Oddly-named file "not found" when trying to move/copy via MacOS Terminal [closed]
15 juin 2024, par Ben CThis is a head scratcher.


I need to move these three oddly-named files from an external 2.5" SSD to my desktop. The file names were intended to have variables replaced by date info, however, clearly it didn't work. So I'm left with these filenames that MacOS seems to want to interpret rather than treat as a string. I wish it was as easy as tossing in single quotes or escaping chars, but so far, that hasn't worked.


Files: Test01-$(internal:date_y)-$(internal:date_m)-$(internal:date_d)-.mp4 Test01-$(internal:date_y)-$(internal:date_m)-$(internal:date_d)-0001.mp4 Test01-$(internal:date_y)-$(internal:date_m)-$(internal:date_d)-0002.mp4


I'm on MacOS. In the Finder, the files are not visible. But they are not hidden files.


In Terminal, however, when I navigate to "/Volumes/TestDrive", then run a quick "ls", I can see all three files no problem. Including permissions, size, owners, full filename, etc.


However, when I attempt to move the files to my desktop, and rename in the process (even if I don't rename), Terminal tells me that "No such file or folder can be found" or something very close to that.


I've tried using mv and cp commands to put the filename in single quotes so the filename is read literally. Yet, I'm still given feedback that the file cannot be transferred because it cannot be found or doesn't exist.


mv 'Test01-$(internal:date_y)-$(internal:date_m)-$(internal:date_d)-.mp4' ~/Desktop/Test01-01.mp4' 'cp 'Test01-$(internal:date_y)-$(internal:date_m)-$(internal:date_d)-.mp4' ~/Desktop/Test01-01.mp4


When I try to escape special characters instead of quotes, I am also told the file doesn't exist. But clearly it does when I list out the contents of the drive. And there's only 3x .mp4 files, two hiddne files .fseventsd and some spotlight file.


mv Test01-\$\(internal\:date_y\)-\$\(internal\:date_m\)-\$\(internal\:date_d\)-.mp4 ~/Desktop/Test01-01.mp4


I've tried copying by inode. No luck. I've tried pulling the videos into ffmpeg (CLI based media mgmt tool) to see if I can get some info on the files, and same thing, ffmpeg (or ffprobe) both will tell me the file doesn't exist...even though I can list the files and see that it does.


I hope I'm missing something obvious, but but it seems all the obvious approaches are not yet working for me.


So my question is, what do I need to do to make these files "exist" so that I can rename them and back them up ? Happy to go down any rabbit hole.


Thanks in advance !


-
Getting "Unrecognized option '1'" when using "-map_metadata -1" to erase metadata with ffmpeg [closed]
20 novembre 2024, par Nautilus EraEdit :

As said in the header, this question is not about programing and I will ask it on the appropriate Stack.

My confusion came from the fact that I am using Python to make my calls to the shell, however, it has nothing to do with the problem I am trying to solve.

Thank you for your time and sorry for the bother.


I was trying to erase metadata from a file using ffmpeg using the
following command :


ffmpeg –i $file_path –map_metadata -1 –c copy $stripped_video_output



Where $file_path and $stripped_video_output are variables containing
their respective path.


ffmpeg gave the answer :


Unrecognized option '1'. 
Error splitting the argument list: Option not found



I am using Debian 12.


I tried with both the repository's version as well as a compiled version
of ffmpeg and I tried on two different computers.


If anyone can help with that, I would appreciate it.


Thank you in advance and have a good one.