
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 (12)
-
Participer à sa traduction
10 avril 2011Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
Actuellement MediaSPIP n’est disponible qu’en français et (...) -
L’utiliser, en parler, le critiquer
10 avril 2011La première attitude à adopter est d’en parler, soit directement avec les personnes impliquées dans son développement, soit autour de vous pour convaincre de nouvelles personnes à l’utiliser.
Plus la communauté sera nombreuse et plus les évolutions seront rapides ...
Une liste de discussion est disponible pour tout échange entre utilisateurs. -
Menus personnalisés
14 novembre 2010, parMediaSPIP utilise le plugin Menus pour gérer plusieurs menus configurables pour la navigation.
Cela permet de laisser aux administrateurs de canaux la possibilité de configurer finement ces menus.
Menus créés à l’initialisation du site
Par défaut trois menus sont créés automatiquement à l’initialisation du site : Le menu principal ; Identifiant : barrenav ; Ce menu s’insère en général en haut de la page après le bloc d’entête, son identifiant le rend compatible avec les squelettes basés sur Zpip ; (...)
Sur d’autres sites (3430)
-
Google Analytics Sampling : Why It Matters and How to Avoid It
21 octobre 2024, par Daniel Crough — Analytics Tips -
ffmpeg - convert MP4 to Panasonic Lumix playable MJPEG [closed]
21 août 2024, par Maro NattsI'm new to ffmpeg and ffprobe, I started using it to convert videos to show on 3DS and DSi for an art project.


Now I want to show my own videos on a Panasonic LUMIX digicam (DMC-FT2)(JPN), but have had trouble getting the device to play the video.


The digi takes videos in AVCHD Lite and Motion JPEG.


I've tried online converting mp4 to the respective formats + changing file name, but the device only recognises that it's there — refuses to/can't play it.


I also tried using this code to convert to MJPEG :

ffmpeg -i input.mp4 -c:v mjpeg -q:v 2 -an output.mjpeg


But no luck ! Changed the filename to match the others, the camera recognised the file is there, but can't play it.


So I used this code to get the information of a MJPEG video taken on the digi :

/opt/ffmpeg/ffprobe file.mp4 -show_streams -select_streams v -print_format json


and got the following, is it possible to convert my own video (mp4) to these settings ? So that it can play on the device ? If so how ?


Thanks !


Metadata:
 major_brand : qt 
 minor_version : 537331972
 compatible_brands: qt pana
 creation_time : 2024-08-21T21:54:59.000000Z
 Duration: 00:00:06.00, start: 0.000000, bitrate: 12287 kb/s
 Stream #0:0[0x1](eng): Video: mjpeg (Baseline) (jpeg / 0x6765706A), yuvj420p(pc, bt470bg/unknown/unknown), 640x480, 11083 kb/s, 30 fps, 30 tbr, 30 tbn (default)
 Metadata:
 creation_time : 2024-08-21T21:54:59.000000Z
 vendor_id : pana
 encoder : Photo - JPEG
 Stream #0:1[0x2](eng): Audio: pcm_s16be (twos / 0x736F7774), 16000 Hz, 1 channels, s16, 256 kb/s (default)
 Metadata:
 creation_time : 2024-08-21T21:54:59.000000Z
 vendor_id : pana
 "streams": [
 {
 "index": 0,
 "codec_name": "mjpeg",
 "codec_long_name": "Motion JPEG",
 "profile": "Baseline",
 "codec_type": "video",
 "codec_tag_string": "jpeg",
 "codec_tag": "0x6765706a",
 "width": 640,
 "height": 480,
 "coded_width": 640,
 "coded_height": 480,
 "closed_captions": 0,
 "film_grain": 0,
 "has_b_frames": 0,
 "pix_fmt": "yuvj420p",
 "level": -99,
 "color_range": "pc",
 "color_space": "bt470bg",
 "chroma_location": "center",
 "refs": 1,
 "id": "0x1",
 "r_frame_rate": "30/1",
 "avg_frame_rate": "30/1",
 "time_base": "1/30",
 "start_pts": 0,
 "start_time": "0.000000",
 "duration_ts": 180,
 "duration": "6.000000",
 "bit_rate": "11083093",
 "bits_per_raw_sample": "8",
 "nb_frames": "180",
 "disposition": {
 "default": 1,
 "dub": 0,
 "original": 0,
 "comment": 0,
 "lyrics": 0,
 "karaoke": 0,
 "forced": 0,
 "hearing_impaired": 0,
 "visual_impaired": 0,
 "clean_effects": 0,
 "attached_pic": 0,
 "timed_thumbnails": 0,
 "non_diegetic": 0,
 "captions": 0,
 "descriptions": 0,
 "metadata": 0,
 "dependent": 0,
 "still_image": 0
 },
 "tags": {
 "creation_time": "2024-08-21T21:54:59.000000Z",
 "language": "eng",
 "vendor_id": "pana",
 "encoder": "Photo - JPEG"
 }
 }
 ]
}




-
Pyinstaller Hidden import 'ffmpeg-python' not found
13 août 2024, par petunia roseTrying to convert Python scripts to exe with PyInstaller.


In my code, I use ffmpeg-python :


import ffmpeg
....
def ffmpeg_save_clip(self,output_video: str, clip_start: str, clip_end: str): 
 (ffmpeg 
 .input(self.file.get_videopath(), ) 
 .output(output_video, vcodec='copy', ss=clip_start, to=clip_end, acodec='copy') 
 .global_args('-y') 
 .run())



So Ii call PyInstaller from terminal with related flag :


pyinstaller --windowed --hidden-import "ffmpeg-python" --noconsole --icon=app.ico --name "app" main.py 



I checked also :


pip install ffmpeg-python 
Requirement already satisfied: ffmpeg-python in c:\python38\lib\site-packages (0.2.0) 
Requirement already satisfied: future in c:\python38\lib\site-packages (from ffmpeg-python) (0.18.3)



But I get from PyInstaller :


Hidden import 'ffmpeg-python' not found



App works in visual-studio, but when I run pyinstaller exe and try to save clip, it freeze without response.


Note : I also :


- 

-
try to add ffmpeg.exe into root folder of pyinstaller app.


-
try to use .spec file with :


binaries=[('C:\\ffmpeg\\bin\\ffmpeg.exe', 'ffmpeg/),('C:\\ffmpeg\\bin\\ffplay.exe','ffplay/'), ('C:\\ffmpeg\\bin\\ffprobe.exe', 'ffprobe/')]
,







Nothing changes


UPDATE
Tank you @happy_code_egg, you explained me such a things.
I tried what you said and I don't have error any more.


But I can't make work ffmpeg anywhere on Pyinstaller exe.
I added a try/except block to isolate problem
(when I launch app on Visualstudio it works, but not when use exe).


block is (very symilar to past def) :


def ffmpeg_save_clip(self,output_video: str, clip_start: str, clip_end: str):
 input = 'C:\Users\x\Desktop\input.mp4'
 output = 'C:\Users\x\Desktop\output.mp4'
 try:
 (ffmpeg
 .input(input)
 .output(output, vcodec='copy', ss=clip_start, to=clip_end, acodec='copy')
 .global_args('-y')
 .run(capture_stdout=True))
 except Exception as e:
 self.logger.error('Video window -> ffmpeg_save_clip -> error ' + str(e))
 self.logger.error('Video window -> ffmpeg_save_clip -> input file: ' + input)
 self.logger.error('Video window -> ffmpeg_save_clip -> output file ' + output)
 raise ValueError(str(e))



Note : (input and output fixed are only as simple path examples)


When I open log I have :


2024-08-09 11:28:50,293 - ERROR - Video window -> ffmpeg_save_clip -> error [WinError 2] File not found error
2024-08-09 11:28:50,293 - ERROR - Video window -> ffmpeg_save_clip -> input file: C:\Users\x\Desktop\input.mp4
2024-08-09 11:28:50,293 - ERROR - Video window -> ffmpeg_save_clip -> output file C:\Users\x\Desktop\ouput.mp4



(I tried with '/' and also '\' to create path)
File paths are correct and, on Visualstudio, they can be processed by ffmpeg (no error), but the exe seems to not find (input or output)


I tried solution described here :
Python ffmpeg won't accept path
(without effects)


I found also these discussions :






in both discussions seems to be a problem with ffmpeg + ffmpeg-python libs cohexistence.


I tried (as said) to uninstal both and reinstall ffmpeg-python,
but nothing change.


Note :
I've also three other warning during Pyinstaller :
(I write them only to complete context, but i think they have no repercussions on this problem.)


57283 ERROR: Hidden import 'fiona._shim' not found
57298 WARNING: Hidden import "fiona._shim" not found!
57392 WARNING: Hidden import "importlib_resources.trees" not found!



tried with :


--hidden-import fiona._shim --hidden-import fiona.schema



tried also with :


--add-data="fiona/*;fiona”



but warnings still remains.


-